1#! /bin/sh 2# From configure.ac GnuCOBOL snapshot Revision: 4106 . 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.69 for GnuCOBOL 3.1.2. 5# 6# Report bugs to <bug-gnucobol@gnu.org>. 7# 8# 9# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 21 emulate sh 22 NULLCMD=: 23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 24 # is contrary to our usage. Disable this feature. 25 alias -g '${1+"$@"}'='"$@"' 26 setopt NO_GLOB_SUBST 27else 28 case `(set -o) 2>/dev/null` in #( 29 *posix*) : 30 set -o posix ;; #( 31 *) : 32 ;; 33esac 34fi 35 36 37as_nl=' 38' 39export as_nl 40# Printing a long string crashes Solaris 7 /usr/bin/printf. 41as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 44# Prefer a ksh shell builtin over an external printf program on Solaris, 45# but without wasting forks for bash or zsh. 46if test -z "$BASH_VERSION$ZSH_VERSION" \ 47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='print -r --' 49 as_echo_n='print -rn --' 50elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 51 as_echo='printf %s\n' 52 as_echo_n='printf %s' 53else 54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 56 as_echo_n='/usr/ucb/echo -n' 57 else 58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 59 as_echo_n_body='eval 60 arg=$1; 61 case $arg in #( 62 *"$as_nl"*) 63 expr "X$arg" : "X\\(.*\\)$as_nl"; 64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 65 esac; 66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 67 ' 68 export as_echo_n_body 69 as_echo_n='sh -c $as_echo_n_body as_echo' 70 fi 71 export as_echo_body 72 as_echo='sh -c $as_echo_body as_echo' 73fi 74 75# The user is always right. 76if test "${PATH_SEPARATOR+set}" != set; then 77 PATH_SEPARATOR=: 78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 80 PATH_SEPARATOR=';' 81 } 82fi 83 84 85# IFS 86# We need space, tab and new line, in precisely that order. Quoting is 87# there to prevent editors from complaining about space-tab. 88# (If _AS_PATH_WALK were called with IFS unset, it would disable word 89# splitting by setting IFS to empty value.) 90IFS=" "" $as_nl" 91 92# Find who we are. Look in the path if we contain no directory separator. 93as_myself= 94case $0 in #(( 95 *[\\/]* ) as_myself=$0 ;; 96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 97for as_dir in $PATH 98do 99 IFS=$as_save_IFS 100 test -z "$as_dir" && as_dir=. 101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 102 done 103IFS=$as_save_IFS 104 105 ;; 106esac 107# We did not find ourselves, most probably we were run as `sh COMMAND' 108# in which case we are not to be found in the path. 109if test "x$as_myself" = x; then 110 as_myself=$0 111fi 112if test ! -f "$as_myself"; then 113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 114 exit 1 115fi 116 117# Unset variables that we do not need and which cause bugs (e.g. in 118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 119# suppresses any "Segmentation fault" message there. '((' could 120# trigger a bug in pdksh 5.2.14. 121for as_var in BASH_ENV ENV MAIL MAILPATH 122do eval test x\${$as_var+set} = xset \ 123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 124done 125PS1='$ ' 126PS2='> ' 127PS4='+ ' 128 129# NLS nuisances. 130LC_ALL=C 131export LC_ALL 132LANGUAGE=C 133export LANGUAGE 134 135# CDPATH. 136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 137 138# Use a proper internal environment variable to ensure we don't fall 139 # into an infinite loop, continuously re-executing ourselves. 140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 141 _as_can_reexec=no; export _as_can_reexec; 142 # We cannot yet assume a decent shell, so we have to provide a 143# neutralization value for shells without unset; and this also 144# works around shells that cannot unset nonexistent variables. 145# Preserve -v and -x to the replacement shell. 146BASH_ENV=/dev/null 147ENV=/dev/null 148(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 149case $- in # (((( 150 *v*x* | *x*v* ) as_opts=-vx ;; 151 *v* ) as_opts=-v ;; 152 *x* ) as_opts=-x ;; 153 * ) as_opts= ;; 154esac 155exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 156# Admittedly, this is quite paranoid, since all the known shells bail 157# out after a failed `exec'. 158$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 159as_fn_exit 255 160 fi 161 # We don't want this to propagate to other subprocesses. 162 { _as_can_reexec=; unset _as_can_reexec;} 163if test "x$CONFIG_SHELL" = x; then 164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 165 emulate sh 166 NULLCMD=: 167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 168 # is contrary to our usage. Disable this feature. 169 alias -g '\${1+\"\$@\"}'='\"\$@\"' 170 setopt NO_GLOB_SUBST 171else 172 case \`(set -o) 2>/dev/null\` in #( 173 *posix*) : 174 set -o posix ;; #( 175 *) : 176 ;; 177esac 178fi 179" 180 as_required="as_fn_return () { (exit \$1); } 181as_fn_success () { as_fn_return 0; } 182as_fn_failure () { as_fn_return 1; } 183as_fn_ret_success () { return 0; } 184as_fn_ret_failure () { return 1; } 185 186exitcode=0 187as_fn_success || { exitcode=1; echo as_fn_success failed.; } 188as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 189as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 190as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 191if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 192 193else 194 exitcode=1; echo positional parameters were not saved. 195fi 196test x\$exitcode = x0 || exit 1 197test -x / || exit 1" 198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 202test \$(( 1 + 1 )) = 2 || exit 1 203 204 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 205 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 208 PATH=/empty FPATH=/empty; export PATH FPATH 209 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 210 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 211 if (eval "$as_required") 2>/dev/null; then : 212 as_have_required=yes 213else 214 as_have_required=no 215fi 216 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 217 218else 219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 220as_found=false 221for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 222do 223 IFS=$as_save_IFS 224 test -z "$as_dir" && as_dir=. 225 as_found=: 226 case $as_dir in #( 227 /*) 228 for as_base in sh bash ksh sh5; do 229 # Try only shells that exist, to save several forks. 230 as_shell=$as_dir/$as_base 231 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 233 CONFIG_SHELL=$as_shell as_have_required=yes 234 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 235 break 2 236fi 237fi 238 done;; 239 esac 240 as_found=false 241done 242$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 243 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 244 CONFIG_SHELL=$SHELL as_have_required=yes 245fi; } 246IFS=$as_save_IFS 247 248 249 if test "x$CONFIG_SHELL" != x; then : 250 export CONFIG_SHELL 251 # We cannot yet assume a decent shell, so we have to provide a 252# neutralization value for shells without unset; and this also 253# works around shells that cannot unset nonexistent variables. 254# Preserve -v and -x to the replacement shell. 255BASH_ENV=/dev/null 256ENV=/dev/null 257(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 258case $- in # (((( 259 *v*x* | *x*v* ) as_opts=-vx ;; 260 *v* ) as_opts=-v ;; 261 *x* ) as_opts=-x ;; 262 * ) as_opts= ;; 263esac 264exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 265# Admittedly, this is quite paranoid, since all the known shells bail 266# out after a failed `exec'. 267$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 268exit 255 269fi 270 271 if test x$as_have_required = xno; then : 272 $as_echo "$0: This script requires a shell more modern than all" 273 $as_echo "$0: the shells that I found on your system." 274 if test x${ZSH_VERSION+set} = xset ; then 275 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 276 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 277 else 278 $as_echo "$0: Please tell bug-autoconf@gnu.org and 279$0: bug-gnucobol@gnu.org about your system, including any 280$0: error possibly output before this message. Then install 281$0: a modern shell, or manually run the script under such a 282$0: shell if you do have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306# as_fn_set_status STATUS 307# ----------------------- 308# Set $? to STATUS, without forking. 309as_fn_set_status () 310{ 311 return $1 312} # as_fn_set_status 313 314# as_fn_exit STATUS 315# ----------------- 316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317as_fn_exit () 318{ 319 set +e 320 as_fn_set_status $1 321 exit $1 322} # as_fn_exit 323 324# as_fn_mkdir_p 325# ------------- 326# Create "$as_dir" as a directory, including parents if necessary. 327as_fn_mkdir_p () 328{ 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346$as_echo X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370} # as_fn_mkdir_p 371 372# as_fn_executable_p FILE 373# ----------------------- 374# Test if FILE is an executable regular file. 375as_fn_executable_p () 376{ 377 test -f "$1" && test -x "$1" 378} # as_fn_executable_p 379# as_fn_append VAR VALUE 380# ---------------------- 381# Append the text in VALUE to the end of the definition contained in VAR. Take 382# advantage of any shell optimizations that allow amortized linear growth over 383# repeated appends, instead of the typical quadratic growth present in naive 384# implementations. 385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386 eval 'as_fn_append () 387 { 388 eval $1+=\$2 389 }' 390else 391 as_fn_append () 392 { 393 eval $1=\$$1\$2 394 } 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407else 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412fi # as_fn_arith 413 414 415# as_fn_error STATUS ERROR [LINENO LOG_FD] 416# ---------------------------------------- 417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 419# script with STATUS, using 1 if that was 0. 420as_fn_error () 421{ 422 as_status=$1; test $as_status -eq 0 && as_status=1 423 if test "$4"; then 424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 426 fi 427 $as_echo "$as_me: error: $2" >&2 428 as_fn_exit $as_status 429} # as_fn_error 430 431if expr a : '\(a\)' >/dev/null 2>&1 && 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then 433 as_expr=expr 434else 435 as_expr=false 436fi 437 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439 as_basename=basename 440else 441 as_basename=false 442fi 443 444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445 as_dirname=dirname 446else 447 as_dirname=false 448fi 449 450as_me=`$as_basename -- "$0" || 451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 452 X"$0" : 'X\(//\)$' \| \ 453 X"$0" : 'X\(/\)' \| . 2>/dev/null || 454$as_echo X/"$0" | 455 sed '/^.*\/\([^/][^/]*\)\/*$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\/\)$/{ 460 s//\1/ 461 q 462 } 463 /^X\/\(\/\).*/{ 464 s//\1/ 465 q 466 } 467 s/.*/./; q'` 468 469# Avoid depending upon Character Ranges. 470as_cr_letters='abcdefghijklmnopqrstuvwxyz' 471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472as_cr_Letters=$as_cr_letters$as_cr_LETTERS 473as_cr_digits='0123456789' 474as_cr_alnum=$as_cr_Letters$as_cr_digits 475 476 477 as_lineno_1=$LINENO as_lineno_1a=$LINENO 478 as_lineno_2=$LINENO as_lineno_2a=$LINENO 479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 482 sed -n ' 483 p 484 /[$]LINENO/= 485 ' <$as_myself | 486 sed ' 487 s/[$]LINENO.*/&-/ 488 t lineno 489 b 490 :lineno 491 N 492 :loop 493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 494 t loop 495 s/-\n.*// 496 ' >$as_me.lineno && 497 chmod +x "$as_me.lineno" || 498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 499 500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 501 # already done that, so ensure we don't try to do so again and fall 502 # in an infinite loop. This has already happened in practice. 503 _as_can_reexec=no; export _as_can_reexec 504 # Don't try to exec as it changes $[0], causing all sort of problems 505 # (the dirname of $[0] is not the place where we might find the 506 # original and so on. Autoconf is especially sensitive to this). 507 . "./$as_me.lineno" 508 # Exit status is that of the last command. 509 exit 510} 511 512ECHO_C= ECHO_N= ECHO_T= 513case `echo -n x` in #((((( 514-n*) 515 case `echo 'xy\c'` in 516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 517 xy) ECHO_C='\c';; 518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 519 ECHO_T=' ';; 520 esac;; 521*) 522 ECHO_N='-n';; 523esac 524 525rm -f conf$$ conf$$.exe conf$$.file 526if test -d conf$$.dir; then 527 rm -f conf$$.dir/conf$$.file 528else 529 rm -f conf$$.dir 530 mkdir conf$$.dir 2>/dev/null 531fi 532if (echo >conf$$.file) 2>/dev/null; then 533 if ln -s conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s='ln -s' 535 # ... but there are two gotchas: 536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 538 # In both cases, we have to default to `cp -pR'. 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 540 as_ln_s='cp -pR' 541 elif ln conf$$.file conf$$ 2>/dev/null; then 542 as_ln_s=ln 543 else 544 as_ln_s='cp -pR' 545 fi 546else 547 as_ln_s='cp -pR' 548fi 549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550rmdir conf$$.dir 2>/dev/null 551 552if mkdir -p . 2>/dev/null; then 553 as_mkdir_p='mkdir -p "$as_dir"' 554else 555 test -d ./-p && rmdir ./-p 556 as_mkdir_p=false 557fi 558 559as_test_x='test -x' 560as_executable_p=as_fn_executable_p 561 562# Sed expression to map a string onto a valid CPP name. 563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 564 565# Sed expression to map a string onto a valid variable name. 566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567 568SHELL=${CONFIG_SHELL-/bin/sh} 569 570 571test -n "$DJDIR" || exec 7<&0 </dev/null 572exec 6>&1 573 574# Name of the host. 575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 576# so uname gets run too. 577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 578 579# 580# Initializations. 581# 582ac_default_prefix=/usr/local 583ac_clean_files= 584ac_config_libobj_dir=. 585LIBOBJS= 586cross_compiling=no 587subdirs= 588MFLAGS= 589MAKEFLAGS= 590 591# Identity of this package. 592PACKAGE_NAME='GnuCOBOL' 593PACKAGE_TARNAME='gnucobol' 594PACKAGE_VERSION='3.1.2' 595PACKAGE_STRING='GnuCOBOL 3.1.2' 596PACKAGE_BUGREPORT='bug-gnucobol@gnu.org' 597PACKAGE_URL='https://www.gnu.org/software/gnucobol/' 598 599ac_unique_file="libcob.h" 600# Factoring default headers for most tests. 601ac_includes_default="\ 602#include <stdio.h> 603#ifdef HAVE_SYS_TYPES_H 604# include <sys/types.h> 605#endif 606#ifdef HAVE_SYS_STAT_H 607# include <sys/stat.h> 608#endif 609#ifdef STDC_HEADERS 610# include <stdlib.h> 611# include <stddef.h> 612#else 613# ifdef HAVE_STDLIB_H 614# include <stdlib.h> 615# endif 616#endif 617#ifdef HAVE_STRING_H 618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 619# include <memory.h> 620# endif 621# include <string.h> 622#endif 623#ifdef HAVE_STRINGS_H 624# include <strings.h> 625#endif 626#ifdef HAVE_INTTYPES_H 627# include <inttypes.h> 628#endif 629#ifdef HAVE_STDINT_H 630# include <stdint.h> 631#endif 632#ifdef HAVE_UNISTD_H 633# include <unistd.h> 634#endif" 635 636gt_needs= 637ac_subst_vars='am__EXEEXT_FALSE 638am__EXEEXT_TRUE 639LTLIBOBJS 640LIBOBJS 641HELP2MAN 642COB_PATCH_LEVEL 643COB_HAS_64_BIT_POINTER 644COB_HAS_JSON 645COB_HAS_XML2 646COB_HAS_CURSES 647COB_HAS_ISAM 648COB_FIX_LIBTOOL 649COB_BIGENDIAN 650COB_EXE_EXT 651COB_MODULE_EXT 652COB_OBJECT_EXT 653COB_LIBRARY_PATH 654COB_COPY_DIR 655COB_CONFIG_DIR 656COB_LIBS 657COB_LDFLAGS 658COB_CFLAGS 659COB_CC 660COB_MAKE_RUN_BINARIES_FALSE 661COB_MAKE_RUN_BINARIES_TRUE 662COB_MAKE_IX_FALSE 663COB_MAKE_IX_TRUE 664LOCAL_CJSON_FALSE 665LOCAL_CJSON_TRUE 666POSUB 667LTLIBINTL 668LIBINTL 669INTLLIBS 670LTLIBICONV 671LIBICONV 672INTL_MACOSX_LIBS 673XGETTEXT_EXTRA_OPTIONS 674MSGMERGE_FOR_MSGFMT_OPTION 675MSGMERGE 676XGETTEXT_015 677XGETTEXT 678GMSGFMT_015 679GMSGFMT 680MSGFMT 681GETTEXT_MACRO_VERSION 682USE_NLS 683JSON_C_LIBS 684JSON_C_CFLAGS 685CJSON_LIBS 686CJSON_CFLAGS 687xml2_config_found 688XML2_LIBS 689XML2_CFLAGS 690MPIR_LIBS 691MPIR_CFLAGS 692GMP_LIBS 693GMP_CFLAGS 694PKG_CONFIG_LIBDIR 695PKG_CONFIG_PATH 696PKG_CONFIG 697CODE_COVERAGE_LIBS 698CODE_COVERAGE_CXXFLAGS 699CODE_COVERAGE_CFLAGS 700CODE_COVERAGE_CPPFLAGS 701GENHTML 702LCOV 703GCOV 704ifnGNUmake 705ifGNUmake 706CODE_COVERAGE_ENABLED 707CODE_COVERAGE_ENABLED_FALSE 708CODE_COVERAGE_ENABLED_TRUE 709DIFF_FLAGS 710RC 711YFLAGS 712YACC 713LEXLIB 714LEX_OUTPUT_ROOT 715LEX 716LT_SYS_LIBRARY_PATH 717OTOOL64 718OTOOL 719LIPO 720NMEDIT 721DSYMUTIL 722MANIFEST_TOOL 723RANLIB 724ac_ct_AR 725AR 726LN_S 727NM 728ac_ct_DUMPBIN 729DUMPBIN 730LD 731FGREP 732SED 733host_os 734host_vendor 735host_cpu 736host 737build_os 738build_vendor 739build_cpu 740build 741LIBTOOL 742OBJDUMP 743DLLTOOL 744AS 745PROGRAMS_LIBS 746LIBCOB_LIBS 747LIBCOB_CPPFLAGS 748EGREP 749GREP 750CPP 751am__fastdepCC_FALSE 752am__fastdepCC_TRUE 753CCDEPMODE 754am__nodep 755AMDEPBACKSLASH 756AMDEP_FALSE 757AMDEP_TRUE 758am__include 759DEPDIR 760OBJEXT 761EXEEXT 762ac_ct_CC 763CPPFLAGS 764LDFLAGS 765CFLAGS 766CC 767MAKE_HAS_PREREQ_ONLY_FALSE 768MAKE_HAS_PREREQ_ONLY_TRUE 769MAKE 770configured_make 771AM_BACKSLASH 772AM_DEFAULT_VERBOSITY 773AM_DEFAULT_V 774AM_V 775am__untar 776am__tar 777AMTAR 778am__leading_dot 779SET_MAKE 780AWK 781mkdir_p 782MKDIR_P 783INSTALL_STRIP_PROGRAM 784STRIP 785install_sh 786MAKEINFO 787AUTOHEADER 788AUTOMAKE 789AUTOCONF 790ACLOCAL 791VERSION 792PACKAGE 793CYGPATH_W 794am__isrc 795INSTALL_DATA 796INSTALL_SCRIPT 797INSTALL_PROGRAM 798target_alias 799host_alias 800build_alias 801LIBS 802ECHO_T 803ECHO_N 804ECHO_C 805DEFS 806mandir 807localedir 808libdir 809psdir 810pdfdir 811dvidir 812htmldir 813infodir 814docdir 815oldincludedir 816includedir 817runstatedir 818localstatedir 819sharedstatedir 820sysconfdir 821datadir 822datarootdir 823libexecdir 824sbindir 825bindir 826program_transform_name 827prefix 828exec_prefix 829PACKAGE_URL 830PACKAGE_BUGREPORT 831PACKAGE_STRING 832PACKAGE_VERSION 833PACKAGE_TARNAME 834PACKAGE_NAME 835PATH_SEPARATOR 836SHELL 837am__quote' 838ac_subst_files='' 839ac_user_opts=' 840enable_option_checking 841enable_silent_rules 842enable_debug 843enable_hardening 844enable_experimental 845enable_cobc_internal_checks 846enable_debuglog 847enable_param_check 848with_patch_level 849with_max_call_params 850enable_dependency_tracking 851enable_shared 852enable_static 853with_pic 854enable_fast_install 855with_aix_soname 856with_gnu_ld 857with_sysroot 858enable_libtool_lock 859enable_rpath 860with_gcov 861enable_code_coverage 862with_math 863with_xml2 864with_json 865with_dl 866with_varseq 867with_curses 868with_seqra_extfh 869with_cisam 870with_disam 871with_vbisam 872with_index_extfh 873with_db 874enable_nls 875with_libiconv_prefix 876with_libintl_prefix 877' 878 ac_precious_vars='build_alias 879host_alias 880target_alias 881CC 882CFLAGS 883LDFLAGS 884LIBS 885CPPFLAGS 886CPP 887LIBCOB_CPPFLAGS 888LIBCOB_LIBS 889PROGRAMS_LIBS 890LT_SYS_LIBRARY_PATH 891YACC 892YFLAGS 893DIFF_FLAGS 894PKG_CONFIG 895PKG_CONFIG_PATH 896PKG_CONFIG_LIBDIR 897GMP_CFLAGS 898GMP_LIBS 899MPIR_CFLAGS 900MPIR_LIBS 901XML2_CFLAGS 902XML2_LIBS 903CJSON_CFLAGS 904CJSON_LIBS 905JSON_C_CFLAGS 906JSON_C_LIBS' 907 908 909# Initialize some variables set by options. 910ac_init_help= 911ac_init_version=false 912ac_unrecognized_opts= 913ac_unrecognized_sep= 914# The variables have the same names as the options, with 915# dashes changed to underlines. 916cache_file=/dev/null 917exec_prefix=NONE 918no_create= 919no_recursion= 920prefix=NONE 921program_prefix=NONE 922program_suffix=NONE 923program_transform_name=s,x,x, 924silent= 925site= 926srcdir= 927verbose= 928x_includes=NONE 929x_libraries=NONE 930 931# Installation directory options. 932# These are left unexpanded so users can "make install exec_prefix=/foo" 933# and all the variables that are supposed to be based on exec_prefix 934# by default will actually change. 935# Use braces instead of parens because sh, perl, etc. also accept them. 936# (The list follows the same order as the GNU Coding Standards.) 937bindir='${exec_prefix}/bin' 938sbindir='${exec_prefix}/sbin' 939libexecdir='${exec_prefix}/libexec' 940datarootdir='${prefix}/share' 941datadir='${datarootdir}' 942sysconfdir='${prefix}/etc' 943sharedstatedir='${prefix}/com' 944localstatedir='${prefix}/var' 945runstatedir='${localstatedir}/run' 946includedir='${prefix}/include' 947oldincludedir='/usr/include' 948docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 949infodir='${datarootdir}/info' 950htmldir='${docdir}' 951dvidir='${docdir}' 952pdfdir='${docdir}' 953psdir='${docdir}' 954libdir='${exec_prefix}/lib' 955localedir='${datarootdir}/locale' 956mandir='${datarootdir}/man' 957 958ac_prev= 959ac_dashdash= 960for ac_option 961do 962 # If the previous option needs an argument, assign it. 963 if test -n "$ac_prev"; then 964 eval $ac_prev=\$ac_option 965 ac_prev= 966 continue 967 fi 968 969 case $ac_option in 970 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 971 *=) ac_optarg= ;; 972 *) ac_optarg=yes ;; 973 esac 974 975 # Accept the important Cygnus configure options, so we can diagnose typos. 976 977 case $ac_dashdash$ac_option in 978 --) 979 ac_dashdash=yes ;; 980 981 -bindir | --bindir | --bindi | --bind | --bin | --bi) 982 ac_prev=bindir ;; 983 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 984 bindir=$ac_optarg ;; 985 986 -build | --build | --buil | --bui | --bu) 987 ac_prev=build_alias ;; 988 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 989 build_alias=$ac_optarg ;; 990 991 -cache-file | --cache-file | --cache-fil | --cache-fi \ 992 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 993 ac_prev=cache_file ;; 994 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 995 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 996 cache_file=$ac_optarg ;; 997 998 --config-cache | -C) 999 cache_file=config.cache ;; 1000 1001 -datadir | --datadir | --datadi | --datad) 1002 ac_prev=datadir ;; 1003 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1004 datadir=$ac_optarg ;; 1005 1006 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1007 | --dataroo | --dataro | --datar) 1008 ac_prev=datarootdir ;; 1009 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1010 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1011 datarootdir=$ac_optarg ;; 1012 1013 -disable-* | --disable-*) 1014 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1015 # Reject names that are not valid shell variable names. 1016 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1017 as_fn_error $? "invalid feature name: $ac_useropt" 1018 ac_useropt_orig=$ac_useropt 1019 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1020 case $ac_user_opts in 1021 *" 1022"enable_$ac_useropt" 1023"*) ;; 1024 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1025 ac_unrecognized_sep=', ';; 1026 esac 1027 eval enable_$ac_useropt=no ;; 1028 1029 -docdir | --docdir | --docdi | --doc | --do) 1030 ac_prev=docdir ;; 1031 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1032 docdir=$ac_optarg ;; 1033 1034 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1035 ac_prev=dvidir ;; 1036 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1037 dvidir=$ac_optarg ;; 1038 1039 -enable-* | --enable-*) 1040 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1041 # Reject names that are not valid shell variable names. 1042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1043 as_fn_error $? "invalid feature name: $ac_useropt" 1044 ac_useropt_orig=$ac_useropt 1045 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1046 case $ac_user_opts in 1047 *" 1048"enable_$ac_useropt" 1049"*) ;; 1050 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1051 ac_unrecognized_sep=', ';; 1052 esac 1053 eval enable_$ac_useropt=\$ac_optarg ;; 1054 1055 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1056 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1057 | --exec | --exe | --ex) 1058 ac_prev=exec_prefix ;; 1059 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1060 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1061 | --exec=* | --exe=* | --ex=*) 1062 exec_prefix=$ac_optarg ;; 1063 1064 -gas | --gas | --ga | --g) 1065 # Obsolete; use --with-gas. 1066 with_gas=yes ;; 1067 1068 -help | --help | --hel | --he | -h) 1069 ac_init_help=long ;; 1070 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1071 ac_init_help=recursive ;; 1072 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1073 ac_init_help=short ;; 1074 1075 -host | --host | --hos | --ho) 1076 ac_prev=host_alias ;; 1077 -host=* | --host=* | --hos=* | --ho=*) 1078 host_alias=$ac_optarg ;; 1079 1080 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1081 ac_prev=htmldir ;; 1082 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1083 | --ht=*) 1084 htmldir=$ac_optarg ;; 1085 1086 -includedir | --includedir | --includedi | --included | --include \ 1087 | --includ | --inclu | --incl | --inc) 1088 ac_prev=includedir ;; 1089 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1090 | --includ=* | --inclu=* | --incl=* | --inc=*) 1091 includedir=$ac_optarg ;; 1092 1093 -infodir | --infodir | --infodi | --infod | --info | --inf) 1094 ac_prev=infodir ;; 1095 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1096 infodir=$ac_optarg ;; 1097 1098 -libdir | --libdir | --libdi | --libd) 1099 ac_prev=libdir ;; 1100 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1101 libdir=$ac_optarg ;; 1102 1103 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1104 | --libexe | --libex | --libe) 1105 ac_prev=libexecdir ;; 1106 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1107 | --libexe=* | --libex=* | --libe=*) 1108 libexecdir=$ac_optarg ;; 1109 1110 -localedir | --localedir | --localedi | --localed | --locale) 1111 ac_prev=localedir ;; 1112 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1113 localedir=$ac_optarg ;; 1114 1115 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1116 | --localstate | --localstat | --localsta | --localst | --locals) 1117 ac_prev=localstatedir ;; 1118 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1119 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1120 localstatedir=$ac_optarg ;; 1121 1122 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1123 ac_prev=mandir ;; 1124 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1125 mandir=$ac_optarg ;; 1126 1127 -nfp | --nfp | --nf) 1128 # Obsolete; use --without-fp. 1129 with_fp=no ;; 1130 1131 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1132 | --no-cr | --no-c | -n) 1133 no_create=yes ;; 1134 1135 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1136 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1137 no_recursion=yes ;; 1138 1139 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1140 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1141 | --oldin | --oldi | --old | --ol | --o) 1142 ac_prev=oldincludedir ;; 1143 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1144 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1145 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1146 oldincludedir=$ac_optarg ;; 1147 1148 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1149 ac_prev=prefix ;; 1150 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1151 prefix=$ac_optarg ;; 1152 1153 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1154 | --program-pre | --program-pr | --program-p) 1155 ac_prev=program_prefix ;; 1156 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1157 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1158 program_prefix=$ac_optarg ;; 1159 1160 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1161 | --program-suf | --program-su | --program-s) 1162 ac_prev=program_suffix ;; 1163 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1164 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1165 program_suffix=$ac_optarg ;; 1166 1167 -program-transform-name | --program-transform-name \ 1168 | --program-transform-nam | --program-transform-na \ 1169 | --program-transform-n | --program-transform- \ 1170 | --program-transform | --program-transfor \ 1171 | --program-transfo | --program-transf \ 1172 | --program-trans | --program-tran \ 1173 | --progr-tra | --program-tr | --program-t) 1174 ac_prev=program_transform_name ;; 1175 -program-transform-name=* | --program-transform-name=* \ 1176 | --program-transform-nam=* | --program-transform-na=* \ 1177 | --program-transform-n=* | --program-transform-=* \ 1178 | --program-transform=* | --program-transfor=* \ 1179 | --program-transfo=* | --program-transf=* \ 1180 | --program-trans=* | --program-tran=* \ 1181 | --progr-tra=* | --program-tr=* | --program-t=*) 1182 program_transform_name=$ac_optarg ;; 1183 1184 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1185 ac_prev=pdfdir ;; 1186 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1187 pdfdir=$ac_optarg ;; 1188 1189 -psdir | --psdir | --psdi | --psd | --ps) 1190 ac_prev=psdir ;; 1191 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1192 psdir=$ac_optarg ;; 1193 1194 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1195 | -silent | --silent | --silen | --sile | --sil) 1196 silent=yes ;; 1197 1198 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1199 | --runstate | --runstat | --runsta | --runst | --runs \ 1200 | --run | --ru | --r) 1201 ac_prev=runstatedir ;; 1202 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1203 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1204 | --run=* | --ru=* | --r=*) 1205 runstatedir=$ac_optarg ;; 1206 1207 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1208 ac_prev=sbindir ;; 1209 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1210 | --sbi=* | --sb=*) 1211 sbindir=$ac_optarg ;; 1212 1213 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1214 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1215 | --sharedst | --shareds | --shared | --share | --shar \ 1216 | --sha | --sh) 1217 ac_prev=sharedstatedir ;; 1218 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1219 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1220 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1221 | --sha=* | --sh=*) 1222 sharedstatedir=$ac_optarg ;; 1223 1224 -site | --site | --sit) 1225 ac_prev=site ;; 1226 -site=* | --site=* | --sit=*) 1227 site=$ac_optarg ;; 1228 1229 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1230 ac_prev=srcdir ;; 1231 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1232 srcdir=$ac_optarg ;; 1233 1234 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1235 | --syscon | --sysco | --sysc | --sys | --sy) 1236 ac_prev=sysconfdir ;; 1237 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1238 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1239 sysconfdir=$ac_optarg ;; 1240 1241 -target | --target | --targe | --targ | --tar | --ta | --t) 1242 ac_prev=target_alias ;; 1243 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1244 target_alias=$ac_optarg ;; 1245 1246 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1247 verbose=yes ;; 1248 1249 -version | --version | --versio | --versi | --vers | -V) 1250 ac_init_version=: ;; 1251 1252 -with-* | --with-*) 1253 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1254 # Reject names that are not valid shell variable names. 1255 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1256 as_fn_error $? "invalid package name: $ac_useropt" 1257 ac_useropt_orig=$ac_useropt 1258 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1259 case $ac_user_opts in 1260 *" 1261"with_$ac_useropt" 1262"*) ;; 1263 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1264 ac_unrecognized_sep=', ';; 1265 esac 1266 eval with_$ac_useropt=\$ac_optarg ;; 1267 1268 -without-* | --without-*) 1269 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1270 # Reject names that are not valid shell variable names. 1271 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1272 as_fn_error $? "invalid package name: $ac_useropt" 1273 ac_useropt_orig=$ac_useropt 1274 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1275 case $ac_user_opts in 1276 *" 1277"with_$ac_useropt" 1278"*) ;; 1279 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1280 ac_unrecognized_sep=', ';; 1281 esac 1282 eval with_$ac_useropt=no ;; 1283 1284 --x) 1285 # Obsolete; use --with-x. 1286 with_x=yes ;; 1287 1288 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1289 | --x-incl | --x-inc | --x-in | --x-i) 1290 ac_prev=x_includes ;; 1291 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1292 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1293 x_includes=$ac_optarg ;; 1294 1295 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1296 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1297 ac_prev=x_libraries ;; 1298 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1299 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1300 x_libraries=$ac_optarg ;; 1301 1302 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1303Try \`$0 --help' for more information" 1304 ;; 1305 1306 *=*) 1307 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1308 # Reject names that are not valid shell variable names. 1309 case $ac_envvar in #( 1310 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1311 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1312 esac 1313 eval $ac_envvar=\$ac_optarg 1314 export $ac_envvar ;; 1315 1316 *) 1317 # FIXME: should be removed in autoconf 3.0. 1318 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1319 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1320 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1321 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1322 ;; 1323 1324 esac 1325done 1326 1327if test -n "$ac_prev"; then 1328 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1329 as_fn_error $? "missing argument to $ac_option" 1330fi 1331 1332if test -n "$ac_unrecognized_opts"; then 1333 case $enable_option_checking in 1334 no) ;; 1335 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1336 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1337 esac 1338fi 1339 1340# Check all directory arguments for consistency. 1341for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1342 datadir sysconfdir sharedstatedir localstatedir includedir \ 1343 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1344 libdir localedir mandir runstatedir 1345do 1346 eval ac_val=\$$ac_var 1347 # Remove trailing slashes. 1348 case $ac_val in 1349 */ ) 1350 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1351 eval $ac_var=\$ac_val;; 1352 esac 1353 # Be sure to have absolute directory names. 1354 case $ac_val in 1355 [\\/$]* | ?:[\\/]* ) continue;; 1356 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1357 esac 1358 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1359done 1360 1361# There might be people who depend on the old broken behavior: `$host' 1362# used to hold the argument of --host etc. 1363# FIXME: To remove some day. 1364build=$build_alias 1365host=$host_alias 1366target=$target_alias 1367 1368# FIXME: To remove some day. 1369if test "x$host_alias" != x; then 1370 if test "x$build_alias" = x; then 1371 cross_compiling=maybe 1372 elif test "x$build_alias" != "x$host_alias"; then 1373 cross_compiling=yes 1374 fi 1375fi 1376 1377ac_tool_prefix= 1378test -n "$host_alias" && ac_tool_prefix=$host_alias- 1379 1380test "$silent" = yes && exec 6>/dev/null 1381 1382 1383ac_pwd=`pwd` && test -n "$ac_pwd" && 1384ac_ls_di=`ls -di .` && 1385ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1386 as_fn_error $? "working directory cannot be determined" 1387test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1388 as_fn_error $? "pwd does not report name of working directory" 1389 1390 1391# Find the source files, if location was not specified. 1392if test -z "$srcdir"; then 1393 ac_srcdir_defaulted=yes 1394 # Try the directory containing this script, then the parent directory. 1395 ac_confdir=`$as_dirname -- "$as_myself" || 1396$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1397 X"$as_myself" : 'X\(//\)[^/]' \| \ 1398 X"$as_myself" : 'X\(//\)$' \| \ 1399 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1400$as_echo X"$as_myself" | 1401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1402 s//\1/ 1403 q 1404 } 1405 /^X\(\/\/\)[^/].*/{ 1406 s//\1/ 1407 q 1408 } 1409 /^X\(\/\/\)$/{ 1410 s//\1/ 1411 q 1412 } 1413 /^X\(\/\).*/{ 1414 s//\1/ 1415 q 1416 } 1417 s/.*/./; q'` 1418 srcdir=$ac_confdir 1419 if test ! -r "$srcdir/$ac_unique_file"; then 1420 srcdir=.. 1421 fi 1422else 1423 ac_srcdir_defaulted=no 1424fi 1425if test ! -r "$srcdir/$ac_unique_file"; then 1426 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1427 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1428fi 1429ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1430ac_abs_confdir=`( 1431 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1432 pwd)` 1433# When building in place, set srcdir=. 1434if test "$ac_abs_confdir" = "$ac_pwd"; then 1435 srcdir=. 1436fi 1437# Remove unnecessary trailing slashes from srcdir. 1438# Double slashes in file names in object file debugging info 1439# mess up M-x gdb in Emacs. 1440case $srcdir in 1441*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1442esac 1443for ac_var in $ac_precious_vars; do 1444 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1445 eval ac_env_${ac_var}_value=\$${ac_var} 1446 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1447 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1448done 1449 1450# 1451# Report the --help message. 1452# 1453if test "$ac_init_help" = "long"; then 1454 # Omit some internal or obsolete options to make the list less imposing. 1455 # This message is too long to be a string in the A/UX 3.1 sh. 1456 cat <<_ACEOF 1457\`configure' configures GnuCOBOL 3.1.2 to adapt to many kinds of systems. 1458 1459Usage: $0 [OPTION]... [VAR=VALUE]... 1460 1461To assign environment variables (e.g., CC, CFLAGS...), specify them as 1462VAR=VALUE. See below for descriptions of some of the useful variables. 1463 1464Defaults for the options are specified in brackets. 1465 1466Configuration: 1467 -h, --help display this help and exit 1468 --help=short display options specific to this package 1469 --help=recursive display the short help of all the included packages 1470 -V, --version display version information and exit 1471 -q, --quiet, --silent do not print \`checking ...' messages 1472 --cache-file=FILE cache test results in FILE [disabled] 1473 -C, --config-cache alias for \`--cache-file=config.cache' 1474 -n, --no-create do not create output files 1475 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1476 1477Installation directories: 1478 --prefix=PREFIX install architecture-independent files in PREFIX 1479 [$ac_default_prefix] 1480 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1481 [PREFIX] 1482 1483By default, \`make install' will install all the files in 1484\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1485an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1486for instance \`--prefix=\$HOME'. 1487 1488For better control, use the options below. 1489 1490Fine tuning of the installation directories: 1491 --bindir=DIR user executables [EPREFIX/bin] 1492 --sbindir=DIR system admin executables [EPREFIX/sbin] 1493 --libexecdir=DIR program executables [EPREFIX/libexec] 1494 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1495 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1496 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1497 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1498 --libdir=DIR object code libraries [EPREFIX/lib] 1499 --includedir=DIR C header files [PREFIX/include] 1500 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1501 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1502 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1503 --infodir=DIR info documentation [DATAROOTDIR/info] 1504 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1505 --mandir=DIR man documentation [DATAROOTDIR/man] 1506 --docdir=DIR documentation root [DATAROOTDIR/doc/gnucobol] 1507 --htmldir=DIR html documentation [DOCDIR] 1508 --dvidir=DIR dvi documentation [DOCDIR] 1509 --pdfdir=DIR pdf documentation [DOCDIR] 1510 --psdir=DIR ps documentation [DOCDIR] 1511_ACEOF 1512 1513 cat <<\_ACEOF 1514 1515Program names: 1516 --program-prefix=PREFIX prepend PREFIX to installed program names 1517 --program-suffix=SUFFIX append SUFFIX to installed program names 1518 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1519 1520System types: 1521 --build=BUILD configure for building on BUILD [guessed] 1522 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1523_ACEOF 1524fi 1525 1526if test -n "$ac_init_help"; then 1527 case $ac_init_help in 1528 short | recursive ) echo "Configuration of GnuCOBOL 3.1.2:";; 1529 esac 1530 cat <<\_ACEOF 1531 1532Optional Features: 1533 --disable-option-checking ignore unrecognized --enable/--with options 1534 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1535 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1536 --enable-silent-rules less verbose build output (undo: "make V=1") 1537 --disable-silent-rules verbose build output (undo: "make V=0") 1538 --enable-debug (GnuCOBOL) Enable -g C compiler debug option for 1539 cobc + libcob 1540 --enable-hardening, --disable-hardening 1541 Enable GNU C "hardening" options: define 1542 _FORTIFY_SOURCE and use -fstack-protector. If 1543 disabled, these are explicit removed from CFLAGS for 1544 building GnuCOBOL. Defaults to "defined by CFLAGS". 1545 --enable-experimental (GnuCOBOL) Enable experimental code (Developers 1546 only!) 1547 --enable-cobc-internal-checks 1548 (GnuCOBOL) Enable extra checks within the compiler 1549 (Developers only!) 1550 --enable-debuglog (GnuCOBOL) Enable internal logging code (Developers 1551 only!) 1552 --enable-param-check (GnuCOBOL) Enable minimum parameter check for system 1553 libraries (default no) 1554 --enable-dependency-tracking 1555 do not reject slow dependency extractors 1556 --disable-dependency-tracking 1557 speeds up one-time build 1558 --enable-shared[=PKGS] build shared libraries [default=yes] 1559 --enable-static[=PKGS] build static libraries [default=yes] 1560 --enable-fast-install[=PKGS] 1561 optimize for fast installation [default=yes] 1562 --disable-libtool-lock avoid locking (might break parallel builds) 1563 --disable-rpath do not hardcode runtime library paths 1564 --enable-code-coverage Whether to enable code coverage support 1565 --disable-nls do not use Native Language Support 1566 1567Optional Packages: 1568 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1569 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1570 --with-patch-level (GnuCOBOL) Define a patch level (default 0), 1571 numeric, max. 8 digits 1572 --with-max-call-params (GnuCOBOL) Define maximum number of parameters for 1573 CALL (default 192) 1574 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1575 both] 1576 --with-aix-soname=aix|svr4|both 1577 shared library versioning (aka "SONAME") variant to 1578 provide on AIX, [default=aix]. 1579 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1580 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1581 compiler's sysroot if not specified). 1582 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1583 --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov). 1584 --with-math[=ARG] (GnuCOBOL) Use math multiple precision library, 1585 where ARG may be: check (default), gmp, mpir 1586 --with-xml2 (GnuCOBOL) Use libxml2 as XML handler (default) 1587 --with-json[=ARG] (GnuCOBOL) Use json library/source as JSON handler, 1588 where ARG may be: check (default), cjson, local, 1589 json-c, no 1590 --with-dl (GnuCOBOL) Use system dynamic loader (default) 1591 --with-varseq (GnuCOBOL) Define variable sequential format 1592 (default 0) 1593 --with-curses[=ARG] (GnuCOBOL) Use curses library for extended SCREEN 1594 I/O, where ARG may be: check (default), ncursesw, 1595 ncurses, pdcurses, curses, no 1596 --with-seqra-extfh (GnuCOBOL) Use external SEQ/RAN handler (obsolete) 1597 --with-cisam (GnuCOBOL) Use CISAM for INDEXED I/O 1598 --with-disam (GnuCOBOL) Use DISAM for INDEXED I/O 1599 --with-vbisam (GnuCOBOL) Use VBISAM for ISAM I/O 1600 --with-index-extfh (GnuCOBOL) Use external ISAM file handler (obsolete) 1601 --with-db (GnuCOBOL) Use Berkeley DB >= 4.1 for ISAM I/O 1602 (default) 1603 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1604 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1605 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1606 --without-libintl-prefix don't search for libintl in includedir and libdir 1607 1608Some influential environment variables: 1609 CC C compiler command 1610 CFLAGS C compiler flags 1611 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1612 nonstandard directory <lib dir> 1613 LIBS libraries to pass to the linker, e.g. -l<library> 1614 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1615 you have headers in a nonstandard directory <include dir> 1616 CPP C preprocessor 1617 LIBCOB_CPPFLAGS 1618 see CPPFLAGS, but only applied during generation of libcob 1619 LIBCOB_LIBS see LIBS, but only applied during generation of libcob 1620 PROGRAMS_LIBS 1621 see LIBS, but only applied during generation of programs: cobc, 1622 cobcrun 1623 LT_SYS_LIBRARY_PATH 1624 User-defined run-time library search path. 1625 YACC The `Yet Another Compiler Compiler' implementation to use. 1626 Defaults to the first program found out of: `bison -y', `byacc', 1627 `yacc'. 1628 YFLAGS The list of arguments that will be passed by default to $YACC. 1629 This script will default YFLAGS to the empty string to avoid a 1630 default value of `-d' given by some make applications. 1631 DIFF_FLAGS arguments passed to diff 1632 PKG_CONFIG path to pkg-config utility 1633 PKG_CONFIG_PATH 1634 directories to add to pkg-config's search path 1635 PKG_CONFIG_LIBDIR 1636 path overriding pkg-config's built-in search path 1637 GMP_CFLAGS C compiler flags for GMP, overriding pkg-config 1638 GMP_LIBS linker flags for GMP, overriding pkg-config 1639 MPIR_CFLAGS C compiler flags for MPIR, overriding pkg-config 1640 MPIR_LIBS linker flags for MPIR, overriding pkg-config 1641 XML2_CFLAGS C compiler flags for XML2, overriding pkg-config 1642 XML2_LIBS linker flags for XML2, overriding pkg-config 1643 CJSON_CFLAGS 1644 C compiler flags for CJSON, overriding pkg-config 1645 CJSON_LIBS linker flags for CJSON, overriding pkg-config 1646 JSON_C_CFLAGS 1647 C compiler flags for JSON_C, overriding pkg-config 1648 JSON_C_LIBS linker flags for JSON_C, overriding pkg-config 1649 1650Use these variables to override the choices made by `configure' or to help 1651it to find libraries and programs with nonstandard names/locations. 1652 1653Report bugs to <bug-gnucobol@gnu.org>. 1654GnuCOBOL home page: <https://www.gnu.org/software/gnucobol/>. 1655_ACEOF 1656ac_status=$? 1657fi 1658 1659if test "$ac_init_help" = "recursive"; then 1660 # If there are subdirs, report their specific --help. 1661 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1662 test -d "$ac_dir" || 1663 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1664 continue 1665 ac_builddir=. 1666 1667case "$ac_dir" in 1668.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1669*) 1670 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1671 # A ".." for each directory in $ac_dir_suffix. 1672 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1673 case $ac_top_builddir_sub in 1674 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1675 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1676 esac ;; 1677esac 1678ac_abs_top_builddir=$ac_pwd 1679ac_abs_builddir=$ac_pwd$ac_dir_suffix 1680# for backward compatibility: 1681ac_top_builddir=$ac_top_build_prefix 1682 1683case $srcdir in 1684 .) # We are building in place. 1685 ac_srcdir=. 1686 ac_top_srcdir=$ac_top_builddir_sub 1687 ac_abs_top_srcdir=$ac_pwd ;; 1688 [\\/]* | ?:[\\/]* ) # Absolute name. 1689 ac_srcdir=$srcdir$ac_dir_suffix; 1690 ac_top_srcdir=$srcdir 1691 ac_abs_top_srcdir=$srcdir ;; 1692 *) # Relative name. 1693 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1694 ac_top_srcdir=$ac_top_build_prefix$srcdir 1695 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1696esac 1697ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1698 1699 cd "$ac_dir" || { ac_status=$?; continue; } 1700 # Check for guested configure. 1701 if test -f "$ac_srcdir/configure.gnu"; then 1702 echo && 1703 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1704 elif test -f "$ac_srcdir/configure"; then 1705 echo && 1706 $SHELL "$ac_srcdir/configure" --help=recursive 1707 else 1708 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1709 fi || ac_status=$? 1710 cd "$ac_pwd" || { ac_status=$?; break; } 1711 done 1712fi 1713 1714test -n "$ac_init_help" && exit $ac_status 1715if $ac_init_version; then 1716 cat <<\_ACEOF 1717GnuCOBOL configure 3.1.2 1718generated by GNU Autoconf 2.69 1719 1720Copyright (C) 2012 Free Software Foundation, Inc. 1721This configure script is free software; the Free Software Foundation 1722gives unlimited permission to copy, distribute and modify it. 1723_ACEOF 1724 exit 1725fi 1726 1727## ------------------------ ## 1728## Autoconf initialization. ## 1729## ------------------------ ## 1730 1731# ac_fn_c_try_compile LINENO 1732# -------------------------- 1733# Try to compile conftest.$ac_ext, and return whether this succeeded. 1734ac_fn_c_try_compile () 1735{ 1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1737 rm -f conftest.$ac_objext 1738 if { { ac_try="$ac_compile" 1739case "(($ac_try" in 1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1741 *) ac_try_echo=$ac_try;; 1742esac 1743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1744$as_echo "$ac_try_echo"; } >&5 1745 (eval "$ac_compile") 2>conftest.err 1746 ac_status=$? 1747 if test -s conftest.err; then 1748 grep -v '^ *+' conftest.err >conftest.er1 1749 cat conftest.er1 >&5 1750 mv -f conftest.er1 conftest.err 1751 fi 1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1753 test $ac_status = 0; } && { 1754 test -z "$ac_c_werror_flag" || 1755 test ! -s conftest.err 1756 } && test -s conftest.$ac_objext; then : 1757 ac_retval=0 1758else 1759 $as_echo "$as_me: failed program was:" >&5 1760sed 's/^/| /' conftest.$ac_ext >&5 1761 1762 ac_retval=1 1763fi 1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1765 as_fn_set_status $ac_retval 1766 1767} # ac_fn_c_try_compile 1768 1769# ac_fn_c_try_cpp LINENO 1770# ---------------------- 1771# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1772ac_fn_c_try_cpp () 1773{ 1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1775 if { { ac_try="$ac_cpp conftest.$ac_ext" 1776case "(($ac_try" in 1777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1778 *) ac_try_echo=$ac_try;; 1779esac 1780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1781$as_echo "$ac_try_echo"; } >&5 1782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1783 ac_status=$? 1784 if test -s conftest.err; then 1785 grep -v '^ *+' conftest.err >conftest.er1 1786 cat conftest.er1 >&5 1787 mv -f conftest.er1 conftest.err 1788 fi 1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1790 test $ac_status = 0; } > conftest.i && { 1791 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1792 test ! -s conftest.err 1793 }; then : 1794 ac_retval=0 1795else 1796 $as_echo "$as_me: failed program was:" >&5 1797sed 's/^/| /' conftest.$ac_ext >&5 1798 1799 ac_retval=1 1800fi 1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1802 as_fn_set_status $ac_retval 1803 1804} # ac_fn_c_try_cpp 1805 1806# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1807# ------------------------------------------------------- 1808# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1809# the include files in INCLUDES and setting the cache variable VAR 1810# accordingly. 1811ac_fn_c_check_header_mongrel () 1812{ 1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1814 if eval \${$3+:} false; then : 1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1816$as_echo_n "checking for $2... " >&6; } 1817if eval \${$3+:} false; then : 1818 $as_echo_n "(cached) " >&6 1819fi 1820eval ac_res=\$$3 1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1822$as_echo "$ac_res" >&6; } 1823else 1824 # Is the header compilable? 1825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1826$as_echo_n "checking $2 usability... " >&6; } 1827cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1828/* end confdefs.h. */ 1829$4 1830#include <$2> 1831_ACEOF 1832if ac_fn_c_try_compile "$LINENO"; then : 1833 ac_header_compiler=yes 1834else 1835 ac_header_compiler=no 1836fi 1837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1839$as_echo "$ac_header_compiler" >&6; } 1840 1841# Is the header present? 1842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1843$as_echo_n "checking $2 presence... " >&6; } 1844cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1845/* end confdefs.h. */ 1846#include <$2> 1847_ACEOF 1848if ac_fn_c_try_cpp "$LINENO"; then : 1849 ac_header_preproc=yes 1850else 1851 ac_header_preproc=no 1852fi 1853rm -f conftest.err conftest.i conftest.$ac_ext 1854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1855$as_echo "$ac_header_preproc" >&6; } 1856 1857# So? What about this header? 1858case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1859 yes:no: ) 1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1861$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1863$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1864 ;; 1865 no:yes:* ) 1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1867$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1869$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1871$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1873$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1875$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1876( $as_echo "## ----------------------------------- ## 1877## Report this to bug-gnucobol@gnu.org ## 1878## ----------------------------------- ##" 1879 ) | sed "s/^/$as_me: WARNING: /" >&2 1880 ;; 1881esac 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 eval "$3=\$ac_header_compiler" 1888fi 1889eval ac_res=\$$3 1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1891$as_echo "$ac_res" >&6; } 1892fi 1893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1894 1895} # ac_fn_c_check_header_mongrel 1896 1897# ac_fn_c_try_run LINENO 1898# ---------------------- 1899# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1900# that executables *can* be run. 1901ac_fn_c_try_run () 1902{ 1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1904 if { { ac_try="$ac_link" 1905case "(($ac_try" in 1906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1907 *) ac_try_echo=$ac_try;; 1908esac 1909eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1910$as_echo "$ac_try_echo"; } >&5 1911 (eval "$ac_link") 2>&5 1912 ac_status=$? 1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1914 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1915 { { case "(($ac_try" in 1916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1917 *) ac_try_echo=$ac_try;; 1918esac 1919eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1920$as_echo "$ac_try_echo"; } >&5 1921 (eval "$ac_try") 2>&5 1922 ac_status=$? 1923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1924 test $ac_status = 0; }; }; then : 1925 ac_retval=0 1926else 1927 $as_echo "$as_me: program exited with status $ac_status" >&5 1928 $as_echo "$as_me: failed program was:" >&5 1929sed 's/^/| /' conftest.$ac_ext >&5 1930 1931 ac_retval=$ac_status 1932fi 1933 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1935 as_fn_set_status $ac_retval 1936 1937} # ac_fn_c_try_run 1938 1939# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1940# ------------------------------------------------------- 1941# Tests whether HEADER exists and can be compiled using the include files in 1942# INCLUDES, setting the cache variable VAR accordingly. 1943ac_fn_c_check_header_compile () 1944{ 1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1947$as_echo_n "checking for $2... " >&6; } 1948if eval \${$3+:} false; then : 1949 $as_echo_n "(cached) " >&6 1950else 1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1952/* end confdefs.h. */ 1953$4 1954#include <$2> 1955_ACEOF 1956if ac_fn_c_try_compile "$LINENO"; then : 1957 eval "$3=yes" 1958else 1959 eval "$3=no" 1960fi 1961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1962fi 1963eval ac_res=\$$3 1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1965$as_echo "$ac_res" >&6; } 1966 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1967 1968} # ac_fn_c_check_header_compile 1969 1970# ac_fn_c_try_link LINENO 1971# ----------------------- 1972# Try to link conftest.$ac_ext, and return whether this succeeded. 1973ac_fn_c_try_link () 1974{ 1975 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1976 rm -f conftest.$ac_objext conftest$ac_exeext 1977 if { { ac_try="$ac_link" 1978case "(($ac_try" in 1979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1980 *) ac_try_echo=$ac_try;; 1981esac 1982eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1983$as_echo "$ac_try_echo"; } >&5 1984 (eval "$ac_link") 2>conftest.err 1985 ac_status=$? 1986 if test -s conftest.err; then 1987 grep -v '^ *+' conftest.err >conftest.er1 1988 cat conftest.er1 >&5 1989 mv -f conftest.er1 conftest.err 1990 fi 1991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1992 test $ac_status = 0; } && { 1993 test -z "$ac_c_werror_flag" || 1994 test ! -s conftest.err 1995 } && test -s conftest$ac_exeext && { 1996 test "$cross_compiling" = yes || 1997 test -x conftest$ac_exeext 1998 }; then : 1999 ac_retval=0 2000else 2001 $as_echo "$as_me: failed program was:" >&5 2002sed 's/^/| /' conftest.$ac_ext >&5 2003 2004 ac_retval=1 2005fi 2006 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2007 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2008 # interfere with the next link command; also delete a directory that is 2009 # left behind by Apple's compiler. We do this before executing the actions. 2010 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2012 as_fn_set_status $ac_retval 2013 2014} # ac_fn_c_try_link 2015 2016# ac_fn_c_check_func LINENO FUNC VAR 2017# ---------------------------------- 2018# Tests whether FUNC exists, setting the cache variable VAR accordingly 2019ac_fn_c_check_func () 2020{ 2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2023$as_echo_n "checking for $2... " >&6; } 2024if eval \${$3+:} false; then : 2025 $as_echo_n "(cached) " >&6 2026else 2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2028/* end confdefs.h. */ 2029/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2030 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2031#define $2 innocuous_$2 2032 2033/* System header to define __stub macros and hopefully few prototypes, 2034 which can conflict with char $2 (); below. 2035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2036 <limits.h> exists even on freestanding compilers. */ 2037 2038#ifdef __STDC__ 2039# include <limits.h> 2040#else 2041# include <assert.h> 2042#endif 2043 2044#undef $2 2045 2046/* Override any GCC internal prototype to avoid an error. 2047 Use char because int might match the return type of a GCC 2048 builtin and then its argument prototype would still apply. */ 2049#ifdef __cplusplus 2050extern "C" 2051#endif 2052char $2 (); 2053/* The GNU C library defines this for functions which it implements 2054 to always fail with ENOSYS. Some functions are actually named 2055 something starting with __ and the normal name is an alias. */ 2056#if defined __stub_$2 || defined __stub___$2 2057choke me 2058#endif 2059 2060int 2061main () 2062{ 2063return $2 (); 2064 ; 2065 return 0; 2066} 2067_ACEOF 2068if ac_fn_c_try_link "$LINENO"; then : 2069 eval "$3=yes" 2070else 2071 eval "$3=no" 2072fi 2073rm -f core conftest.err conftest.$ac_objext \ 2074 conftest$ac_exeext conftest.$ac_ext 2075fi 2076eval ac_res=\$$3 2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2078$as_echo "$ac_res" >&6; } 2079 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2080 2081} # ac_fn_c_check_func 2082 2083# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2084# ------------------------------------------- 2085# Tests whether TYPE exists after having included INCLUDES, setting cache 2086# variable VAR accordingly. 2087ac_fn_c_check_type () 2088{ 2089 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2091$as_echo_n "checking for $2... " >&6; } 2092if eval \${$3+:} false; then : 2093 $as_echo_n "(cached) " >&6 2094else 2095 eval "$3=no" 2096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2097/* end confdefs.h. */ 2098$4 2099int 2100main () 2101{ 2102if (sizeof ($2)) 2103 return 0; 2104 ; 2105 return 0; 2106} 2107_ACEOF 2108if ac_fn_c_try_compile "$LINENO"; then : 2109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2110/* end confdefs.h. */ 2111$4 2112int 2113main () 2114{ 2115if (sizeof (($2))) 2116 return 0; 2117 ; 2118 return 0; 2119} 2120_ACEOF 2121if ac_fn_c_try_compile "$LINENO"; then : 2122 2123else 2124 eval "$3=yes" 2125fi 2126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2127fi 2128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2129fi 2130eval ac_res=\$$3 2131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2132$as_echo "$ac_res" >&6; } 2133 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2134 2135} # ac_fn_c_check_type 2136 2137# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2138# --------------------------------------------- 2139# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2140# accordingly. 2141ac_fn_c_check_decl () 2142{ 2143 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2144 as_decl_name=`echo $2|sed 's/ *(.*//'` 2145 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2147$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2148if eval \${$3+:} false; then : 2149 $as_echo_n "(cached) " >&6 2150else 2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2152/* end confdefs.h. */ 2153$4 2154int 2155main () 2156{ 2157#ifndef $as_decl_name 2158#ifdef __cplusplus 2159 (void) $as_decl_use; 2160#else 2161 (void) $as_decl_name; 2162#endif 2163#endif 2164 2165 ; 2166 return 0; 2167} 2168_ACEOF 2169if ac_fn_c_try_compile "$LINENO"; then : 2170 eval "$3=yes" 2171else 2172 eval "$3=no" 2173fi 2174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2175fi 2176eval ac_res=\$$3 2177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2178$as_echo "$ac_res" >&6; } 2179 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2180 2181} # ac_fn_c_check_decl 2182cat >config.log <<_ACEOF 2183This file contains any messages produced by compilers while 2184running configure, to aid debugging if configure makes a mistake. 2185 2186It was created by GnuCOBOL $as_me 3.1.2, which was 2187generated by GNU Autoconf 2.69. Invocation command line was 2188 2189 $ $0 $@ 2190 2191_ACEOF 2192exec 5>>config.log 2193{ 2194cat <<_ASUNAME 2195## --------- ## 2196## Platform. ## 2197## --------- ## 2198 2199hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2200uname -m = `(uname -m) 2>/dev/null || echo unknown` 2201uname -r = `(uname -r) 2>/dev/null || echo unknown` 2202uname -s = `(uname -s) 2>/dev/null || echo unknown` 2203uname -v = `(uname -v) 2>/dev/null || echo unknown` 2204 2205/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2206/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2207 2208/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2209/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2210/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2211/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2212/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2213/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2214/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2215 2216_ASUNAME 2217 2218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2219for as_dir in $PATH 2220do 2221 IFS=$as_save_IFS 2222 test -z "$as_dir" && as_dir=. 2223 $as_echo "PATH: $as_dir" 2224 done 2225IFS=$as_save_IFS 2226 2227} >&5 2228 2229cat >&5 <<_ACEOF 2230 2231 2232## ----------- ## 2233## Core tests. ## 2234## ----------- ## 2235 2236_ACEOF 2237 2238 2239# Keep a trace of the command line. 2240# Strip out --no-create and --no-recursion so they do not pile up. 2241# Strip out --silent because we don't want to record it for future runs. 2242# Also quote any args containing shell meta-characters. 2243# Make two passes to allow for proper duplicate-argument suppression. 2244ac_configure_args= 2245ac_configure_args0= 2246ac_configure_args1= 2247ac_must_keep_next=false 2248for ac_pass in 1 2 2249do 2250 for ac_arg 2251 do 2252 case $ac_arg in 2253 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2254 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2255 | -silent | --silent | --silen | --sile | --sil) 2256 continue ;; 2257 *\'*) 2258 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2259 esac 2260 case $ac_pass in 2261 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2262 2) 2263 as_fn_append ac_configure_args1 " '$ac_arg'" 2264 if test $ac_must_keep_next = true; then 2265 ac_must_keep_next=false # Got value, back to normal. 2266 else 2267 case $ac_arg in 2268 *=* | --config-cache | -C | -disable-* | --disable-* \ 2269 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2270 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2271 | -with-* | --with-* | -without-* | --without-* | --x) 2272 case "$ac_configure_args0 " in 2273 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2274 esac 2275 ;; 2276 -* ) ac_must_keep_next=true ;; 2277 esac 2278 fi 2279 as_fn_append ac_configure_args " '$ac_arg'" 2280 ;; 2281 esac 2282 done 2283done 2284{ ac_configure_args0=; unset ac_configure_args0;} 2285{ ac_configure_args1=; unset ac_configure_args1;} 2286 2287# When interrupted or exit'd, cleanup temporary files, and complete 2288# config.log. We remove comments because anyway the quotes in there 2289# would cause problems or look ugly. 2290# WARNING: Use '\'' to represent an apostrophe within the trap. 2291# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2292trap 'exit_status=$? 2293 # Save into config.log some information that might help in debugging. 2294 { 2295 echo 2296 2297 $as_echo "## ---------------- ## 2298## Cache variables. ## 2299## ---------------- ##" 2300 echo 2301 # The following way of writing the cache mishandles newlines in values, 2302( 2303 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2304 eval ac_val=\$$ac_var 2305 case $ac_val in #( 2306 *${as_nl}*) 2307 case $ac_var in #( 2308 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2309$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2310 esac 2311 case $ac_var in #( 2312 _ | IFS | as_nl) ;; #( 2313 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2314 *) { eval $ac_var=; unset $ac_var;} ;; 2315 esac ;; 2316 esac 2317 done 2318 (set) 2>&1 | 2319 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2320 *${as_nl}ac_space=\ *) 2321 sed -n \ 2322 "s/'\''/'\''\\\\'\'''\''/g; 2323 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2324 ;; #( 2325 *) 2326 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2327 ;; 2328 esac | 2329 sort 2330) 2331 echo 2332 2333 $as_echo "## ----------------- ## 2334## Output variables. ## 2335## ----------------- ##" 2336 echo 2337 for ac_var in $ac_subst_vars 2338 do 2339 eval ac_val=\$$ac_var 2340 case $ac_val in 2341 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2342 esac 2343 $as_echo "$ac_var='\''$ac_val'\''" 2344 done | sort 2345 echo 2346 2347 if test -n "$ac_subst_files"; then 2348 $as_echo "## ------------------- ## 2349## File substitutions. ## 2350## ------------------- ##" 2351 echo 2352 for ac_var in $ac_subst_files 2353 do 2354 eval ac_val=\$$ac_var 2355 case $ac_val in 2356 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2357 esac 2358 $as_echo "$ac_var='\''$ac_val'\''" 2359 done | sort 2360 echo 2361 fi 2362 2363 if test -s confdefs.h; then 2364 $as_echo "## ----------- ## 2365## confdefs.h. ## 2366## ----------- ##" 2367 echo 2368 cat confdefs.h 2369 echo 2370 fi 2371 test "$ac_signal" != 0 && 2372 $as_echo "$as_me: caught signal $ac_signal" 2373 $as_echo "$as_me: exit $exit_status" 2374 } >&5 2375 rm -f core *.core core.conftest.* && 2376 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2377 exit $exit_status 2378' 0 2379for ac_signal in 1 2 13 15; do 2380 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2381done 2382ac_signal=0 2383 2384# confdefs.h avoids OS command line length limits that DEFS can exceed. 2385rm -f -r conftest* confdefs.h 2386 2387$as_echo "/* confdefs.h */" > confdefs.h 2388 2389# Predefined preprocessor variables. 2390 2391cat >>confdefs.h <<_ACEOF 2392#define PACKAGE_NAME "$PACKAGE_NAME" 2393_ACEOF 2394 2395cat >>confdefs.h <<_ACEOF 2396#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2397_ACEOF 2398 2399cat >>confdefs.h <<_ACEOF 2400#define PACKAGE_VERSION "$PACKAGE_VERSION" 2401_ACEOF 2402 2403cat >>confdefs.h <<_ACEOF 2404#define PACKAGE_STRING "$PACKAGE_STRING" 2405_ACEOF 2406 2407cat >>confdefs.h <<_ACEOF 2408#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2409_ACEOF 2410 2411cat >>confdefs.h <<_ACEOF 2412#define PACKAGE_URL "$PACKAGE_URL" 2413_ACEOF 2414 2415 2416# Let the site file select an alternate cache file if it wants to. 2417# Prefer an explicitly selected file to automatically selected ones. 2418ac_site_file1=NONE 2419ac_site_file2=NONE 2420if test -n "$CONFIG_SITE"; then 2421 # We do not want a PATH search for config.site. 2422 case $CONFIG_SITE in #(( 2423 -*) ac_site_file1=./$CONFIG_SITE;; 2424 */*) ac_site_file1=$CONFIG_SITE;; 2425 *) ac_site_file1=./$CONFIG_SITE;; 2426 esac 2427elif test "x$prefix" != xNONE; then 2428 ac_site_file1=$prefix/share/config.site 2429 ac_site_file2=$prefix/etc/config.site 2430else 2431 ac_site_file1=$ac_default_prefix/share/config.site 2432 ac_site_file2=$ac_default_prefix/etc/config.site 2433fi 2434for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2435do 2436 test "x$ac_site_file" = xNONE && continue 2437 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2438 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2439$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2440 sed 's/^/| /' "$ac_site_file" >&5 2441 . "$ac_site_file" \ 2442 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2443$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2444as_fn_error $? "failed to load site script $ac_site_file 2445See \`config.log' for more details" "$LINENO" 5; } 2446 fi 2447done 2448 2449if test -r "$cache_file"; then 2450 # Some versions of bash will fail to source /dev/null (special files 2451 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2452 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2453 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2454$as_echo "$as_me: loading cache $cache_file" >&6;} 2455 case $cache_file in 2456 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2457 *) . "./$cache_file";; 2458 esac 2459 fi 2460else 2461 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2462$as_echo "$as_me: creating cache $cache_file" >&6;} 2463 >$cache_file 2464fi 2465 2466gt_needs="$gt_needs " 2467# Check that the precious variables saved in the cache have kept the same 2468# value. 2469ac_cache_corrupted=false 2470for ac_var in $ac_precious_vars; do 2471 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2472 eval ac_new_set=\$ac_env_${ac_var}_set 2473 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2474 eval ac_new_val=\$ac_env_${ac_var}_value 2475 case $ac_old_set,$ac_new_set in 2476 set,) 2477 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2478$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2479 ac_cache_corrupted=: ;; 2480 ,set) 2481 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2482$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2483 ac_cache_corrupted=: ;; 2484 ,);; 2485 *) 2486 if test "x$ac_old_val" != "x$ac_new_val"; then 2487 # differences in whitespace do not lead to failure. 2488 ac_old_val_w=`echo x $ac_old_val` 2489 ac_new_val_w=`echo x $ac_new_val` 2490 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2491 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2492$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2493 ac_cache_corrupted=: 2494 else 2495 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2496$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2497 eval $ac_var=\$ac_old_val 2498 fi 2499 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2500$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2501 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2502$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2503 fi;; 2504 esac 2505 # Pass precious variables to config.status. 2506 if test "$ac_new_set" = set; then 2507 case $ac_new_val in 2508 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2509 *) ac_arg=$ac_var=$ac_new_val ;; 2510 esac 2511 case " $ac_configure_args " in 2512 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2513 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2514 esac 2515 fi 2516done 2517if $ac_cache_corrupted; then 2518 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2519$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2520 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2521$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2522 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2523fi 2524## -------------------- ## 2525## Main body of script. ## 2526## -------------------- ## 2527 2528ac_ext=c 2529ac_cpp='$CPP $CPPFLAGS' 2530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2532ac_compiler_gnu=$ac_cv_c_compiler_gnu 2533 2534 2535 2536 2537ac_config_headers="$ac_config_headers config.h" 2538 2539ac_config_commands="$ac_config_commands tests/atconfig" 2540 2541 2542ac_aux_dir= 2543for ac_dir in build_aux "$srcdir"/build_aux; do 2544 if test -f "$ac_dir/install-sh"; then 2545 ac_aux_dir=$ac_dir 2546 ac_install_sh="$ac_aux_dir/install-sh -c" 2547 break 2548 elif test -f "$ac_dir/install.sh"; then 2549 ac_aux_dir=$ac_dir 2550 ac_install_sh="$ac_aux_dir/install.sh -c" 2551 break 2552 elif test -f "$ac_dir/shtool"; then 2553 ac_aux_dir=$ac_dir 2554 ac_install_sh="$ac_aux_dir/shtool install -c" 2555 break 2556 fi 2557done 2558if test -z "$ac_aux_dir"; then 2559 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build_aux \"$srcdir\"/build_aux" "$LINENO" 5 2560fi 2561 2562# These three variables are undocumented and unsupported, 2563# and are intended to be withdrawn in a future Autoconf release. 2564# They can cause serious problems if a builder's source tree is in a directory 2565# whose full name contains unusual characters. 2566ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2567ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2568ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2569 2570 2571 2572ac_config_files="$ac_config_files Makefile libcob/Makefile lib/Makefile cobc/Makefile bin/Makefile po/Makefile.in doc/Makefile config/Makefile copy/Makefile tests/Makefile tests/cobol85/Makefile extras/Makefile" 2573 2574 2575ac_config_files="$ac_config_files bin/cob-config" 2576 2577ac_config_files="$ac_config_files pre-inst-env:build_aux/pre-inst-env.in" 2578 2579ac_config_files="$ac_config_files tests/atlocal" 2580 2581ac_config_files="$ac_config_files tests/run_prog_manual.sh" 2582 2583 2584# Note for SUN Solaris (gcc) 2585# export/setenv CFLAGS "-m64 -mptr64" 2586# export/setenv LDFLAGS "-m64 -mptr64 -L/usr/local/lib/sparcv9" 2587# ./configure --libdir=/usr/local/lib/sparcv9 2588# 2589# Hack for AIX 64 bit (gcc) 2590# Required - 2591# export/setenv CFLAGS=-maix64 2592# export/setenv LDFLAGS=-maix64 2593 2594if echo $CFLAGS | grep 'aix64' 1>/dev/null 2>&1; then 2595 if test -f /usr/ccs/bin/ar; then 2596 AR="/usr/ccs/bin/ar -X64" 2597 else 2598 AR="ar -X64" 2599 fi 2600 NM="/usr/ccs/bin/nm -X64 -B" 2601fi 2602 2603am__api_version='1.16' 2604 2605# Find a good install program. We prefer a C program (faster), 2606# so one script is as good as another. But avoid the broken or 2607# incompatible versions: 2608# SysV /etc/install, /usr/sbin/install 2609# SunOS /usr/etc/install 2610# IRIX /sbin/install 2611# AIX /bin/install 2612# AmigaOS /C/install, which installs bootblocks on floppy discs 2613# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2614# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2615# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2616# OS/2's system install, which has a completely different semantic 2617# ./install, which can be erroneously created by make from ./install.sh. 2618# Reject install programs that cannot install multiple files. 2619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2620$as_echo_n "checking for a BSD-compatible install... " >&6; } 2621if test -z "$INSTALL"; then 2622if ${ac_cv_path_install+:} false; then : 2623 $as_echo_n "(cached) " >&6 2624else 2625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2626for as_dir in $PATH 2627do 2628 IFS=$as_save_IFS 2629 test -z "$as_dir" && as_dir=. 2630 # Account for people who put trailing slashes in PATH elements. 2631case $as_dir/ in #(( 2632 ./ | .// | /[cC]/* | \ 2633 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2634 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2635 /usr/ucb/* ) ;; 2636 *) 2637 # OSF1 and SCO ODT 3.0 have their own names for install. 2638 # Don't use installbsd from OSF since it installs stuff as root 2639 # by default. 2640 for ac_prog in ginstall scoinst install; do 2641 for ac_exec_ext in '' $ac_executable_extensions; do 2642 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2643 if test $ac_prog = install && 2644 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2645 # AIX install. It has an incompatible calling convention. 2646 : 2647 elif test $ac_prog = install && 2648 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2649 # program-specific install script used by HP pwplus--don't use. 2650 : 2651 else 2652 rm -rf conftest.one conftest.two conftest.dir 2653 echo one > conftest.one 2654 echo two > conftest.two 2655 mkdir conftest.dir 2656 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2657 test -s conftest.one && test -s conftest.two && 2658 test -s conftest.dir/conftest.one && 2659 test -s conftest.dir/conftest.two 2660 then 2661 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2662 break 3 2663 fi 2664 fi 2665 fi 2666 done 2667 done 2668 ;; 2669esac 2670 2671 done 2672IFS=$as_save_IFS 2673 2674rm -rf conftest.one conftest.two conftest.dir 2675 2676fi 2677 if test "${ac_cv_path_install+set}" = set; then 2678 INSTALL=$ac_cv_path_install 2679 else 2680 # As a last resort, use the slow shell script. Don't cache a 2681 # value for INSTALL within a source directory, because that will 2682 # break other packages using the cache if that directory is 2683 # removed, or if the value is a relative name. 2684 INSTALL=$ac_install_sh 2685 fi 2686fi 2687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2688$as_echo "$INSTALL" >&6; } 2689 2690# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2691# It thinks the first close brace ends the variable substitution. 2692test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2693 2694test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2695 2696test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2697 2698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2699$as_echo_n "checking whether build environment is sane... " >&6; } 2700# Reject unsafe characters in $srcdir or the absolute working directory 2701# name. Accept space and tab only in the latter. 2702am_lf=' 2703' 2704case `pwd` in 2705 *[\\\"\#\$\&\'\`$am_lf]*) 2706 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2707esac 2708case $srcdir in 2709 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2710 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2711esac 2712 2713# Do 'set' in a subshell so we don't clobber the current shell's 2714# arguments. Must try -L first in case configure is actually a 2715# symlink; some systems play weird games with the mod time of symlinks 2716# (eg FreeBSD returns the mod time of the symlink's containing 2717# directory). 2718if ( 2719 am_has_slept=no 2720 for am_try in 1 2; do 2721 echo "timestamp, slept: $am_has_slept" > conftest.file 2722 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2723 if test "$*" = "X"; then 2724 # -L didn't work. 2725 set X `ls -t "$srcdir/configure" conftest.file` 2726 fi 2727 if test "$*" != "X $srcdir/configure conftest.file" \ 2728 && test "$*" != "X conftest.file $srcdir/configure"; then 2729 2730 # If neither matched, then we have a broken ls. This can happen 2731 # if, for instance, CONFIG_SHELL is bash and it inherits a 2732 # broken ls alias from the environment. This has actually 2733 # happened. Such a system could not be considered "sane". 2734 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2735 alias in your environment" "$LINENO" 5 2736 fi 2737 if test "$2" = conftest.file || test $am_try -eq 2; then 2738 break 2739 fi 2740 # Just in case. 2741 sleep 1 2742 am_has_slept=yes 2743 done 2744 test "$2" = conftest.file 2745 ) 2746then 2747 # Ok. 2748 : 2749else 2750 as_fn_error $? "newly created file is older than distributed files! 2751Check your system clock" "$LINENO" 5 2752fi 2753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2754$as_echo "yes" >&6; } 2755# If we didn't sleep, we still need to ensure time stamps of config.status and 2756# generated files are strictly newer. 2757am_sleep_pid= 2758if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2759 ( sleep 1 ) & 2760 am_sleep_pid=$! 2761fi 2762 2763rm -f conftest.file 2764 2765test "$program_prefix" != NONE && 2766 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2767# Use a double $ so make ignores it. 2768test "$program_suffix" != NONE && 2769 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2770# Double any \ or $. 2771# By default was `s,x,x', remove it if useless. 2772ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2773program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2774 2775# Expand $ac_aux_dir to an absolute path. 2776am_aux_dir=`cd "$ac_aux_dir" && pwd` 2777 2778if test x"${MISSING+set}" != xset; then 2779 case $am_aux_dir in 2780 *\ * | *\ *) 2781 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2782 *) 2783 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2784 esac 2785fi 2786# Use eval to expand $SHELL 2787if eval "$MISSING --is-lightweight"; then 2788 am_missing_run="$MISSING " 2789else 2790 am_missing_run= 2791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2792$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2793fi 2794 2795if test x"${install_sh+set}" != xset; then 2796 case $am_aux_dir in 2797 *\ * | *\ *) 2798 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2799 *) 2800 install_sh="\${SHELL} $am_aux_dir/install-sh" 2801 esac 2802fi 2803 2804# Installed binaries are usually stripped using 'strip' when the user 2805# run "make install-strip". However 'strip' might not be the right 2806# tool to use in cross-compilation environments, therefore Automake 2807# will honor the 'STRIP' environment variable to overrule this program. 2808if test "$cross_compiling" != no; then 2809 if test -n "$ac_tool_prefix"; then 2810 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2811set dummy ${ac_tool_prefix}strip; ac_word=$2 2812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2813$as_echo_n "checking for $ac_word... " >&6; } 2814if ${ac_cv_prog_STRIP+:} false; then : 2815 $as_echo_n "(cached) " >&6 2816else 2817 if test -n "$STRIP"; then 2818 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2819else 2820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2821for as_dir in $PATH 2822do 2823 IFS=$as_save_IFS 2824 test -z "$as_dir" && as_dir=. 2825 for ac_exec_ext in '' $ac_executable_extensions; do 2826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2827 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2829 break 2 2830 fi 2831done 2832 done 2833IFS=$as_save_IFS 2834 2835fi 2836fi 2837STRIP=$ac_cv_prog_STRIP 2838if test -n "$STRIP"; then 2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2840$as_echo "$STRIP" >&6; } 2841else 2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2843$as_echo "no" >&6; } 2844fi 2845 2846 2847fi 2848if test -z "$ac_cv_prog_STRIP"; then 2849 ac_ct_STRIP=$STRIP 2850 # Extract the first word of "strip", so it can be a program name with args. 2851set dummy strip; ac_word=$2 2852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2853$as_echo_n "checking for $ac_word... " >&6; } 2854if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2855 $as_echo_n "(cached) " >&6 2856else 2857 if test -n "$ac_ct_STRIP"; then 2858 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2859else 2860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2861for as_dir in $PATH 2862do 2863 IFS=$as_save_IFS 2864 test -z "$as_dir" && as_dir=. 2865 for ac_exec_ext in '' $ac_executable_extensions; do 2866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2867 ac_cv_prog_ac_ct_STRIP="strip" 2868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2869 break 2 2870 fi 2871done 2872 done 2873IFS=$as_save_IFS 2874 2875fi 2876fi 2877ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2878if test -n "$ac_ct_STRIP"; then 2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2880$as_echo "$ac_ct_STRIP" >&6; } 2881else 2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2883$as_echo "no" >&6; } 2884fi 2885 2886 if test "x$ac_ct_STRIP" = x; then 2887 STRIP=":" 2888 else 2889 case $cross_compiling:$ac_tool_warned in 2890yes:) 2891{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2892$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2893ac_tool_warned=yes ;; 2894esac 2895 STRIP=$ac_ct_STRIP 2896 fi 2897else 2898 STRIP="$ac_cv_prog_STRIP" 2899fi 2900 2901fi 2902INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2903 2904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2905$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2906if test -z "$MKDIR_P"; then 2907 if ${ac_cv_path_mkdir+:} false; then : 2908 $as_echo_n "(cached) " >&6 2909else 2910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2911for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2912do 2913 IFS=$as_save_IFS 2914 test -z "$as_dir" && as_dir=. 2915 for ac_prog in mkdir gmkdir; do 2916 for ac_exec_ext in '' $ac_executable_extensions; do 2917 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2918 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2919 'mkdir (GNU coreutils) '* | \ 2920 'mkdir (coreutils) '* | \ 2921 'mkdir (fileutils) '4.1*) 2922 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2923 break 3;; 2924 esac 2925 done 2926 done 2927 done 2928IFS=$as_save_IFS 2929 2930fi 2931 2932 test -d ./--version && rmdir ./--version 2933 if test "${ac_cv_path_mkdir+set}" = set; then 2934 MKDIR_P="$ac_cv_path_mkdir -p" 2935 else 2936 # As a last resort, use the slow shell script. Don't cache a 2937 # value for MKDIR_P within a source directory, because that will 2938 # break other packages using the cache if that directory is 2939 # removed, or if the value is a relative name. 2940 MKDIR_P="$ac_install_sh -d" 2941 fi 2942fi 2943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2944$as_echo "$MKDIR_P" >&6; } 2945 2946for ac_prog in gawk mawk nawk awk 2947do 2948 # Extract the first word of "$ac_prog", so it can be a program name with args. 2949set dummy $ac_prog; ac_word=$2 2950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2951$as_echo_n "checking for $ac_word... " >&6; } 2952if ${ac_cv_prog_AWK+:} false; then : 2953 $as_echo_n "(cached) " >&6 2954else 2955 if test -n "$AWK"; then 2956 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2957else 2958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2959for as_dir in $PATH 2960do 2961 IFS=$as_save_IFS 2962 test -z "$as_dir" && as_dir=. 2963 for ac_exec_ext in '' $ac_executable_extensions; do 2964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2965 ac_cv_prog_AWK="$ac_prog" 2966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2967 break 2 2968 fi 2969done 2970 done 2971IFS=$as_save_IFS 2972 2973fi 2974fi 2975AWK=$ac_cv_prog_AWK 2976if test -n "$AWK"; then 2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2978$as_echo "$AWK" >&6; } 2979else 2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2981$as_echo "no" >&6; } 2982fi 2983 2984 2985 test -n "$AWK" && break 2986done 2987 2988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2989$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2990set x ${MAKE-make} 2991ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2992if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2993 $as_echo_n "(cached) " >&6 2994else 2995 cat >conftest.make <<\_ACEOF 2996SHELL = /bin/sh 2997all: 2998 @echo '@@@%%%=$(MAKE)=@@@%%%' 2999_ACEOF 3000# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3001case `${MAKE-make} -f conftest.make 2>/dev/null` in 3002 *@@@%%%=?*=@@@%%%*) 3003 eval ac_cv_prog_make_${ac_make}_set=yes;; 3004 *) 3005 eval ac_cv_prog_make_${ac_make}_set=no;; 3006esac 3007rm -f conftest.make 3008fi 3009if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3011$as_echo "yes" >&6; } 3012 SET_MAKE= 3013else 3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3015$as_echo "no" >&6; } 3016 SET_MAKE="MAKE=${MAKE-make}" 3017fi 3018 3019rm -rf .tst 2>/dev/null 3020mkdir .tst 2>/dev/null 3021if test -d .tst; then 3022 am__leading_dot=. 3023else 3024 am__leading_dot=_ 3025fi 3026rmdir .tst 2>/dev/null 3027 3028# Check whether --enable-silent-rules was given. 3029if test "${enable_silent_rules+set}" = set; then : 3030 enableval=$enable_silent_rules; 3031fi 3032 3033case $enable_silent_rules in # ((( 3034 yes) AM_DEFAULT_VERBOSITY=0;; 3035 no) AM_DEFAULT_VERBOSITY=1;; 3036 *) AM_DEFAULT_VERBOSITY=1;; 3037esac 3038am_make=${MAKE-make} 3039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3040$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3041if ${am_cv_make_support_nested_variables+:} false; then : 3042 $as_echo_n "(cached) " >&6 3043else 3044 if $as_echo 'TRUE=$(BAR$(V)) 3045BAR0=false 3046BAR1=true 3047V=1 3048am__doit: 3049 @$(TRUE) 3050.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3051 am_cv_make_support_nested_variables=yes 3052else 3053 am_cv_make_support_nested_variables=no 3054fi 3055fi 3056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3057$as_echo "$am_cv_make_support_nested_variables" >&6; } 3058if test $am_cv_make_support_nested_variables = yes; then 3059 AM_V='$(V)' 3060 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3061else 3062 AM_V=$AM_DEFAULT_VERBOSITY 3063 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3064fi 3065AM_BACKSLASH='\' 3066 3067if test "`cd $srcdir && pwd`" != "`pwd`"; then 3068 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3069 # is not polluted with repeated "-I." 3070 am__isrc=' -I$(srcdir)' 3071 # test to see if srcdir already configured 3072 if test -f $srcdir/config.status; then 3073 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3074 fi 3075fi 3076 3077# test whether we have cygpath 3078if test -z "$CYGPATH_W"; then 3079 if (cygpath --version) >/dev/null 2>/dev/null; then 3080 CYGPATH_W='cygpath -w' 3081 else 3082 CYGPATH_W=echo 3083 fi 3084fi 3085 3086 3087# Define the identity of the package. 3088 PACKAGE='gnucobol' 3089 VERSION='3.1.2' 3090 3091 3092cat >>confdefs.h <<_ACEOF 3093#define PACKAGE "$PACKAGE" 3094_ACEOF 3095 3096 3097cat >>confdefs.h <<_ACEOF 3098#define VERSION "$VERSION" 3099_ACEOF 3100 3101# Some tools Automake needs. 3102 3103ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3104 3105 3106AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3107 3108 3109AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3110 3111 3112AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3113 3114 3115MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3116 3117# For better backward compatibility. To be removed once Automake 1.9.x 3118# dies out for good. For more background, see: 3119# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3120# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3121mkdir_p='$(MKDIR_P)' 3122 3123# We need awk for the "check" target (and possibly the TAP driver). The 3124# system "awk" is bad on some platforms. 3125# Always define AMTAR for backward compatibility. Yes, it's still used 3126# in the wild :-( We should find a proper way to deprecate it ... 3127AMTAR='$${TAR-tar}' 3128 3129 3130# We'll loop over all known methods to create a tar archive until one works. 3131_am_tools='gnutar pax cpio none' 3132 3133am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3134 3135 3136 3137 3138 3139 3140# POSIX will say in a future version that running "rm -f" with no argument 3141# is OK; and we want to be able to make that assumption in our Makefile 3142# recipes. So use an aggressive probe to check that the usage we want is 3143# actually supported "in the wild" to an acceptable degree. 3144# See automake bug#10828. 3145# To make any issue more visible, cause the running configure to be aborted 3146# by default if the 'rm' program in use doesn't match our expectations; the 3147# user can still override this though. 3148if rm -f && rm -fr && rm -rf; then : OK; else 3149 cat >&2 <<'END' 3150Oops! 3151 3152Your 'rm' program seems unable to run without file operands specified 3153on the command line, even when the '-f' option is present. This is contrary 3154to the behaviour of most rm programs out there, and not conforming with 3155the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3156 3157Please tell bug-automake@gnu.org about your system, including the value 3158of your $PATH and any error possibly output before this message. This 3159can help us improve future automake versions. 3160 3161END 3162 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3163 echo 'Configuration will proceed anyway, since you have set the' >&2 3164 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3165 echo >&2 3166 else 3167 cat >&2 <<'END' 3168Aborting the configuration process, to ensure you take notice of the issue. 3169 3170You can download and install GNU coreutils to get an 'rm' implementation 3171that behaves properly: <https://www.gnu.org/software/coreutils/>. 3172 3173If you want to complete the configuration process using your problematic 3174'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3175to "yes", and re-run configure. 3176 3177END 3178 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3179 fi 3180fi 3181 3182 3183# Autoheader templates 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194# FIXME: may be specified with different file version 3195# AH_TEMPLATE([COB_BDB_BAD_DUPNO], [Retain incorrect duplicate sequence for compatibility on little endian!]) 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236#AH_TEMPLATE([HAVE_RAISE], [Has raise function]) 3237 3238 3239# preparation for cross-compilation 3240 3241 3242# Configure options part I (not needing any compilation) 3243 3244# Check whether --enable-debug was given. 3245if test "${enable_debug+set}" = set; then : 3246 enableval=$enable_debug; 3247else 3248 enable_debug=no 3249fi 3250 3251 3252# Check whether --enable-hardening was given. 3253if test "${enable_hardening+set}" = set; then : 3254 enableval=$enable_hardening; 3255else 3256 enable_hardening="unset" 3257fi 3258 3259 3260# Check whether --enable-experimental was given. 3261if test "${enable_experimental+set}" = set; then : 3262 enableval=$enable_experimental; if test "$enable_experimental" = "yes"; then 3263 $as_echo "#define COB_EXPERIMENTAL 1" >>confdefs.h 3264 3265 fi 3266fi 3267 3268 3269# Check whether --enable-cobc-internal-checks was given. 3270if test "${enable_cobc_internal_checks+set}" = set; then : 3271 enableval=$enable_cobc_internal_checks; if test "$enable_cobc_internal_checks" = "yes"; then 3272 $as_echo "#define COB_TREE_DEBUG 1" >>confdefs.h 3273 3274 fi 3275fi 3276 3277 3278# Check whether --enable-debuglog was given. 3279if test "${enable_debuglog+set}" = set; then : 3280 enableval=$enable_debuglog; if test "$enable_debuglog" = "yes"; then 3281 $as_echo "#define COB_DEBUG_LOG 1" >>confdefs.h 3282 3283 fi 3284fi 3285 3286 3287# Check whether --enable-param-check was given. 3288if test "${enable_param_check+set}" = set; then : 3289 enableval=$enable_param_check; if test "$enable_param_check" = "yes"; then 3290 $as_echo "#define COB_PARAM_CHECK 1" >>confdefs.h 3291 3292 fi 3293fi 3294 3295 3296# FIXME: may be specified with different file version 3297# AC_ARG_ENABLE([bdbdupno], 3298# [AS_HELP_STRING([--enable-bdbdupno], 3299# [(GnuCOBOL) Retain old BDB duplicate sequence (Incorrect on little-endian!)])], 3300# [if test "$enable_bdbdupno" = "yes"; then 3301# AC_DEFINE([COB_BDB_BAD_DUPNO], [1]) 3302# fi], 3303# []) 3304 3305 3306# Check whether --with-patch-level was given. 3307if test "${with_patch_level+set}" = set; then : 3308 withval=$with_patch_level; case $with_patch_level in 3309 yes) as_fn_error $? "You must give --with-patch-level an argument." "$LINENO" 5 3310 ;; 3311 no) as_fn_error $? "--without-patch-level not supported." "$LINENO" 5 3312 ;; 3313 [0-9]*) 3314 if test $with_patch_level -gt 99999999; then 3315 as_fn_error $? "Patch level must not contain more than 8 digits" "$LINENO" 5 3316 fi 3317 ;; 3318 *) as_fn_error $? "You must use a numeric patch level" "$LINENO" 5 3319 ;; 3320 esac 3321else 3322 with_patch_level=0 3323fi 3324 3325 3326cat >>confdefs.h <<_ACEOF 3327#define PATCH_LEVEL $with_patch_level 3328_ACEOF 3329 3330 3331 3332# Check whether --with-max-call-params was given. 3333if test "${with_max_call_params+set}" = set; then : 3334 withval=$with_max_call_params; case $with_max_call_params in 3335 yes) as_fn_error $? "You must give --with-max-call-params an argument." "$LINENO" 5 3336 ;; 3337 no) as_fn_error $? "--without-max-call-params not supported." "$LINENO" 5 3338 ;; 3339 16 | 36 | 56 | 76 | 96 | 192 | 252) 3340 ;; 3341 *) as_fn_error $? "Maximum number of parameters for CALL must be one of 16/36/56/76/96/192/252" "$LINENO" 5 3342 ;; 3343 esac 3344else 3345 with_max_call_params=192 3346fi 3347 3348 3349cat >>confdefs.h <<_ACEOF 3350#define MAX_CALL_FIELD_PARAMS $with_max_call_params 3351_ACEOF 3352 3353 3354 3355# Basic capability tests 3356 3357configured_make="" 3358if test -z "$MAKE"; then 3359 for ac_prog in make gmake gnumake 3360do 3361 # Extract the first word of "$ac_prog", so it can be a program name with args. 3362set dummy $ac_prog; ac_word=$2 3363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3364$as_echo_n "checking for $ac_word... " >&6; } 3365if ${ac_cv_prog_configured_make+:} false; then : 3366 $as_echo_n "(cached) " >&6 3367else 3368 if test -n "$configured_make"; then 3369 ac_cv_prog_configured_make="$configured_make" # Let the user override the test. 3370else 3371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3372for as_dir in $PATH 3373do 3374 IFS=$as_save_IFS 3375 test -z "$as_dir" && as_dir=. 3376 for ac_exec_ext in '' $ac_executable_extensions; do 3377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3378 ac_cv_prog_configured_make="$ac_prog" 3379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3380 break 2 3381 fi 3382done 3383 done 3384IFS=$as_save_IFS 3385 3386fi 3387fi 3388configured_make=$ac_cv_prog_configured_make 3389if test -n "$configured_make"; then 3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $configured_make" >&5 3391$as_echo "$configured_make" >&6; } 3392else 3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3394$as_echo "no" >&6; } 3395fi 3396 3397 3398 test -n "$configured_make" && break 3399done 3400 3401 if test -z "$configured_make"; then 3402 as_fn_error $? "make not found" "$LINENO" 5 3403 else 3404 MAKE=$configured_make 3405 3406 fi 3407else 3408 # Extract the first word of "$MAKE", so it can be a program name with args. 3409set dummy $MAKE; ac_word=$2 3410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3411$as_echo_n "checking for $ac_word... " >&6; } 3412if ${ac_cv_prog_configured_make+:} false; then : 3413 $as_echo_n "(cached) " >&6 3414else 3415 if test -n "$configured_make"; then 3416 ac_cv_prog_configured_make="$configured_make" # Let the user override the test. 3417else 3418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3419for as_dir in $PATH 3420do 3421 IFS=$as_save_IFS 3422 test -z "$as_dir" && as_dir=. 3423 for ac_exec_ext in '' $ac_executable_extensions; do 3424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3425 ac_cv_prog_configured_make="$MAKE" 3426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3427 break 2 3428 fi 3429done 3430 done 3431IFS=$as_save_IFS 3432 3433fi 3434fi 3435configured_make=$ac_cv_prog_configured_make 3436if test -n "$configured_make"; then 3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $configured_make" >&5 3438$as_echo "$configured_make" >&6; } 3439else 3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3441$as_echo "no" >&6; } 3442fi 3443 3444 3445 if test -z "$configured_make"; then 3446 as_fn_error $? "make, configured as \"$MAKE\", was not found" "$LINENO" 5 3447 fi 3448fi 3449 3450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE} supports order-only prerequisites" >&5 3451$as_echo_n "checking whether ${MAKE} supports order-only prerequisites... " >&6; } 3452rm -f confinc.* confprereq 3453cat > confmf.mk << 'END' 3454PREREQ := confprereq 3455am__doit: am__prereq | $(PREREQ) 3456 @echo target am__doit. >>confinc.out 3457am__prereq: 3458 @echo target am__prereq. >>confinc.out 3459$(PREREQ): 3460 @touch $(PREREQ) 3461 @echo target $(PREREQ). >>confinc.out 3462.PHONY: am__doit am__prereq 3463END 3464_am_result=no 3465 { echo "$as_me:$LINENO: ${MAKE} -f confmf.mk && ${MAKE-make} -f confmf.mk && cat confinc.out" >&5 3466 (${MAKE} -f confmf.mk && ${MAKE-make} -f confmf.mk && cat confinc.out) >&5 2>&5 3467 ac_status=$? 3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3469 (exit $ac_status); } 3470 ## redirecting via echo to remove special chars 3471 __am_checkme=$(echo `cat confinc.out 2>/dev/null`) 3472 case $?:${__am_checkme} in #( 3473 '0:target am__prereq. target confprereq. target am__doit. target am__prereq. target am__doit.') : 3474 _am_result="yes" ;; #( 3475 *) : 3476 ;; 3477esac 3478rm -f confinc.* confmf.mk confprereq 3479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3480$as_echo "${_am_result}" >&6; } 3481 if test "${_am_result}" = "yes"; then 3482 MAKE_HAS_PREREQ_ONLY_TRUE= 3483 MAKE_HAS_PREREQ_ONLY_FALSE='#' 3484else 3485 MAKE_HAS_PREREQ_ONLY_TRUE='#' 3486 MAKE_HAS_PREREQ_ONLY_FALSE= 3487fi 3488 3489 3490curr_libs="$LIBS" 3491 3492enable_cflags_setting=no 3493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFLAGS -O can be modified" >&5 3494$as_echo_n "checking whether CFLAGS -O can be modified... " >&6; } 3495# Enable setting if the user has not specified the optimisation in CFLAGS. 3496# Checked before AC_PROG_CC and default flags are applied. 3497echo "$CFLAGS" | grep "\-O.*\( \|$\)" 1>/dev/null 2>/dev/null 3498if test $? != 0; then 3499 enable_cflags_setting=yes 3500fi 3501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cflags_setting" >&5 3502$as_echo "$enable_cflags_setting" >&6; } 3503 3504# Default CFLAGS (removed -g set in AC_INIT for compatibility) 3505: ${CFLAGS="-O2"} 3506 3507ac_ext=c 3508ac_cpp='$CPP $CPPFLAGS' 3509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3511ac_compiler_gnu=$ac_cv_c_compiler_gnu 3512if test -n "$ac_tool_prefix"; then 3513 for ac_prog in gcc xlc cc 3514 do 3515 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3516set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3518$as_echo_n "checking for $ac_word... " >&6; } 3519if ${ac_cv_prog_CC+:} false; then : 3520 $as_echo_n "(cached) " >&6 3521else 3522 if test -n "$CC"; then 3523 ac_cv_prog_CC="$CC" # Let the user override the test. 3524else 3525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3526for as_dir in $PATH 3527do 3528 IFS=$as_save_IFS 3529 test -z "$as_dir" && as_dir=. 3530 for ac_exec_ext in '' $ac_executable_extensions; do 3531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3532 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3534 break 2 3535 fi 3536done 3537 done 3538IFS=$as_save_IFS 3539 3540fi 3541fi 3542CC=$ac_cv_prog_CC 3543if test -n "$CC"; then 3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3545$as_echo "$CC" >&6; } 3546else 3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3548$as_echo "no" >&6; } 3549fi 3550 3551 3552 test -n "$CC" && break 3553 done 3554fi 3555if test -z "$CC"; then 3556 ac_ct_CC=$CC 3557 for ac_prog in gcc xlc cc 3558do 3559 # Extract the first word of "$ac_prog", so it can be a program name with args. 3560set dummy $ac_prog; ac_word=$2 3561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3562$as_echo_n "checking for $ac_word... " >&6; } 3563if ${ac_cv_prog_ac_ct_CC+:} false; then : 3564 $as_echo_n "(cached) " >&6 3565else 3566 if test -n "$ac_ct_CC"; then 3567 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3568else 3569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3570for as_dir in $PATH 3571do 3572 IFS=$as_save_IFS 3573 test -z "$as_dir" && as_dir=. 3574 for ac_exec_ext in '' $ac_executable_extensions; do 3575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3576 ac_cv_prog_ac_ct_CC="$ac_prog" 3577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3578 break 2 3579 fi 3580done 3581 done 3582IFS=$as_save_IFS 3583 3584fi 3585fi 3586ac_ct_CC=$ac_cv_prog_ac_ct_CC 3587if test -n "$ac_ct_CC"; then 3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3589$as_echo "$ac_ct_CC" >&6; } 3590else 3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3592$as_echo "no" >&6; } 3593fi 3594 3595 3596 test -n "$ac_ct_CC" && break 3597done 3598 3599 if test "x$ac_ct_CC" = x; then 3600 CC="" 3601 else 3602 case $cross_compiling:$ac_tool_warned in 3603yes:) 3604{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3605$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3606ac_tool_warned=yes ;; 3607esac 3608 CC=$ac_ct_CC 3609 fi 3610fi 3611 3612 3613test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3614$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3615as_fn_error $? "no acceptable C compiler found in \$PATH 3616See \`config.log' for more details" "$LINENO" 5; } 3617 3618# Provide some information about the compiler. 3619$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3620set X $ac_compile 3621ac_compiler=$2 3622for ac_option in --version -v -V -qversion; do 3623 { { ac_try="$ac_compiler $ac_option >&5" 3624case "(($ac_try" in 3625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3626 *) ac_try_echo=$ac_try;; 3627esac 3628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3629$as_echo "$ac_try_echo"; } >&5 3630 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3631 ac_status=$? 3632 if test -s conftest.err; then 3633 sed '10a\ 3634... rest of stderr output deleted ... 3635 10q' conftest.err >conftest.er1 3636 cat conftest.er1 >&5 3637 fi 3638 rm -f conftest.er1 conftest.err 3639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3640 test $ac_status = 0; } 3641done 3642 3643cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3644/* end confdefs.h. */ 3645 3646int 3647main () 3648{ 3649 3650 ; 3651 return 0; 3652} 3653_ACEOF 3654ac_clean_files_save=$ac_clean_files 3655ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3656# Try to create an executable without -o first, disregard a.out. 3657# It will help us diagnose broken compilers, and finding out an intuition 3658# of exeext. 3659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3660$as_echo_n "checking whether the C compiler works... " >&6; } 3661ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3662 3663# The possible output files: 3664ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3665 3666ac_rmfiles= 3667for ac_file in $ac_files 3668do 3669 case $ac_file in 3670 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3671 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3672 esac 3673done 3674rm -f $ac_rmfiles 3675 3676if { { ac_try="$ac_link_default" 3677case "(($ac_try" in 3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3679 *) ac_try_echo=$ac_try;; 3680esac 3681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3682$as_echo "$ac_try_echo"; } >&5 3683 (eval "$ac_link_default") 2>&5 3684 ac_status=$? 3685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3686 test $ac_status = 0; }; then : 3687 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3688# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3689# in a Makefile. We should not override ac_cv_exeext if it was cached, 3690# so that the user can short-circuit this test for compilers unknown to 3691# Autoconf. 3692for ac_file in $ac_files '' 3693do 3694 test -f "$ac_file" || continue 3695 case $ac_file in 3696 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3697 ;; 3698 [ab].out ) 3699 # We found the default executable, but exeext='' is most 3700 # certainly right. 3701 break;; 3702 *.* ) 3703 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3704 then :; else 3705 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3706 fi 3707 # We set ac_cv_exeext here because the later test for it is not 3708 # safe: cross compilers may not add the suffix if given an `-o' 3709 # argument, so we may need to know it at that point already. 3710 # Even if this section looks crufty: it has the advantage of 3711 # actually working. 3712 break;; 3713 * ) 3714 break;; 3715 esac 3716done 3717test "$ac_cv_exeext" = no && ac_cv_exeext= 3718 3719else 3720 ac_file='' 3721fi 3722if test -z "$ac_file"; then : 3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3724$as_echo "no" >&6; } 3725$as_echo "$as_me: failed program was:" >&5 3726sed 's/^/| /' conftest.$ac_ext >&5 3727 3728{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3729$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3730as_fn_error 77 "C compiler cannot create executables 3731See \`config.log' for more details" "$LINENO" 5; } 3732else 3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3734$as_echo "yes" >&6; } 3735fi 3736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3737$as_echo_n "checking for C compiler default output file name... " >&6; } 3738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3739$as_echo "$ac_file" >&6; } 3740ac_exeext=$ac_cv_exeext 3741 3742rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3743ac_clean_files=$ac_clean_files_save 3744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3745$as_echo_n "checking for suffix of executables... " >&6; } 3746if { { ac_try="$ac_link" 3747case "(($ac_try" in 3748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3749 *) ac_try_echo=$ac_try;; 3750esac 3751eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3752$as_echo "$ac_try_echo"; } >&5 3753 (eval "$ac_link") 2>&5 3754 ac_status=$? 3755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3756 test $ac_status = 0; }; then : 3757 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3758# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3759# work properly (i.e., refer to `conftest.exe'), while it won't with 3760# `rm'. 3761for ac_file in conftest.exe conftest conftest.*; do 3762 test -f "$ac_file" || continue 3763 case $ac_file in 3764 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3765 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3766 break;; 3767 * ) break;; 3768 esac 3769done 3770else 3771 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3772$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3773as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3774See \`config.log' for more details" "$LINENO" 5; } 3775fi 3776rm -f conftest conftest$ac_cv_exeext 3777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3778$as_echo "$ac_cv_exeext" >&6; } 3779 3780rm -f conftest.$ac_ext 3781EXEEXT=$ac_cv_exeext 3782ac_exeext=$EXEEXT 3783cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3784/* end confdefs.h. */ 3785#include <stdio.h> 3786int 3787main () 3788{ 3789FILE *f = fopen ("conftest.out", "w"); 3790 return ferror (f) || fclose (f) != 0; 3791 3792 ; 3793 return 0; 3794} 3795_ACEOF 3796ac_clean_files="$ac_clean_files conftest.out" 3797# Check that the compiler produces executables we can run. If not, either 3798# the compiler is broken, or we cross compile. 3799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3800$as_echo_n "checking whether we are cross compiling... " >&6; } 3801if test "$cross_compiling" != yes; then 3802 { { ac_try="$ac_link" 3803case "(($ac_try" in 3804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3805 *) ac_try_echo=$ac_try;; 3806esac 3807eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3808$as_echo "$ac_try_echo"; } >&5 3809 (eval "$ac_link") 2>&5 3810 ac_status=$? 3811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3812 test $ac_status = 0; } 3813 if { ac_try='./conftest$ac_cv_exeext' 3814 { { case "(($ac_try" in 3815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3816 *) ac_try_echo=$ac_try;; 3817esac 3818eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3819$as_echo "$ac_try_echo"; } >&5 3820 (eval "$ac_try") 2>&5 3821 ac_status=$? 3822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3823 test $ac_status = 0; }; }; then 3824 cross_compiling=no 3825 else 3826 if test "$cross_compiling" = maybe; then 3827 cross_compiling=yes 3828 else 3829 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3830$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3831as_fn_error $? "cannot run C compiled programs. 3832If you meant to cross compile, use \`--host'. 3833See \`config.log' for more details" "$LINENO" 5; } 3834 fi 3835 fi 3836fi 3837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3838$as_echo "$cross_compiling" >&6; } 3839 3840rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3841ac_clean_files=$ac_clean_files_save 3842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3843$as_echo_n "checking for suffix of object files... " >&6; } 3844if ${ac_cv_objext+:} false; then : 3845 $as_echo_n "(cached) " >&6 3846else 3847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3848/* end confdefs.h. */ 3849 3850int 3851main () 3852{ 3853 3854 ; 3855 return 0; 3856} 3857_ACEOF 3858rm -f conftest.o conftest.obj 3859if { { ac_try="$ac_compile" 3860case "(($ac_try" in 3861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3862 *) ac_try_echo=$ac_try;; 3863esac 3864eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3865$as_echo "$ac_try_echo"; } >&5 3866 (eval "$ac_compile") 2>&5 3867 ac_status=$? 3868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3869 test $ac_status = 0; }; then : 3870 for ac_file in conftest.o conftest.obj conftest.*; do 3871 test -f "$ac_file" || continue; 3872 case $ac_file in 3873 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3874 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3875 break;; 3876 esac 3877done 3878else 3879 $as_echo "$as_me: failed program was:" >&5 3880sed 's/^/| /' conftest.$ac_ext >&5 3881 3882{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3883$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3884as_fn_error $? "cannot compute suffix of object files: cannot compile 3885See \`config.log' for more details" "$LINENO" 5; } 3886fi 3887rm -f conftest.$ac_cv_objext conftest.$ac_ext 3888fi 3889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3890$as_echo "$ac_cv_objext" >&6; } 3891OBJEXT=$ac_cv_objext 3892ac_objext=$OBJEXT 3893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3894$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3895if ${ac_cv_c_compiler_gnu+:} false; then : 3896 $as_echo_n "(cached) " >&6 3897else 3898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3899/* end confdefs.h. */ 3900 3901int 3902main () 3903{ 3904#ifndef __GNUC__ 3905 choke me 3906#endif 3907 3908 ; 3909 return 0; 3910} 3911_ACEOF 3912if ac_fn_c_try_compile "$LINENO"; then : 3913 ac_compiler_gnu=yes 3914else 3915 ac_compiler_gnu=no 3916fi 3917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3918ac_cv_c_compiler_gnu=$ac_compiler_gnu 3919 3920fi 3921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3922$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3923if test $ac_compiler_gnu = yes; then 3924 GCC=yes 3925else 3926 GCC= 3927fi 3928ac_test_CFLAGS=${CFLAGS+set} 3929ac_save_CFLAGS=$CFLAGS 3930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3931$as_echo_n "checking whether $CC accepts -g... " >&6; } 3932if ${ac_cv_prog_cc_g+:} false; then : 3933 $as_echo_n "(cached) " >&6 3934else 3935 ac_save_c_werror_flag=$ac_c_werror_flag 3936 ac_c_werror_flag=yes 3937 ac_cv_prog_cc_g=no 3938 CFLAGS="-g" 3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3940/* end confdefs.h. */ 3941 3942int 3943main () 3944{ 3945 3946 ; 3947 return 0; 3948} 3949_ACEOF 3950if ac_fn_c_try_compile "$LINENO"; then : 3951 ac_cv_prog_cc_g=yes 3952else 3953 CFLAGS="" 3954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3955/* end confdefs.h. */ 3956 3957int 3958main () 3959{ 3960 3961 ; 3962 return 0; 3963} 3964_ACEOF 3965if ac_fn_c_try_compile "$LINENO"; then : 3966 3967else 3968 ac_c_werror_flag=$ac_save_c_werror_flag 3969 CFLAGS="-g" 3970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3971/* end confdefs.h. */ 3972 3973int 3974main () 3975{ 3976 3977 ; 3978 return 0; 3979} 3980_ACEOF 3981if ac_fn_c_try_compile "$LINENO"; then : 3982 ac_cv_prog_cc_g=yes 3983fi 3984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3985fi 3986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3987fi 3988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3989 ac_c_werror_flag=$ac_save_c_werror_flag 3990fi 3991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3992$as_echo "$ac_cv_prog_cc_g" >&6; } 3993if test "$ac_test_CFLAGS" = set; then 3994 CFLAGS=$ac_save_CFLAGS 3995elif test $ac_cv_prog_cc_g = yes; then 3996 if test "$GCC" = yes; then 3997 CFLAGS="-g -O2" 3998 else 3999 CFLAGS="-g" 4000 fi 4001else 4002 if test "$GCC" = yes; then 4003 CFLAGS="-O2" 4004 else 4005 CFLAGS= 4006 fi 4007fi 4008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4009$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4010if ${ac_cv_prog_cc_c89+:} false; then : 4011 $as_echo_n "(cached) " >&6 4012else 4013 ac_cv_prog_cc_c89=no 4014ac_save_CC=$CC 4015cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4016/* end confdefs.h. */ 4017#include <stdarg.h> 4018#include <stdio.h> 4019struct stat; 4020/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4021struct buf { int x; }; 4022FILE * (*rcsopen) (struct buf *, struct stat *, int); 4023static char *e (p, i) 4024 char **p; 4025 int i; 4026{ 4027 return p[i]; 4028} 4029static char *f (char * (*g) (char **, int), char **p, ...) 4030{ 4031 char *s; 4032 va_list v; 4033 va_start (v,p); 4034 s = g (p, va_arg (v,int)); 4035 va_end (v); 4036 return s; 4037} 4038 4039/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4040 function prototypes and stuff, but not '\xHH' hex character constants. 4041 These don't provoke an error unfortunately, instead are silently treated 4042 as 'x'. The following induces an error, until -std is added to get 4043 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4044 array size at least. It's necessary to write '\x00'==0 to get something 4045 that's true only with -std. */ 4046int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4047 4048/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4049 inside strings and character constants. */ 4050#define FOO(x) 'x' 4051int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4052 4053int test (int i, double x); 4054struct s1 {int (*f) (int a);}; 4055struct s2 {int (*f) (double a);}; 4056int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4057int argc; 4058char **argv; 4059int 4060main () 4061{ 4062return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4063 ; 4064 return 0; 4065} 4066_ACEOF 4067for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4068 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4069do 4070 CC="$ac_save_CC $ac_arg" 4071 if ac_fn_c_try_compile "$LINENO"; then : 4072 ac_cv_prog_cc_c89=$ac_arg 4073fi 4074rm -f core conftest.err conftest.$ac_objext 4075 test "x$ac_cv_prog_cc_c89" != "xno" && break 4076done 4077rm -f conftest.$ac_ext 4078CC=$ac_save_CC 4079 4080fi 4081# AC_CACHE_VAL 4082case "x$ac_cv_prog_cc_c89" in 4083 x) 4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4085$as_echo "none needed" >&6; } ;; 4086 xno) 4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4088$as_echo "unsupported" >&6; } ;; 4089 *) 4090 CC="$CC $ac_cv_prog_cc_c89" 4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4092$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4093esac 4094if test "x$ac_cv_prog_cc_c89" != xno; then : 4095 4096fi 4097 4098ac_ext=c 4099ac_cpp='$CPP $CPPFLAGS' 4100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4102ac_compiler_gnu=$ac_cv_c_compiler_gnu 4103 4104ac_ext=c 4105ac_cpp='$CPP $CPPFLAGS' 4106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4108ac_compiler_gnu=$ac_cv_c_compiler_gnu 4109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4110$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4111if ${am_cv_prog_cc_c_o+:} false; then : 4112 $as_echo_n "(cached) " >&6 4113else 4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4115/* end confdefs.h. */ 4116 4117int 4118main () 4119{ 4120 4121 ; 4122 return 0; 4123} 4124_ACEOF 4125 # Make sure it works both with $CC and with simple cc. 4126 # Following AC_PROG_CC_C_O, we do the test twice because some 4127 # compilers refuse to overwrite an existing .o file with -o, 4128 # though they will create one. 4129 am_cv_prog_cc_c_o=yes 4130 for am_i in 1 2; do 4131 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4132 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4133 ac_status=$? 4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4135 (exit $ac_status); } \ 4136 && test -f conftest2.$ac_objext; then 4137 : OK 4138 else 4139 am_cv_prog_cc_c_o=no 4140 break 4141 fi 4142 done 4143 rm -f core conftest* 4144 unset am_i 4145fi 4146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4147$as_echo "$am_cv_prog_cc_c_o" >&6; } 4148if test "$am_cv_prog_cc_c_o" != yes; then 4149 # Losing compiler, so override with the script. 4150 # FIXME: It is wrong to rewrite CC. 4151 # But if we don't then we get into trouble of one sort or another. 4152 # A longer-term fix would be to have automake use am__CC in this case, 4153 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4154 CC="$am_aux_dir/compile $CC" 4155fi 4156ac_ext=c 4157ac_cpp='$CPP $CPPFLAGS' 4158ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4159ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4160ac_compiler_gnu=$ac_cv_c_compiler_gnu 4161 4162DEPDIR="${am__leading_dot}deps" 4163 4164ac_config_commands="$ac_config_commands depfiles" 4165 4166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4167$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 4168cat > confinc.mk << 'END' 4169am__doit: 4170 @echo this is the am__doit target >confinc.out 4171.PHONY: am__doit 4172END 4173am__include="#" 4174am__quote= 4175# BSD make does it like this. 4176echo '.include "confinc.mk" # ignored' > confmf.BSD 4177# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4178echo 'include confinc.mk # ignored' > confmf.GNU 4179_am_result=no 4180for s in GNU BSD; do 4181 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4182 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4183 ac_status=$? 4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4185 (exit $ac_status); } 4186 case $?:`cat confinc.out 2>/dev/null` in #( 4187 '0:this is the am__doit target') : 4188 case $s in #( 4189 BSD) : 4190 am__include='.include' am__quote='"' ;; #( 4191 *) : 4192 am__include='include' am__quote='' ;; 4193esac ;; #( 4194 *) : 4195 ;; 4196esac 4197 if test "$am__include" != "#"; then 4198 _am_result="yes ($s style)" 4199 break 4200 fi 4201done 4202rm -f confinc.* confmf.* 4203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4204$as_echo "${_am_result}" >&6; } 4205 4206# Check whether --enable-dependency-tracking was given. 4207if test "${enable_dependency_tracking+set}" = set; then : 4208 enableval=$enable_dependency_tracking; 4209fi 4210 4211if test "x$enable_dependency_tracking" != xno; then 4212 am_depcomp="$ac_aux_dir/depcomp" 4213 AMDEPBACKSLASH='\' 4214 am__nodep='_no' 4215fi 4216 if test "x$enable_dependency_tracking" != xno; then 4217 AMDEP_TRUE= 4218 AMDEP_FALSE='#' 4219else 4220 AMDEP_TRUE='#' 4221 AMDEP_FALSE= 4222fi 4223 4224 4225 4226depcc="$CC" am_compiler_list= 4227 4228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4229$as_echo_n "checking dependency style of $depcc... " >&6; } 4230if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4231 $as_echo_n "(cached) " >&6 4232else 4233 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4234 # We make a subdir and do the tests there. Otherwise we can end up 4235 # making bogus files that we don't know about and never remove. For 4236 # instance it was reported that on HP-UX the gcc test will end up 4237 # making a dummy file named 'D' -- because '-MD' means "put the output 4238 # in D". 4239 rm -rf conftest.dir 4240 mkdir conftest.dir 4241 # Copy depcomp to subdir because otherwise we won't find it if we're 4242 # using a relative directory. 4243 cp "$am_depcomp" conftest.dir 4244 cd conftest.dir 4245 # We will build objects and dependencies in a subdirectory because 4246 # it helps to detect inapplicable dependency modes. For instance 4247 # both Tru64's cc and ICC support -MD to output dependencies as a 4248 # side effect of compilation, but ICC will put the dependencies in 4249 # the current directory while Tru64 will put them in the object 4250 # directory. 4251 mkdir sub 4252 4253 am_cv_CC_dependencies_compiler_type=none 4254 if test "$am_compiler_list" = ""; then 4255 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4256 fi 4257 am__universal=false 4258 case " $depcc " in #( 4259 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4260 esac 4261 4262 for depmode in $am_compiler_list; do 4263 # Setup a source with many dependencies, because some compilers 4264 # like to wrap large dependency lists on column 80 (with \), and 4265 # we should not choose a depcomp mode which is confused by this. 4266 # 4267 # We need to recreate these files for each test, as the compiler may 4268 # overwrite some of them when testing with obscure command lines. 4269 # This happens at least with the AIX C compiler. 4270 : > sub/conftest.c 4271 for i in 1 2 3 4 5 6; do 4272 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4273 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4274 # Solaris 10 /bin/sh. 4275 echo '/* dummy */' > sub/conftst$i.h 4276 done 4277 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4278 4279 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4280 # mode. It turns out that the SunPro C++ compiler does not properly 4281 # handle '-M -o', and we need to detect this. Also, some Intel 4282 # versions had trouble with output in subdirs. 4283 am__obj=sub/conftest.${OBJEXT-o} 4284 am__minus_obj="-o $am__obj" 4285 case $depmode in 4286 gcc) 4287 # This depmode causes a compiler race in universal mode. 4288 test "$am__universal" = false || continue 4289 ;; 4290 nosideeffect) 4291 # After this tag, mechanisms are not by side-effect, so they'll 4292 # only be used when explicitly requested. 4293 if test "x$enable_dependency_tracking" = xyes; then 4294 continue 4295 else 4296 break 4297 fi 4298 ;; 4299 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4300 # This compiler won't grok '-c -o', but also, the minuso test has 4301 # not run yet. These depmodes are late enough in the game, and 4302 # so weak that their functioning should not be impacted. 4303 am__obj=conftest.${OBJEXT-o} 4304 am__minus_obj= 4305 ;; 4306 none) break ;; 4307 esac 4308 if depmode=$depmode \ 4309 source=sub/conftest.c object=$am__obj \ 4310 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4311 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4312 >/dev/null 2>conftest.err && 4313 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4314 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4315 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4316 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4317 # icc doesn't choke on unknown options, it will just issue warnings 4318 # or remarks (even with -Werror). So we grep stderr for any message 4319 # that says an option was ignored or not supported. 4320 # When given -MP, icc 7.0 and 7.1 complain thusly: 4321 # icc: Command line warning: ignoring option '-M'; no argument required 4322 # The diagnosis changed in icc 8.0: 4323 # icc: Command line remark: option '-MP' not supported 4324 if (grep 'ignoring option' conftest.err || 4325 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4326 am_cv_CC_dependencies_compiler_type=$depmode 4327 break 4328 fi 4329 fi 4330 done 4331 4332 cd .. 4333 rm -rf conftest.dir 4334else 4335 am_cv_CC_dependencies_compiler_type=none 4336fi 4337 4338fi 4339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4340$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4341CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4342 4343 if 4344 test "x$enable_dependency_tracking" != xno \ 4345 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4346 am__fastdepCC_TRUE= 4347 am__fastdepCC_FALSE='#' 4348else 4349 am__fastdepCC_TRUE='#' 4350 am__fastdepCC_FALSE= 4351fi 4352 4353 4354 case $ac_cv_prog_cc_stdc in #( 4355 no) : 4356 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( 4357 *) : 4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4359$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4360if ${ac_cv_prog_cc_c99+:} false; then : 4361 $as_echo_n "(cached) " >&6 4362else 4363 ac_cv_prog_cc_c99=no 4364ac_save_CC=$CC 4365cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4366/* end confdefs.h. */ 4367#include <stdarg.h> 4368#include <stdbool.h> 4369#include <stdlib.h> 4370#include <wchar.h> 4371#include <stdio.h> 4372 4373// Check varargs macros. These examples are taken from C99 6.10.3.5. 4374#define debug(...) fprintf (stderr, __VA_ARGS__) 4375#define showlist(...) puts (#__VA_ARGS__) 4376#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4377static void 4378test_varargs_macros (void) 4379{ 4380 int x = 1234; 4381 int y = 5678; 4382 debug ("Flag"); 4383 debug ("X = %d\n", x); 4384 showlist (The first, second, and third items.); 4385 report (x>y, "x is %d but y is %d", x, y); 4386} 4387 4388// Check long long types. 4389#define BIG64 18446744073709551615ull 4390#define BIG32 4294967295ul 4391#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4392#if !BIG_OK 4393 your preprocessor is broken; 4394#endif 4395#if BIG_OK 4396#else 4397 your preprocessor is broken; 4398#endif 4399static long long int bignum = -9223372036854775807LL; 4400static unsigned long long int ubignum = BIG64; 4401 4402struct incomplete_array 4403{ 4404 int datasize; 4405 double data[]; 4406}; 4407 4408struct named_init { 4409 int number; 4410 const wchar_t *name; 4411 double average; 4412}; 4413 4414typedef const char *ccp; 4415 4416static inline int 4417test_restrict (ccp restrict text) 4418{ 4419 // See if C++-style comments work. 4420 // Iterate through items via the restricted pointer. 4421 // Also check for declarations in for loops. 4422 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4423 continue; 4424 return 0; 4425} 4426 4427// Check varargs and va_copy. 4428static void 4429test_varargs (const char *format, ...) 4430{ 4431 va_list args; 4432 va_start (args, format); 4433 va_list args_copy; 4434 va_copy (args_copy, args); 4435 4436 const char *str; 4437 int number; 4438 float fnumber; 4439 4440 while (*format) 4441 { 4442 switch (*format++) 4443 { 4444 case 's': // string 4445 str = va_arg (args_copy, const char *); 4446 break; 4447 case 'd': // int 4448 number = va_arg (args_copy, int); 4449 break; 4450 case 'f': // float 4451 fnumber = va_arg (args_copy, double); 4452 break; 4453 default: 4454 break; 4455 } 4456 } 4457 va_end (args_copy); 4458 va_end (args); 4459} 4460 4461int 4462main () 4463{ 4464 4465 // Check bool. 4466 _Bool success = false; 4467 4468 // Check restrict. 4469 if (test_restrict ("String literal") == 0) 4470 success = true; 4471 char *restrict newvar = "Another string"; 4472 4473 // Check varargs. 4474 test_varargs ("s, d' f .", "string", 65, 34.234); 4475 test_varargs_macros (); 4476 4477 // Check flexible array members. 4478 struct incomplete_array *ia = 4479 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4480 ia->datasize = 10; 4481 for (int i = 0; i < ia->datasize; ++i) 4482 ia->data[i] = i * 1.234; 4483 4484 // Check named initializers. 4485 struct named_init ni = { 4486 .number = 34, 4487 .name = L"Test wide string", 4488 .average = 543.34343, 4489 }; 4490 4491 ni.number = 58; 4492 4493 int dynamic_array[ni.number]; 4494 dynamic_array[ni.number - 1] = 543; 4495 4496 // work around unused variable warnings 4497 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4498 || dynamic_array[ni.number - 1] != 543); 4499 4500 ; 4501 return 0; 4502} 4503_ACEOF 4504for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4505do 4506 CC="$ac_save_CC $ac_arg" 4507 if ac_fn_c_try_compile "$LINENO"; then : 4508 ac_cv_prog_cc_c99=$ac_arg 4509fi 4510rm -f core conftest.err conftest.$ac_objext 4511 test "x$ac_cv_prog_cc_c99" != "xno" && break 4512done 4513rm -f conftest.$ac_ext 4514CC=$ac_save_CC 4515 4516fi 4517# AC_CACHE_VAL 4518case "x$ac_cv_prog_cc_c99" in 4519 x) 4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4521$as_echo "none needed" >&6; } ;; 4522 xno) 4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4524$as_echo "unsupported" >&6; } ;; 4525 *) 4526 CC="$CC $ac_cv_prog_cc_c99" 4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4528$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4529esac 4530if test "x$ac_cv_prog_cc_c99" != xno; then : 4531 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4532else 4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4534$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4535if ${ac_cv_prog_cc_c89+:} false; then : 4536 $as_echo_n "(cached) " >&6 4537else 4538 ac_cv_prog_cc_c89=no 4539ac_save_CC=$CC 4540cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4541/* end confdefs.h. */ 4542#include <stdarg.h> 4543#include <stdio.h> 4544struct stat; 4545/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4546struct buf { int x; }; 4547FILE * (*rcsopen) (struct buf *, struct stat *, int); 4548static char *e (p, i) 4549 char **p; 4550 int i; 4551{ 4552 return p[i]; 4553} 4554static char *f (char * (*g) (char **, int), char **p, ...) 4555{ 4556 char *s; 4557 va_list v; 4558 va_start (v,p); 4559 s = g (p, va_arg (v,int)); 4560 va_end (v); 4561 return s; 4562} 4563 4564/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4565 function prototypes and stuff, but not '\xHH' hex character constants. 4566 These don't provoke an error unfortunately, instead are silently treated 4567 as 'x'. The following induces an error, until -std is added to get 4568 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4569 array size at least. It's necessary to write '\x00'==0 to get something 4570 that's true only with -std. */ 4571int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4572 4573/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4574 inside strings and character constants. */ 4575#define FOO(x) 'x' 4576int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4577 4578int test (int i, double x); 4579struct s1 {int (*f) (int a);}; 4580struct s2 {int (*f) (double a);}; 4581int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4582int argc; 4583char **argv; 4584int 4585main () 4586{ 4587return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4588 ; 4589 return 0; 4590} 4591_ACEOF 4592for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4593 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4594do 4595 CC="$ac_save_CC $ac_arg" 4596 if ac_fn_c_try_compile "$LINENO"; then : 4597 ac_cv_prog_cc_c89=$ac_arg 4598fi 4599rm -f core conftest.err conftest.$ac_objext 4600 test "x$ac_cv_prog_cc_c89" != "xno" && break 4601done 4602rm -f conftest.$ac_ext 4603CC=$ac_save_CC 4604 4605fi 4606# AC_CACHE_VAL 4607case "x$ac_cv_prog_cc_c89" in 4608 x) 4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4610$as_echo "none needed" >&6; } ;; 4611 xno) 4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4613$as_echo "unsupported" >&6; } ;; 4614 *) 4615 CC="$CC $ac_cv_prog_cc_c89" 4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4617$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4618esac 4619if test "x$ac_cv_prog_cc_c89" != xno; then : 4620 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4621else 4622 ac_cv_prog_cc_stdc=no 4623fi 4624 4625fi 4626 ;; 4627esac 4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 4629$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } 4630 if ${ac_cv_prog_cc_stdc+:} false; then : 4631 $as_echo_n "(cached) " >&6 4632fi 4633 4634 case $ac_cv_prog_cc_stdc in #( 4635 no) : 4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4637$as_echo "unsupported" >&6; } ;; #( 4638 '') : 4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4640$as_echo "none needed" >&6; } ;; #( 4641 *) : 4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 4643$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; 4644esac 4645 4646 4647ac_ext=c 4648ac_cpp='$CPP $CPPFLAGS' 4649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4651ac_compiler_gnu=$ac_cv_c_compiler_gnu 4652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4653$as_echo_n "checking how to run the C preprocessor... " >&6; } 4654# On Suns, sometimes $CPP names a directory. 4655if test -n "$CPP" && test -d "$CPP"; then 4656 CPP= 4657fi 4658if test -z "$CPP"; then 4659 if ${ac_cv_prog_CPP+:} false; then : 4660 $as_echo_n "(cached) " >&6 4661else 4662 # Double quotes because CPP needs to be expanded 4663 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4664 do 4665 ac_preproc_ok=false 4666for ac_c_preproc_warn_flag in '' yes 4667do 4668 # Use a header file that comes with gcc, so configuring glibc 4669 # with a fresh cross-compiler works. 4670 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4671 # <limits.h> exists even on freestanding compilers. 4672 # On the NeXT, cc -E runs the code through the compiler's parser, 4673 # not just through cpp. "Syntax error" is here to catch this case. 4674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4675/* end confdefs.h. */ 4676#ifdef __STDC__ 4677# include <limits.h> 4678#else 4679# include <assert.h> 4680#endif 4681 Syntax error 4682_ACEOF 4683if ac_fn_c_try_cpp "$LINENO"; then : 4684 4685else 4686 # Broken: fails on valid input. 4687continue 4688fi 4689rm -f conftest.err conftest.i conftest.$ac_ext 4690 4691 # OK, works on sane cases. Now check whether nonexistent headers 4692 # can be detected and how. 4693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4694/* end confdefs.h. */ 4695#include <ac_nonexistent.h> 4696_ACEOF 4697if ac_fn_c_try_cpp "$LINENO"; then : 4698 # Broken: success on invalid input. 4699continue 4700else 4701 # Passes both tests. 4702ac_preproc_ok=: 4703break 4704fi 4705rm -f conftest.err conftest.i conftest.$ac_ext 4706 4707done 4708# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4709rm -f conftest.i conftest.err conftest.$ac_ext 4710if $ac_preproc_ok; then : 4711 break 4712fi 4713 4714 done 4715 ac_cv_prog_CPP=$CPP 4716 4717fi 4718 CPP=$ac_cv_prog_CPP 4719else 4720 ac_cv_prog_CPP=$CPP 4721fi 4722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4723$as_echo "$CPP" >&6; } 4724ac_preproc_ok=false 4725for ac_c_preproc_warn_flag in '' yes 4726do 4727 # Use a header file that comes with gcc, so configuring glibc 4728 # with a fresh cross-compiler works. 4729 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4730 # <limits.h> exists even on freestanding compilers. 4731 # On the NeXT, cc -E runs the code through the compiler's parser, 4732 # not just through cpp. "Syntax error" is here to catch this case. 4733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4734/* end confdefs.h. */ 4735#ifdef __STDC__ 4736# include <limits.h> 4737#else 4738# include <assert.h> 4739#endif 4740 Syntax error 4741_ACEOF 4742if ac_fn_c_try_cpp "$LINENO"; then : 4743 4744else 4745 # Broken: fails on valid input. 4746continue 4747fi 4748rm -f conftest.err conftest.i conftest.$ac_ext 4749 4750 # OK, works on sane cases. Now check whether nonexistent headers 4751 # can be detected and how. 4752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4753/* end confdefs.h. */ 4754#include <ac_nonexistent.h> 4755_ACEOF 4756if ac_fn_c_try_cpp "$LINENO"; then : 4757 # Broken: success on invalid input. 4758continue 4759else 4760 # Passes both tests. 4761ac_preproc_ok=: 4762break 4763fi 4764rm -f conftest.err conftest.i conftest.$ac_ext 4765 4766done 4767# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4768rm -f conftest.i conftest.err conftest.$ac_ext 4769if $ac_preproc_ok; then : 4770 4771else 4772 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4773$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4774as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4775See \`config.log' for more details" "$LINENO" 5; } 4776fi 4777 4778ac_ext=c 4779ac_cpp='$CPP $CPPFLAGS' 4780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4782ac_compiler_gnu=$ac_cv_c_compiler_gnu 4783 4784 4785 4786 4787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4788$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4789if ${ac_cv_path_GREP+:} false; then : 4790 $as_echo_n "(cached) " >&6 4791else 4792 if test -z "$GREP"; then 4793 ac_path_GREP_found=false 4794 # Loop through the user's path and test for each of PROGNAME-LIST 4795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4796for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4797do 4798 IFS=$as_save_IFS 4799 test -z "$as_dir" && as_dir=. 4800 for ac_prog in grep ggrep; do 4801 for ac_exec_ext in '' $ac_executable_extensions; do 4802 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4803 as_fn_executable_p "$ac_path_GREP" || continue 4804# Check for GNU ac_path_GREP and select it if it is found. 4805 # Check for GNU $ac_path_GREP 4806case `"$ac_path_GREP" --version 2>&1` in 4807*GNU*) 4808 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4809*) 4810 ac_count=0 4811 $as_echo_n 0123456789 >"conftest.in" 4812 while : 4813 do 4814 cat "conftest.in" "conftest.in" >"conftest.tmp" 4815 mv "conftest.tmp" "conftest.in" 4816 cp "conftest.in" "conftest.nl" 4817 $as_echo 'GREP' >> "conftest.nl" 4818 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4819 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4820 as_fn_arith $ac_count + 1 && ac_count=$as_val 4821 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4822 # Best one so far, save it but keep looking for a better one 4823 ac_cv_path_GREP="$ac_path_GREP" 4824 ac_path_GREP_max=$ac_count 4825 fi 4826 # 10*(2^10) chars as input seems more than enough 4827 test $ac_count -gt 10 && break 4828 done 4829 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4830esac 4831 4832 $ac_path_GREP_found && break 3 4833 done 4834 done 4835 done 4836IFS=$as_save_IFS 4837 if test -z "$ac_cv_path_GREP"; then 4838 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4839 fi 4840else 4841 ac_cv_path_GREP=$GREP 4842fi 4843 4844fi 4845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4846$as_echo "$ac_cv_path_GREP" >&6; } 4847 GREP="$ac_cv_path_GREP" 4848 4849 4850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4851$as_echo_n "checking for egrep... " >&6; } 4852if ${ac_cv_path_EGREP+:} false; then : 4853 $as_echo_n "(cached) " >&6 4854else 4855 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4856 then ac_cv_path_EGREP="$GREP -E" 4857 else 4858 if test -z "$EGREP"; then 4859 ac_path_EGREP_found=false 4860 # Loop through the user's path and test for each of PROGNAME-LIST 4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4862for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4863do 4864 IFS=$as_save_IFS 4865 test -z "$as_dir" && as_dir=. 4866 for ac_prog in egrep; do 4867 for ac_exec_ext in '' $ac_executable_extensions; do 4868 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4869 as_fn_executable_p "$ac_path_EGREP" || continue 4870# Check for GNU ac_path_EGREP and select it if it is found. 4871 # Check for GNU $ac_path_EGREP 4872case `"$ac_path_EGREP" --version 2>&1` in 4873*GNU*) 4874 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4875*) 4876 ac_count=0 4877 $as_echo_n 0123456789 >"conftest.in" 4878 while : 4879 do 4880 cat "conftest.in" "conftest.in" >"conftest.tmp" 4881 mv "conftest.tmp" "conftest.in" 4882 cp "conftest.in" "conftest.nl" 4883 $as_echo 'EGREP' >> "conftest.nl" 4884 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4885 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4886 as_fn_arith $ac_count + 1 && ac_count=$as_val 4887 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4888 # Best one so far, save it but keep looking for a better one 4889 ac_cv_path_EGREP="$ac_path_EGREP" 4890 ac_path_EGREP_max=$ac_count 4891 fi 4892 # 10*(2^10) chars as input seems more than enough 4893 test $ac_count -gt 10 && break 4894 done 4895 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4896esac 4897 4898 $ac_path_EGREP_found && break 3 4899 done 4900 done 4901 done 4902IFS=$as_save_IFS 4903 if test -z "$ac_cv_path_EGREP"; then 4904 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4905 fi 4906else 4907 ac_cv_path_EGREP=$EGREP 4908fi 4909 4910 fi 4911fi 4912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4913$as_echo "$ac_cv_path_EGREP" >&6; } 4914 EGREP="$ac_cv_path_EGREP" 4915 4916 4917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4918$as_echo_n "checking for ANSI C header files... " >&6; } 4919if ${ac_cv_header_stdc+:} false; then : 4920 $as_echo_n "(cached) " >&6 4921else 4922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4923/* end confdefs.h. */ 4924#include <stdlib.h> 4925#include <stdarg.h> 4926#include <string.h> 4927#include <float.h> 4928 4929int 4930main () 4931{ 4932 4933 ; 4934 return 0; 4935} 4936_ACEOF 4937if ac_fn_c_try_compile "$LINENO"; then : 4938 ac_cv_header_stdc=yes 4939else 4940 ac_cv_header_stdc=no 4941fi 4942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4943 4944if test $ac_cv_header_stdc = yes; then 4945 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4947/* end confdefs.h. */ 4948#include <string.h> 4949 4950_ACEOF 4951if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4952 $EGREP "memchr" >/dev/null 2>&1; then : 4953 4954else 4955 ac_cv_header_stdc=no 4956fi 4957rm -f conftest* 4958 4959fi 4960 4961if test $ac_cv_header_stdc = yes; then 4962 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4964/* end confdefs.h. */ 4965#include <stdlib.h> 4966 4967_ACEOF 4968if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4969 $EGREP "free" >/dev/null 2>&1; then : 4970 4971else 4972 ac_cv_header_stdc=no 4973fi 4974rm -f conftest* 4975 4976fi 4977 4978if test $ac_cv_header_stdc = yes; then 4979 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4980 if test "$cross_compiling" = yes; then : 4981 : 4982else 4983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4984/* end confdefs.h. */ 4985#include <ctype.h> 4986#include <stdlib.h> 4987#if ((' ' & 0x0FF) == 0x020) 4988# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4989# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4990#else 4991# define ISLOWER(c) \ 4992 (('a' <= (c) && (c) <= 'i') \ 4993 || ('j' <= (c) && (c) <= 'r') \ 4994 || ('s' <= (c) && (c) <= 'z')) 4995# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4996#endif 4997 4998#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4999int 5000main () 5001{ 5002 int i; 5003 for (i = 0; i < 256; i++) 5004 if (XOR (islower (i), ISLOWER (i)) 5005 || toupper (i) != TOUPPER (i)) 5006 return 2; 5007 return 0; 5008} 5009_ACEOF 5010if ac_fn_c_try_run "$LINENO"; then : 5011 5012else 5013 ac_cv_header_stdc=no 5014fi 5015rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5016 conftest.$ac_objext conftest.beam conftest.$ac_ext 5017fi 5018 5019fi 5020fi 5021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5022$as_echo "$ac_cv_header_stdc" >&6; } 5023if test $ac_cv_header_stdc = yes; then 5024 5025$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5026 5027fi 5028 5029# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5030for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5031 inttypes.h stdint.h unistd.h 5032do : 5033 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5034ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5035" 5036if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5037 cat >>confdefs.h <<_ACEOF 5038#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5039_ACEOF 5040 5041fi 5042 5043done 5044 5045 5046 5047 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5048if test "x$ac_cv_header_minix_config_h" = xyes; then : 5049 MINIX=yes 5050else 5051 MINIX= 5052fi 5053 5054 5055 if test "$MINIX" = yes; then 5056 5057$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5058 5059 5060$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5061 5062 5063$as_echo "#define _MINIX 1" >>confdefs.h 5064 5065 fi 5066 5067 5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5069$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5070if ${ac_cv_safe_to_define___extensions__+:} false; then : 5071 $as_echo_n "(cached) " >&6 5072else 5073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5074/* end confdefs.h. */ 5075 5076# define __EXTENSIONS__ 1 5077 $ac_includes_default 5078int 5079main () 5080{ 5081 5082 ; 5083 return 0; 5084} 5085_ACEOF 5086if ac_fn_c_try_compile "$LINENO"; then : 5087 ac_cv_safe_to_define___extensions__=yes 5088else 5089 ac_cv_safe_to_define___extensions__=no 5090fi 5091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5092fi 5093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5094$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5095 test $ac_cv_safe_to_define___extensions__ = yes && 5096 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5097 5098 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5099 5100 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5101 5102 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5103 5104 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5105 5106 5107 5108# general flags for compiler and linker and tests for those 5109 5110if test "x$LIBCOB_CPPFLAGS" != "x"; then : 5111 5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compilation with LIBCOB_CPPFLAGS works" >&5 5113$as_echo_n "checking if compilation with LIBCOB_CPPFLAGS works... " >&6; } 5114 curr_cppflags="$CPPFLAGS" 5115 CPPFLAGS="$CPPFLAGS $LIBCOB_CPPFLAGS" 5116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5117/* end confdefs.h. */ 5118 5119int 5120main () 5121{ 5122static int i = 1; 5123 ; 5124 return 0; 5125} 5126_ACEOF 5127if ac_fn_c_try_compile "$LINENO"; then : 5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5129$as_echo "yes" >&6; } 5130else 5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5132$as_echo "no" >&6; } 5133 as_fn_error $? "not possible to compile with LIBCOB_CPPFLAGS=\"$LIBCOB_CPPFLAGS\"" "$LINENO" 5 5134fi 5135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5136 CPPFLAGS="$curr_cppflags" 5137 5138fi 5139 5140curr_libs="$LIBS" 5141 5142if test "x$LIBCOB_LIBS" != "x"; then : 5143 5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with LIBCOB_LIBS works" >&5 5145$as_echo_n "checking if linking with LIBCOB_LIBS works... " >&6; } 5146 LIBS="$LIBS $LIBCOB_LIBS" 5147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5148/* end confdefs.h. */ 5149 5150int 5151main () 5152{ 5153return 0; 5154 ; 5155 return 0; 5156} 5157_ACEOF 5158if ac_fn_c_try_link "$LINENO"; then : 5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5160$as_echo "yes" >&6; } 5161else 5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5163$as_echo "no" >&6; } 5164 as_fn_error $? "not possible to link with LIBCOB_LIBS=\"$LIBCOB_LIBS\"" "$LINENO" 5 5165fi 5166rm -f core conftest.err conftest.$ac_objext \ 5167 conftest$ac_exeext conftest.$ac_ext 5168 5169fi 5170 5171 5172if test "x$PROGRAMS_LIBS" != "x"; then : 5173 5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with PROGRAMS_LIBS works" >&5 5175$as_echo_n "checking if linking with PROGRAMS_LIBS works... " >&6; } 5176 LIBS="$LIBS $PROGRAMS_LIBS" 5177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5178/* end confdefs.h. */ 5179 5180int 5181main () 5182{ 5183return 0; 5184 ; 5185 return 0; 5186} 5187_ACEOF 5188if ac_fn_c_try_link "$LINENO"; then : 5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5190$as_echo "yes" >&6; } 5191else 5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5193$as_echo "no" >&6; } 5194 as_fn_error $? "not possible to link with PROGRAMS_LIBS=\"$PROGRAMS_LIBS\"" "$LINENO" 5 5195fi 5196rm -f core conftest.err conftest.$ac_objext \ 5197 conftest$ac_exeext conftest.$ac_ext 5198 5199fi 5200LIBS="$curr_libs" 5201 5202 5203case `pwd` in 5204 *\ * | *\ *) 5205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5206$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5207esac 5208 5209 5210 5211macro_version='2.4.6' 5212macro_revision='2.4.6' 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226ltmain=$ac_aux_dir/ltmain.sh 5227 5228# Make sure we can run config.sub. 5229$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5230 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5231 5232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5233$as_echo_n "checking build system type... " >&6; } 5234if ${ac_cv_build+:} false; then : 5235 $as_echo_n "(cached) " >&6 5236else 5237 ac_build_alias=$build_alias 5238test "x$ac_build_alias" = x && 5239 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5240test "x$ac_build_alias" = x && 5241 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5242ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5243 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5244 5245fi 5246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5247$as_echo "$ac_cv_build" >&6; } 5248case $ac_cv_build in 5249*-*-*) ;; 5250*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5251esac 5252build=$ac_cv_build 5253ac_save_IFS=$IFS; IFS='-' 5254set x $ac_cv_build 5255shift 5256build_cpu=$1 5257build_vendor=$2 5258shift; shift 5259# Remember, the first character of IFS is used to create $*, 5260# except with old shells: 5261build_os=$* 5262IFS=$ac_save_IFS 5263case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5264 5265 5266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5267$as_echo_n "checking host system type... " >&6; } 5268if ${ac_cv_host+:} false; then : 5269 $as_echo_n "(cached) " >&6 5270else 5271 if test "x$host_alias" = x; then 5272 ac_cv_host=$ac_cv_build 5273else 5274 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5275 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5276fi 5277 5278fi 5279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5280$as_echo "$ac_cv_host" >&6; } 5281case $ac_cv_host in 5282*-*-*) ;; 5283*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5284esac 5285host=$ac_cv_host 5286ac_save_IFS=$IFS; IFS='-' 5287set x $ac_cv_host 5288shift 5289host_cpu=$1 5290host_vendor=$2 5291shift; shift 5292# Remember, the first character of IFS is used to create $*, 5293# except with old shells: 5294host_os=$* 5295IFS=$ac_save_IFS 5296case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5297 5298 5299# Backslashify metacharacters that are still active within 5300# double-quoted strings. 5301sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5302 5303# Same as above, but do not quote variable references. 5304double_quote_subst='s/\(["`\\]\)/\\\1/g' 5305 5306# Sed substitution to delay expansion of an escaped shell variable in a 5307# double_quote_subst'ed string. 5308delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5309 5310# Sed substitution to delay expansion of an escaped single quote. 5311delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5312 5313# Sed substitution to avoid accidental globbing in evaled expressions 5314no_glob_subst='s/\*/\\\*/g' 5315 5316ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5317ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5318ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5319 5320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5321$as_echo_n "checking how to print strings... " >&6; } 5322# Test print first, because it will be a builtin if present. 5323if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5324 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5325 ECHO='print -r --' 5326elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5327 ECHO='printf %s\n' 5328else 5329 # Use this function as a fallback that always works. 5330 func_fallback_echo () 5331 { 5332 eval 'cat <<_LTECHO_EOF 5333$1 5334_LTECHO_EOF' 5335 } 5336 ECHO='func_fallback_echo' 5337fi 5338 5339# func_echo_all arg... 5340# Invoke $ECHO with all args, space-separated. 5341func_echo_all () 5342{ 5343 $ECHO "" 5344} 5345 5346case $ECHO in 5347 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5348$as_echo "printf" >&6; } ;; 5349 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5350$as_echo "print -r" >&6; } ;; 5351 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5352$as_echo "cat" >&6; } ;; 5353esac 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5369$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5370if ${ac_cv_path_SED+:} false; then : 5371 $as_echo_n "(cached) " >&6 5372else 5373 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5374 for ac_i in 1 2 3 4 5 6 7; do 5375 ac_script="$ac_script$as_nl$ac_script" 5376 done 5377 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5378 { ac_script=; unset ac_script;} 5379 if test -z "$SED"; then 5380 ac_path_SED_found=false 5381 # Loop through the user's path and test for each of PROGNAME-LIST 5382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5383for as_dir in $PATH 5384do 5385 IFS=$as_save_IFS 5386 test -z "$as_dir" && as_dir=. 5387 for ac_prog in sed gsed; do 5388 for ac_exec_ext in '' $ac_executable_extensions; do 5389 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5390 as_fn_executable_p "$ac_path_SED" || continue 5391# Check for GNU ac_path_SED and select it if it is found. 5392 # Check for GNU $ac_path_SED 5393case `"$ac_path_SED" --version 2>&1` in 5394*GNU*) 5395 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5396*) 5397 ac_count=0 5398 $as_echo_n 0123456789 >"conftest.in" 5399 while : 5400 do 5401 cat "conftest.in" "conftest.in" >"conftest.tmp" 5402 mv "conftest.tmp" "conftest.in" 5403 cp "conftest.in" "conftest.nl" 5404 $as_echo '' >> "conftest.nl" 5405 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5406 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5407 as_fn_arith $ac_count + 1 && ac_count=$as_val 5408 if test $ac_count -gt ${ac_path_SED_max-0}; then 5409 # Best one so far, save it but keep looking for a better one 5410 ac_cv_path_SED="$ac_path_SED" 5411 ac_path_SED_max=$ac_count 5412 fi 5413 # 10*(2^10) chars as input seems more than enough 5414 test $ac_count -gt 10 && break 5415 done 5416 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5417esac 5418 5419 $ac_path_SED_found && break 3 5420 done 5421 done 5422 done 5423IFS=$as_save_IFS 5424 if test -z "$ac_cv_path_SED"; then 5425 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5426 fi 5427else 5428 ac_cv_path_SED=$SED 5429fi 5430 5431fi 5432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5433$as_echo "$ac_cv_path_SED" >&6; } 5434 SED="$ac_cv_path_SED" 5435 rm -f conftest.sed 5436 5437test -z "$SED" && SED=sed 5438Xsed="$SED -e 1s/^X//" 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5451$as_echo_n "checking for fgrep... " >&6; } 5452if ${ac_cv_path_FGREP+:} false; then : 5453 $as_echo_n "(cached) " >&6 5454else 5455 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5456 then ac_cv_path_FGREP="$GREP -F" 5457 else 5458 if test -z "$FGREP"; then 5459 ac_path_FGREP_found=false 5460 # Loop through the user's path and test for each of PROGNAME-LIST 5461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5462for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5463do 5464 IFS=$as_save_IFS 5465 test -z "$as_dir" && as_dir=. 5466 for ac_prog in fgrep; do 5467 for ac_exec_ext in '' $ac_executable_extensions; do 5468 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5469 as_fn_executable_p "$ac_path_FGREP" || continue 5470# Check for GNU ac_path_FGREP and select it if it is found. 5471 # Check for GNU $ac_path_FGREP 5472case `"$ac_path_FGREP" --version 2>&1` in 5473*GNU*) 5474 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5475*) 5476 ac_count=0 5477 $as_echo_n 0123456789 >"conftest.in" 5478 while : 5479 do 5480 cat "conftest.in" "conftest.in" >"conftest.tmp" 5481 mv "conftest.tmp" "conftest.in" 5482 cp "conftest.in" "conftest.nl" 5483 $as_echo 'FGREP' >> "conftest.nl" 5484 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5485 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5486 as_fn_arith $ac_count + 1 && ac_count=$as_val 5487 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5488 # Best one so far, save it but keep looking for a better one 5489 ac_cv_path_FGREP="$ac_path_FGREP" 5490 ac_path_FGREP_max=$ac_count 5491 fi 5492 # 10*(2^10) chars as input seems more than enough 5493 test $ac_count -gt 10 && break 5494 done 5495 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5496esac 5497 5498 $ac_path_FGREP_found && break 3 5499 done 5500 done 5501 done 5502IFS=$as_save_IFS 5503 if test -z "$ac_cv_path_FGREP"; then 5504 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5505 fi 5506else 5507 ac_cv_path_FGREP=$FGREP 5508fi 5509 5510 fi 5511fi 5512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5513$as_echo "$ac_cv_path_FGREP" >&6; } 5514 FGREP="$ac_cv_path_FGREP" 5515 5516 5517test -z "$GREP" && GREP=grep 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537# Check whether --with-gnu-ld was given. 5538if test "${with_gnu_ld+set}" = set; then : 5539 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5540else 5541 with_gnu_ld=no 5542fi 5543 5544ac_prog=ld 5545if test yes = "$GCC"; then 5546 # Check if gcc -print-prog-name=ld gives a path. 5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5548$as_echo_n "checking for ld used by $CC... " >&6; } 5549 case $host in 5550 *-*-mingw*) 5551 # gcc leaves a trailing carriage return, which upsets mingw 5552 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5553 *) 5554 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5555 esac 5556 case $ac_prog in 5557 # Accept absolute paths. 5558 [\\/]* | ?:[\\/]*) 5559 re_direlt='/[^/][^/]*/\.\./' 5560 # Canonicalize the pathname of ld 5561 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5562 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5563 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5564 done 5565 test -z "$LD" && LD=$ac_prog 5566 ;; 5567 "") 5568 # If it fails, then pretend we aren't using GCC. 5569 ac_prog=ld 5570 ;; 5571 *) 5572 # If it is relative, then search for the first ld in PATH. 5573 with_gnu_ld=unknown 5574 ;; 5575 esac 5576elif test yes = "$with_gnu_ld"; then 5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5578$as_echo_n "checking for GNU ld... " >&6; } 5579else 5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5581$as_echo_n "checking for non-GNU ld... " >&6; } 5582fi 5583if ${lt_cv_path_LD+:} false; then : 5584 $as_echo_n "(cached) " >&6 5585else 5586 if test -z "$LD"; then 5587 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5588 for ac_dir in $PATH; do 5589 IFS=$lt_save_ifs 5590 test -z "$ac_dir" && ac_dir=. 5591 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5592 lt_cv_path_LD=$ac_dir/$ac_prog 5593 # Check to see if the program is GNU ld. I'd rather use --version, 5594 # but apparently some variants of GNU ld only accept -v. 5595 # Break only if it was the GNU/non-GNU ld that we prefer. 5596 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5597 *GNU* | *'with BFD'*) 5598 test no != "$with_gnu_ld" && break 5599 ;; 5600 *) 5601 test yes != "$with_gnu_ld" && break 5602 ;; 5603 esac 5604 fi 5605 done 5606 IFS=$lt_save_ifs 5607else 5608 lt_cv_path_LD=$LD # Let the user override the test with a path. 5609fi 5610fi 5611 5612LD=$lt_cv_path_LD 5613if test -n "$LD"; then 5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5615$as_echo "$LD" >&6; } 5616else 5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5618$as_echo "no" >&6; } 5619fi 5620test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5622$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5623if ${lt_cv_prog_gnu_ld+:} false; then : 5624 $as_echo_n "(cached) " >&6 5625else 5626 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5627case `$LD -v 2>&1 </dev/null` in 5628*GNU* | *'with BFD'*) 5629 lt_cv_prog_gnu_ld=yes 5630 ;; 5631*) 5632 lt_cv_prog_gnu_ld=no 5633 ;; 5634esac 5635fi 5636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5637$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5638with_gnu_ld=$lt_cv_prog_gnu_ld 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5649$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5650if ${lt_cv_path_NM+:} false; then : 5651 $as_echo_n "(cached) " >&6 5652else 5653 if test -n "$NM"; then 5654 # Let the user override the test. 5655 lt_cv_path_NM=$NM 5656else 5657 lt_nm_to_check=${ac_tool_prefix}nm 5658 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5659 lt_nm_to_check="$lt_nm_to_check nm" 5660 fi 5661 for lt_tmp_nm in $lt_nm_to_check; do 5662 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5663 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5664 IFS=$lt_save_ifs 5665 test -z "$ac_dir" && ac_dir=. 5666 tmp_nm=$ac_dir/$lt_tmp_nm 5667 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5668 # Check to see if the nm accepts a BSD-compat flag. 5669 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5670 # nm: unknown option "B" ignored 5671 # Tru64's nm complains that /dev/null is an invalid object file 5672 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5673 case $build_os in 5674 mingw*) lt_bad_file=conftest.nm/nofile ;; 5675 *) lt_bad_file=/dev/null ;; 5676 esac 5677 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5678 *$lt_bad_file* | *'Invalid file or object type'*) 5679 lt_cv_path_NM="$tmp_nm -B" 5680 break 2 5681 ;; 5682 *) 5683 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5684 */dev/null*) 5685 lt_cv_path_NM="$tmp_nm -p" 5686 break 2 5687 ;; 5688 *) 5689 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5690 continue # so that we can try to find one that supports BSD flags 5691 ;; 5692 esac 5693 ;; 5694 esac 5695 fi 5696 done 5697 IFS=$lt_save_ifs 5698 done 5699 : ${lt_cv_path_NM=no} 5700fi 5701fi 5702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5703$as_echo "$lt_cv_path_NM" >&6; } 5704if test no != "$lt_cv_path_NM"; then 5705 NM=$lt_cv_path_NM 5706else 5707 # Didn't find any BSD compatible name lister, look for dumpbin. 5708 if test -n "$DUMPBIN"; then : 5709 # Let the user override the test. 5710 else 5711 if test -n "$ac_tool_prefix"; then 5712 for ac_prog in dumpbin "link -dump" 5713 do 5714 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5715set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5717$as_echo_n "checking for $ac_word... " >&6; } 5718if ${ac_cv_prog_DUMPBIN+:} false; then : 5719 $as_echo_n "(cached) " >&6 5720else 5721 if test -n "$DUMPBIN"; then 5722 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5723else 5724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5725for as_dir in $PATH 5726do 5727 IFS=$as_save_IFS 5728 test -z "$as_dir" && as_dir=. 5729 for ac_exec_ext in '' $ac_executable_extensions; do 5730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5731 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5733 break 2 5734 fi 5735done 5736 done 5737IFS=$as_save_IFS 5738 5739fi 5740fi 5741DUMPBIN=$ac_cv_prog_DUMPBIN 5742if test -n "$DUMPBIN"; then 5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5744$as_echo "$DUMPBIN" >&6; } 5745else 5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5747$as_echo "no" >&6; } 5748fi 5749 5750 5751 test -n "$DUMPBIN" && break 5752 done 5753fi 5754if test -z "$DUMPBIN"; then 5755 ac_ct_DUMPBIN=$DUMPBIN 5756 for ac_prog in dumpbin "link -dump" 5757do 5758 # Extract the first word of "$ac_prog", so it can be a program name with args. 5759set dummy $ac_prog; ac_word=$2 5760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5761$as_echo_n "checking for $ac_word... " >&6; } 5762if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5763 $as_echo_n "(cached) " >&6 5764else 5765 if test -n "$ac_ct_DUMPBIN"; then 5766 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5767else 5768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5769for as_dir in $PATH 5770do 5771 IFS=$as_save_IFS 5772 test -z "$as_dir" && as_dir=. 5773 for ac_exec_ext in '' $ac_executable_extensions; do 5774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5775 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5777 break 2 5778 fi 5779done 5780 done 5781IFS=$as_save_IFS 5782 5783fi 5784fi 5785ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5786if test -n "$ac_ct_DUMPBIN"; then 5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5788$as_echo "$ac_ct_DUMPBIN" >&6; } 5789else 5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5791$as_echo "no" >&6; } 5792fi 5793 5794 5795 test -n "$ac_ct_DUMPBIN" && break 5796done 5797 5798 if test "x$ac_ct_DUMPBIN" = x; then 5799 DUMPBIN=":" 5800 else 5801 case $cross_compiling:$ac_tool_warned in 5802yes:) 5803{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5804$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5805ac_tool_warned=yes ;; 5806esac 5807 DUMPBIN=$ac_ct_DUMPBIN 5808 fi 5809fi 5810 5811 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5812 *COFF*) 5813 DUMPBIN="$DUMPBIN -symbols -headers" 5814 ;; 5815 *) 5816 DUMPBIN=: 5817 ;; 5818 esac 5819 fi 5820 5821 if test : != "$DUMPBIN"; then 5822 NM=$DUMPBIN 5823 fi 5824fi 5825test -z "$NM" && NM=nm 5826 5827 5828 5829 5830 5831 5832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5833$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5834if ${lt_cv_nm_interface+:} false; then : 5835 $as_echo_n "(cached) " >&6 5836else 5837 lt_cv_nm_interface="BSD nm" 5838 echo "int some_variable = 0;" > conftest.$ac_ext 5839 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5840 (eval "$ac_compile" 2>conftest.err) 5841 cat conftest.err >&5 5842 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5843 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5844 cat conftest.err >&5 5845 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5846 cat conftest.out >&5 5847 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5848 lt_cv_nm_interface="MS dumpbin" 5849 fi 5850 rm -f conftest* 5851fi 5852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5853$as_echo "$lt_cv_nm_interface" >&6; } 5854 5855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5856$as_echo_n "checking whether ln -s works... " >&6; } 5857LN_S=$as_ln_s 5858if test "$LN_S" = "ln -s"; then 5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5860$as_echo "yes" >&6; } 5861else 5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5863$as_echo "no, using $LN_S" >&6; } 5864fi 5865 5866# find the maximum length of command line arguments 5867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5868$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5869if ${lt_cv_sys_max_cmd_len+:} false; then : 5870 $as_echo_n "(cached) " >&6 5871else 5872 i=0 5873 teststring=ABCD 5874 5875 case $build_os in 5876 msdosdjgpp*) 5877 # On DJGPP, this test can blow up pretty badly due to problems in libc 5878 # (any single argument exceeding 2000 bytes causes a buffer overrun 5879 # during glob expansion). Even if it were fixed, the result of this 5880 # check would be larger than it should be. 5881 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5882 ;; 5883 5884 gnu*) 5885 # Under GNU Hurd, this test is not required because there is 5886 # no limit to the length of command line arguments. 5887 # Libtool will interpret -1 as no limit whatsoever 5888 lt_cv_sys_max_cmd_len=-1; 5889 ;; 5890 5891 cygwin* | mingw* | cegcc*) 5892 # On Win9x/ME, this test blows up -- it succeeds, but takes 5893 # about 5 minutes as the teststring grows exponentially. 5894 # Worse, since 9x/ME are not pre-emptively multitasking, 5895 # you end up with a "frozen" computer, even though with patience 5896 # the test eventually succeeds (with a max line length of 256k). 5897 # Instead, let's just punt: use the minimum linelength reported by 5898 # all of the supported platforms: 8192 (on NT/2K/XP). 5899 lt_cv_sys_max_cmd_len=8192; 5900 ;; 5901 5902 mint*) 5903 # On MiNT this can take a long time and run out of memory. 5904 lt_cv_sys_max_cmd_len=8192; 5905 ;; 5906 5907 amigaos*) 5908 # On AmigaOS with pdksh, this test takes hours, literally. 5909 # So we just punt and use a minimum line length of 8192. 5910 lt_cv_sys_max_cmd_len=8192; 5911 ;; 5912 5913 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5914 # This has been around since 386BSD, at least. Likely further. 5915 if test -x /sbin/sysctl; then 5916 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5917 elif test -x /usr/sbin/sysctl; then 5918 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5919 else 5920 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5921 fi 5922 # And add a safety zone 5923 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5924 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5925 ;; 5926 5927 interix*) 5928 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5929 lt_cv_sys_max_cmd_len=196608 5930 ;; 5931 5932 os2*) 5933 # The test takes a long time on OS/2. 5934 lt_cv_sys_max_cmd_len=8192 5935 ;; 5936 5937 osf*) 5938 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5939 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5940 # nice to cause kernel panics so lets avoid the loop below. 5941 # First set a reasonable default. 5942 lt_cv_sys_max_cmd_len=16384 5943 # 5944 if test -x /sbin/sysconfig; then 5945 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5946 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5947 esac 5948 fi 5949 ;; 5950 sco3.2v5*) 5951 lt_cv_sys_max_cmd_len=102400 5952 ;; 5953 sysv5* | sco5v6* | sysv4.2uw2*) 5954 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5955 if test -n "$kargmax"; then 5956 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5957 else 5958 lt_cv_sys_max_cmd_len=32768 5959 fi 5960 ;; 5961 *) 5962 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5963 if test -n "$lt_cv_sys_max_cmd_len" && \ 5964 test undefined != "$lt_cv_sys_max_cmd_len"; then 5965 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5966 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5967 else 5968 # Make teststring a little bigger before we do anything with it. 5969 # a 1K string should be a reasonable start. 5970 for i in 1 2 3 4 5 6 7 8; do 5971 teststring=$teststring$teststring 5972 done 5973 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5974 # If test is not a shell built-in, we'll probably end up computing a 5975 # maximum length that is only half of the actual maximum length, but 5976 # we can't tell. 5977 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5978 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5979 test 17 != "$i" # 1/2 MB should be enough 5980 do 5981 i=`expr $i + 1` 5982 teststring=$teststring$teststring 5983 done 5984 # Only check the string length outside the loop. 5985 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5986 teststring= 5987 # Add a significant safety factor because C++ compilers can tack on 5988 # massive amounts of additional arguments before passing them to the 5989 # linker. It appears as though 1/2 is a usable value. 5990 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5991 fi 5992 ;; 5993 esac 5994 5995fi 5996 5997if test -n "$lt_cv_sys_max_cmd_len"; then 5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5999$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6000else 6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6002$as_echo "none" >&6; } 6003fi 6004max_cmd_len=$lt_cv_sys_max_cmd_len 6005 6006 6007 6008 6009 6010 6011: ${CP="cp -f"} 6012: ${MV="mv -f"} 6013: ${RM="rm -f"} 6014 6015if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6016 lt_unset=unset 6017else 6018 lt_unset=false 6019fi 6020 6021 6022 6023 6024 6025# test EBCDIC or ASCII 6026case `echo X|tr X '\101'` in 6027 A) # ASCII based system 6028 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6029 lt_SP2NL='tr \040 \012' 6030 lt_NL2SP='tr \015\012 \040\040' 6031 ;; 6032 *) # EBCDIC based system 6033 lt_SP2NL='tr \100 \n' 6034 lt_NL2SP='tr \r\n \100\100' 6035 ;; 6036esac 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6047$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6048if ${lt_cv_to_host_file_cmd+:} false; then : 6049 $as_echo_n "(cached) " >&6 6050else 6051 case $host in 6052 *-*-mingw* ) 6053 case $build in 6054 *-*-mingw* ) # actually msys 6055 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6056 ;; 6057 *-*-cygwin* ) 6058 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6059 ;; 6060 * ) # otherwise, assume *nix 6061 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6062 ;; 6063 esac 6064 ;; 6065 *-*-cygwin* ) 6066 case $build in 6067 *-*-mingw* ) # actually msys 6068 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6069 ;; 6070 *-*-cygwin* ) 6071 lt_cv_to_host_file_cmd=func_convert_file_noop 6072 ;; 6073 * ) # otherwise, assume *nix 6074 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6075 ;; 6076 esac 6077 ;; 6078 * ) # unhandled hosts (and "normal" native builds) 6079 lt_cv_to_host_file_cmd=func_convert_file_noop 6080 ;; 6081esac 6082 6083fi 6084 6085to_host_file_cmd=$lt_cv_to_host_file_cmd 6086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6087$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6088 6089 6090 6091 6092 6093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6094$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6095if ${lt_cv_to_tool_file_cmd+:} false; then : 6096 $as_echo_n "(cached) " >&6 6097else 6098 #assume ordinary cross tools, or native build. 6099lt_cv_to_tool_file_cmd=func_convert_file_noop 6100case $host in 6101 *-*-mingw* ) 6102 case $build in 6103 *-*-mingw* ) # actually msys 6104 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6105 ;; 6106 esac 6107 ;; 6108esac 6109 6110fi 6111 6112to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6114$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6115 6116 6117 6118 6119 6120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6121$as_echo_n "checking for $LD option to reload object files... " >&6; } 6122if ${lt_cv_ld_reload_flag+:} false; then : 6123 $as_echo_n "(cached) " >&6 6124else 6125 lt_cv_ld_reload_flag='-r' 6126fi 6127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6128$as_echo "$lt_cv_ld_reload_flag" >&6; } 6129reload_flag=$lt_cv_ld_reload_flag 6130case $reload_flag in 6131"" | " "*) ;; 6132*) reload_flag=" $reload_flag" ;; 6133esac 6134reload_cmds='$LD$reload_flag -o $output$reload_objs' 6135case $host_os in 6136 cygwin* | mingw* | pw32* | cegcc*) 6137 if test yes != "$GCC"; then 6138 reload_cmds=false 6139 fi 6140 ;; 6141 darwin*) 6142 if test yes = "$GCC"; then 6143 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6144 else 6145 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6146 fi 6147 ;; 6148esac 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158if test -n "$ac_tool_prefix"; then 6159 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6160set dummy ${ac_tool_prefix}objdump; ac_word=$2 6161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6162$as_echo_n "checking for $ac_word... " >&6; } 6163if ${ac_cv_prog_OBJDUMP+:} false; then : 6164 $as_echo_n "(cached) " >&6 6165else 6166 if test -n "$OBJDUMP"; then 6167 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6168else 6169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6170for as_dir in $PATH 6171do 6172 IFS=$as_save_IFS 6173 test -z "$as_dir" && as_dir=. 6174 for ac_exec_ext in '' $ac_executable_extensions; do 6175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6176 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6178 break 2 6179 fi 6180done 6181 done 6182IFS=$as_save_IFS 6183 6184fi 6185fi 6186OBJDUMP=$ac_cv_prog_OBJDUMP 6187if test -n "$OBJDUMP"; then 6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6189$as_echo "$OBJDUMP" >&6; } 6190else 6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6192$as_echo "no" >&6; } 6193fi 6194 6195 6196fi 6197if test -z "$ac_cv_prog_OBJDUMP"; then 6198 ac_ct_OBJDUMP=$OBJDUMP 6199 # Extract the first word of "objdump", so it can be a program name with args. 6200set dummy objdump; ac_word=$2 6201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6202$as_echo_n "checking for $ac_word... " >&6; } 6203if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6204 $as_echo_n "(cached) " >&6 6205else 6206 if test -n "$ac_ct_OBJDUMP"; then 6207 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6208else 6209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6210for as_dir in $PATH 6211do 6212 IFS=$as_save_IFS 6213 test -z "$as_dir" && as_dir=. 6214 for ac_exec_ext in '' $ac_executable_extensions; do 6215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6216 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6218 break 2 6219 fi 6220done 6221 done 6222IFS=$as_save_IFS 6223 6224fi 6225fi 6226ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6227if test -n "$ac_ct_OBJDUMP"; then 6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6229$as_echo "$ac_ct_OBJDUMP" >&6; } 6230else 6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6232$as_echo "no" >&6; } 6233fi 6234 6235 if test "x$ac_ct_OBJDUMP" = x; then 6236 OBJDUMP="false" 6237 else 6238 case $cross_compiling:$ac_tool_warned in 6239yes:) 6240{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6241$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6242ac_tool_warned=yes ;; 6243esac 6244 OBJDUMP=$ac_ct_OBJDUMP 6245 fi 6246else 6247 OBJDUMP="$ac_cv_prog_OBJDUMP" 6248fi 6249 6250test -z "$OBJDUMP" && OBJDUMP=objdump 6251 6252 6253 6254 6255 6256 6257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6258$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6259if ${lt_cv_deplibs_check_method+:} false; then : 6260 $as_echo_n "(cached) " >&6 6261else 6262 lt_cv_file_magic_cmd='$MAGIC_CMD' 6263lt_cv_file_magic_test_file= 6264lt_cv_deplibs_check_method='unknown' 6265# Need to set the preceding variable on all platforms that support 6266# interlibrary dependencies. 6267# 'none' -- dependencies not supported. 6268# 'unknown' -- same as none, but documents that we really don't know. 6269# 'pass_all' -- all dependencies passed with no checks. 6270# 'test_compile' -- check by making test program. 6271# 'file_magic [[regex]]' -- check by looking for files in library path 6272# that responds to the $file_magic_cmd with a given extended regex. 6273# If you have 'file' or equivalent on your system and you're not sure 6274# whether 'pass_all' will *always* work, you probably want this one. 6275 6276case $host_os in 6277aix[4-9]*) 6278 lt_cv_deplibs_check_method=pass_all 6279 ;; 6280 6281beos*) 6282 lt_cv_deplibs_check_method=pass_all 6283 ;; 6284 6285bsdi[45]*) 6286 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6287 lt_cv_file_magic_cmd='/usr/bin/file -L' 6288 lt_cv_file_magic_test_file=/shlib/libc.so 6289 ;; 6290 6291cygwin*) 6292 # func_win32_libid is a shell function defined in ltmain.sh 6293 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6294 lt_cv_file_magic_cmd='func_win32_libid' 6295 ;; 6296 6297mingw* | pw32*) 6298 # Base MSYS/MinGW do not provide the 'file' command needed by 6299 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6300 # unless we find 'file', for example because we are cross-compiling. 6301 if ( file / ) >/dev/null 2>&1; then 6302 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6303 lt_cv_file_magic_cmd='func_win32_libid' 6304 else 6305 # Keep this pattern in sync with the one in func_win32_libid. 6306 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6307 lt_cv_file_magic_cmd='$OBJDUMP -f' 6308 fi 6309 ;; 6310 6311cegcc*) 6312 # use the weaker test based on 'objdump'. See mingw*. 6313 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6314 lt_cv_file_magic_cmd='$OBJDUMP -f' 6315 ;; 6316 6317darwin* | rhapsody*) 6318 lt_cv_deplibs_check_method=pass_all 6319 ;; 6320 6321freebsd* | dragonfly*) 6322 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6323 case $host_cpu in 6324 i*86 ) 6325 # Not sure whether the presence of OpenBSD here was a mistake. 6326 # Let's accept both of them until this is cleared up. 6327 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6328 lt_cv_file_magic_cmd=/usr/bin/file 6329 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6330 ;; 6331 esac 6332 else 6333 lt_cv_deplibs_check_method=pass_all 6334 fi 6335 ;; 6336 6337haiku*) 6338 lt_cv_deplibs_check_method=pass_all 6339 ;; 6340 6341hpux10.20* | hpux11*) 6342 lt_cv_file_magic_cmd=/usr/bin/file 6343 case $host_cpu in 6344 ia64*) 6345 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6346 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6347 ;; 6348 hppa*64*) 6349 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 6350 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6351 ;; 6352 *) 6353 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6354 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6355 ;; 6356 esac 6357 ;; 6358 6359interix[3-9]*) 6360 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6361 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6362 ;; 6363 6364irix5* | irix6* | nonstopux*) 6365 case $LD in 6366 *-32|*"-32 ") libmagic=32-bit;; 6367 *-n32|*"-n32 ") libmagic=N32;; 6368 *-64|*"-64 ") libmagic=64-bit;; 6369 *) libmagic=never-match;; 6370 esac 6371 lt_cv_deplibs_check_method=pass_all 6372 ;; 6373 6374# This must be glibc/ELF. 6375linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6376 lt_cv_deplibs_check_method=pass_all 6377 ;; 6378 6379netbsd*) 6380 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6381 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6382 else 6383 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6384 fi 6385 ;; 6386 6387newos6*) 6388 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6389 lt_cv_file_magic_cmd=/usr/bin/file 6390 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6391 ;; 6392 6393*nto* | *qnx*) 6394 lt_cv_deplibs_check_method=pass_all 6395 ;; 6396 6397openbsd* | bitrig*) 6398 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6399 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6400 else 6401 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6402 fi 6403 ;; 6404 6405osf3* | osf4* | osf5*) 6406 lt_cv_deplibs_check_method=pass_all 6407 ;; 6408 6409rdos*) 6410 lt_cv_deplibs_check_method=pass_all 6411 ;; 6412 6413solaris*) 6414 lt_cv_deplibs_check_method=pass_all 6415 ;; 6416 6417sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6418 lt_cv_deplibs_check_method=pass_all 6419 ;; 6420 6421sysv4 | sysv4.3*) 6422 case $host_vendor in 6423 motorola) 6424 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' 6425 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6426 ;; 6427 ncr) 6428 lt_cv_deplibs_check_method=pass_all 6429 ;; 6430 sequent) 6431 lt_cv_file_magic_cmd='/bin/file' 6432 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6433 ;; 6434 sni) 6435 lt_cv_file_magic_cmd='/bin/file' 6436 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6437 lt_cv_file_magic_test_file=/lib/libc.so 6438 ;; 6439 siemens) 6440 lt_cv_deplibs_check_method=pass_all 6441 ;; 6442 pc) 6443 lt_cv_deplibs_check_method=pass_all 6444 ;; 6445 esac 6446 ;; 6447 6448tpf*) 6449 lt_cv_deplibs_check_method=pass_all 6450 ;; 6451os2*) 6452 lt_cv_deplibs_check_method=pass_all 6453 ;; 6454esac 6455 6456fi 6457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6458$as_echo "$lt_cv_deplibs_check_method" >&6; } 6459 6460file_magic_glob= 6461want_nocaseglob=no 6462if test "$build" = "$host"; then 6463 case $host_os in 6464 mingw* | pw32*) 6465 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6466 want_nocaseglob=yes 6467 else 6468 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6469 fi 6470 ;; 6471 esac 6472fi 6473 6474file_magic_cmd=$lt_cv_file_magic_cmd 6475deplibs_check_method=$lt_cv_deplibs_check_method 6476test -z "$deplibs_check_method" && deplibs_check_method=unknown 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499if test -n "$ac_tool_prefix"; then 6500 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6501set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6503$as_echo_n "checking for $ac_word... " >&6; } 6504if ${ac_cv_prog_DLLTOOL+:} false; then : 6505 $as_echo_n "(cached) " >&6 6506else 6507 if test -n "$DLLTOOL"; then 6508 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6509else 6510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6511for as_dir in $PATH 6512do 6513 IFS=$as_save_IFS 6514 test -z "$as_dir" && as_dir=. 6515 for ac_exec_ext in '' $ac_executable_extensions; do 6516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6517 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6519 break 2 6520 fi 6521done 6522 done 6523IFS=$as_save_IFS 6524 6525fi 6526fi 6527DLLTOOL=$ac_cv_prog_DLLTOOL 6528if test -n "$DLLTOOL"; then 6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6530$as_echo "$DLLTOOL" >&6; } 6531else 6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6533$as_echo "no" >&6; } 6534fi 6535 6536 6537fi 6538if test -z "$ac_cv_prog_DLLTOOL"; then 6539 ac_ct_DLLTOOL=$DLLTOOL 6540 # Extract the first word of "dlltool", so it can be a program name with args. 6541set dummy dlltool; ac_word=$2 6542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6543$as_echo_n "checking for $ac_word... " >&6; } 6544if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6545 $as_echo_n "(cached) " >&6 6546else 6547 if test -n "$ac_ct_DLLTOOL"; then 6548 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6549else 6550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6551for as_dir in $PATH 6552do 6553 IFS=$as_save_IFS 6554 test -z "$as_dir" && as_dir=. 6555 for ac_exec_ext in '' $ac_executable_extensions; do 6556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6557 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6559 break 2 6560 fi 6561done 6562 done 6563IFS=$as_save_IFS 6564 6565fi 6566fi 6567ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6568if test -n "$ac_ct_DLLTOOL"; then 6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6570$as_echo "$ac_ct_DLLTOOL" >&6; } 6571else 6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6573$as_echo "no" >&6; } 6574fi 6575 6576 if test "x$ac_ct_DLLTOOL" = x; then 6577 DLLTOOL="false" 6578 else 6579 case $cross_compiling:$ac_tool_warned in 6580yes:) 6581{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6582$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6583ac_tool_warned=yes ;; 6584esac 6585 DLLTOOL=$ac_ct_DLLTOOL 6586 fi 6587else 6588 DLLTOOL="$ac_cv_prog_DLLTOOL" 6589fi 6590 6591test -z "$DLLTOOL" && DLLTOOL=dlltool 6592 6593 6594 6595 6596 6597 6598 6599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6600$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6601if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6602 $as_echo_n "(cached) " >&6 6603else 6604 lt_cv_sharedlib_from_linklib_cmd='unknown' 6605 6606case $host_os in 6607cygwin* | mingw* | pw32* | cegcc*) 6608 # two different shell functions defined in ltmain.sh; 6609 # decide which one to use based on capabilities of $DLLTOOL 6610 case `$DLLTOOL --help 2>&1` in 6611 *--identify-strict*) 6612 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6613 ;; 6614 *) 6615 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6616 ;; 6617 esac 6618 ;; 6619*) 6620 # fallback: assume linklib IS sharedlib 6621 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6622 ;; 6623esac 6624 6625fi 6626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6627$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6628sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6629test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6630 6631 6632 6633 6634 6635 6636 6637if test -n "$ac_tool_prefix"; then 6638 for ac_prog in ar 6639 do 6640 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6641set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6643$as_echo_n "checking for $ac_word... " >&6; } 6644if ${ac_cv_prog_AR+:} false; then : 6645 $as_echo_n "(cached) " >&6 6646else 6647 if test -n "$AR"; then 6648 ac_cv_prog_AR="$AR" # Let the user override the test. 6649else 6650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6651for as_dir in $PATH 6652do 6653 IFS=$as_save_IFS 6654 test -z "$as_dir" && as_dir=. 6655 for ac_exec_ext in '' $ac_executable_extensions; do 6656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6657 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6659 break 2 6660 fi 6661done 6662 done 6663IFS=$as_save_IFS 6664 6665fi 6666fi 6667AR=$ac_cv_prog_AR 6668if test -n "$AR"; then 6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6670$as_echo "$AR" >&6; } 6671else 6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6673$as_echo "no" >&6; } 6674fi 6675 6676 6677 test -n "$AR" && break 6678 done 6679fi 6680if test -z "$AR"; then 6681 ac_ct_AR=$AR 6682 for ac_prog in ar 6683do 6684 # Extract the first word of "$ac_prog", so it can be a program name with args. 6685set dummy $ac_prog; ac_word=$2 6686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6687$as_echo_n "checking for $ac_word... " >&6; } 6688if ${ac_cv_prog_ac_ct_AR+:} false; then : 6689 $as_echo_n "(cached) " >&6 6690else 6691 if test -n "$ac_ct_AR"; then 6692 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6693else 6694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6695for as_dir in $PATH 6696do 6697 IFS=$as_save_IFS 6698 test -z "$as_dir" && as_dir=. 6699 for ac_exec_ext in '' $ac_executable_extensions; do 6700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6701 ac_cv_prog_ac_ct_AR="$ac_prog" 6702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6703 break 2 6704 fi 6705done 6706 done 6707IFS=$as_save_IFS 6708 6709fi 6710fi 6711ac_ct_AR=$ac_cv_prog_ac_ct_AR 6712if test -n "$ac_ct_AR"; then 6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6714$as_echo "$ac_ct_AR" >&6; } 6715else 6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6717$as_echo "no" >&6; } 6718fi 6719 6720 6721 test -n "$ac_ct_AR" && break 6722done 6723 6724 if test "x$ac_ct_AR" = x; then 6725 AR="false" 6726 else 6727 case $cross_compiling:$ac_tool_warned in 6728yes:) 6729{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6730$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6731ac_tool_warned=yes ;; 6732esac 6733 AR=$ac_ct_AR 6734 fi 6735fi 6736 6737: ${AR=ar} 6738: ${AR_FLAGS=cru} 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6751$as_echo_n "checking for archiver @FILE support... " >&6; } 6752if ${lt_cv_ar_at_file+:} false; then : 6753 $as_echo_n "(cached) " >&6 6754else 6755 lt_cv_ar_at_file=no 6756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6757/* end confdefs.h. */ 6758 6759int 6760main () 6761{ 6762 6763 ; 6764 return 0; 6765} 6766_ACEOF 6767if ac_fn_c_try_compile "$LINENO"; then : 6768 echo conftest.$ac_objext > conftest.lst 6769 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6771 (eval $lt_ar_try) 2>&5 6772 ac_status=$? 6773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6774 test $ac_status = 0; } 6775 if test 0 -eq "$ac_status"; then 6776 # Ensure the archiver fails upon bogus file names. 6777 rm -f conftest.$ac_objext libconftest.a 6778 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6779 (eval $lt_ar_try) 2>&5 6780 ac_status=$? 6781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6782 test $ac_status = 0; } 6783 if test 0 -ne "$ac_status"; then 6784 lt_cv_ar_at_file=@ 6785 fi 6786 fi 6787 rm -f conftest.* libconftest.a 6788 6789fi 6790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6791 6792fi 6793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6794$as_echo "$lt_cv_ar_at_file" >&6; } 6795 6796if test no = "$lt_cv_ar_at_file"; then 6797 archiver_list_spec= 6798else 6799 archiver_list_spec=$lt_cv_ar_at_file 6800fi 6801 6802 6803 6804 6805 6806 6807 6808if test -n "$ac_tool_prefix"; then 6809 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6810set dummy ${ac_tool_prefix}strip; ac_word=$2 6811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6812$as_echo_n "checking for $ac_word... " >&6; } 6813if ${ac_cv_prog_STRIP+:} false; then : 6814 $as_echo_n "(cached) " >&6 6815else 6816 if test -n "$STRIP"; then 6817 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6818else 6819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6820for as_dir in $PATH 6821do 6822 IFS=$as_save_IFS 6823 test -z "$as_dir" && as_dir=. 6824 for ac_exec_ext in '' $ac_executable_extensions; do 6825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6826 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6828 break 2 6829 fi 6830done 6831 done 6832IFS=$as_save_IFS 6833 6834fi 6835fi 6836STRIP=$ac_cv_prog_STRIP 6837if test -n "$STRIP"; then 6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6839$as_echo "$STRIP" >&6; } 6840else 6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6842$as_echo "no" >&6; } 6843fi 6844 6845 6846fi 6847if test -z "$ac_cv_prog_STRIP"; then 6848 ac_ct_STRIP=$STRIP 6849 # Extract the first word of "strip", so it can be a program name with args. 6850set dummy strip; ac_word=$2 6851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6852$as_echo_n "checking for $ac_word... " >&6; } 6853if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6854 $as_echo_n "(cached) " >&6 6855else 6856 if test -n "$ac_ct_STRIP"; then 6857 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6858else 6859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6860for as_dir in $PATH 6861do 6862 IFS=$as_save_IFS 6863 test -z "$as_dir" && as_dir=. 6864 for ac_exec_ext in '' $ac_executable_extensions; do 6865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6866 ac_cv_prog_ac_ct_STRIP="strip" 6867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6868 break 2 6869 fi 6870done 6871 done 6872IFS=$as_save_IFS 6873 6874fi 6875fi 6876ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6877if test -n "$ac_ct_STRIP"; then 6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6879$as_echo "$ac_ct_STRIP" >&6; } 6880else 6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6882$as_echo "no" >&6; } 6883fi 6884 6885 if test "x$ac_ct_STRIP" = x; then 6886 STRIP=":" 6887 else 6888 case $cross_compiling:$ac_tool_warned in 6889yes:) 6890{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6891$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6892ac_tool_warned=yes ;; 6893esac 6894 STRIP=$ac_ct_STRIP 6895 fi 6896else 6897 STRIP="$ac_cv_prog_STRIP" 6898fi 6899 6900test -z "$STRIP" && STRIP=: 6901 6902 6903 6904 6905 6906 6907if test -n "$ac_tool_prefix"; then 6908 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6909set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6911$as_echo_n "checking for $ac_word... " >&6; } 6912if ${ac_cv_prog_RANLIB+:} false; then : 6913 $as_echo_n "(cached) " >&6 6914else 6915 if test -n "$RANLIB"; then 6916 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6917else 6918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6919for as_dir in $PATH 6920do 6921 IFS=$as_save_IFS 6922 test -z "$as_dir" && as_dir=. 6923 for ac_exec_ext in '' $ac_executable_extensions; do 6924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6925 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6927 break 2 6928 fi 6929done 6930 done 6931IFS=$as_save_IFS 6932 6933fi 6934fi 6935RANLIB=$ac_cv_prog_RANLIB 6936if test -n "$RANLIB"; then 6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6938$as_echo "$RANLIB" >&6; } 6939else 6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6941$as_echo "no" >&6; } 6942fi 6943 6944 6945fi 6946if test -z "$ac_cv_prog_RANLIB"; then 6947 ac_ct_RANLIB=$RANLIB 6948 # Extract the first word of "ranlib", so it can be a program name with args. 6949set dummy ranlib; ac_word=$2 6950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6951$as_echo_n "checking for $ac_word... " >&6; } 6952if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6953 $as_echo_n "(cached) " >&6 6954else 6955 if test -n "$ac_ct_RANLIB"; then 6956 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6957else 6958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6959for as_dir in $PATH 6960do 6961 IFS=$as_save_IFS 6962 test -z "$as_dir" && as_dir=. 6963 for ac_exec_ext in '' $ac_executable_extensions; do 6964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6965 ac_cv_prog_ac_ct_RANLIB="ranlib" 6966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6967 break 2 6968 fi 6969done 6970 done 6971IFS=$as_save_IFS 6972 6973fi 6974fi 6975ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6976if test -n "$ac_ct_RANLIB"; then 6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6978$as_echo "$ac_ct_RANLIB" >&6; } 6979else 6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6981$as_echo "no" >&6; } 6982fi 6983 6984 if test "x$ac_ct_RANLIB" = x; then 6985 RANLIB=":" 6986 else 6987 case $cross_compiling:$ac_tool_warned in 6988yes:) 6989{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6990$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6991ac_tool_warned=yes ;; 6992esac 6993 RANLIB=$ac_ct_RANLIB 6994 fi 6995else 6996 RANLIB="$ac_cv_prog_RANLIB" 6997fi 6998 6999test -z "$RANLIB" && RANLIB=: 7000 7001 7002 7003 7004 7005 7006# Determine commands to create old-style static archives. 7007old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7008old_postinstall_cmds='chmod 644 $oldlib' 7009old_postuninstall_cmds= 7010 7011if test -n "$RANLIB"; then 7012 case $host_os in 7013 bitrig* | openbsd*) 7014 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7015 ;; 7016 *) 7017 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7018 ;; 7019 esac 7020 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7021fi 7022 7023case $host_os in 7024 darwin*) 7025 lock_old_archive_extraction=yes ;; 7026 *) 7027 lock_old_archive_extraction=no ;; 7028esac 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068# If no C compiler was specified, use CC. 7069LTCC=${LTCC-"$CC"} 7070 7071# If no C compiler flags were specified, use CFLAGS. 7072LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7073 7074# Allow CC to be a program name with arguments. 7075compiler=$CC 7076 7077 7078# Check for command to grab the raw symbol name followed by C symbol from nm. 7079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7080$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7081if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7082 $as_echo_n "(cached) " >&6 7083else 7084 7085# These are sane defaults that work on at least a few old systems. 7086# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7087 7088# Character class describing NM global symbol codes. 7089symcode='[BCDEGRST]' 7090 7091# Regexp to match symbols that can be accessed directly from C. 7092sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7093 7094# Define system-specific variables. 7095case $host_os in 7096aix*) 7097 symcode='[BCDT]' 7098 ;; 7099cygwin* | mingw* | pw32* | cegcc*) 7100 symcode='[ABCDGISTW]' 7101 ;; 7102hpux*) 7103 if test ia64 = "$host_cpu"; then 7104 symcode='[ABCDEGRST]' 7105 fi 7106 ;; 7107irix* | nonstopux*) 7108 symcode='[BCDEGRST]' 7109 ;; 7110osf*) 7111 symcode='[BCDEGQRST]' 7112 ;; 7113solaris*) 7114 symcode='[BDRT]' 7115 ;; 7116sco3.2v5*) 7117 symcode='[DT]' 7118 ;; 7119sysv4.2uw2*) 7120 symcode='[DT]' 7121 ;; 7122sysv5* | sco5v6* | unixware* | OpenUNIX*) 7123 symcode='[ABDT]' 7124 ;; 7125sysv4) 7126 symcode='[DFNSTU]' 7127 ;; 7128esac 7129 7130# If we're using GNU nm, then use its standard symbol codes. 7131case `$NM -V 2>&1` in 7132*GNU* | *'with BFD'*) 7133 symcode='[ABCDGIRSTW]' ;; 7134esac 7135 7136if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7137 # Gets list of data symbols to import. 7138 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7139 # Adjust the below global symbol transforms to fixup imported variables. 7140 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7141 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7142 lt_c_name_lib_hook="\ 7143 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7144 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7145else 7146 # Disable hooks by default. 7147 lt_cv_sys_global_symbol_to_import= 7148 lt_cdecl_hook= 7149 lt_c_name_hook= 7150 lt_c_name_lib_hook= 7151fi 7152 7153# Transform an extracted symbol line into a proper C declaration. 7154# Some systems (esp. on ia64) link data and code symbols differently, 7155# so use this general approach. 7156lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7157$lt_cdecl_hook\ 7158" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7159" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7160 7161# Transform an extracted symbol line into symbol name and symbol address 7162lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7163$lt_c_name_hook\ 7164" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7165" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7166 7167# Transform an extracted symbol line into symbol name with lib prefix and 7168# symbol address. 7169lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7170$lt_c_name_lib_hook\ 7171" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7172" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7173" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7174 7175# Handle CRLF in mingw tool chain 7176opt_cr= 7177case $build_os in 7178mingw*) 7179 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7180 ;; 7181esac 7182 7183# Try without a prefix underscore, then with it. 7184for ac_symprfx in "" "_"; do 7185 7186 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7187 symxfrm="\\1 $ac_symprfx\\2 \\2" 7188 7189 # Write the raw and C identifiers. 7190 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7191 # Fake it for dumpbin and say T for any non-static function, 7192 # D for any global variable and I for any imported variable. 7193 # Also find C++ and __fastcall symbols from MSVC++, 7194 # which start with @ or ?. 7195 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7196" {last_section=section; section=\$ 3};"\ 7197" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7198" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7199" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7200" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7201" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7202" \$ 0!~/External *\|/{next};"\ 7203" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7204" {if(hide[section]) next};"\ 7205" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7206" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7207" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7208" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7209" ' prfx=^$ac_symprfx" 7210 else 7211 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7212 fi 7213 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7214 7215 # Check to see that the pipe works correctly. 7216 pipe_works=no 7217 7218 rm -f conftest* 7219 cat > conftest.$ac_ext <<_LT_EOF 7220#ifdef __cplusplus 7221extern "C" { 7222#endif 7223char nm_test_var; 7224void nm_test_func(void); 7225void nm_test_func(void){} 7226#ifdef __cplusplus 7227} 7228#endif 7229int main(){nm_test_var='a';nm_test_func();return(0);} 7230_LT_EOF 7231 7232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7233 (eval $ac_compile) 2>&5 7234 ac_status=$? 7235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7236 test $ac_status = 0; }; then 7237 # Now try to grab the symbols. 7238 nlist=conftest.nm 7239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7240 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7241 ac_status=$? 7242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7243 test $ac_status = 0; } && test -s "$nlist"; then 7244 # Try sorting and uniquifying the output. 7245 if sort "$nlist" | uniq > "$nlist"T; then 7246 mv -f "$nlist"T "$nlist" 7247 else 7248 rm -f "$nlist"T 7249 fi 7250 7251 # Make sure that we snagged all the symbols we need. 7252 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7253 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7254 cat <<_LT_EOF > conftest.$ac_ext 7255/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7256#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7257/* DATA imports from DLLs on WIN32 can't be const, because runtime 7258 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7259# define LT_DLSYM_CONST 7260#elif defined __osf__ 7261/* This system does not cope well with relocations in const data. */ 7262# define LT_DLSYM_CONST 7263#else 7264# define LT_DLSYM_CONST const 7265#endif 7266 7267#ifdef __cplusplus 7268extern "C" { 7269#endif 7270 7271_LT_EOF 7272 # Now generate the symbol file. 7273 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7274 7275 cat <<_LT_EOF >> conftest.$ac_ext 7276 7277/* The mapping between symbol names and symbols. */ 7278LT_DLSYM_CONST struct { 7279 const char *name; 7280 void *address; 7281} 7282lt__PROGRAM__LTX_preloaded_symbols[] = 7283{ 7284 { "@PROGRAM@", (void *) 0 }, 7285_LT_EOF 7286 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7287 cat <<\_LT_EOF >> conftest.$ac_ext 7288 {0, (void *) 0} 7289}; 7290 7291/* This works around a problem in FreeBSD linker */ 7292#ifdef FREEBSD_WORKAROUND 7293static const void *lt_preloaded_setup() { 7294 return lt__PROGRAM__LTX_preloaded_symbols; 7295} 7296#endif 7297 7298#ifdef __cplusplus 7299} 7300#endif 7301_LT_EOF 7302 # Now try linking the two files. 7303 mv conftest.$ac_objext conftstm.$ac_objext 7304 lt_globsym_save_LIBS=$LIBS 7305 lt_globsym_save_CFLAGS=$CFLAGS 7306 LIBS=conftstm.$ac_objext 7307 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7309 (eval $ac_link) 2>&5 7310 ac_status=$? 7311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7312 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7313 pipe_works=yes 7314 fi 7315 LIBS=$lt_globsym_save_LIBS 7316 CFLAGS=$lt_globsym_save_CFLAGS 7317 else 7318 echo "cannot find nm_test_func in $nlist" >&5 7319 fi 7320 else 7321 echo "cannot find nm_test_var in $nlist" >&5 7322 fi 7323 else 7324 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7325 fi 7326 else 7327 echo "$progname: failed program was:" >&5 7328 cat conftest.$ac_ext >&5 7329 fi 7330 rm -rf conftest* conftst* 7331 7332 # Do not use the global_symbol_pipe unless it works. 7333 if test yes = "$pipe_works"; then 7334 break 7335 else 7336 lt_cv_sys_global_symbol_pipe= 7337 fi 7338done 7339 7340fi 7341 7342if test -z "$lt_cv_sys_global_symbol_pipe"; then 7343 lt_cv_sys_global_symbol_to_cdecl= 7344fi 7345if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7347$as_echo "failed" >&6; } 7348else 7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7350$as_echo "ok" >&6; } 7351fi 7352 7353# Response file support. 7354if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7355 nm_file_list_spec='@' 7356elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7357 nm_file_list_spec='@' 7358fi 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7397$as_echo_n "checking for sysroot... " >&6; } 7398 7399# Check whether --with-sysroot was given. 7400if test "${with_sysroot+set}" = set; then : 7401 withval=$with_sysroot; 7402else 7403 with_sysroot=no 7404fi 7405 7406 7407lt_sysroot= 7408case $with_sysroot in #( 7409 yes) 7410 if test yes = "$GCC"; then 7411 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7412 fi 7413 ;; #( 7414 /*) 7415 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7416 ;; #( 7417 no|'') 7418 ;; #( 7419 *) 7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7421$as_echo "$with_sysroot" >&6; } 7422 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7423 ;; 7424esac 7425 7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7427$as_echo "${lt_sysroot:-no}" >&6; } 7428 7429 7430 7431 7432 7433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7434$as_echo_n "checking for a working dd... " >&6; } 7435if ${ac_cv_path_lt_DD+:} false; then : 7436 $as_echo_n "(cached) " >&6 7437else 7438 printf 0123456789abcdef0123456789abcdef >conftest.i 7439cat conftest.i conftest.i >conftest2.i 7440: ${lt_DD:=$DD} 7441if test -z "$lt_DD"; then 7442 ac_path_lt_DD_found=false 7443 # Loop through the user's path and test for each of PROGNAME-LIST 7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7445for as_dir in $PATH 7446do 7447 IFS=$as_save_IFS 7448 test -z "$as_dir" && as_dir=. 7449 for ac_prog in dd; do 7450 for ac_exec_ext in '' $ac_executable_extensions; do 7451 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7452 as_fn_executable_p "$ac_path_lt_DD" || continue 7453if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7454 cmp -s conftest.i conftest.out \ 7455 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7456fi 7457 $ac_path_lt_DD_found && break 3 7458 done 7459 done 7460 done 7461IFS=$as_save_IFS 7462 if test -z "$ac_cv_path_lt_DD"; then 7463 : 7464 fi 7465else 7466 ac_cv_path_lt_DD=$lt_DD 7467fi 7468 7469rm -f conftest.i conftest2.i conftest.out 7470fi 7471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7472$as_echo "$ac_cv_path_lt_DD" >&6; } 7473 7474 7475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7476$as_echo_n "checking how to truncate binary pipes... " >&6; } 7477if ${lt_cv_truncate_bin+:} false; then : 7478 $as_echo_n "(cached) " >&6 7479else 7480 printf 0123456789abcdef0123456789abcdef >conftest.i 7481cat conftest.i conftest.i >conftest2.i 7482lt_cv_truncate_bin= 7483if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7484 cmp -s conftest.i conftest.out \ 7485 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7486fi 7487rm -f conftest.i conftest2.i conftest.out 7488test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7489fi 7490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7491$as_echo "$lt_cv_truncate_bin" >&6; } 7492 7493 7494 7495 7496 7497 7498 7499# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7500func_cc_basename () 7501{ 7502 for cc_temp in $*""; do 7503 case $cc_temp in 7504 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7505 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7506 \-*) ;; 7507 *) break;; 7508 esac 7509 done 7510 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7511} 7512 7513# Check whether --enable-libtool-lock was given. 7514if test "${enable_libtool_lock+set}" = set; then : 7515 enableval=$enable_libtool_lock; 7516fi 7517 7518test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7519 7520# Some flags need to be propagated to the compiler or linker for good 7521# libtool support. 7522case $host in 7523ia64-*-hpux*) 7524 # Find out what ABI is being produced by ac_compile, and set mode 7525 # options accordingly. 7526 echo 'int i;' > conftest.$ac_ext 7527 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7528 (eval $ac_compile) 2>&5 7529 ac_status=$? 7530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7531 test $ac_status = 0; }; then 7532 case `/usr/bin/file conftest.$ac_objext` in 7533 *ELF-32*) 7534 HPUX_IA64_MODE=32 7535 ;; 7536 *ELF-64*) 7537 HPUX_IA64_MODE=64 7538 ;; 7539 esac 7540 fi 7541 rm -rf conftest* 7542 ;; 7543*-*-irix6*) 7544 # Find out what ABI is being produced by ac_compile, and set linker 7545 # options accordingly. 7546 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7547 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7548 (eval $ac_compile) 2>&5 7549 ac_status=$? 7550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7551 test $ac_status = 0; }; then 7552 if test yes = "$lt_cv_prog_gnu_ld"; then 7553 case `/usr/bin/file conftest.$ac_objext` in 7554 *32-bit*) 7555 LD="${LD-ld} -melf32bsmip" 7556 ;; 7557 *N32*) 7558 LD="${LD-ld} -melf32bmipn32" 7559 ;; 7560 *64-bit*) 7561 LD="${LD-ld} -melf64bmip" 7562 ;; 7563 esac 7564 else 7565 case `/usr/bin/file conftest.$ac_objext` in 7566 *32-bit*) 7567 LD="${LD-ld} -32" 7568 ;; 7569 *N32*) 7570 LD="${LD-ld} -n32" 7571 ;; 7572 *64-bit*) 7573 LD="${LD-ld} -64" 7574 ;; 7575 esac 7576 fi 7577 fi 7578 rm -rf conftest* 7579 ;; 7580 7581mips64*-*linux*) 7582 # Find out what ABI is being produced by ac_compile, and set linker 7583 # options accordingly. 7584 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7585 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7586 (eval $ac_compile) 2>&5 7587 ac_status=$? 7588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7589 test $ac_status = 0; }; then 7590 emul=elf 7591 case `/usr/bin/file conftest.$ac_objext` in 7592 *32-bit*) 7593 emul="${emul}32" 7594 ;; 7595 *64-bit*) 7596 emul="${emul}64" 7597 ;; 7598 esac 7599 case `/usr/bin/file conftest.$ac_objext` in 7600 *MSB*) 7601 emul="${emul}btsmip" 7602 ;; 7603 *LSB*) 7604 emul="${emul}ltsmip" 7605 ;; 7606 esac 7607 case `/usr/bin/file conftest.$ac_objext` in 7608 *N32*) 7609 emul="${emul}n32" 7610 ;; 7611 esac 7612 LD="${LD-ld} -m $emul" 7613 fi 7614 rm -rf conftest* 7615 ;; 7616 7617x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7618s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7619 # Find out what ABI is being produced by ac_compile, and set linker 7620 # options accordingly. Note that the listed cases only cover the 7621 # situations where additional linker options are needed (such as when 7622 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7623 # vice versa); the common cases where no linker options are needed do 7624 # not appear in the list. 7625 echo 'int i;' > conftest.$ac_ext 7626 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7627 (eval $ac_compile) 2>&5 7628 ac_status=$? 7629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7630 test $ac_status = 0; }; then 7631 case `/usr/bin/file conftest.o` in 7632 *32-bit*) 7633 case $host in 7634 x86_64-*kfreebsd*-gnu) 7635 LD="${LD-ld} -m elf_i386_fbsd" 7636 ;; 7637 x86_64-*linux*) 7638 case `/usr/bin/file conftest.o` in 7639 *x86-64*) 7640 LD="${LD-ld} -m elf32_x86_64" 7641 ;; 7642 *) 7643 LD="${LD-ld} -m elf_i386" 7644 ;; 7645 esac 7646 ;; 7647 powerpc64le-*linux*) 7648 LD="${LD-ld} -m elf32lppclinux" 7649 ;; 7650 powerpc64-*linux*) 7651 LD="${LD-ld} -m elf32ppclinux" 7652 ;; 7653 s390x-*linux*) 7654 LD="${LD-ld} -m elf_s390" 7655 ;; 7656 sparc64-*linux*) 7657 LD="${LD-ld} -m elf32_sparc" 7658 ;; 7659 esac 7660 ;; 7661 *64-bit*) 7662 case $host in 7663 x86_64-*kfreebsd*-gnu) 7664 LD="${LD-ld} -m elf_x86_64_fbsd" 7665 ;; 7666 x86_64-*linux*) 7667 LD="${LD-ld} -m elf_x86_64" 7668 ;; 7669 powerpcle-*linux*) 7670 LD="${LD-ld} -m elf64lppc" 7671 ;; 7672 powerpc-*linux*) 7673 LD="${LD-ld} -m elf64ppc" 7674 ;; 7675 s390*-*linux*|s390*-*tpf*) 7676 LD="${LD-ld} -m elf64_s390" 7677 ;; 7678 sparc*-*linux*) 7679 LD="${LD-ld} -m elf64_sparc" 7680 ;; 7681 esac 7682 ;; 7683 esac 7684 fi 7685 rm -rf conftest* 7686 ;; 7687 7688*-*-sco3.2v5*) 7689 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7690 SAVE_CFLAGS=$CFLAGS 7691 CFLAGS="$CFLAGS -belf" 7692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7693$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7694if ${lt_cv_cc_needs_belf+:} false; then : 7695 $as_echo_n "(cached) " >&6 7696else 7697 ac_ext=c 7698ac_cpp='$CPP $CPPFLAGS' 7699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7701ac_compiler_gnu=$ac_cv_c_compiler_gnu 7702 7703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7704/* end confdefs.h. */ 7705 7706int 7707main () 7708{ 7709 7710 ; 7711 return 0; 7712} 7713_ACEOF 7714if ac_fn_c_try_link "$LINENO"; then : 7715 lt_cv_cc_needs_belf=yes 7716else 7717 lt_cv_cc_needs_belf=no 7718fi 7719rm -f core conftest.err conftest.$ac_objext \ 7720 conftest$ac_exeext conftest.$ac_ext 7721 ac_ext=c 7722ac_cpp='$CPP $CPPFLAGS' 7723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7725ac_compiler_gnu=$ac_cv_c_compiler_gnu 7726 7727fi 7728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7729$as_echo "$lt_cv_cc_needs_belf" >&6; } 7730 if test yes != "$lt_cv_cc_needs_belf"; then 7731 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7732 CFLAGS=$SAVE_CFLAGS 7733 fi 7734 ;; 7735*-*solaris*) 7736 # Find out what ABI is being produced by ac_compile, and set linker 7737 # options accordingly. 7738 echo 'int i;' > conftest.$ac_ext 7739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7740 (eval $ac_compile) 2>&5 7741 ac_status=$? 7742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7743 test $ac_status = 0; }; then 7744 case `/usr/bin/file conftest.o` in 7745 *64-bit*) 7746 case $lt_cv_prog_gnu_ld in 7747 yes*) 7748 case $host in 7749 i?86-*-solaris*|x86_64-*-solaris*) 7750 LD="${LD-ld} -m elf_x86_64" 7751 ;; 7752 sparc*-*-solaris*) 7753 LD="${LD-ld} -m elf64_sparc" 7754 ;; 7755 esac 7756 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7757 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7758 LD=${LD-ld}_sol2 7759 fi 7760 ;; 7761 *) 7762 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7763 LD="${LD-ld} -64" 7764 fi 7765 ;; 7766 esac 7767 ;; 7768 esac 7769 fi 7770 rm -rf conftest* 7771 ;; 7772esac 7773 7774need_locks=$enable_libtool_lock 7775 7776if test -n "$ac_tool_prefix"; then 7777 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7778set dummy ${ac_tool_prefix}mt; ac_word=$2 7779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7780$as_echo_n "checking for $ac_word... " >&6; } 7781if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7782 $as_echo_n "(cached) " >&6 7783else 7784 if test -n "$MANIFEST_TOOL"; then 7785 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7786else 7787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7788for as_dir in $PATH 7789do 7790 IFS=$as_save_IFS 7791 test -z "$as_dir" && as_dir=. 7792 for ac_exec_ext in '' $ac_executable_extensions; do 7793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7794 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7796 break 2 7797 fi 7798done 7799 done 7800IFS=$as_save_IFS 7801 7802fi 7803fi 7804MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7805if test -n "$MANIFEST_TOOL"; then 7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7807$as_echo "$MANIFEST_TOOL" >&6; } 7808else 7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7810$as_echo "no" >&6; } 7811fi 7812 7813 7814fi 7815if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7816 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7817 # Extract the first word of "mt", so it can be a program name with args. 7818set dummy mt; ac_word=$2 7819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7820$as_echo_n "checking for $ac_word... " >&6; } 7821if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7822 $as_echo_n "(cached) " >&6 7823else 7824 if test -n "$ac_ct_MANIFEST_TOOL"; then 7825 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7826else 7827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7828for as_dir in $PATH 7829do 7830 IFS=$as_save_IFS 7831 test -z "$as_dir" && as_dir=. 7832 for ac_exec_ext in '' $ac_executable_extensions; do 7833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7834 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7836 break 2 7837 fi 7838done 7839 done 7840IFS=$as_save_IFS 7841 7842fi 7843fi 7844ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7845if test -n "$ac_ct_MANIFEST_TOOL"; then 7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7847$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7848else 7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7850$as_echo "no" >&6; } 7851fi 7852 7853 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7854 MANIFEST_TOOL=":" 7855 else 7856 case $cross_compiling:$ac_tool_warned in 7857yes:) 7858{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7859$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7860ac_tool_warned=yes ;; 7861esac 7862 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7863 fi 7864else 7865 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7866fi 7867 7868test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7870$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7871if ${lt_cv_path_mainfest_tool+:} false; then : 7872 $as_echo_n "(cached) " >&6 7873else 7874 lt_cv_path_mainfest_tool=no 7875 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7876 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7877 cat conftest.err >&5 7878 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7879 lt_cv_path_mainfest_tool=yes 7880 fi 7881 rm -f conftest* 7882fi 7883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7884$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7885if test yes != "$lt_cv_path_mainfest_tool"; then 7886 MANIFEST_TOOL=: 7887fi 7888 7889 7890 7891 7892 7893 7894 case $host_os in 7895 rhapsody* | darwin*) 7896 if test -n "$ac_tool_prefix"; then 7897 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7898set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7900$as_echo_n "checking for $ac_word... " >&6; } 7901if ${ac_cv_prog_DSYMUTIL+:} false; then : 7902 $as_echo_n "(cached) " >&6 7903else 7904 if test -n "$DSYMUTIL"; then 7905 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7906else 7907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7908for as_dir in $PATH 7909do 7910 IFS=$as_save_IFS 7911 test -z "$as_dir" && as_dir=. 7912 for ac_exec_ext in '' $ac_executable_extensions; do 7913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7914 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7916 break 2 7917 fi 7918done 7919 done 7920IFS=$as_save_IFS 7921 7922fi 7923fi 7924DSYMUTIL=$ac_cv_prog_DSYMUTIL 7925if test -n "$DSYMUTIL"; then 7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7927$as_echo "$DSYMUTIL" >&6; } 7928else 7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7930$as_echo "no" >&6; } 7931fi 7932 7933 7934fi 7935if test -z "$ac_cv_prog_DSYMUTIL"; then 7936 ac_ct_DSYMUTIL=$DSYMUTIL 7937 # Extract the first word of "dsymutil", so it can be a program name with args. 7938set dummy dsymutil; ac_word=$2 7939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7940$as_echo_n "checking for $ac_word... " >&6; } 7941if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7942 $as_echo_n "(cached) " >&6 7943else 7944 if test -n "$ac_ct_DSYMUTIL"; then 7945 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7946else 7947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7948for as_dir in $PATH 7949do 7950 IFS=$as_save_IFS 7951 test -z "$as_dir" && as_dir=. 7952 for ac_exec_ext in '' $ac_executable_extensions; do 7953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7954 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7956 break 2 7957 fi 7958done 7959 done 7960IFS=$as_save_IFS 7961 7962fi 7963fi 7964ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7965if test -n "$ac_ct_DSYMUTIL"; then 7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7967$as_echo "$ac_ct_DSYMUTIL" >&6; } 7968else 7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7970$as_echo "no" >&6; } 7971fi 7972 7973 if test "x$ac_ct_DSYMUTIL" = x; then 7974 DSYMUTIL=":" 7975 else 7976 case $cross_compiling:$ac_tool_warned in 7977yes:) 7978{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7979$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7980ac_tool_warned=yes ;; 7981esac 7982 DSYMUTIL=$ac_ct_DSYMUTIL 7983 fi 7984else 7985 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7986fi 7987 7988 if test -n "$ac_tool_prefix"; then 7989 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7990set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7992$as_echo_n "checking for $ac_word... " >&6; } 7993if ${ac_cv_prog_NMEDIT+:} false; then : 7994 $as_echo_n "(cached) " >&6 7995else 7996 if test -n "$NMEDIT"; then 7997 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7998else 7999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8000for as_dir in $PATH 8001do 8002 IFS=$as_save_IFS 8003 test -z "$as_dir" && as_dir=. 8004 for ac_exec_ext in '' $ac_executable_extensions; do 8005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8006 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8008 break 2 8009 fi 8010done 8011 done 8012IFS=$as_save_IFS 8013 8014fi 8015fi 8016NMEDIT=$ac_cv_prog_NMEDIT 8017if test -n "$NMEDIT"; then 8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8019$as_echo "$NMEDIT" >&6; } 8020else 8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8022$as_echo "no" >&6; } 8023fi 8024 8025 8026fi 8027if test -z "$ac_cv_prog_NMEDIT"; then 8028 ac_ct_NMEDIT=$NMEDIT 8029 # Extract the first word of "nmedit", so it can be a program name with args. 8030set dummy nmedit; ac_word=$2 8031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8032$as_echo_n "checking for $ac_word... " >&6; } 8033if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8034 $as_echo_n "(cached) " >&6 8035else 8036 if test -n "$ac_ct_NMEDIT"; then 8037 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8038else 8039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8040for as_dir in $PATH 8041do 8042 IFS=$as_save_IFS 8043 test -z "$as_dir" && as_dir=. 8044 for ac_exec_ext in '' $ac_executable_extensions; do 8045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8046 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8048 break 2 8049 fi 8050done 8051 done 8052IFS=$as_save_IFS 8053 8054fi 8055fi 8056ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8057if test -n "$ac_ct_NMEDIT"; then 8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8059$as_echo "$ac_ct_NMEDIT" >&6; } 8060else 8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8062$as_echo "no" >&6; } 8063fi 8064 8065 if test "x$ac_ct_NMEDIT" = x; then 8066 NMEDIT=":" 8067 else 8068 case $cross_compiling:$ac_tool_warned in 8069yes:) 8070{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8071$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8072ac_tool_warned=yes ;; 8073esac 8074 NMEDIT=$ac_ct_NMEDIT 8075 fi 8076else 8077 NMEDIT="$ac_cv_prog_NMEDIT" 8078fi 8079 8080 if test -n "$ac_tool_prefix"; then 8081 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8082set dummy ${ac_tool_prefix}lipo; ac_word=$2 8083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8084$as_echo_n "checking for $ac_word... " >&6; } 8085if ${ac_cv_prog_LIPO+:} false; then : 8086 $as_echo_n "(cached) " >&6 8087else 8088 if test -n "$LIPO"; then 8089 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8090else 8091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8092for as_dir in $PATH 8093do 8094 IFS=$as_save_IFS 8095 test -z "$as_dir" && as_dir=. 8096 for ac_exec_ext in '' $ac_executable_extensions; do 8097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8098 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8100 break 2 8101 fi 8102done 8103 done 8104IFS=$as_save_IFS 8105 8106fi 8107fi 8108LIPO=$ac_cv_prog_LIPO 8109if test -n "$LIPO"; then 8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8111$as_echo "$LIPO" >&6; } 8112else 8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8114$as_echo "no" >&6; } 8115fi 8116 8117 8118fi 8119if test -z "$ac_cv_prog_LIPO"; then 8120 ac_ct_LIPO=$LIPO 8121 # Extract the first word of "lipo", so it can be a program name with args. 8122set dummy lipo; ac_word=$2 8123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8124$as_echo_n "checking for $ac_word... " >&6; } 8125if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8126 $as_echo_n "(cached) " >&6 8127else 8128 if test -n "$ac_ct_LIPO"; then 8129 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8130else 8131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8132for as_dir in $PATH 8133do 8134 IFS=$as_save_IFS 8135 test -z "$as_dir" && as_dir=. 8136 for ac_exec_ext in '' $ac_executable_extensions; do 8137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8138 ac_cv_prog_ac_ct_LIPO="lipo" 8139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8140 break 2 8141 fi 8142done 8143 done 8144IFS=$as_save_IFS 8145 8146fi 8147fi 8148ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8149if test -n "$ac_ct_LIPO"; then 8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8151$as_echo "$ac_ct_LIPO" >&6; } 8152else 8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8154$as_echo "no" >&6; } 8155fi 8156 8157 if test "x$ac_ct_LIPO" = x; then 8158 LIPO=":" 8159 else 8160 case $cross_compiling:$ac_tool_warned in 8161yes:) 8162{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8163$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8164ac_tool_warned=yes ;; 8165esac 8166 LIPO=$ac_ct_LIPO 8167 fi 8168else 8169 LIPO="$ac_cv_prog_LIPO" 8170fi 8171 8172 if test -n "$ac_tool_prefix"; then 8173 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8174set dummy ${ac_tool_prefix}otool; ac_word=$2 8175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8176$as_echo_n "checking for $ac_word... " >&6; } 8177if ${ac_cv_prog_OTOOL+:} false; then : 8178 $as_echo_n "(cached) " >&6 8179else 8180 if test -n "$OTOOL"; then 8181 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8182else 8183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8184for as_dir in $PATH 8185do 8186 IFS=$as_save_IFS 8187 test -z "$as_dir" && as_dir=. 8188 for ac_exec_ext in '' $ac_executable_extensions; do 8189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8190 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8192 break 2 8193 fi 8194done 8195 done 8196IFS=$as_save_IFS 8197 8198fi 8199fi 8200OTOOL=$ac_cv_prog_OTOOL 8201if test -n "$OTOOL"; then 8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8203$as_echo "$OTOOL" >&6; } 8204else 8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8206$as_echo "no" >&6; } 8207fi 8208 8209 8210fi 8211if test -z "$ac_cv_prog_OTOOL"; then 8212 ac_ct_OTOOL=$OTOOL 8213 # Extract the first word of "otool", so it can be a program name with args. 8214set dummy otool; ac_word=$2 8215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8216$as_echo_n "checking for $ac_word... " >&6; } 8217if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8218 $as_echo_n "(cached) " >&6 8219else 8220 if test -n "$ac_ct_OTOOL"; then 8221 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8222else 8223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8224for as_dir in $PATH 8225do 8226 IFS=$as_save_IFS 8227 test -z "$as_dir" && as_dir=. 8228 for ac_exec_ext in '' $ac_executable_extensions; do 8229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8230 ac_cv_prog_ac_ct_OTOOL="otool" 8231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8232 break 2 8233 fi 8234done 8235 done 8236IFS=$as_save_IFS 8237 8238fi 8239fi 8240ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8241if test -n "$ac_ct_OTOOL"; then 8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8243$as_echo "$ac_ct_OTOOL" >&6; } 8244else 8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8246$as_echo "no" >&6; } 8247fi 8248 8249 if test "x$ac_ct_OTOOL" = x; then 8250 OTOOL=":" 8251 else 8252 case $cross_compiling:$ac_tool_warned in 8253yes:) 8254{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8255$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8256ac_tool_warned=yes ;; 8257esac 8258 OTOOL=$ac_ct_OTOOL 8259 fi 8260else 8261 OTOOL="$ac_cv_prog_OTOOL" 8262fi 8263 8264 if test -n "$ac_tool_prefix"; then 8265 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8266set dummy ${ac_tool_prefix}otool64; ac_word=$2 8267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8268$as_echo_n "checking for $ac_word... " >&6; } 8269if ${ac_cv_prog_OTOOL64+:} false; then : 8270 $as_echo_n "(cached) " >&6 8271else 8272 if test -n "$OTOOL64"; then 8273 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8274else 8275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8276for as_dir in $PATH 8277do 8278 IFS=$as_save_IFS 8279 test -z "$as_dir" && as_dir=. 8280 for ac_exec_ext in '' $ac_executable_extensions; do 8281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8282 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8284 break 2 8285 fi 8286done 8287 done 8288IFS=$as_save_IFS 8289 8290fi 8291fi 8292OTOOL64=$ac_cv_prog_OTOOL64 8293if test -n "$OTOOL64"; then 8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8295$as_echo "$OTOOL64" >&6; } 8296else 8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8298$as_echo "no" >&6; } 8299fi 8300 8301 8302fi 8303if test -z "$ac_cv_prog_OTOOL64"; then 8304 ac_ct_OTOOL64=$OTOOL64 8305 # Extract the first word of "otool64", so it can be a program name with args. 8306set dummy otool64; ac_word=$2 8307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8308$as_echo_n "checking for $ac_word... " >&6; } 8309if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8310 $as_echo_n "(cached) " >&6 8311else 8312 if test -n "$ac_ct_OTOOL64"; then 8313 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8314else 8315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8316for as_dir in $PATH 8317do 8318 IFS=$as_save_IFS 8319 test -z "$as_dir" && as_dir=. 8320 for ac_exec_ext in '' $ac_executable_extensions; do 8321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8322 ac_cv_prog_ac_ct_OTOOL64="otool64" 8323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8324 break 2 8325 fi 8326done 8327 done 8328IFS=$as_save_IFS 8329 8330fi 8331fi 8332ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8333if test -n "$ac_ct_OTOOL64"; then 8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8335$as_echo "$ac_ct_OTOOL64" >&6; } 8336else 8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8338$as_echo "no" >&6; } 8339fi 8340 8341 if test "x$ac_ct_OTOOL64" = x; then 8342 OTOOL64=":" 8343 else 8344 case $cross_compiling:$ac_tool_warned in 8345yes:) 8346{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8347$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8348ac_tool_warned=yes ;; 8349esac 8350 OTOOL64=$ac_ct_OTOOL64 8351 fi 8352else 8353 OTOOL64="$ac_cv_prog_OTOOL64" 8354fi 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8383$as_echo_n "checking for -single_module linker flag... " >&6; } 8384if ${lt_cv_apple_cc_single_mod+:} false; then : 8385 $as_echo_n "(cached) " >&6 8386else 8387 lt_cv_apple_cc_single_mod=no 8388 if test -z "$LT_MULTI_MODULE"; then 8389 # By default we will add the -single_module flag. You can override 8390 # by either setting the environment variable LT_MULTI_MODULE 8391 # non-empty at configure time, or by adding -multi_module to the 8392 # link flags. 8393 rm -rf libconftest.dylib* 8394 echo "int foo(void){return 1;}" > conftest.c 8395 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8396-dynamiclib -Wl,-single_module conftest.c" >&5 8397 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8398 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8399 _lt_result=$? 8400 # If there is a non-empty error log, and "single_module" 8401 # appears in it, assume the flag caused a linker warning 8402 if test -s conftest.err && $GREP single_module conftest.err; then 8403 cat conftest.err >&5 8404 # Otherwise, if the output was created with a 0 exit code from 8405 # the compiler, it worked. 8406 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8407 lt_cv_apple_cc_single_mod=yes 8408 else 8409 cat conftest.err >&5 8410 fi 8411 rm -rf libconftest.dylib* 8412 rm -f conftest.* 8413 fi 8414fi 8415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8416$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8417 8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8419$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8420if ${lt_cv_ld_exported_symbols_list+:} false; then : 8421 $as_echo_n "(cached) " >&6 8422else 8423 lt_cv_ld_exported_symbols_list=no 8424 save_LDFLAGS=$LDFLAGS 8425 echo "_main" > conftest.sym 8426 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8428/* end confdefs.h. */ 8429 8430int 8431main () 8432{ 8433 8434 ; 8435 return 0; 8436} 8437_ACEOF 8438if ac_fn_c_try_link "$LINENO"; then : 8439 lt_cv_ld_exported_symbols_list=yes 8440else 8441 lt_cv_ld_exported_symbols_list=no 8442fi 8443rm -f core conftest.err conftest.$ac_objext \ 8444 conftest$ac_exeext conftest.$ac_ext 8445 LDFLAGS=$save_LDFLAGS 8446 8447fi 8448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8449$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8450 8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8452$as_echo_n "checking for -force_load linker flag... " >&6; } 8453if ${lt_cv_ld_force_load+:} false; then : 8454 $as_echo_n "(cached) " >&6 8455else 8456 lt_cv_ld_force_load=no 8457 cat > conftest.c << _LT_EOF 8458int forced_loaded() { return 2;} 8459_LT_EOF 8460 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8461 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8462 echo "$AR cru libconftest.a conftest.o" >&5 8463 $AR cru libconftest.a conftest.o 2>&5 8464 echo "$RANLIB libconftest.a" >&5 8465 $RANLIB libconftest.a 2>&5 8466 cat > conftest.c << _LT_EOF 8467int main() { return 0;} 8468_LT_EOF 8469 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8470 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8471 _lt_result=$? 8472 if test -s conftest.err && $GREP force_load conftest.err; then 8473 cat conftest.err >&5 8474 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8475 lt_cv_ld_force_load=yes 8476 else 8477 cat conftest.err >&5 8478 fi 8479 rm -f conftest.err libconftest.a conftest conftest.c 8480 rm -rf conftest.dSYM 8481 8482fi 8483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8484$as_echo "$lt_cv_ld_force_load" >&6; } 8485 case $host_os in 8486 rhapsody* | darwin1.[012]) 8487 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8488 darwin1.*) 8489 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8490 darwin*) # darwin 5.x on 8491 # if running on 10.5 or later, the deployment target defaults 8492 # to the OS version, if on x86, and 10.4, the deployment 8493 # target defaults to 10.4. Don't you love it? 8494 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8495 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8496 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8497 10.[012][,.]*) 8498 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8499 10.*) 8500 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8501 esac 8502 ;; 8503 esac 8504 if test yes = "$lt_cv_apple_cc_single_mod"; then 8505 _lt_dar_single_mod='$single_module' 8506 fi 8507 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8508 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8509 else 8510 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8511 fi 8512 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8513 _lt_dsymutil='~$DSYMUTIL $lib || :' 8514 else 8515 _lt_dsymutil= 8516 fi 8517 ;; 8518 esac 8519 8520# func_munge_path_list VARIABLE PATH 8521# ----------------------------------- 8522# VARIABLE is name of variable containing _space_ separated list of 8523# directories to be munged by the contents of PATH, which is string 8524# having a format: 8525# "DIR[:DIR]:" 8526# string "DIR[ DIR]" will be prepended to VARIABLE 8527# ":DIR[:DIR]" 8528# string "DIR[ DIR]" will be appended to VARIABLE 8529# "DIRP[:DIRP]::[DIRA:]DIRA" 8530# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8531# "DIRA[ DIRA]" will be appended to VARIABLE 8532# "DIR[:DIR]" 8533# VARIABLE will be replaced by "DIR[ DIR]" 8534func_munge_path_list () 8535{ 8536 case x$2 in 8537 x) 8538 ;; 8539 *:) 8540 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8541 ;; 8542 x:*) 8543 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8544 ;; 8545 *::*) 8546 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8547 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8548 ;; 8549 *) 8550 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8551 ;; 8552 esac 8553} 8554 8555for ac_header in dlfcn.h 8556do : 8557 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8558" 8559if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8560 cat >>confdefs.h <<_ACEOF 8561#define HAVE_DLFCN_H 1 8562_ACEOF 8563 8564fi 8565 8566done 8567 8568 8569 8570 8571 8572# Set options 8573enable_dlopen=yes 8574enable_win32_dll=yes 8575 8576case $host in 8577*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 8578 if test -n "$ac_tool_prefix"; then 8579 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 8580set dummy ${ac_tool_prefix}as; ac_word=$2 8581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8582$as_echo_n "checking for $ac_word... " >&6; } 8583if ${ac_cv_prog_AS+:} false; then : 8584 $as_echo_n "(cached) " >&6 8585else 8586 if test -n "$AS"; then 8587 ac_cv_prog_AS="$AS" # Let the user override the test. 8588else 8589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8590for as_dir in $PATH 8591do 8592 IFS=$as_save_IFS 8593 test -z "$as_dir" && as_dir=. 8594 for ac_exec_ext in '' $ac_executable_extensions; do 8595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8596 ac_cv_prog_AS="${ac_tool_prefix}as" 8597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8598 break 2 8599 fi 8600done 8601 done 8602IFS=$as_save_IFS 8603 8604fi 8605fi 8606AS=$ac_cv_prog_AS 8607if test -n "$AS"; then 8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 8609$as_echo "$AS" >&6; } 8610else 8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8612$as_echo "no" >&6; } 8613fi 8614 8615 8616fi 8617if test -z "$ac_cv_prog_AS"; then 8618 ac_ct_AS=$AS 8619 # Extract the first word of "as", so it can be a program name with args. 8620set dummy as; ac_word=$2 8621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8622$as_echo_n "checking for $ac_word... " >&6; } 8623if ${ac_cv_prog_ac_ct_AS+:} false; then : 8624 $as_echo_n "(cached) " >&6 8625else 8626 if test -n "$ac_ct_AS"; then 8627 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 8628else 8629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8630for as_dir in $PATH 8631do 8632 IFS=$as_save_IFS 8633 test -z "$as_dir" && as_dir=. 8634 for ac_exec_ext in '' $ac_executable_extensions; do 8635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8636 ac_cv_prog_ac_ct_AS="as" 8637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8638 break 2 8639 fi 8640done 8641 done 8642IFS=$as_save_IFS 8643 8644fi 8645fi 8646ac_ct_AS=$ac_cv_prog_ac_ct_AS 8647if test -n "$ac_ct_AS"; then 8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 8649$as_echo "$ac_ct_AS" >&6; } 8650else 8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8652$as_echo "no" >&6; } 8653fi 8654 8655 if test "x$ac_ct_AS" = x; then 8656 AS="false" 8657 else 8658 case $cross_compiling:$ac_tool_warned in 8659yes:) 8660{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8661$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8662ac_tool_warned=yes ;; 8663esac 8664 AS=$ac_ct_AS 8665 fi 8666else 8667 AS="$ac_cv_prog_AS" 8668fi 8669 8670 if test -n "$ac_tool_prefix"; then 8671 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8672set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8674$as_echo_n "checking for $ac_word... " >&6; } 8675if ${ac_cv_prog_DLLTOOL+:} false; then : 8676 $as_echo_n "(cached) " >&6 8677else 8678 if test -n "$DLLTOOL"; then 8679 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8680else 8681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8682for as_dir in $PATH 8683do 8684 IFS=$as_save_IFS 8685 test -z "$as_dir" && as_dir=. 8686 for ac_exec_ext in '' $ac_executable_extensions; do 8687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8688 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8690 break 2 8691 fi 8692done 8693 done 8694IFS=$as_save_IFS 8695 8696fi 8697fi 8698DLLTOOL=$ac_cv_prog_DLLTOOL 8699if test -n "$DLLTOOL"; then 8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8701$as_echo "$DLLTOOL" >&6; } 8702else 8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8704$as_echo "no" >&6; } 8705fi 8706 8707 8708fi 8709if test -z "$ac_cv_prog_DLLTOOL"; then 8710 ac_ct_DLLTOOL=$DLLTOOL 8711 # Extract the first word of "dlltool", so it can be a program name with args. 8712set dummy dlltool; ac_word=$2 8713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8714$as_echo_n "checking for $ac_word... " >&6; } 8715if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8716 $as_echo_n "(cached) " >&6 8717else 8718 if test -n "$ac_ct_DLLTOOL"; then 8719 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8720else 8721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8722for as_dir in $PATH 8723do 8724 IFS=$as_save_IFS 8725 test -z "$as_dir" && as_dir=. 8726 for ac_exec_ext in '' $ac_executable_extensions; do 8727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8728 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8730 break 2 8731 fi 8732done 8733 done 8734IFS=$as_save_IFS 8735 8736fi 8737fi 8738ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8739if test -n "$ac_ct_DLLTOOL"; then 8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8741$as_echo "$ac_ct_DLLTOOL" >&6; } 8742else 8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8744$as_echo "no" >&6; } 8745fi 8746 8747 if test "x$ac_ct_DLLTOOL" = x; then 8748 DLLTOOL="false" 8749 else 8750 case $cross_compiling:$ac_tool_warned in 8751yes:) 8752{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8753$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8754ac_tool_warned=yes ;; 8755esac 8756 DLLTOOL=$ac_ct_DLLTOOL 8757 fi 8758else 8759 DLLTOOL="$ac_cv_prog_DLLTOOL" 8760fi 8761 8762 if test -n "$ac_tool_prefix"; then 8763 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8764set dummy ${ac_tool_prefix}objdump; ac_word=$2 8765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8766$as_echo_n "checking for $ac_word... " >&6; } 8767if ${ac_cv_prog_OBJDUMP+:} false; then : 8768 $as_echo_n "(cached) " >&6 8769else 8770 if test -n "$OBJDUMP"; then 8771 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8772else 8773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8774for as_dir in $PATH 8775do 8776 IFS=$as_save_IFS 8777 test -z "$as_dir" && as_dir=. 8778 for ac_exec_ext in '' $ac_executable_extensions; do 8779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8780 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8782 break 2 8783 fi 8784done 8785 done 8786IFS=$as_save_IFS 8787 8788fi 8789fi 8790OBJDUMP=$ac_cv_prog_OBJDUMP 8791if test -n "$OBJDUMP"; then 8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8793$as_echo "$OBJDUMP" >&6; } 8794else 8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8796$as_echo "no" >&6; } 8797fi 8798 8799 8800fi 8801if test -z "$ac_cv_prog_OBJDUMP"; then 8802 ac_ct_OBJDUMP=$OBJDUMP 8803 # Extract the first word of "objdump", so it can be a program name with args. 8804set dummy objdump; ac_word=$2 8805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8806$as_echo_n "checking for $ac_word... " >&6; } 8807if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8808 $as_echo_n "(cached) " >&6 8809else 8810 if test -n "$ac_ct_OBJDUMP"; then 8811 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8812else 8813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8814for as_dir in $PATH 8815do 8816 IFS=$as_save_IFS 8817 test -z "$as_dir" && as_dir=. 8818 for ac_exec_ext in '' $ac_executable_extensions; do 8819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8820 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8822 break 2 8823 fi 8824done 8825 done 8826IFS=$as_save_IFS 8827 8828fi 8829fi 8830ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8831if test -n "$ac_ct_OBJDUMP"; then 8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8833$as_echo "$ac_ct_OBJDUMP" >&6; } 8834else 8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8836$as_echo "no" >&6; } 8837fi 8838 8839 if test "x$ac_ct_OBJDUMP" = x; then 8840 OBJDUMP="false" 8841 else 8842 case $cross_compiling:$ac_tool_warned in 8843yes:) 8844{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8845$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8846ac_tool_warned=yes ;; 8847esac 8848 OBJDUMP=$ac_ct_OBJDUMP 8849 fi 8850else 8851 OBJDUMP="$ac_cv_prog_OBJDUMP" 8852fi 8853 8854 ;; 8855esac 8856 8857test -z "$AS" && AS=as 8858 8859 8860 8861 8862 8863test -z "$DLLTOOL" && DLLTOOL=dlltool 8864 8865 8866 8867 8868 8869test -z "$OBJDUMP" && OBJDUMP=objdump 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 # Check whether --enable-shared was given. 8880if test "${enable_shared+set}" = set; then : 8881 enableval=$enable_shared; p=${PACKAGE-default} 8882 case $enableval in 8883 yes) enable_shared=yes ;; 8884 no) enable_shared=no ;; 8885 *) 8886 enable_shared=no 8887 # Look at the argument we got. We use all the common list separators. 8888 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8889 for pkg in $enableval; do 8890 IFS=$lt_save_ifs 8891 if test "X$pkg" = "X$p"; then 8892 enable_shared=yes 8893 fi 8894 done 8895 IFS=$lt_save_ifs 8896 ;; 8897 esac 8898else 8899 enable_shared=yes 8900fi 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 # Check whether --enable-static was given. 8911if test "${enable_static+set}" = set; then : 8912 enableval=$enable_static; p=${PACKAGE-default} 8913 case $enableval in 8914 yes) enable_static=yes ;; 8915 no) enable_static=no ;; 8916 *) 8917 enable_static=no 8918 # Look at the argument we got. We use all the common list separators. 8919 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8920 for pkg in $enableval; do 8921 IFS=$lt_save_ifs 8922 if test "X$pkg" = "X$p"; then 8923 enable_static=yes 8924 fi 8925 done 8926 IFS=$lt_save_ifs 8927 ;; 8928 esac 8929else 8930 enable_static=yes 8931fi 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942# Check whether --with-pic was given. 8943if test "${with_pic+set}" = set; then : 8944 withval=$with_pic; lt_p=${PACKAGE-default} 8945 case $withval in 8946 yes|no) pic_mode=$withval ;; 8947 *) 8948 pic_mode=default 8949 # Look at the argument we got. We use all the common list separators. 8950 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8951 for lt_pkg in $withval; do 8952 IFS=$lt_save_ifs 8953 if test "X$lt_pkg" = "X$lt_p"; then 8954 pic_mode=yes 8955 fi 8956 done 8957 IFS=$lt_save_ifs 8958 ;; 8959 esac 8960else 8961 pic_mode=default 8962fi 8963 8964 8965 8966 8967 8968 8969 8970 8971 # Check whether --enable-fast-install was given. 8972if test "${enable_fast_install+set}" = set; then : 8973 enableval=$enable_fast_install; p=${PACKAGE-default} 8974 case $enableval in 8975 yes) enable_fast_install=yes ;; 8976 no) enable_fast_install=no ;; 8977 *) 8978 enable_fast_install=no 8979 # Look at the argument we got. We use all the common list separators. 8980 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8981 for pkg in $enableval; do 8982 IFS=$lt_save_ifs 8983 if test "X$pkg" = "X$p"; then 8984 enable_fast_install=yes 8985 fi 8986 done 8987 IFS=$lt_save_ifs 8988 ;; 8989 esac 8990else 8991 enable_fast_install=yes 8992fi 8993 8994 8995 8996 8997 8998 8999 9000 9001 shared_archive_member_spec= 9002case $host,$enable_shared in 9003power*-*-aix[5-9]*,yes) 9004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9005$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 9006 9007# Check whether --with-aix-soname was given. 9008if test "${with_aix_soname+set}" = set; then : 9009 withval=$with_aix_soname; case $withval in 9010 aix|svr4|both) 9011 ;; 9012 *) 9013 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9014 ;; 9015 esac 9016 lt_cv_with_aix_soname=$with_aix_soname 9017else 9018 if ${lt_cv_with_aix_soname+:} false; then : 9019 $as_echo_n "(cached) " >&6 9020else 9021 lt_cv_with_aix_soname=aix 9022fi 9023 9024 with_aix_soname=$lt_cv_with_aix_soname 9025fi 9026 9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9028$as_echo "$with_aix_soname" >&6; } 9029 if test aix != "$with_aix_soname"; then 9030 # For the AIX way of multilib, we name the shared archive member 9031 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9032 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9033 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9034 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9035 if test 64 = "${OBJECT_MODE-32}"; then 9036 shared_archive_member_spec=shr_64 9037 else 9038 shared_archive_member_spec=shr 9039 fi 9040 fi 9041 ;; 9042*) 9043 with_aix_soname=aix 9044 ;; 9045esac 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056# This can be used to rebuild libtool when needed 9057LIBTOOL_DEPS=$ltmain 9058 9059# Always use our own libtool. 9060LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091test -z "$LN_S" && LN_S="ln -s" 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106if test -n "${ZSH_VERSION+set}"; then 9107 setopt NO_GLOB_SUBST 9108fi 9109 9110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9111$as_echo_n "checking for objdir... " >&6; } 9112if ${lt_cv_objdir+:} false; then : 9113 $as_echo_n "(cached) " >&6 9114else 9115 rm -f .libs 2>/dev/null 9116mkdir .libs 2>/dev/null 9117if test -d .libs; then 9118 lt_cv_objdir=.libs 9119else 9120 # MS-DOS does not allow filenames that begin with a dot. 9121 lt_cv_objdir=_libs 9122fi 9123rmdir .libs 2>/dev/null 9124fi 9125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9126$as_echo "$lt_cv_objdir" >&6; } 9127objdir=$lt_cv_objdir 9128 9129 9130 9131 9132 9133cat >>confdefs.h <<_ACEOF 9134#define LT_OBJDIR "$lt_cv_objdir/" 9135_ACEOF 9136 9137 9138 9139 9140case $host_os in 9141aix3*) 9142 # AIX sometimes has problems with the GCC collect2 program. For some 9143 # reason, if we set the COLLECT_NAMES environment variable, the problems 9144 # vanish in a puff of smoke. 9145 if test set != "${COLLECT_NAMES+set}"; then 9146 COLLECT_NAMES= 9147 export COLLECT_NAMES 9148 fi 9149 ;; 9150esac 9151 9152# Global variables: 9153ofile=libtool 9154can_build_shared=yes 9155 9156# All known linkers require a '.a' archive for static linking (except MSVC, 9157# which needs '.lib'). 9158libext=a 9159 9160with_gnu_ld=$lt_cv_prog_gnu_ld 9161 9162old_CC=$CC 9163old_CFLAGS=$CFLAGS 9164 9165# Set sane defaults for various variables 9166test -z "$CC" && CC=cc 9167test -z "$LTCC" && LTCC=$CC 9168test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9169test -z "$LD" && LD=ld 9170test -z "$ac_objext" && ac_objext=o 9171 9172func_cc_basename $compiler 9173cc_basename=$func_cc_basename_result 9174 9175 9176# Only perform the check for file, if the check method requires it 9177test -z "$MAGIC_CMD" && MAGIC_CMD=file 9178case $deplibs_check_method in 9179file_magic*) 9180 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9182$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9183if ${lt_cv_path_MAGIC_CMD+:} false; then : 9184 $as_echo_n "(cached) " >&6 9185else 9186 case $MAGIC_CMD in 9187[\\/*] | ?:[\\/]*) 9188 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9189 ;; 9190*) 9191 lt_save_MAGIC_CMD=$MAGIC_CMD 9192 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9193 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9194 for ac_dir in $ac_dummy; do 9195 IFS=$lt_save_ifs 9196 test -z "$ac_dir" && ac_dir=. 9197 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9198 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9199 if test -n "$file_magic_test_file"; then 9200 case $deplibs_check_method in 9201 "file_magic "*) 9202 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9203 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9204 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9205 $EGREP "$file_magic_regex" > /dev/null; then 9206 : 9207 else 9208 cat <<_LT_EOF 1>&2 9209 9210*** Warning: the command libtool uses to detect shared libraries, 9211*** $file_magic_cmd, produces output that libtool cannot recognize. 9212*** The result is that libtool may fail to recognize shared libraries 9213*** as such. This will affect the creation of libtool libraries that 9214*** depend on shared libraries, but programs linked with such libtool 9215*** libraries will work regardless of this problem. Nevertheless, you 9216*** may want to report the problem to your system manager and/or to 9217*** bug-libtool@gnu.org 9218 9219_LT_EOF 9220 fi ;; 9221 esac 9222 fi 9223 break 9224 fi 9225 done 9226 IFS=$lt_save_ifs 9227 MAGIC_CMD=$lt_save_MAGIC_CMD 9228 ;; 9229esac 9230fi 9231 9232MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9233if test -n "$MAGIC_CMD"; then 9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9235$as_echo "$MAGIC_CMD" >&6; } 9236else 9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9238$as_echo "no" >&6; } 9239fi 9240 9241 9242 9243 9244 9245if test -z "$lt_cv_path_MAGIC_CMD"; then 9246 if test -n "$ac_tool_prefix"; then 9247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9248$as_echo_n "checking for file... " >&6; } 9249if ${lt_cv_path_MAGIC_CMD+:} false; then : 9250 $as_echo_n "(cached) " >&6 9251else 9252 case $MAGIC_CMD in 9253[\\/*] | ?:[\\/]*) 9254 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9255 ;; 9256*) 9257 lt_save_MAGIC_CMD=$MAGIC_CMD 9258 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9259 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9260 for ac_dir in $ac_dummy; do 9261 IFS=$lt_save_ifs 9262 test -z "$ac_dir" && ac_dir=. 9263 if test -f "$ac_dir/file"; then 9264 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9265 if test -n "$file_magic_test_file"; then 9266 case $deplibs_check_method in 9267 "file_magic "*) 9268 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9269 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9270 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9271 $EGREP "$file_magic_regex" > /dev/null; then 9272 : 9273 else 9274 cat <<_LT_EOF 1>&2 9275 9276*** Warning: the command libtool uses to detect shared libraries, 9277*** $file_magic_cmd, produces output that libtool cannot recognize. 9278*** The result is that libtool may fail to recognize shared libraries 9279*** as such. This will affect the creation of libtool libraries that 9280*** depend on shared libraries, but programs linked with such libtool 9281*** libraries will work regardless of this problem. Nevertheless, you 9282*** may want to report the problem to your system manager and/or to 9283*** bug-libtool@gnu.org 9284 9285_LT_EOF 9286 fi ;; 9287 esac 9288 fi 9289 break 9290 fi 9291 done 9292 IFS=$lt_save_ifs 9293 MAGIC_CMD=$lt_save_MAGIC_CMD 9294 ;; 9295esac 9296fi 9297 9298MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9299if test -n "$MAGIC_CMD"; then 9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9301$as_echo "$MAGIC_CMD" >&6; } 9302else 9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9304$as_echo "no" >&6; } 9305fi 9306 9307 9308 else 9309 MAGIC_CMD=: 9310 fi 9311fi 9312 9313 fi 9314 ;; 9315esac 9316 9317# Use C for the default configuration in the libtool script 9318 9319lt_save_CC=$CC 9320ac_ext=c 9321ac_cpp='$CPP $CPPFLAGS' 9322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9324ac_compiler_gnu=$ac_cv_c_compiler_gnu 9325 9326 9327# Source file extension for C test sources. 9328ac_ext=c 9329 9330# Object file extension for compiled C test sources. 9331objext=o 9332objext=$objext 9333 9334# Code to be used in simple compile tests 9335lt_simple_compile_test_code="int some_variable = 0;" 9336 9337# Code to be used in simple link tests 9338lt_simple_link_test_code='int main(){return(0);}' 9339 9340 9341 9342 9343 9344 9345 9346# If no C compiler was specified, use CC. 9347LTCC=${LTCC-"$CC"} 9348 9349# If no C compiler flags were specified, use CFLAGS. 9350LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9351 9352# Allow CC to be a program name with arguments. 9353compiler=$CC 9354 9355# Save the default compiler, since it gets overwritten when the other 9356# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9357compiler_DEFAULT=$CC 9358 9359# save warnings/boilerplate of simple test code 9360ac_outfile=conftest.$ac_objext 9361echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9362eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9363_lt_compiler_boilerplate=`cat conftest.err` 9364$RM conftest* 9365 9366ac_outfile=conftest.$ac_objext 9367echo "$lt_simple_link_test_code" >conftest.$ac_ext 9368eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9369_lt_linker_boilerplate=`cat conftest.err` 9370$RM -r conftest* 9371 9372 9373## CAVEAT EMPTOR: 9374## There is no encapsulation within the following macros, do not change 9375## the running order or otherwise move them around unless you know exactly 9376## what you are doing... 9377if test -n "$compiler"; then 9378 9379lt_prog_compiler_no_builtin_flag= 9380 9381if test yes = "$GCC"; then 9382 case $cc_basename in 9383 nvcc*) 9384 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9385 *) 9386 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9387 esac 9388 9389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9390$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9391if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9392 $as_echo_n "(cached) " >&6 9393else 9394 lt_cv_prog_compiler_rtti_exceptions=no 9395 ac_outfile=conftest.$ac_objext 9396 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9397 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9398 # Insert the option either (1) after the last *FLAGS variable, or 9399 # (2) before a word containing "conftest.", or (3) at the end. 9400 # Note that $ac_compile itself does not contain backslashes and begins 9401 # with a dollar sign (not a hyphen), so the echo should work correctly. 9402 # The option is referenced via a variable to avoid confusing sed. 9403 lt_compile=`echo "$ac_compile" | $SED \ 9404 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9405 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9406 -e 's:$: $lt_compiler_flag:'` 9407 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9408 (eval "$lt_compile" 2>conftest.err) 9409 ac_status=$? 9410 cat conftest.err >&5 9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9412 if (exit $ac_status) && test -s "$ac_outfile"; then 9413 # The compiler can only warn and ignore the option if not recognized 9414 # So say no if there are warnings other than the usual output. 9415 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9416 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9417 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9418 lt_cv_prog_compiler_rtti_exceptions=yes 9419 fi 9420 fi 9421 $RM conftest* 9422 9423fi 9424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9425$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9426 9427if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9428 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9429else 9430 : 9431fi 9432 9433fi 9434 9435 9436 9437 9438 9439 9440 lt_prog_compiler_wl= 9441lt_prog_compiler_pic= 9442lt_prog_compiler_static= 9443 9444 9445 if test yes = "$GCC"; then 9446 lt_prog_compiler_wl='-Wl,' 9447 lt_prog_compiler_static='-static' 9448 9449 case $host_os in 9450 aix*) 9451 # All AIX code is PIC. 9452 if test ia64 = "$host_cpu"; then 9453 # AIX 5 now supports IA64 processor 9454 lt_prog_compiler_static='-Bstatic' 9455 fi 9456 lt_prog_compiler_pic='-fPIC' 9457 ;; 9458 9459 amigaos*) 9460 case $host_cpu in 9461 powerpc) 9462 # see comment about AmigaOS4 .so support 9463 lt_prog_compiler_pic='-fPIC' 9464 ;; 9465 m68k) 9466 # FIXME: we need at least 68020 code to build shared libraries, but 9467 # adding the '-m68020' flag to GCC prevents building anything better, 9468 # like '-m68040'. 9469 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9470 ;; 9471 esac 9472 ;; 9473 9474 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9475 # PIC is the default for these OSes. 9476 ;; 9477 9478 mingw* | cygwin* | pw32* | os2* | cegcc*) 9479 # This hack is so that the source file can tell whether it is being 9480 # built for inclusion in a dll (and should export symbols for example). 9481 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9482 # (--disable-auto-import) libraries 9483 lt_prog_compiler_pic='-DDLL_EXPORT' 9484 case $host_os in 9485 os2*) 9486 lt_prog_compiler_static='$wl-static' 9487 ;; 9488 esac 9489 ;; 9490 9491 darwin* | rhapsody*) 9492 # PIC is the default on this platform 9493 # Common symbols not allowed in MH_DYLIB files 9494 lt_prog_compiler_pic='-fno-common' 9495 ;; 9496 9497 haiku*) 9498 # PIC is the default for Haiku. 9499 # The "-static" flag exists, but is broken. 9500 lt_prog_compiler_static= 9501 ;; 9502 9503 hpux*) 9504 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9505 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9506 # sets the default TLS model and affects inlining. 9507 case $host_cpu in 9508 hppa*64*) 9509 # +Z the default 9510 ;; 9511 *) 9512 lt_prog_compiler_pic='-fPIC' 9513 ;; 9514 esac 9515 ;; 9516 9517 interix[3-9]*) 9518 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9519 # Instead, we relocate shared libraries at runtime. 9520 ;; 9521 9522 msdosdjgpp*) 9523 # Just because we use GCC doesn't mean we suddenly get shared libraries 9524 # on systems that don't support them. 9525 lt_prog_compiler_can_build_shared=no 9526 enable_shared=no 9527 ;; 9528 9529 *nto* | *qnx*) 9530 # QNX uses GNU C++, but need to define -shared option too, otherwise 9531 # it will coredump. 9532 lt_prog_compiler_pic='-fPIC -shared' 9533 ;; 9534 9535 sysv4*MP*) 9536 if test -d /usr/nec; then 9537 lt_prog_compiler_pic=-Kconform_pic 9538 fi 9539 ;; 9540 9541 *) 9542 lt_prog_compiler_pic='-fPIC' 9543 ;; 9544 esac 9545 9546 case $cc_basename in 9547 nvcc*) # Cuda Compiler Driver 2.2 9548 lt_prog_compiler_wl='-Xlinker ' 9549 if test -n "$lt_prog_compiler_pic"; then 9550 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9551 fi 9552 ;; 9553 esac 9554 else 9555 # PORTME Check for flag to pass linker flags through the system compiler. 9556 case $host_os in 9557 aix*) 9558 lt_prog_compiler_wl='-Wl,' 9559 if test ia64 = "$host_cpu"; then 9560 # AIX 5 now supports IA64 processor 9561 lt_prog_compiler_static='-Bstatic' 9562 else 9563 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9564 fi 9565 ;; 9566 9567 darwin* | rhapsody*) 9568 # PIC is the default on this platform 9569 # Common symbols not allowed in MH_DYLIB files 9570 lt_prog_compiler_pic='-fno-common' 9571 case $cc_basename in 9572 nagfor*) 9573 # NAG Fortran compiler 9574 lt_prog_compiler_wl='-Wl,-Wl,,' 9575 lt_prog_compiler_pic='-PIC' 9576 lt_prog_compiler_static='-Bstatic' 9577 ;; 9578 esac 9579 ;; 9580 9581 mingw* | cygwin* | pw32* | os2* | cegcc*) 9582 # This hack is so that the source file can tell whether it is being 9583 # built for inclusion in a dll (and should export symbols for example). 9584 lt_prog_compiler_pic='-DDLL_EXPORT' 9585 case $host_os in 9586 os2*) 9587 lt_prog_compiler_static='$wl-static' 9588 ;; 9589 esac 9590 ;; 9591 9592 hpux9* | hpux10* | hpux11*) 9593 lt_prog_compiler_wl='-Wl,' 9594 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9595 # not for PA HP-UX. 9596 case $host_cpu in 9597 hppa*64*|ia64*) 9598 # +Z the default 9599 ;; 9600 *) 9601 lt_prog_compiler_pic='+Z' 9602 ;; 9603 esac 9604 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9605 lt_prog_compiler_static='$wl-a ${wl}archive' 9606 ;; 9607 9608 irix5* | irix6* | nonstopux*) 9609 lt_prog_compiler_wl='-Wl,' 9610 # PIC (with -KPIC) is the default. 9611 lt_prog_compiler_static='-non_shared' 9612 ;; 9613 9614 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9615 case $cc_basename in 9616 # old Intel for x86_64, which still supported -KPIC. 9617 ecc*) 9618 lt_prog_compiler_wl='-Wl,' 9619 lt_prog_compiler_pic='-KPIC' 9620 lt_prog_compiler_static='-static' 9621 ;; 9622 # icc used to be incompatible with GCC. 9623 # ICC 10 doesn't accept -KPIC any more. 9624 icc* | ifort*) 9625 lt_prog_compiler_wl='-Wl,' 9626 lt_prog_compiler_pic='-fPIC' 9627 lt_prog_compiler_static='-static' 9628 ;; 9629 # Lahey Fortran 8.1. 9630 lf95*) 9631 lt_prog_compiler_wl='-Wl,' 9632 lt_prog_compiler_pic='--shared' 9633 lt_prog_compiler_static='--static' 9634 ;; 9635 nagfor*) 9636 # NAG Fortran compiler 9637 lt_prog_compiler_wl='-Wl,-Wl,,' 9638 lt_prog_compiler_pic='-PIC' 9639 lt_prog_compiler_static='-Bstatic' 9640 ;; 9641 tcc*) 9642 # Fabrice Bellard et al's Tiny C Compiler 9643 lt_prog_compiler_wl='-Wl,' 9644 lt_prog_compiler_pic='-fPIC' 9645 lt_prog_compiler_static='-static' 9646 ;; 9647 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9648 # Portland Group compilers (*not* the Pentium gcc compiler, 9649 # which looks to be a dead project) 9650 lt_prog_compiler_wl='-Wl,' 9651 lt_prog_compiler_pic='-fpic' 9652 lt_prog_compiler_static='-Bstatic' 9653 ;; 9654 ccc*) 9655 lt_prog_compiler_wl='-Wl,' 9656 # All Alpha code is PIC. 9657 lt_prog_compiler_static='-non_shared' 9658 ;; 9659 xl* | bgxl* | bgf* | mpixl*) 9660 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9661 lt_prog_compiler_wl='-Wl,' 9662 lt_prog_compiler_pic='-qpic' 9663 lt_prog_compiler_static='-qstaticlink' 9664 ;; 9665 *) 9666 case `$CC -V 2>&1 | sed 5q` in 9667 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9668 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9669 lt_prog_compiler_pic='-KPIC' 9670 lt_prog_compiler_static='-Bstatic' 9671 lt_prog_compiler_wl='' 9672 ;; 9673 *Sun\ F* | *Sun*Fortran*) 9674 lt_prog_compiler_pic='-KPIC' 9675 lt_prog_compiler_static='-Bstatic' 9676 lt_prog_compiler_wl='-Qoption ld ' 9677 ;; 9678 *Sun\ C*) 9679 # Sun C 5.9 9680 lt_prog_compiler_pic='-KPIC' 9681 lt_prog_compiler_static='-Bstatic' 9682 lt_prog_compiler_wl='-Wl,' 9683 ;; 9684 *Intel*\ [CF]*Compiler*) 9685 lt_prog_compiler_wl='-Wl,' 9686 lt_prog_compiler_pic='-fPIC' 9687 lt_prog_compiler_static='-static' 9688 ;; 9689 *Portland\ Group*) 9690 lt_prog_compiler_wl='-Wl,' 9691 lt_prog_compiler_pic='-fpic' 9692 lt_prog_compiler_static='-Bstatic' 9693 ;; 9694 esac 9695 ;; 9696 esac 9697 ;; 9698 9699 newsos6) 9700 lt_prog_compiler_pic='-KPIC' 9701 lt_prog_compiler_static='-Bstatic' 9702 ;; 9703 9704 *nto* | *qnx*) 9705 # QNX uses GNU C++, but need to define -shared option too, otherwise 9706 # it will coredump. 9707 lt_prog_compiler_pic='-fPIC -shared' 9708 ;; 9709 9710 osf3* | osf4* | osf5*) 9711 lt_prog_compiler_wl='-Wl,' 9712 # All OSF/1 code is PIC. 9713 lt_prog_compiler_static='-non_shared' 9714 ;; 9715 9716 rdos*) 9717 lt_prog_compiler_static='-non_shared' 9718 ;; 9719 9720 solaris*) 9721 lt_prog_compiler_pic='-KPIC' 9722 lt_prog_compiler_static='-Bstatic' 9723 case $cc_basename in 9724 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9725 lt_prog_compiler_wl='-Qoption ld ';; 9726 *) 9727 lt_prog_compiler_wl='-Wl,';; 9728 esac 9729 ;; 9730 9731 sunos4*) 9732 lt_prog_compiler_wl='-Qoption ld ' 9733 lt_prog_compiler_pic='-PIC' 9734 lt_prog_compiler_static='-Bstatic' 9735 ;; 9736 9737 sysv4 | sysv4.2uw2* | sysv4.3*) 9738 lt_prog_compiler_wl='-Wl,' 9739 lt_prog_compiler_pic='-KPIC' 9740 lt_prog_compiler_static='-Bstatic' 9741 ;; 9742 9743 sysv4*MP*) 9744 if test -d /usr/nec; then 9745 lt_prog_compiler_pic='-Kconform_pic' 9746 lt_prog_compiler_static='-Bstatic' 9747 fi 9748 ;; 9749 9750 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9751 lt_prog_compiler_wl='-Wl,' 9752 lt_prog_compiler_pic='-KPIC' 9753 lt_prog_compiler_static='-Bstatic' 9754 ;; 9755 9756 unicos*) 9757 lt_prog_compiler_wl='-Wl,' 9758 lt_prog_compiler_can_build_shared=no 9759 ;; 9760 9761 uts4*) 9762 lt_prog_compiler_pic='-pic' 9763 lt_prog_compiler_static='-Bstatic' 9764 ;; 9765 9766 *) 9767 lt_prog_compiler_can_build_shared=no 9768 ;; 9769 esac 9770 fi 9771 9772case $host_os in 9773 # For platforms that do not support PIC, -DPIC is meaningless: 9774 *djgpp*) 9775 lt_prog_compiler_pic= 9776 ;; 9777 *) 9778 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9779 ;; 9780esac 9781 9782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9783$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9784if ${lt_cv_prog_compiler_pic+:} false; then : 9785 $as_echo_n "(cached) " >&6 9786else 9787 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9788fi 9789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9790$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9791lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9792 9793# 9794# Check to make sure the PIC flag actually works. 9795# 9796if test -n "$lt_prog_compiler_pic"; then 9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9798$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9799if ${lt_cv_prog_compiler_pic_works+:} false; then : 9800 $as_echo_n "(cached) " >&6 9801else 9802 lt_cv_prog_compiler_pic_works=no 9803 ac_outfile=conftest.$ac_objext 9804 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9805 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9806 # Insert the option either (1) after the last *FLAGS variable, or 9807 # (2) before a word containing "conftest.", or (3) at the end. 9808 # Note that $ac_compile itself does not contain backslashes and begins 9809 # with a dollar sign (not a hyphen), so the echo should work correctly. 9810 # The option is referenced via a variable to avoid confusing sed. 9811 lt_compile=`echo "$ac_compile" | $SED \ 9812 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9813 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9814 -e 's:$: $lt_compiler_flag:'` 9815 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9816 (eval "$lt_compile" 2>conftest.err) 9817 ac_status=$? 9818 cat conftest.err >&5 9819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9820 if (exit $ac_status) && test -s "$ac_outfile"; then 9821 # The compiler can only warn and ignore the option if not recognized 9822 # So say no if there are warnings other than the usual output. 9823 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9824 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9825 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9826 lt_cv_prog_compiler_pic_works=yes 9827 fi 9828 fi 9829 $RM conftest* 9830 9831fi 9832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9833$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9834 9835if test yes = "$lt_cv_prog_compiler_pic_works"; then 9836 case $lt_prog_compiler_pic in 9837 "" | " "*) ;; 9838 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9839 esac 9840else 9841 lt_prog_compiler_pic= 9842 lt_prog_compiler_can_build_shared=no 9843fi 9844 9845fi 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857# 9858# Check to make sure the static flag actually works. 9859# 9860wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9862$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9863if ${lt_cv_prog_compiler_static_works+:} false; then : 9864 $as_echo_n "(cached) " >&6 9865else 9866 lt_cv_prog_compiler_static_works=no 9867 save_LDFLAGS=$LDFLAGS 9868 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9869 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9870 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9871 # The linker can only warn and ignore the option if not recognized 9872 # So say no if there are warnings 9873 if test -s conftest.err; then 9874 # Append any errors to the config.log. 9875 cat conftest.err 1>&5 9876 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9877 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9878 if diff conftest.exp conftest.er2 >/dev/null; then 9879 lt_cv_prog_compiler_static_works=yes 9880 fi 9881 else 9882 lt_cv_prog_compiler_static_works=yes 9883 fi 9884 fi 9885 $RM -r conftest* 9886 LDFLAGS=$save_LDFLAGS 9887 9888fi 9889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9890$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9891 9892if test yes = "$lt_cv_prog_compiler_static_works"; then 9893 : 9894else 9895 lt_prog_compiler_static= 9896fi 9897 9898 9899 9900 9901 9902 9903 9904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9905$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9906if ${lt_cv_prog_compiler_c_o+:} false; then : 9907 $as_echo_n "(cached) " >&6 9908else 9909 lt_cv_prog_compiler_c_o=no 9910 $RM -r conftest 2>/dev/null 9911 mkdir conftest 9912 cd conftest 9913 mkdir out 9914 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9915 9916 lt_compiler_flag="-o out/conftest2.$ac_objext" 9917 # Insert the option either (1) after the last *FLAGS variable, or 9918 # (2) before a word containing "conftest.", or (3) at the end. 9919 # Note that $ac_compile itself does not contain backslashes and begins 9920 # with a dollar sign (not a hyphen), so the echo should work correctly. 9921 lt_compile=`echo "$ac_compile" | $SED \ 9922 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9923 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9924 -e 's:$: $lt_compiler_flag:'` 9925 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9926 (eval "$lt_compile" 2>out/conftest.err) 9927 ac_status=$? 9928 cat out/conftest.err >&5 9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9930 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9931 then 9932 # The compiler can only warn and ignore the option if not recognized 9933 # So say no if there are warnings 9934 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9935 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9936 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9937 lt_cv_prog_compiler_c_o=yes 9938 fi 9939 fi 9940 chmod u+w . 2>&5 9941 $RM conftest* 9942 # SGI C++ compiler will create directory out/ii_files/ for 9943 # template instantiation 9944 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9945 $RM out/* && rmdir out 9946 cd .. 9947 $RM -r conftest 9948 $RM conftest* 9949 9950fi 9951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9952$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9953 9954 9955 9956 9957 9958 9959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9960$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9961if ${lt_cv_prog_compiler_c_o+:} false; then : 9962 $as_echo_n "(cached) " >&6 9963else 9964 lt_cv_prog_compiler_c_o=no 9965 $RM -r conftest 2>/dev/null 9966 mkdir conftest 9967 cd conftest 9968 mkdir out 9969 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9970 9971 lt_compiler_flag="-o out/conftest2.$ac_objext" 9972 # Insert the option either (1) after the last *FLAGS variable, or 9973 # (2) before a word containing "conftest.", or (3) at the end. 9974 # Note that $ac_compile itself does not contain backslashes and begins 9975 # with a dollar sign (not a hyphen), so the echo should work correctly. 9976 lt_compile=`echo "$ac_compile" | $SED \ 9977 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9978 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9979 -e 's:$: $lt_compiler_flag:'` 9980 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9981 (eval "$lt_compile" 2>out/conftest.err) 9982 ac_status=$? 9983 cat out/conftest.err >&5 9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9985 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9986 then 9987 # The compiler can only warn and ignore the option if not recognized 9988 # So say no if there are warnings 9989 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9990 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9991 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9992 lt_cv_prog_compiler_c_o=yes 9993 fi 9994 fi 9995 chmod u+w . 2>&5 9996 $RM conftest* 9997 # SGI C++ compiler will create directory out/ii_files/ for 9998 # template instantiation 9999 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10000 $RM out/* && rmdir out 10001 cd .. 10002 $RM -r conftest 10003 $RM conftest* 10004 10005fi 10006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10007$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10008 10009 10010 10011 10012hard_links=nottested 10013if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10014 # do not overwrite the value of need_locks provided by the user 10015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10016$as_echo_n "checking if we can lock with hard links... " >&6; } 10017 hard_links=yes 10018 $RM conftest* 10019 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10020 touch conftest.a 10021 ln conftest.a conftest.b 2>&5 || hard_links=no 10022 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10024$as_echo "$hard_links" >&6; } 10025 if test no = "$hard_links"; then 10026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10027$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10028 need_locks=warn 10029 fi 10030else 10031 need_locks=no 10032fi 10033 10034 10035 10036 10037 10038 10039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10040$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10041 10042 runpath_var= 10043 allow_undefined_flag= 10044 always_export_symbols=no 10045 archive_cmds= 10046 archive_expsym_cmds= 10047 compiler_needs_object=no 10048 enable_shared_with_static_runtimes=no 10049 export_dynamic_flag_spec= 10050 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10051 hardcode_automatic=no 10052 hardcode_direct=no 10053 hardcode_direct_absolute=no 10054 hardcode_libdir_flag_spec= 10055 hardcode_libdir_separator= 10056 hardcode_minus_L=no 10057 hardcode_shlibpath_var=unsupported 10058 inherit_rpath=no 10059 link_all_deplibs=unknown 10060 module_cmds= 10061 module_expsym_cmds= 10062 old_archive_from_new_cmds= 10063 old_archive_from_expsyms_cmds= 10064 thread_safe_flag_spec= 10065 whole_archive_flag_spec= 10066 # include_expsyms should be a list of space-separated symbols to be *always* 10067 # included in the symbol list 10068 include_expsyms= 10069 # exclude_expsyms can be an extended regexp of symbols to exclude 10070 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10071 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10072 # as well as any symbol that contains 'd'. 10073 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10074 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10075 # platforms (ab)use it in PIC code, but their linkers get confused if 10076 # the symbol is explicitly referenced. Since portable code cannot 10077 # rely on this symbol name, it's probably fine to never include it in 10078 # preloaded symbol tables. 10079 # Exclude shared library initialization/finalization symbols. 10080 extract_expsyms_cmds= 10081 10082 case $host_os in 10083 cygwin* | mingw* | pw32* | cegcc*) 10084 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10085 # When not using gcc, we currently assume that we are using 10086 # Microsoft Visual C++. 10087 if test yes != "$GCC"; then 10088 with_gnu_ld=no 10089 fi 10090 ;; 10091 interix*) 10092 # we just hope/assume this is gcc and not c89 (= MSVC++) 10093 with_gnu_ld=yes 10094 ;; 10095 openbsd* | bitrig*) 10096 with_gnu_ld=no 10097 ;; 10098 esac 10099 10100 ld_shlibs=yes 10101 10102 # On some targets, GNU ld is compatible enough with the native linker 10103 # that we're better off using the native interface for both. 10104 lt_use_gnu_ld_interface=no 10105 if test yes = "$with_gnu_ld"; then 10106 case $host_os in 10107 aix*) 10108 # The AIX port of GNU ld has always aspired to compatibility 10109 # with the native linker. However, as the warning in the GNU ld 10110 # block says, versions before 2.19.5* couldn't really create working 10111 # shared libraries, regardless of the interface used. 10112 case `$LD -v 2>&1` in 10113 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10114 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10115 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10116 *) 10117 lt_use_gnu_ld_interface=yes 10118 ;; 10119 esac 10120 ;; 10121 *) 10122 lt_use_gnu_ld_interface=yes 10123 ;; 10124 esac 10125 fi 10126 10127 if test yes = "$lt_use_gnu_ld_interface"; then 10128 # If archive_cmds runs LD, not CC, wlarc should be empty 10129 wlarc='$wl' 10130 10131 # Set some defaults for GNU ld with shared library support. These 10132 # are reset later if shared libraries are not supported. Putting them 10133 # here allows them to be overridden if necessary. 10134 runpath_var=LD_RUN_PATH 10135 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10136 export_dynamic_flag_spec='$wl--export-dynamic' 10137 # ancient GNU ld didn't support --whole-archive et. al. 10138 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10139 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10140 else 10141 whole_archive_flag_spec= 10142 fi 10143 supports_anon_versioning=no 10144 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 10145 *GNU\ gold*) supports_anon_versioning=yes ;; 10146 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10147 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10148 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10149 *\ 2.11.*) ;; # other 2.11 versions 10150 *) supports_anon_versioning=yes ;; 10151 esac 10152 10153 # See if GNU ld supports shared libraries. 10154 case $host_os in 10155 aix[3-9]*) 10156 # On AIX/PPC, the GNU linker is very broken 10157 if test ia64 != "$host_cpu"; then 10158 ld_shlibs=no 10159 cat <<_LT_EOF 1>&2 10160 10161*** Warning: the GNU linker, at least up to release 2.19, is reported 10162*** to be unable to reliably create shared libraries on AIX. 10163*** Therefore, libtool is disabling shared libraries support. If you 10164*** really care for shared libraries, you may want to install binutils 10165*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10166*** You will then need to restart the configuration process. 10167 10168_LT_EOF 10169 fi 10170 ;; 10171 10172 amigaos*) 10173 case $host_cpu in 10174 powerpc) 10175 # see comment about AmigaOS4 .so support 10176 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10177 archive_expsym_cmds='' 10178 ;; 10179 m68k) 10180 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 10181 hardcode_libdir_flag_spec='-L$libdir' 10182 hardcode_minus_L=yes 10183 ;; 10184 esac 10185 ;; 10186 10187 beos*) 10188 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10189 allow_undefined_flag=unsupported 10190 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10191 # support --undefined. This deserves some investigation. FIXME 10192 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10193 else 10194 ld_shlibs=no 10195 fi 10196 ;; 10197 10198 cygwin* | mingw* | pw32* | cegcc*) 10199 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10200 # as there is no search path for DLLs. 10201 hardcode_libdir_flag_spec='-L$libdir' 10202 export_dynamic_flag_spec='$wl--export-all-symbols' 10203 allow_undefined_flag=unsupported 10204 always_export_symbols=no 10205 enable_shared_with_static_runtimes=yes 10206 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 10207 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10208 10209 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10210 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10211 # If the export-symbols file already is a .def file, use it as 10212 # is; otherwise, prepend EXPORTS... 10213 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10214 cp $export_symbols $output_objdir/$soname.def; 10215 else 10216 echo EXPORTS > $output_objdir/$soname.def; 10217 cat $export_symbols >> $output_objdir/$soname.def; 10218 fi~ 10219 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10220 else 10221 ld_shlibs=no 10222 fi 10223 ;; 10224 10225 haiku*) 10226 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10227 link_all_deplibs=yes 10228 ;; 10229 10230 os2*) 10231 hardcode_libdir_flag_spec='-L$libdir' 10232 hardcode_minus_L=yes 10233 allow_undefined_flag=unsupported 10234 shrext_cmds=.dll 10235 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10236 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10237 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10238 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10239 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10240 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10241 emximp -o $lib $output_objdir/$libname.def' 10242 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10243 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10244 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10245 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10246 prefix_cmds="$SED"~ 10247 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10248 prefix_cmds="$prefix_cmds -e 1d"; 10249 fi~ 10250 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10251 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10252 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10253 emximp -o $lib $output_objdir/$libname.def' 10254 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10255 enable_shared_with_static_runtimes=yes 10256 ;; 10257 10258 interix[3-9]*) 10259 hardcode_direct=no 10260 hardcode_shlibpath_var=no 10261 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10262 export_dynamic_flag_spec='$wl-E' 10263 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10264 # Instead, shared libraries are loaded at an image base (0x10000000 by 10265 # default) and relocated if they conflict, which is a slow very memory 10266 # consuming and fragmenting process. To avoid this, we pick a random, 10267 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10268 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10269 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10270 archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10271 ;; 10272 10273 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10274 tmp_diet=no 10275 if test linux-dietlibc = "$host_os"; then 10276 case $cc_basename in 10277 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10278 esac 10279 fi 10280 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10281 && test no = "$tmp_diet" 10282 then 10283 tmp_addflag=' $pic_flag' 10284 tmp_sharedflag='-shared' 10285 case $cc_basename,$host_cpu in 10286 pgcc*) # Portland Group C compiler 10287 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 10288 tmp_addflag=' $pic_flag' 10289 ;; 10290 pgf77* | pgf90* | pgf95* | pgfortran*) 10291 # Portland Group f77 and f90 compilers 10292 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 10293 tmp_addflag=' $pic_flag -Mnomain' ;; 10294 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10295 tmp_addflag=' -i_dynamic' ;; 10296 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10297 tmp_addflag=' -i_dynamic -nofor_main' ;; 10298 ifc* | ifort*) # Intel Fortran compiler 10299 tmp_addflag=' -nofor_main' ;; 10300 lf95*) # Lahey Fortran 8.1 10301 whole_archive_flag_spec= 10302 tmp_sharedflag='--shared' ;; 10303 nagfor*) # NAGFOR 5.3 10304 tmp_sharedflag='-Wl,-shared' ;; 10305 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10306 tmp_sharedflag='-qmkshrobj' 10307 tmp_addflag= ;; 10308 nvcc*) # Cuda Compiler Driver 2.2 10309 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 10310 compiler_needs_object=yes 10311 ;; 10312 esac 10313 case `$CC -V 2>&1 | sed 5q` in 10314 *Sun\ C*) # Sun C 5.9 10315 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 10316 compiler_needs_object=yes 10317 tmp_sharedflag='-G' ;; 10318 *Sun\ F*) # Sun Fortran 8.3 10319 tmp_sharedflag='-G' ;; 10320 esac 10321 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10322 10323 if test yes = "$supports_anon_versioning"; then 10324 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10325 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10326 echo "local: *; };" >> $output_objdir/$libname.ver~ 10327 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10328 fi 10329 10330 case $cc_basename in 10331 tcc*) 10332 export_dynamic_flag_spec='-rdynamic' 10333 ;; 10334 xlf* | bgf* | bgxlf* | mpixlf*) 10335 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10336 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10337 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10338 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10339 if test yes = "$supports_anon_versioning"; then 10340 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10341 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10342 echo "local: *; };" >> $output_objdir/$libname.ver~ 10343 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10344 fi 10345 ;; 10346 esac 10347 else 10348 ld_shlibs=no 10349 fi 10350 ;; 10351 10352 netbsd*) 10353 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10354 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10355 wlarc= 10356 else 10357 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10358 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10359 fi 10360 ;; 10361 10362 solaris*) 10363 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10364 ld_shlibs=no 10365 cat <<_LT_EOF 1>&2 10366 10367*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10368*** create shared libraries on Solaris systems. Therefore, libtool 10369*** is disabling shared libraries support. We urge you to upgrade GNU 10370*** binutils to release 2.9.1 or newer. Another option is to modify 10371*** your PATH or compiler configuration so that the native linker is 10372*** used, and then restart. 10373 10374_LT_EOF 10375 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10376 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10377 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10378 else 10379 ld_shlibs=no 10380 fi 10381 ;; 10382 10383 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10384 case `$LD -v 2>&1` in 10385 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10386 ld_shlibs=no 10387 cat <<_LT_EOF 1>&2 10388 10389*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10390*** reliably create shared libraries on SCO systems. Therefore, libtool 10391*** is disabling shared libraries support. We urge you to upgrade GNU 10392*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10393*** your PATH or compiler configuration so that the native linker is 10394*** used, and then restart. 10395 10396_LT_EOF 10397 ;; 10398 *) 10399 # For security reasons, it is highly recommended that you always 10400 # use absolute paths for naming shared libraries, and exclude the 10401 # DT_RUNPATH tag from executables and libraries. But doing so 10402 # requires that you compile everything twice, which is a pain. 10403 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10404 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10405 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10406 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10407 else 10408 ld_shlibs=no 10409 fi 10410 ;; 10411 esac 10412 ;; 10413 10414 sunos4*) 10415 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10416 wlarc= 10417 hardcode_direct=yes 10418 hardcode_shlibpath_var=no 10419 ;; 10420 10421 *) 10422 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10423 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10424 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10425 else 10426 ld_shlibs=no 10427 fi 10428 ;; 10429 esac 10430 10431 if test no = "$ld_shlibs"; then 10432 runpath_var= 10433 hardcode_libdir_flag_spec= 10434 export_dynamic_flag_spec= 10435 whole_archive_flag_spec= 10436 fi 10437 else 10438 # PORTME fill in a description of your system's linker (not GNU ld) 10439 case $host_os in 10440 aix3*) 10441 allow_undefined_flag=unsupported 10442 always_export_symbols=yes 10443 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 10444 # Note: this linker hardcodes the directories in LIBPATH if there 10445 # are no directories specified by -L. 10446 hardcode_minus_L=yes 10447 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10448 # Neither direct hardcoding nor static linking is supported with a 10449 # broken collect2. 10450 hardcode_direct=unsupported 10451 fi 10452 ;; 10453 10454 aix[4-9]*) 10455 if test ia64 = "$host_cpu"; then 10456 # On IA64, the linker does run time linking by default, so we don't 10457 # have to do anything special. 10458 aix_use_runtimelinking=no 10459 exp_sym_flag='-Bexport' 10460 no_entry_flag= 10461 else 10462 # If we're using GNU nm, then we don't want the "-C" option. 10463 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10464 # Without the "-l" option, or with the "-B" option, AIX nm treats 10465 # weak defined symbols like other global defined symbols, whereas 10466 # GNU nm marks them as "W". 10467 # While the 'weak' keyword is ignored in the Export File, we need 10468 # it in the Import File for the 'aix-soname' feature, so we have 10469 # to replace the "-B" option with "-P" for AIX nm. 10470 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10471 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 10472 else 10473 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 10474 fi 10475 aix_use_runtimelinking=no 10476 10477 # Test if we are trying to use run time linking or normal 10478 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10479 # have runtime linking enabled, and use it for executables. 10480 # For shared libraries, we enable/disable runtime linking 10481 # depending on the kind of the shared library created - 10482 # when "with_aix_soname,aix_use_runtimelinking" is: 10483 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10484 # "aix,yes" lib.so shared, rtl:yes, for executables 10485 # lib.a static archive 10486 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10487 # lib.a(lib.so.V) shared, rtl:no, for executables 10488 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10489 # lib.a(lib.so.V) shared, rtl:no 10490 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10491 # lib.a static archive 10492 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10493 for ld_flag in $LDFLAGS; do 10494 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10495 aix_use_runtimelinking=yes 10496 break 10497 fi 10498 done 10499 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10500 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10501 # so we don't have lib.a shared libs to link our executables. 10502 # We have to force runtime linking in this case. 10503 aix_use_runtimelinking=yes 10504 LDFLAGS="$LDFLAGS -Wl,-brtl" 10505 fi 10506 ;; 10507 esac 10508 10509 exp_sym_flag='-bexport' 10510 no_entry_flag='-bnoentry' 10511 fi 10512 10513 # When large executables or shared objects are built, AIX ld can 10514 # have problems creating the table of contents. If linking a library 10515 # or program results in "error TOC overflow" add -mminimal-toc to 10516 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10517 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10518 10519 archive_cmds='' 10520 hardcode_direct=yes 10521 hardcode_direct_absolute=yes 10522 hardcode_libdir_separator=':' 10523 link_all_deplibs=yes 10524 file_list_spec='$wl-f,' 10525 case $with_aix_soname,$aix_use_runtimelinking in 10526 aix,*) ;; # traditional, no import file 10527 svr4,* | *,yes) # use import file 10528 # The Import File defines what to hardcode. 10529 hardcode_direct=no 10530 hardcode_direct_absolute=no 10531 ;; 10532 esac 10533 10534 if test yes = "$GCC"; then 10535 case $host_os in aix4.[012]|aix4.[012].*) 10536 # We only want to do this on AIX 4.2 and lower, the check 10537 # below for broken collect2 doesn't work under 4.3+ 10538 collect2name=`$CC -print-prog-name=collect2` 10539 if test -f "$collect2name" && 10540 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10541 then 10542 # We have reworked collect2 10543 : 10544 else 10545 # We have old collect2 10546 hardcode_direct=unsupported 10547 # It fails to find uninstalled libraries when the uninstalled 10548 # path is not listed in the libpath. Setting hardcode_minus_L 10549 # to unsupported forces relinking 10550 hardcode_minus_L=yes 10551 hardcode_libdir_flag_spec='-L$libdir' 10552 hardcode_libdir_separator= 10553 fi 10554 ;; 10555 esac 10556 shared_flag='-shared' 10557 if test yes = "$aix_use_runtimelinking"; then 10558 shared_flag="$shared_flag "'$wl-G' 10559 fi 10560 # Need to ensure runtime linking is disabled for the traditional 10561 # shared library, or the linker may eventually find shared libraries 10562 # /with/ Import File - we do not want to mix them. 10563 shared_flag_aix='-shared' 10564 shared_flag_svr4='-shared $wl-G' 10565 else 10566 # not using gcc 10567 if test ia64 = "$host_cpu"; then 10568 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10569 # chokes on -Wl,-G. The following line is correct: 10570 shared_flag='-G' 10571 else 10572 if test yes = "$aix_use_runtimelinking"; then 10573 shared_flag='$wl-G' 10574 else 10575 shared_flag='$wl-bM:SRE' 10576 fi 10577 shared_flag_aix='$wl-bM:SRE' 10578 shared_flag_svr4='$wl-G' 10579 fi 10580 fi 10581 10582 export_dynamic_flag_spec='$wl-bexpall' 10583 # It seems that -bexpall does not export symbols beginning with 10584 # underscore (_), so it is better to generate a list of symbols to export. 10585 always_export_symbols=yes 10586 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10587 # Warning - without using the other runtime loading flags (-brtl), 10588 # -berok will link without error, but may produce a broken library. 10589 allow_undefined_flag='-berok' 10590 # Determine the default libpath from the value encoded in an 10591 # empty executable. 10592 if test set = "${lt_cv_aix_libpath+set}"; then 10593 aix_libpath=$lt_cv_aix_libpath 10594else 10595 if ${lt_cv_aix_libpath_+:} false; then : 10596 $as_echo_n "(cached) " >&6 10597else 10598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10599/* end confdefs.h. */ 10600 10601int 10602main () 10603{ 10604 10605 ; 10606 return 0; 10607} 10608_ACEOF 10609if ac_fn_c_try_link "$LINENO"; then : 10610 10611 lt_aix_libpath_sed=' 10612 /Import File Strings/,/^$/ { 10613 /^0/ { 10614 s/^0 *\([^ ]*\) *$/\1/ 10615 p 10616 } 10617 }' 10618 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10619 # Check for a 64-bit object if we didn't find anything. 10620 if test -z "$lt_cv_aix_libpath_"; then 10621 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10622 fi 10623fi 10624rm -f core conftest.err conftest.$ac_objext \ 10625 conftest$ac_exeext conftest.$ac_ext 10626 if test -z "$lt_cv_aix_libpath_"; then 10627 lt_cv_aix_libpath_=/usr/lib:/lib 10628 fi 10629 10630fi 10631 10632 aix_libpath=$lt_cv_aix_libpath_ 10633fi 10634 10635 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10636 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 10637 else 10638 if test ia64 = "$host_cpu"; then 10639 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10640 allow_undefined_flag="-z nodefs" 10641 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" 10642 else 10643 # Determine the default libpath from the value encoded in an 10644 # empty executable. 10645 if test set = "${lt_cv_aix_libpath+set}"; then 10646 aix_libpath=$lt_cv_aix_libpath 10647else 10648 if ${lt_cv_aix_libpath_+:} false; then : 10649 $as_echo_n "(cached) " >&6 10650else 10651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10652/* end confdefs.h. */ 10653 10654int 10655main () 10656{ 10657 10658 ; 10659 return 0; 10660} 10661_ACEOF 10662if ac_fn_c_try_link "$LINENO"; then : 10663 10664 lt_aix_libpath_sed=' 10665 /Import File Strings/,/^$/ { 10666 /^0/ { 10667 s/^0 *\([^ ]*\) *$/\1/ 10668 p 10669 } 10670 }' 10671 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10672 # Check for a 64-bit object if we didn't find anything. 10673 if test -z "$lt_cv_aix_libpath_"; then 10674 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10675 fi 10676fi 10677rm -f core conftest.err conftest.$ac_objext \ 10678 conftest$ac_exeext conftest.$ac_ext 10679 if test -z "$lt_cv_aix_libpath_"; then 10680 lt_cv_aix_libpath_=/usr/lib:/lib 10681 fi 10682 10683fi 10684 10685 aix_libpath=$lt_cv_aix_libpath_ 10686fi 10687 10688 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10689 # Warning - without using the other run time loading flags, 10690 # -berok will link without error, but may produce a broken library. 10691 no_undefined_flag=' $wl-bernotok' 10692 allow_undefined_flag=' $wl-berok' 10693 if test yes = "$with_gnu_ld"; then 10694 # We only use this code for GNU lds that support --whole-archive. 10695 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10696 else 10697 # Exported symbols can be pulled into shared objects from archives 10698 whole_archive_flag_spec='$convenience' 10699 fi 10700 archive_cmds_need_lc=yes 10701 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10702 # -brtl affects multiple linker settings, -berok does not and is overridden later 10703 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10704 if test svr4 != "$with_aix_soname"; then 10705 # This is similar to how AIX traditionally builds its shared libraries. 10706 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 10707 fi 10708 if test aix != "$with_aix_soname"; then 10709 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 10710 else 10711 # used by -dlpreopen to get the symbols 10712 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10713 fi 10714 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10715 fi 10716 fi 10717 ;; 10718 10719 amigaos*) 10720 case $host_cpu in 10721 powerpc) 10722 # see comment about AmigaOS4 .so support 10723 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10724 archive_expsym_cmds='' 10725 ;; 10726 m68k) 10727 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 10728 hardcode_libdir_flag_spec='-L$libdir' 10729 hardcode_minus_L=yes 10730 ;; 10731 esac 10732 ;; 10733 10734 bsdi[45]*) 10735 export_dynamic_flag_spec=-rdynamic 10736 ;; 10737 10738 cygwin* | mingw* | pw32* | cegcc*) 10739 # When not using gcc, we currently assume that we are using 10740 # Microsoft Visual C++. 10741 # hardcode_libdir_flag_spec is actually meaningless, as there is 10742 # no search path for DLLs. 10743 case $cc_basename in 10744 cl*) 10745 # Native MSVC 10746 hardcode_libdir_flag_spec=' ' 10747 allow_undefined_flag=unsupported 10748 always_export_symbols=yes 10749 file_list_spec='@' 10750 # Tell ltmain to make .lib files, not .a files. 10751 libext=lib 10752 # Tell ltmain to make .dll files, not .so files. 10753 shrext_cmds=.dll 10754 # FIXME: Setting linknames here is a bad hack. 10755 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10756 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10757 cp "$export_symbols" "$output_objdir/$soname.def"; 10758 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10759 else 10760 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10761 fi~ 10762 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10763 linknames=' 10764 # The linker will not automatically build a static lib if we build a DLL. 10765 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10766 enable_shared_with_static_runtimes=yes 10767 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10768 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10769 # Don't use ranlib 10770 old_postinstall_cmds='chmod 644 $oldlib' 10771 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10772 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10773 case $lt_outputfile in 10774 *.exe|*.EXE) ;; 10775 *) 10776 lt_outputfile=$lt_outputfile.exe 10777 lt_tool_outputfile=$lt_tool_outputfile.exe 10778 ;; 10779 esac~ 10780 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10781 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10782 $RM "$lt_outputfile.manifest"; 10783 fi' 10784 ;; 10785 *) 10786 # Assume MSVC wrapper 10787 hardcode_libdir_flag_spec=' ' 10788 allow_undefined_flag=unsupported 10789 # Tell ltmain to make .lib files, not .a files. 10790 libext=lib 10791 # Tell ltmain to make .dll files, not .so files. 10792 shrext_cmds=.dll 10793 # FIXME: Setting linknames here is a bad hack. 10794 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10795 # The linker will automatically build a .lib file if we build a DLL. 10796 old_archive_from_new_cmds='true' 10797 # FIXME: Should let the user specify the lib program. 10798 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10799 enable_shared_with_static_runtimes=yes 10800 ;; 10801 esac 10802 ;; 10803 10804 darwin* | rhapsody*) 10805 10806 10807 archive_cmds_need_lc=no 10808 hardcode_direct=no 10809 hardcode_automatic=yes 10810 hardcode_shlibpath_var=unsupported 10811 if test yes = "$lt_cv_ld_force_load"; then 10812 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 10813 10814 else 10815 whole_archive_flag_spec='' 10816 fi 10817 link_all_deplibs=yes 10818 allow_undefined_flag=$_lt_dar_allow_undefined 10819 case $cc_basename in 10820 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10821 *) _lt_dar_can_shared=$GCC ;; 10822 esac 10823 if test yes = "$_lt_dar_can_shared"; then 10824 output_verbose_link_cmd=func_echo_all 10825 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10826 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10827 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" 10828 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" 10829 10830 else 10831 ld_shlibs=no 10832 fi 10833 10834 ;; 10835 10836 dgux*) 10837 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10838 hardcode_libdir_flag_spec='-L$libdir' 10839 hardcode_shlibpath_var=no 10840 ;; 10841 10842 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10843 # support. Future versions do this automatically, but an explicit c++rt0.o 10844 # does not break anything, and helps significantly (at the cost of a little 10845 # extra space). 10846 freebsd2.2*) 10847 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10848 hardcode_libdir_flag_spec='-R$libdir' 10849 hardcode_direct=yes 10850 hardcode_shlibpath_var=no 10851 ;; 10852 10853 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10854 freebsd2.*) 10855 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10856 hardcode_direct=yes 10857 hardcode_minus_L=yes 10858 hardcode_shlibpath_var=no 10859 ;; 10860 10861 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10862 freebsd* | dragonfly*) 10863 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10864 hardcode_libdir_flag_spec='-R$libdir' 10865 hardcode_direct=yes 10866 hardcode_shlibpath_var=no 10867 ;; 10868 10869 hpux9*) 10870 if test yes = "$GCC"; then 10871 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10872 else 10873 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10874 fi 10875 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10876 hardcode_libdir_separator=: 10877 hardcode_direct=yes 10878 10879 # hardcode_minus_L: Not really in the search PATH, 10880 # but as the default location of the library. 10881 hardcode_minus_L=yes 10882 export_dynamic_flag_spec='$wl-E' 10883 ;; 10884 10885 hpux10*) 10886 if test yes,no = "$GCC,$with_gnu_ld"; then 10887 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10888 else 10889 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10890 fi 10891 if test no = "$with_gnu_ld"; then 10892 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10893 hardcode_libdir_separator=: 10894 hardcode_direct=yes 10895 hardcode_direct_absolute=yes 10896 export_dynamic_flag_spec='$wl-E' 10897 # hardcode_minus_L: Not really in the search PATH, 10898 # but as the default location of the library. 10899 hardcode_minus_L=yes 10900 fi 10901 ;; 10902 10903 hpux11*) 10904 if test yes,no = "$GCC,$with_gnu_ld"; then 10905 case $host_cpu in 10906 hppa*64*) 10907 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10908 ;; 10909 ia64*) 10910 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10911 ;; 10912 *) 10913 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10914 ;; 10915 esac 10916 else 10917 case $host_cpu in 10918 hppa*64*) 10919 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10920 ;; 10921 ia64*) 10922 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10923 ;; 10924 *) 10925 10926 # Older versions of the 11.00 compiler do not understand -b yet 10927 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10929$as_echo_n "checking if $CC understands -b... " >&6; } 10930if ${lt_cv_prog_compiler__b+:} false; then : 10931 $as_echo_n "(cached) " >&6 10932else 10933 lt_cv_prog_compiler__b=no 10934 save_LDFLAGS=$LDFLAGS 10935 LDFLAGS="$LDFLAGS -b" 10936 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10937 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10938 # The linker can only warn and ignore the option if not recognized 10939 # So say no if there are warnings 10940 if test -s conftest.err; then 10941 # Append any errors to the config.log. 10942 cat conftest.err 1>&5 10943 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10944 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10945 if diff conftest.exp conftest.er2 >/dev/null; then 10946 lt_cv_prog_compiler__b=yes 10947 fi 10948 else 10949 lt_cv_prog_compiler__b=yes 10950 fi 10951 fi 10952 $RM -r conftest* 10953 LDFLAGS=$save_LDFLAGS 10954 10955fi 10956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10957$as_echo "$lt_cv_prog_compiler__b" >&6; } 10958 10959if test yes = "$lt_cv_prog_compiler__b"; then 10960 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10961else 10962 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10963fi 10964 10965 ;; 10966 esac 10967 fi 10968 if test no = "$with_gnu_ld"; then 10969 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10970 hardcode_libdir_separator=: 10971 10972 case $host_cpu in 10973 hppa*64*|ia64*) 10974 hardcode_direct=no 10975 hardcode_shlibpath_var=no 10976 ;; 10977 *) 10978 hardcode_direct=yes 10979 hardcode_direct_absolute=yes 10980 export_dynamic_flag_spec='$wl-E' 10981 10982 # hardcode_minus_L: Not really in the search PATH, 10983 # but as the default location of the library. 10984 hardcode_minus_L=yes 10985 ;; 10986 esac 10987 fi 10988 ;; 10989 10990 irix5* | irix6* | nonstopux*) 10991 if test yes = "$GCC"; then 10992 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 10993 # Try to use the -exported_symbol ld option, if it does not 10994 # work, assume that -exports_file does not work either and 10995 # implicitly export all symbols. 10996 # This should be the same for all languages, so no per-tag cache variable. 10997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10998$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10999if ${lt_cv_irix_exported_symbol+:} false; then : 11000 $as_echo_n "(cached) " >&6 11001else 11002 save_LDFLAGS=$LDFLAGS 11003 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11005/* end confdefs.h. */ 11006int foo (void) { return 0; } 11007_ACEOF 11008if ac_fn_c_try_link "$LINENO"; then : 11009 lt_cv_irix_exported_symbol=yes 11010else 11011 lt_cv_irix_exported_symbol=no 11012fi 11013rm -f core conftest.err conftest.$ac_objext \ 11014 conftest$ac_exeext conftest.$ac_ext 11015 LDFLAGS=$save_LDFLAGS 11016fi 11017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11018$as_echo "$lt_cv_irix_exported_symbol" >&6; } 11019 if test yes = "$lt_cv_irix_exported_symbol"; then 11020 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' 11021 fi 11022 else 11023 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 11024 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' 11025 fi 11026 archive_cmds_need_lc='no' 11027 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11028 hardcode_libdir_separator=: 11029 inherit_rpath=yes 11030 link_all_deplibs=yes 11031 ;; 11032 11033 linux*) 11034 case $cc_basename in 11035 tcc*) 11036 # Fabrice Bellard et al's Tiny C Compiler 11037 ld_shlibs=yes 11038 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11039 ;; 11040 esac 11041 ;; 11042 11043 netbsd*) 11044 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11045 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11046 else 11047 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11048 fi 11049 hardcode_libdir_flag_spec='-R$libdir' 11050 hardcode_direct=yes 11051 hardcode_shlibpath_var=no 11052 ;; 11053 11054 newsos6) 11055 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11056 hardcode_direct=yes 11057 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11058 hardcode_libdir_separator=: 11059 hardcode_shlibpath_var=no 11060 ;; 11061 11062 *nto* | *qnx*) 11063 ;; 11064 11065 openbsd* | bitrig*) 11066 if test -f /usr/libexec/ld.so; then 11067 hardcode_direct=yes 11068 hardcode_shlibpath_var=no 11069 hardcode_direct_absolute=yes 11070 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11071 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11072 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11073 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11074 export_dynamic_flag_spec='$wl-E' 11075 else 11076 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11077 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11078 fi 11079 else 11080 ld_shlibs=no 11081 fi 11082 ;; 11083 11084 os2*) 11085 hardcode_libdir_flag_spec='-L$libdir' 11086 hardcode_minus_L=yes 11087 allow_undefined_flag=unsupported 11088 shrext_cmds=.dll 11089 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11090 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11091 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11092 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11093 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11094 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11095 emximp -o $lib $output_objdir/$libname.def' 11096 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11097 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11098 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11099 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11100 prefix_cmds="$SED"~ 11101 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11102 prefix_cmds="$prefix_cmds -e 1d"; 11103 fi~ 11104 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11105 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11106 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11107 emximp -o $lib $output_objdir/$libname.def' 11108 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11109 enable_shared_with_static_runtimes=yes 11110 ;; 11111 11112 osf3*) 11113 if test yes = "$GCC"; then 11114 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11115 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 11116 else 11117 allow_undefined_flag=' -expect_unresolved \*' 11118 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 11119 fi 11120 archive_cmds_need_lc='no' 11121 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11122 hardcode_libdir_separator=: 11123 ;; 11124 11125 osf4* | osf5*) # as osf3* with the addition of -msym flag 11126 if test yes = "$GCC"; then 11127 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11128 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 11129 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11130 else 11131 allow_undefined_flag=' -expect_unresolved \*' 11132 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 11133 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 11134 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' 11135 11136 # Both c and cxx compiler support -rpath directly 11137 hardcode_libdir_flag_spec='-rpath $libdir' 11138 fi 11139 archive_cmds_need_lc='no' 11140 hardcode_libdir_separator=: 11141 ;; 11142 11143 solaris*) 11144 no_undefined_flag=' -z defs' 11145 if test yes = "$GCC"; then 11146 wlarc='$wl' 11147 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11148 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11149 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11150 else 11151 case `$CC -V 2>&1` in 11152 *"Compilers 5.0"*) 11153 wlarc='' 11154 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11155 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11156 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11157 ;; 11158 *) 11159 wlarc='$wl' 11160 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11161 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11162 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11163 ;; 11164 esac 11165 fi 11166 hardcode_libdir_flag_spec='-R$libdir' 11167 hardcode_shlibpath_var=no 11168 case $host_os in 11169 solaris2.[0-5] | solaris2.[0-5].*) ;; 11170 *) 11171 # The compiler driver will combine and reorder linker options, 11172 # but understands '-z linker_flag'. GCC discards it without '$wl', 11173 # but is careful enough not to reorder. 11174 # Supported since Solaris 2.6 (maybe 2.5.1?) 11175 if test yes = "$GCC"; then 11176 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11177 else 11178 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11179 fi 11180 ;; 11181 esac 11182 link_all_deplibs=yes 11183 ;; 11184 11185 sunos4*) 11186 if test sequent = "$host_vendor"; then 11187 # Use $CC to link under sequent, because it throws in some extra .o 11188 # files that make .init and .fini sections work. 11189 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11190 else 11191 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11192 fi 11193 hardcode_libdir_flag_spec='-L$libdir' 11194 hardcode_direct=yes 11195 hardcode_minus_L=yes 11196 hardcode_shlibpath_var=no 11197 ;; 11198 11199 sysv4) 11200 case $host_vendor in 11201 sni) 11202 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11203 hardcode_direct=yes # is this really true??? 11204 ;; 11205 siemens) 11206 ## LD is ld it makes a PLAMLIB 11207 ## CC just makes a GrossModule. 11208 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11209 reload_cmds='$CC -r -o $output$reload_objs' 11210 hardcode_direct=no 11211 ;; 11212 motorola) 11213 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11214 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11215 ;; 11216 esac 11217 runpath_var='LD_RUN_PATH' 11218 hardcode_shlibpath_var=no 11219 ;; 11220 11221 sysv4.3*) 11222 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11223 hardcode_shlibpath_var=no 11224 export_dynamic_flag_spec='-Bexport' 11225 ;; 11226 11227 sysv4*MP*) 11228 if test -d /usr/nec; then 11229 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11230 hardcode_shlibpath_var=no 11231 runpath_var=LD_RUN_PATH 11232 hardcode_runpath_var=yes 11233 ld_shlibs=yes 11234 fi 11235 ;; 11236 11237 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11238 no_undefined_flag='$wl-z,text' 11239 archive_cmds_need_lc=no 11240 hardcode_shlibpath_var=no 11241 runpath_var='LD_RUN_PATH' 11242 11243 if test yes = "$GCC"; then 11244 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11245 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11246 else 11247 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11248 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11249 fi 11250 ;; 11251 11252 sysv5* | sco3.2v5* | sco5v6*) 11253 # Note: We CANNOT use -z defs as we might desire, because we do not 11254 # link with -lc, and that would cause any symbols used from libc to 11255 # always be unresolved, which means just about no library would 11256 # ever link correctly. If we're not using GNU ld we use -z text 11257 # though, which does catch some bad symbols but isn't as heavy-handed 11258 # as -z defs. 11259 no_undefined_flag='$wl-z,text' 11260 allow_undefined_flag='$wl-z,nodefs' 11261 archive_cmds_need_lc=no 11262 hardcode_shlibpath_var=no 11263 hardcode_libdir_flag_spec='$wl-R,$libdir' 11264 hardcode_libdir_separator=':' 11265 link_all_deplibs=yes 11266 export_dynamic_flag_spec='$wl-Bexport' 11267 runpath_var='LD_RUN_PATH' 11268 11269 if test yes = "$GCC"; then 11270 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11271 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11272 else 11273 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11274 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11275 fi 11276 ;; 11277 11278 uts4*) 11279 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11280 hardcode_libdir_flag_spec='-L$libdir' 11281 hardcode_shlibpath_var=no 11282 ;; 11283 11284 *) 11285 ld_shlibs=no 11286 ;; 11287 esac 11288 11289 if test sni = "$host_vendor"; then 11290 case $host in 11291 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11292 export_dynamic_flag_spec='$wl-Blargedynsym' 11293 ;; 11294 esac 11295 fi 11296 fi 11297 11298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11299$as_echo "$ld_shlibs" >&6; } 11300test no = "$ld_shlibs" && can_build_shared=no 11301 11302with_gnu_ld=$with_gnu_ld 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318# 11319# Do we need to explicitly link libc? 11320# 11321case "x$archive_cmds_need_lc" in 11322x|xyes) 11323 # Assume -lc should be added 11324 archive_cmds_need_lc=yes 11325 11326 if test yes,yes = "$GCC,$enable_shared"; then 11327 case $archive_cmds in 11328 *'~'*) 11329 # FIXME: we may have to deal with multi-command sequences. 11330 ;; 11331 '$CC '*) 11332 # Test whether the compiler implicitly links with -lc since on some 11333 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11334 # to ld, don't add -lc before -lgcc. 11335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11336$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11337if ${lt_cv_archive_cmds_need_lc+:} false; then : 11338 $as_echo_n "(cached) " >&6 11339else 11340 $RM conftest* 11341 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11342 11343 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11344 (eval $ac_compile) 2>&5 11345 ac_status=$? 11346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11347 test $ac_status = 0; } 2>conftest.err; then 11348 soname=conftest 11349 lib=conftest 11350 libobjs=conftest.$ac_objext 11351 deplibs= 11352 wl=$lt_prog_compiler_wl 11353 pic_flag=$lt_prog_compiler_pic 11354 compiler_flags=-v 11355 linker_flags=-v 11356 verstring= 11357 output_objdir=. 11358 libname=conftest 11359 lt_save_allow_undefined_flag=$allow_undefined_flag 11360 allow_undefined_flag= 11361 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11362 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11363 ac_status=$? 11364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11365 test $ac_status = 0; } 11366 then 11367 lt_cv_archive_cmds_need_lc=no 11368 else 11369 lt_cv_archive_cmds_need_lc=yes 11370 fi 11371 allow_undefined_flag=$lt_save_allow_undefined_flag 11372 else 11373 cat conftest.err 1>&5 11374 fi 11375 $RM conftest* 11376 11377fi 11378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11379$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11380 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11381 ;; 11382 esac 11383 fi 11384 ;; 11385esac 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11539$as_echo_n "checking dynamic linker characteristics... " >&6; } 11540 11541if test yes = "$GCC"; then 11542 case $host_os in 11543 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11544 *) lt_awk_arg='/^libraries:/' ;; 11545 esac 11546 case $host_os in 11547 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11548 *) lt_sed_strip_eq='s|=/|/|g' ;; 11549 esac 11550 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11551 case $lt_search_path_spec in 11552 *\;*) 11553 # if the path contains ";" then we assume it to be the separator 11554 # otherwise default to the standard path separator (i.e. ":") - it is 11555 # assumed that no part of a normal pathname contains ";" but that should 11556 # okay in the real world where ";" in dirpaths is itself problematic. 11557 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11558 ;; 11559 *) 11560 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11561 ;; 11562 esac 11563 # Ok, now we have the path, separated by spaces, we can step through it 11564 # and add multilib dir if necessary... 11565 lt_tmp_lt_search_path_spec= 11566 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11567 # ...but if some path component already ends with the multilib dir we assume 11568 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11569 case "$lt_multi_os_dir; $lt_search_path_spec " in 11570 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11571 lt_multi_os_dir= 11572 ;; 11573 esac 11574 for lt_sys_path in $lt_search_path_spec; do 11575 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11576 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11577 elif test -n "$lt_multi_os_dir"; then 11578 test -d "$lt_sys_path" && \ 11579 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11580 fi 11581 done 11582 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11583BEGIN {RS = " "; FS = "/|\n";} { 11584 lt_foo = ""; 11585 lt_count = 0; 11586 for (lt_i = NF; lt_i > 0; lt_i--) { 11587 if ($lt_i != "" && $lt_i != ".") { 11588 if ($lt_i == "..") { 11589 lt_count++; 11590 } else { 11591 if (lt_count == 0) { 11592 lt_foo = "/" $lt_i lt_foo; 11593 } else { 11594 lt_count--; 11595 } 11596 } 11597 } 11598 } 11599 if (lt_foo != "") { lt_freq[lt_foo]++; } 11600 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11601}'` 11602 # AWK program above erroneously prepends '/' to C:/dos/paths 11603 # for these hosts. 11604 case $host_os in 11605 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11606 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11607 esac 11608 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11609else 11610 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11611fi 11612library_names_spec= 11613libname_spec='lib$name' 11614soname_spec= 11615shrext_cmds=.so 11616postinstall_cmds= 11617postuninstall_cmds= 11618finish_cmds= 11619finish_eval= 11620shlibpath_var= 11621shlibpath_overrides_runpath=unknown 11622version_type=none 11623dynamic_linker="$host_os ld.so" 11624sys_lib_dlsearch_path_spec="/lib /usr/lib" 11625need_lib_prefix=unknown 11626hardcode_into_libs=no 11627 11628# when you set need_version to no, make sure it does not cause -set_version 11629# flags to be left without arguments 11630need_version=unknown 11631 11632 11633 11634case $host_os in 11635aix3*) 11636 version_type=linux # correct to gnu/linux during the next big refactor 11637 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11638 shlibpath_var=LIBPATH 11639 11640 # AIX 3 has no versioning support, so we append a major version to the name. 11641 soname_spec='$libname$release$shared_ext$major' 11642 ;; 11643 11644aix[4-9]*) 11645 version_type=linux # correct to gnu/linux during the next big refactor 11646 need_lib_prefix=no 11647 need_version=no 11648 hardcode_into_libs=yes 11649 if test ia64 = "$host_cpu"; then 11650 # AIX 5 supports IA64 11651 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11652 shlibpath_var=LD_LIBRARY_PATH 11653 else 11654 # With GCC up to 2.95.x, collect2 would create an import file 11655 # for dependence libraries. The import file would start with 11656 # the line '#! .'. This would cause the generated library to 11657 # depend on '.', always an invalid library. This was fixed in 11658 # development snapshots of GCC prior to 3.0. 11659 case $host_os in 11660 aix4 | aix4.[01] | aix4.[01].*) 11661 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11662 echo ' yes ' 11663 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11664 : 11665 else 11666 can_build_shared=no 11667 fi 11668 ;; 11669 esac 11670 # Using Import Files as archive members, it is possible to support 11671 # filename-based versioning of shared library archives on AIX. While 11672 # this would work for both with and without runtime linking, it will 11673 # prevent static linking of such archives. So we do filename-based 11674 # shared library versioning with .so extension only, which is used 11675 # when both runtime linking and shared linking is enabled. 11676 # Unfortunately, runtime linking may impact performance, so we do 11677 # not want this to be the default eventually. Also, we use the 11678 # versioned .so libs for executables only if there is the -brtl 11679 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11680 # To allow for filename-based versioning support, we need to create 11681 # libNAME.so.V as an archive file, containing: 11682 # *) an Import File, referring to the versioned filename of the 11683 # archive as well as the shared archive member, telling the 11684 # bitwidth (32 or 64) of that shared object, and providing the 11685 # list of exported symbols of that shared object, eventually 11686 # decorated with the 'weak' keyword 11687 # *) the shared object with the F_LOADONLY flag set, to really avoid 11688 # it being seen by the linker. 11689 # At run time we better use the real file rather than another symlink, 11690 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11691 11692 case $with_aix_soname,$aix_use_runtimelinking in 11693 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11694 # soname into executable. Probably we can add versioning support to 11695 # collect2, so additional links can be useful in future. 11696 aix,yes) # traditional libtool 11697 dynamic_linker='AIX unversionable lib.so' 11698 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11699 # instead of lib<name>.a to let people know that these are not 11700 # typical AIX shared libraries. 11701 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11702 ;; 11703 aix,no) # traditional AIX only 11704 dynamic_linker='AIX lib.a(lib.so.V)' 11705 # We preserve .a as extension for shared libraries through AIX4.2 11706 # and later when we are not doing run time linking. 11707 library_names_spec='$libname$release.a $libname.a' 11708 soname_spec='$libname$release$shared_ext$major' 11709 ;; 11710 svr4,*) # full svr4 only 11711 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11712 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11713 # We do not specify a path in Import Files, so LIBPATH fires. 11714 shlibpath_overrides_runpath=yes 11715 ;; 11716 *,yes) # both, prefer svr4 11717 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11718 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11719 # unpreferred sharedlib libNAME.a needs extra handling 11720 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 11721 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 11722 # We do not specify a path in Import Files, so LIBPATH fires. 11723 shlibpath_overrides_runpath=yes 11724 ;; 11725 *,no) # both, prefer aix 11726 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11727 library_names_spec='$libname$release.a $libname.a' 11728 soname_spec='$libname$release$shared_ext$major' 11729 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11730 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 11731 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 11732 ;; 11733 esac 11734 shlibpath_var=LIBPATH 11735 fi 11736 ;; 11737 11738amigaos*) 11739 case $host_cpu in 11740 powerpc) 11741 # Since July 2007 AmigaOS4 officially supports .so libraries. 11742 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11743 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11744 ;; 11745 m68k) 11746 library_names_spec='$libname.ixlibrary $libname.a' 11747 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11748 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 11749 ;; 11750 esac 11751 ;; 11752 11753beos*) 11754 library_names_spec='$libname$shared_ext' 11755 dynamic_linker="$host_os ld.so" 11756 shlibpath_var=LIBRARY_PATH 11757 ;; 11758 11759bsdi[45]*) 11760 version_type=linux # correct to gnu/linux during the next big refactor 11761 need_version=no 11762 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11763 soname_spec='$libname$release$shared_ext$major' 11764 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11765 shlibpath_var=LD_LIBRARY_PATH 11766 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11767 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11768 # the default ld.so.conf also contains /usr/contrib/lib and 11769 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11770 # libtool to hard-code these into programs 11771 ;; 11772 11773cygwin* | mingw* | pw32* | cegcc*) 11774 version_type=windows 11775 shrext_cmds=.dll 11776 need_version=no 11777 need_lib_prefix=no 11778 11779 case $GCC,$cc_basename in 11780 yes,*) 11781 # gcc 11782 library_names_spec='$libname.dll.a' 11783 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11784 postinstall_cmds='base_file=`basename \$file`~ 11785 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11786 dldir=$destdir/`dirname \$dlpath`~ 11787 test -d \$dldir || mkdir -p \$dldir~ 11788 $install_prog $dir/$dlname \$dldir/$dlname~ 11789 chmod a+x \$dldir/$dlname~ 11790 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11791 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11792 fi' 11793 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11794 dlpath=$dir/\$dldll~ 11795 $RM \$dlpath' 11796 shlibpath_overrides_runpath=yes 11797 11798 case $host_os in 11799 cygwin*) 11800 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11801 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11802 11803 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11804 ;; 11805 mingw* | cegcc*) 11806 # MinGW DLLs use traditional 'lib' prefix 11807 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11808 ;; 11809 pw32*) 11810 # pw32 DLLs use 'pw' prefix rather than 'lib' 11811 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11812 ;; 11813 esac 11814 dynamic_linker='Win32 ld.exe' 11815 ;; 11816 11817 *,cl*) 11818 # Native MSVC 11819 libname_spec='$name' 11820 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11821 library_names_spec='$libname.dll.lib' 11822 11823 case $build_os in 11824 mingw*) 11825 sys_lib_search_path_spec= 11826 lt_save_ifs=$IFS 11827 IFS=';' 11828 for lt_path in $LIB 11829 do 11830 IFS=$lt_save_ifs 11831 # Let DOS variable expansion print the short 8.3 style file name. 11832 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11833 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11834 done 11835 IFS=$lt_save_ifs 11836 # Convert to MSYS style. 11837 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11838 ;; 11839 cygwin*) 11840 # Convert to unix form, then to dos form, then back to unix form 11841 # but this time dos style (no spaces!) so that the unix form looks 11842 # like /cygdrive/c/PROGRA~1:/cygdr... 11843 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11844 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11845 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11846 ;; 11847 *) 11848 sys_lib_search_path_spec=$LIB 11849 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11850 # It is most probably a Windows format PATH. 11851 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11852 else 11853 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11854 fi 11855 # FIXME: find the short name or the path components, as spaces are 11856 # common. (e.g. "Program Files" -> "PROGRA~1") 11857 ;; 11858 esac 11859 11860 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11861 postinstall_cmds='base_file=`basename \$file`~ 11862 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11863 dldir=$destdir/`dirname \$dlpath`~ 11864 test -d \$dldir || mkdir -p \$dldir~ 11865 $install_prog $dir/$dlname \$dldir/$dlname' 11866 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11867 dlpath=$dir/\$dldll~ 11868 $RM \$dlpath' 11869 shlibpath_overrides_runpath=yes 11870 dynamic_linker='Win32 link.exe' 11871 ;; 11872 11873 *) 11874 # Assume MSVC wrapper 11875 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11876 dynamic_linker='Win32 ld.exe' 11877 ;; 11878 esac 11879 # FIXME: first we should search . and the directory the executable is in 11880 shlibpath_var=PATH 11881 ;; 11882 11883darwin* | rhapsody*) 11884 dynamic_linker="$host_os dyld" 11885 version_type=darwin 11886 need_lib_prefix=no 11887 need_version=no 11888 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11889 soname_spec='$libname$release$major$shared_ext' 11890 shlibpath_overrides_runpath=yes 11891 shlibpath_var=DYLD_LIBRARY_PATH 11892 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11893 11894 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11895 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11896 ;; 11897 11898dgux*) 11899 version_type=linux # correct to gnu/linux during the next big refactor 11900 need_lib_prefix=no 11901 need_version=no 11902 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11903 soname_spec='$libname$release$shared_ext$major' 11904 shlibpath_var=LD_LIBRARY_PATH 11905 ;; 11906 11907freebsd* | dragonfly*) 11908 # DragonFly does not have aout. When/if they implement a new 11909 # versioning mechanism, adjust this. 11910 if test -x /usr/bin/objformat; then 11911 objformat=`/usr/bin/objformat` 11912 else 11913 case $host_os in 11914 freebsd[23].*) objformat=aout ;; 11915 *) objformat=elf ;; 11916 esac 11917 fi 11918 version_type=freebsd-$objformat 11919 case $version_type in 11920 freebsd-elf*) 11921 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11922 soname_spec='$libname$release$shared_ext$major' 11923 need_version=no 11924 need_lib_prefix=no 11925 ;; 11926 freebsd-*) 11927 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11928 need_version=yes 11929 ;; 11930 esac 11931 shlibpath_var=LD_LIBRARY_PATH 11932 case $host_os in 11933 freebsd2.*) 11934 shlibpath_overrides_runpath=yes 11935 ;; 11936 freebsd3.[01]* | freebsdelf3.[01]*) 11937 shlibpath_overrides_runpath=yes 11938 hardcode_into_libs=yes 11939 ;; 11940 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11941 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11942 shlibpath_overrides_runpath=no 11943 hardcode_into_libs=yes 11944 ;; 11945 *) # from 4.6 on, and DragonFly 11946 shlibpath_overrides_runpath=yes 11947 hardcode_into_libs=yes 11948 ;; 11949 esac 11950 ;; 11951 11952haiku*) 11953 version_type=linux # correct to gnu/linux during the next big refactor 11954 need_lib_prefix=no 11955 need_version=no 11956 dynamic_linker="$host_os runtime_loader" 11957 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11958 soname_spec='$libname$release$shared_ext$major' 11959 shlibpath_var=LIBRARY_PATH 11960 shlibpath_overrides_runpath=no 11961 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11962 hardcode_into_libs=yes 11963 ;; 11964 11965hpux9* | hpux10* | hpux11*) 11966 # Give a soname corresponding to the major version so that dld.sl refuses to 11967 # link against other versions. 11968 version_type=sunos 11969 need_lib_prefix=no 11970 need_version=no 11971 case $host_cpu in 11972 ia64*) 11973 shrext_cmds='.so' 11974 hardcode_into_libs=yes 11975 dynamic_linker="$host_os dld.so" 11976 shlibpath_var=LD_LIBRARY_PATH 11977 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11978 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11979 soname_spec='$libname$release$shared_ext$major' 11980 if test 32 = "$HPUX_IA64_MODE"; then 11981 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11982 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11983 else 11984 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11985 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11986 fi 11987 ;; 11988 hppa*64*) 11989 shrext_cmds='.sl' 11990 hardcode_into_libs=yes 11991 dynamic_linker="$host_os dld.sl" 11992 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11993 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11994 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11995 soname_spec='$libname$release$shared_ext$major' 11996 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11997 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11998 ;; 11999 *) 12000 shrext_cmds='.sl' 12001 dynamic_linker="$host_os dld.sl" 12002 shlibpath_var=SHLIB_PATH 12003 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12004 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12005 soname_spec='$libname$release$shared_ext$major' 12006 ;; 12007 esac 12008 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12009 postinstall_cmds='chmod 555 $lib' 12010 # or fails outright, so override atomically: 12011 install_override_mode=555 12012 ;; 12013 12014interix[3-9]*) 12015 version_type=linux # correct to gnu/linux during the next big refactor 12016 need_lib_prefix=no 12017 need_version=no 12018 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12019 soname_spec='$libname$release$shared_ext$major' 12020 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12021 shlibpath_var=LD_LIBRARY_PATH 12022 shlibpath_overrides_runpath=no 12023 hardcode_into_libs=yes 12024 ;; 12025 12026irix5* | irix6* | nonstopux*) 12027 case $host_os in 12028 nonstopux*) version_type=nonstopux ;; 12029 *) 12030 if test yes = "$lt_cv_prog_gnu_ld"; then 12031 version_type=linux # correct to gnu/linux during the next big refactor 12032 else 12033 version_type=irix 12034 fi ;; 12035 esac 12036 need_lib_prefix=no 12037 need_version=no 12038 soname_spec='$libname$release$shared_ext$major' 12039 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12040 case $host_os in 12041 irix5* | nonstopux*) 12042 libsuff= shlibsuff= 12043 ;; 12044 *) 12045 case $LD in # libtool.m4 will add one of these switches to LD 12046 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12047 libsuff= shlibsuff= libmagic=32-bit;; 12048 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12049 libsuff=32 shlibsuff=N32 libmagic=N32;; 12050 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12051 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12052 *) libsuff= shlibsuff= libmagic=never-match;; 12053 esac 12054 ;; 12055 esac 12056 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12057 shlibpath_overrides_runpath=no 12058 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12059 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12060 hardcode_into_libs=yes 12061 ;; 12062 12063# No shared lib support for Linux oldld, aout, or coff. 12064linux*oldld* | linux*aout* | linux*coff*) 12065 dynamic_linker=no 12066 ;; 12067 12068linux*android*) 12069 version_type=none # Android doesn't support versioned libraries. 12070 need_lib_prefix=no 12071 need_version=no 12072 library_names_spec='$libname$release$shared_ext' 12073 soname_spec='$libname$release$shared_ext' 12074 finish_cmds= 12075 shlibpath_var=LD_LIBRARY_PATH 12076 shlibpath_overrides_runpath=yes 12077 12078 # This implies no fast_install, which is unacceptable. 12079 # Some rework will be needed to allow for fast_install 12080 # before this can be enabled. 12081 hardcode_into_libs=yes 12082 12083 dynamic_linker='Android linker' 12084 # Don't embed -rpath directories since the linker doesn't support them. 12085 hardcode_libdir_flag_spec='-L$libdir' 12086 ;; 12087 12088# This must be glibc/ELF. 12089linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12090 version_type=linux # correct to gnu/linux during the next big refactor 12091 need_lib_prefix=no 12092 need_version=no 12093 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12094 soname_spec='$libname$release$shared_ext$major' 12095 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12096 shlibpath_var=LD_LIBRARY_PATH 12097 shlibpath_overrides_runpath=no 12098 12099 # Some binutils ld are patched to set DT_RUNPATH 12100 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12101 $as_echo_n "(cached) " >&6 12102else 12103 lt_cv_shlibpath_overrides_runpath=no 12104 save_LDFLAGS=$LDFLAGS 12105 save_libdir=$libdir 12106 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12107 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12109/* end confdefs.h. */ 12110 12111int 12112main () 12113{ 12114 12115 ; 12116 return 0; 12117} 12118_ACEOF 12119if ac_fn_c_try_link "$LINENO"; then : 12120 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12121 lt_cv_shlibpath_overrides_runpath=yes 12122fi 12123fi 12124rm -f core conftest.err conftest.$ac_objext \ 12125 conftest$ac_exeext conftest.$ac_ext 12126 LDFLAGS=$save_LDFLAGS 12127 libdir=$save_libdir 12128 12129fi 12130 12131 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12132 12133 # This implies no fast_install, which is unacceptable. 12134 # Some rework will be needed to allow for fast_install 12135 # before this can be enabled. 12136 hardcode_into_libs=yes 12137 12138 # Ideally, we could use ldconfig to report *all* directores which are 12139 # searched for libraries, however this is still not possible. Aside from not 12140 # being certain /sbin/ldconfig is available, command 12141 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12142 # even though it is searched at run-time. Try to do the best guess by 12143 # appending ld.so.conf contents (and includes) to the search path. 12144 if test -f /etc/ld.so.conf; then 12145 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 12146 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12147 fi 12148 12149 # We used to test for /lib/ld.so.1 and disable shared libraries on 12150 # powerpc, because MkLinux only supported shared libraries with the 12151 # GNU dynamic linker. Since this was broken with cross compilers, 12152 # most powerpc-linux boxes support dynamic linking these days and 12153 # people can always --disable-shared, the test was removed, and we 12154 # assume the GNU/Linux dynamic linker is in use. 12155 dynamic_linker='GNU/Linux ld.so' 12156 ;; 12157 12158netbsd*) 12159 version_type=sunos 12160 need_lib_prefix=no 12161 need_version=no 12162 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12163 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12164 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12165 dynamic_linker='NetBSD (a.out) ld.so' 12166 else 12167 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12168 soname_spec='$libname$release$shared_ext$major' 12169 dynamic_linker='NetBSD ld.elf_so' 12170 fi 12171 shlibpath_var=LD_LIBRARY_PATH 12172 shlibpath_overrides_runpath=yes 12173 hardcode_into_libs=yes 12174 ;; 12175 12176newsos6) 12177 version_type=linux # correct to gnu/linux during the next big refactor 12178 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12179 shlibpath_var=LD_LIBRARY_PATH 12180 shlibpath_overrides_runpath=yes 12181 ;; 12182 12183*nto* | *qnx*) 12184 version_type=qnx 12185 need_lib_prefix=no 12186 need_version=no 12187 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12188 soname_spec='$libname$release$shared_ext$major' 12189 shlibpath_var=LD_LIBRARY_PATH 12190 shlibpath_overrides_runpath=no 12191 hardcode_into_libs=yes 12192 dynamic_linker='ldqnx.so' 12193 ;; 12194 12195openbsd* | bitrig*) 12196 version_type=sunos 12197 sys_lib_dlsearch_path_spec=/usr/lib 12198 need_lib_prefix=no 12199 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12200 need_version=no 12201 else 12202 need_version=yes 12203 fi 12204 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12205 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12206 shlibpath_var=LD_LIBRARY_PATH 12207 shlibpath_overrides_runpath=yes 12208 ;; 12209 12210os2*) 12211 libname_spec='$name' 12212 version_type=windows 12213 shrext_cmds=.dll 12214 need_version=no 12215 need_lib_prefix=no 12216 # OS/2 can only load a DLL with a base name of 8 characters or less. 12217 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12218 v=$($ECHO $release$versuffix | tr -d .-); 12219 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12220 $ECHO $n$v`$shared_ext' 12221 library_names_spec='${libname}_dll.$libext' 12222 dynamic_linker='OS/2 ld.exe' 12223 shlibpath_var=BEGINLIBPATH 12224 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12225 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12226 postinstall_cmds='base_file=`basename \$file`~ 12227 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12228 dldir=$destdir/`dirname \$dlpath`~ 12229 test -d \$dldir || mkdir -p \$dldir~ 12230 $install_prog $dir/$dlname \$dldir/$dlname~ 12231 chmod a+x \$dldir/$dlname~ 12232 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12233 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12234 fi' 12235 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12236 dlpath=$dir/\$dldll~ 12237 $RM \$dlpath' 12238 ;; 12239 12240osf3* | osf4* | osf5*) 12241 version_type=osf 12242 need_lib_prefix=no 12243 need_version=no 12244 soname_spec='$libname$release$shared_ext$major' 12245 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12246 shlibpath_var=LD_LIBRARY_PATH 12247 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12248 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12249 ;; 12250 12251rdos*) 12252 dynamic_linker=no 12253 ;; 12254 12255solaris*) 12256 version_type=linux # correct to gnu/linux during the next big refactor 12257 need_lib_prefix=no 12258 need_version=no 12259 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12260 soname_spec='$libname$release$shared_ext$major' 12261 shlibpath_var=LD_LIBRARY_PATH 12262 shlibpath_overrides_runpath=yes 12263 hardcode_into_libs=yes 12264 # ldd complains unless libraries are executable 12265 postinstall_cmds='chmod +x $lib' 12266 ;; 12267 12268sunos4*) 12269 version_type=sunos 12270 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12271 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12272 shlibpath_var=LD_LIBRARY_PATH 12273 shlibpath_overrides_runpath=yes 12274 if test yes = "$with_gnu_ld"; then 12275 need_lib_prefix=no 12276 fi 12277 need_version=yes 12278 ;; 12279 12280sysv4 | sysv4.3*) 12281 version_type=linux # correct to gnu/linux during the next big refactor 12282 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12283 soname_spec='$libname$release$shared_ext$major' 12284 shlibpath_var=LD_LIBRARY_PATH 12285 case $host_vendor in 12286 sni) 12287 shlibpath_overrides_runpath=no 12288 need_lib_prefix=no 12289 runpath_var=LD_RUN_PATH 12290 ;; 12291 siemens) 12292 need_lib_prefix=no 12293 ;; 12294 motorola) 12295 need_lib_prefix=no 12296 need_version=no 12297 shlibpath_overrides_runpath=no 12298 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12299 ;; 12300 esac 12301 ;; 12302 12303sysv4*MP*) 12304 if test -d /usr/nec; then 12305 version_type=linux # correct to gnu/linux during the next big refactor 12306 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12307 soname_spec='$libname$shared_ext.$major' 12308 shlibpath_var=LD_LIBRARY_PATH 12309 fi 12310 ;; 12311 12312sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12313 version_type=sco 12314 need_lib_prefix=no 12315 need_version=no 12316 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12317 soname_spec='$libname$release$shared_ext$major' 12318 shlibpath_var=LD_LIBRARY_PATH 12319 shlibpath_overrides_runpath=yes 12320 hardcode_into_libs=yes 12321 if test yes = "$with_gnu_ld"; then 12322 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12323 else 12324 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12325 case $host_os in 12326 sco3.2v5*) 12327 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12328 ;; 12329 esac 12330 fi 12331 sys_lib_dlsearch_path_spec='/usr/lib' 12332 ;; 12333 12334tpf*) 12335 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12336 version_type=linux # correct to gnu/linux during the next big refactor 12337 need_lib_prefix=no 12338 need_version=no 12339 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12340 shlibpath_var=LD_LIBRARY_PATH 12341 shlibpath_overrides_runpath=no 12342 hardcode_into_libs=yes 12343 ;; 12344 12345uts4*) 12346 version_type=linux # correct to gnu/linux during the next big refactor 12347 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12348 soname_spec='$libname$release$shared_ext$major' 12349 shlibpath_var=LD_LIBRARY_PATH 12350 ;; 12351 12352*) 12353 dynamic_linker=no 12354 ;; 12355esac 12356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12357$as_echo "$dynamic_linker" >&6; } 12358test no = "$dynamic_linker" && can_build_shared=no 12359 12360variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12361if test yes = "$GCC"; then 12362 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12363fi 12364 12365if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12366 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12367fi 12368 12369if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12370 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12371fi 12372 12373# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12374configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12375 12376# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12377func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12378 12379# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12380configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12381 12382 12383 12384 12385 12386 12387 12388 12389 12390 12391 12392 12393 12394 12395 12396 12397 12398 12399 12400 12401 12402 12403 12404 12405 12406 12407 12408 12409 12410 12411 12412 12413 12414 12415 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465 12466 12467 12468 12469 12470 12471 12472 12473 12474 12475 12476 12477 12478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12479$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12480hardcode_action= 12481if test -n "$hardcode_libdir_flag_spec" || 12482 test -n "$runpath_var" || 12483 test yes = "$hardcode_automatic"; then 12484 12485 # We can hardcode non-existent directories. 12486 if test no != "$hardcode_direct" && 12487 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12488 # have to relink, otherwise we might link with an installed library 12489 # when we should be linking with a yet-to-be-installed one 12490 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12491 test no != "$hardcode_minus_L"; then 12492 # Linking always hardcodes the temporary library directory. 12493 hardcode_action=relink 12494 else 12495 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12496 hardcode_action=immediate 12497 fi 12498else 12499 # We cannot hardcode anything, or else we can only hardcode existing 12500 # directories. 12501 hardcode_action=unsupported 12502fi 12503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12504$as_echo "$hardcode_action" >&6; } 12505 12506if test relink = "$hardcode_action" || 12507 test yes = "$inherit_rpath"; then 12508 # Fast installation is not supported 12509 enable_fast_install=no 12510elif test yes = "$shlibpath_overrides_runpath" || 12511 test no = "$enable_shared"; then 12512 # Fast installation is not necessary 12513 enable_fast_install=needless 12514fi 12515 12516 12517 12518 12519 12520 12521 if test yes != "$enable_dlopen"; then 12522 enable_dlopen=unknown 12523 enable_dlopen_self=unknown 12524 enable_dlopen_self_static=unknown 12525else 12526 lt_cv_dlopen=no 12527 lt_cv_dlopen_libs= 12528 12529 case $host_os in 12530 beos*) 12531 lt_cv_dlopen=load_add_on 12532 lt_cv_dlopen_libs= 12533 lt_cv_dlopen_self=yes 12534 ;; 12535 12536 mingw* | pw32* | cegcc*) 12537 lt_cv_dlopen=LoadLibrary 12538 lt_cv_dlopen_libs= 12539 ;; 12540 12541 cygwin*) 12542 lt_cv_dlopen=dlopen 12543 lt_cv_dlopen_libs= 12544 ;; 12545 12546 darwin*) 12547 # if libdl is installed we need to link against it 12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12549$as_echo_n "checking for dlopen in -ldl... " >&6; } 12550if ${ac_cv_lib_dl_dlopen+:} false; then : 12551 $as_echo_n "(cached) " >&6 12552else 12553 ac_check_lib_save_LIBS=$LIBS 12554LIBS="-ldl $LIBS" 12555cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12556/* end confdefs.h. */ 12557 12558/* Override any GCC internal prototype to avoid an error. 12559 Use char because int might match the return type of a GCC 12560 builtin and then its argument prototype would still apply. */ 12561#ifdef __cplusplus 12562extern "C" 12563#endif 12564char dlopen (); 12565int 12566main () 12567{ 12568return dlopen (); 12569 ; 12570 return 0; 12571} 12572_ACEOF 12573if ac_fn_c_try_link "$LINENO"; then : 12574 ac_cv_lib_dl_dlopen=yes 12575else 12576 ac_cv_lib_dl_dlopen=no 12577fi 12578rm -f core conftest.err conftest.$ac_objext \ 12579 conftest$ac_exeext conftest.$ac_ext 12580LIBS=$ac_check_lib_save_LIBS 12581fi 12582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12583$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12584if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12585 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12586else 12587 12588 lt_cv_dlopen=dyld 12589 lt_cv_dlopen_libs= 12590 lt_cv_dlopen_self=yes 12591 12592fi 12593 12594 ;; 12595 12596 tpf*) 12597 # Don't try to run any link tests for TPF. We know it's impossible 12598 # because TPF is a cross-compiler, and we know how we open DSOs. 12599 lt_cv_dlopen=dlopen 12600 lt_cv_dlopen_libs= 12601 lt_cv_dlopen_self=no 12602 ;; 12603 12604 *) 12605 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12606if test "x$ac_cv_func_shl_load" = xyes; then : 12607 lt_cv_dlopen=shl_load 12608else 12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12610$as_echo_n "checking for shl_load in -ldld... " >&6; } 12611if ${ac_cv_lib_dld_shl_load+:} false; then : 12612 $as_echo_n "(cached) " >&6 12613else 12614 ac_check_lib_save_LIBS=$LIBS 12615LIBS="-ldld $LIBS" 12616cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12617/* end confdefs.h. */ 12618 12619/* Override any GCC internal prototype to avoid an error. 12620 Use char because int might match the return type of a GCC 12621 builtin and then its argument prototype would still apply. */ 12622#ifdef __cplusplus 12623extern "C" 12624#endif 12625char shl_load (); 12626int 12627main () 12628{ 12629return shl_load (); 12630 ; 12631 return 0; 12632} 12633_ACEOF 12634if ac_fn_c_try_link "$LINENO"; then : 12635 ac_cv_lib_dld_shl_load=yes 12636else 12637 ac_cv_lib_dld_shl_load=no 12638fi 12639rm -f core conftest.err conftest.$ac_objext \ 12640 conftest$ac_exeext conftest.$ac_ext 12641LIBS=$ac_check_lib_save_LIBS 12642fi 12643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12644$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12645if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12646 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12647else 12648 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12649if test "x$ac_cv_func_dlopen" = xyes; then : 12650 lt_cv_dlopen=dlopen 12651else 12652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12653$as_echo_n "checking for dlopen in -ldl... " >&6; } 12654if ${ac_cv_lib_dl_dlopen+:} false; then : 12655 $as_echo_n "(cached) " >&6 12656else 12657 ac_check_lib_save_LIBS=$LIBS 12658LIBS="-ldl $LIBS" 12659cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12660/* end confdefs.h. */ 12661 12662/* Override any GCC internal prototype to avoid an error. 12663 Use char because int might match the return type of a GCC 12664 builtin and then its argument prototype would still apply. */ 12665#ifdef __cplusplus 12666extern "C" 12667#endif 12668char dlopen (); 12669int 12670main () 12671{ 12672return dlopen (); 12673 ; 12674 return 0; 12675} 12676_ACEOF 12677if ac_fn_c_try_link "$LINENO"; then : 12678 ac_cv_lib_dl_dlopen=yes 12679else 12680 ac_cv_lib_dl_dlopen=no 12681fi 12682rm -f core conftest.err conftest.$ac_objext \ 12683 conftest$ac_exeext conftest.$ac_ext 12684LIBS=$ac_check_lib_save_LIBS 12685fi 12686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12687$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12688if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12689 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12690else 12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12692$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12693if ${ac_cv_lib_svld_dlopen+:} false; then : 12694 $as_echo_n "(cached) " >&6 12695else 12696 ac_check_lib_save_LIBS=$LIBS 12697LIBS="-lsvld $LIBS" 12698cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12699/* end confdefs.h. */ 12700 12701/* Override any GCC internal prototype to avoid an error. 12702 Use char because int might match the return type of a GCC 12703 builtin and then its argument prototype would still apply. */ 12704#ifdef __cplusplus 12705extern "C" 12706#endif 12707char dlopen (); 12708int 12709main () 12710{ 12711return dlopen (); 12712 ; 12713 return 0; 12714} 12715_ACEOF 12716if ac_fn_c_try_link "$LINENO"; then : 12717 ac_cv_lib_svld_dlopen=yes 12718else 12719 ac_cv_lib_svld_dlopen=no 12720fi 12721rm -f core conftest.err conftest.$ac_objext \ 12722 conftest$ac_exeext conftest.$ac_ext 12723LIBS=$ac_check_lib_save_LIBS 12724fi 12725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12726$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12727if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12728 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12729else 12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12731$as_echo_n "checking for dld_link in -ldld... " >&6; } 12732if ${ac_cv_lib_dld_dld_link+:} false; then : 12733 $as_echo_n "(cached) " >&6 12734else 12735 ac_check_lib_save_LIBS=$LIBS 12736LIBS="-ldld $LIBS" 12737cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12738/* end confdefs.h. */ 12739 12740/* Override any GCC internal prototype to avoid an error. 12741 Use char because int might match the return type of a GCC 12742 builtin and then its argument prototype would still apply. */ 12743#ifdef __cplusplus 12744extern "C" 12745#endif 12746char dld_link (); 12747int 12748main () 12749{ 12750return dld_link (); 12751 ; 12752 return 0; 12753} 12754_ACEOF 12755if ac_fn_c_try_link "$LINENO"; then : 12756 ac_cv_lib_dld_dld_link=yes 12757else 12758 ac_cv_lib_dld_dld_link=no 12759fi 12760rm -f core conftest.err conftest.$ac_objext \ 12761 conftest$ac_exeext conftest.$ac_ext 12762LIBS=$ac_check_lib_save_LIBS 12763fi 12764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12765$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12766if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12767 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12768fi 12769 12770 12771fi 12772 12773 12774fi 12775 12776 12777fi 12778 12779 12780fi 12781 12782 12783fi 12784 12785 ;; 12786 esac 12787 12788 if test no = "$lt_cv_dlopen"; then 12789 enable_dlopen=no 12790 else 12791 enable_dlopen=yes 12792 fi 12793 12794 case $lt_cv_dlopen in 12795 dlopen) 12796 save_CPPFLAGS=$CPPFLAGS 12797 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12798 12799 save_LDFLAGS=$LDFLAGS 12800 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12801 12802 save_LIBS=$LIBS 12803 LIBS="$lt_cv_dlopen_libs $LIBS" 12804 12805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12806$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12807if ${lt_cv_dlopen_self+:} false; then : 12808 $as_echo_n "(cached) " >&6 12809else 12810 if test yes = "$cross_compiling"; then : 12811 lt_cv_dlopen_self=cross 12812else 12813 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12814 lt_status=$lt_dlunknown 12815 cat > conftest.$ac_ext <<_LT_EOF 12816#line $LINENO "configure" 12817#include "confdefs.h" 12818 12819#if HAVE_DLFCN_H 12820#include <dlfcn.h> 12821#endif 12822 12823#include <stdio.h> 12824 12825#ifdef RTLD_GLOBAL 12826# define LT_DLGLOBAL RTLD_GLOBAL 12827#else 12828# ifdef DL_GLOBAL 12829# define LT_DLGLOBAL DL_GLOBAL 12830# else 12831# define LT_DLGLOBAL 0 12832# endif 12833#endif 12834 12835/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12836 find out it does not work in some platform. */ 12837#ifndef LT_DLLAZY_OR_NOW 12838# ifdef RTLD_LAZY 12839# define LT_DLLAZY_OR_NOW RTLD_LAZY 12840# else 12841# ifdef DL_LAZY 12842# define LT_DLLAZY_OR_NOW DL_LAZY 12843# else 12844# ifdef RTLD_NOW 12845# define LT_DLLAZY_OR_NOW RTLD_NOW 12846# else 12847# ifdef DL_NOW 12848# define LT_DLLAZY_OR_NOW DL_NOW 12849# else 12850# define LT_DLLAZY_OR_NOW 0 12851# endif 12852# endif 12853# endif 12854# endif 12855#endif 12856 12857/* When -fvisibility=hidden is used, assume the code has been annotated 12858 correspondingly for the symbols needed. */ 12859#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12860int fnord () __attribute__((visibility("default"))); 12861#endif 12862 12863int fnord () { return 42; } 12864int main () 12865{ 12866 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12867 int status = $lt_dlunknown; 12868 12869 if (self) 12870 { 12871 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12872 else 12873 { 12874 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12875 else puts (dlerror ()); 12876 } 12877 /* dlclose (self); */ 12878 } 12879 else 12880 puts (dlerror ()); 12881 12882 return status; 12883} 12884_LT_EOF 12885 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12886 (eval $ac_link) 2>&5 12887 ac_status=$? 12888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12889 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12890 (./conftest; exit; ) >&5 2>/dev/null 12891 lt_status=$? 12892 case x$lt_status in 12893 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12894 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12895 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12896 esac 12897 else : 12898 # compilation failed 12899 lt_cv_dlopen_self=no 12900 fi 12901fi 12902rm -fr conftest* 12903 12904 12905fi 12906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12907$as_echo "$lt_cv_dlopen_self" >&6; } 12908 12909 if test yes = "$lt_cv_dlopen_self"; then 12910 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12912$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12913if ${lt_cv_dlopen_self_static+:} false; then : 12914 $as_echo_n "(cached) " >&6 12915else 12916 if test yes = "$cross_compiling"; then : 12917 lt_cv_dlopen_self_static=cross 12918else 12919 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12920 lt_status=$lt_dlunknown 12921 cat > conftest.$ac_ext <<_LT_EOF 12922#line $LINENO "configure" 12923#include "confdefs.h" 12924 12925#if HAVE_DLFCN_H 12926#include <dlfcn.h> 12927#endif 12928 12929#include <stdio.h> 12930 12931#ifdef RTLD_GLOBAL 12932# define LT_DLGLOBAL RTLD_GLOBAL 12933#else 12934# ifdef DL_GLOBAL 12935# define LT_DLGLOBAL DL_GLOBAL 12936# else 12937# define LT_DLGLOBAL 0 12938# endif 12939#endif 12940 12941/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12942 find out it does not work in some platform. */ 12943#ifndef LT_DLLAZY_OR_NOW 12944# ifdef RTLD_LAZY 12945# define LT_DLLAZY_OR_NOW RTLD_LAZY 12946# else 12947# ifdef DL_LAZY 12948# define LT_DLLAZY_OR_NOW DL_LAZY 12949# else 12950# ifdef RTLD_NOW 12951# define LT_DLLAZY_OR_NOW RTLD_NOW 12952# else 12953# ifdef DL_NOW 12954# define LT_DLLAZY_OR_NOW DL_NOW 12955# else 12956# define LT_DLLAZY_OR_NOW 0 12957# endif 12958# endif 12959# endif 12960# endif 12961#endif 12962 12963/* When -fvisibility=hidden is used, assume the code has been annotated 12964 correspondingly for the symbols needed. */ 12965#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12966int fnord () __attribute__((visibility("default"))); 12967#endif 12968 12969int fnord () { return 42; } 12970int main () 12971{ 12972 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12973 int status = $lt_dlunknown; 12974 12975 if (self) 12976 { 12977 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12978 else 12979 { 12980 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12981 else puts (dlerror ()); 12982 } 12983 /* dlclose (self); */ 12984 } 12985 else 12986 puts (dlerror ()); 12987 12988 return status; 12989} 12990_LT_EOF 12991 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12992 (eval $ac_link) 2>&5 12993 ac_status=$? 12994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12995 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12996 (./conftest; exit; ) >&5 2>/dev/null 12997 lt_status=$? 12998 case x$lt_status in 12999 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13000 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13001 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13002 esac 13003 else : 13004 # compilation failed 13005 lt_cv_dlopen_self_static=no 13006 fi 13007fi 13008rm -fr conftest* 13009 13010 13011fi 13012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13013$as_echo "$lt_cv_dlopen_self_static" >&6; } 13014 fi 13015 13016 CPPFLAGS=$save_CPPFLAGS 13017 LDFLAGS=$save_LDFLAGS 13018 LIBS=$save_LIBS 13019 ;; 13020 esac 13021 13022 case $lt_cv_dlopen_self in 13023 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13024 *) enable_dlopen_self=unknown ;; 13025 esac 13026 13027 case $lt_cv_dlopen_self_static in 13028 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13029 *) enable_dlopen_self_static=unknown ;; 13030 esac 13031fi 13032 13033 13034 13035 13036 13037 13038 13039 13040 13041 13042 13043 13044 13045 13046 13047 13048 13049striplib= 13050old_striplib= 13051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13052$as_echo_n "checking whether stripping libraries is possible... " >&6; } 13053if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13054 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13055 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13057$as_echo "yes" >&6; } 13058else 13059# FIXME - insert some real tests, host_os isn't really good enough 13060 case $host_os in 13061 darwin*) 13062 if test -n "$STRIP"; then 13063 striplib="$STRIP -x" 13064 old_striplib="$STRIP -S" 13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13066$as_echo "yes" >&6; } 13067 else 13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13069$as_echo "no" >&6; } 13070 fi 13071 ;; 13072 *) 13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13074$as_echo "no" >&6; } 13075 ;; 13076 esac 13077fi 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 # Report what library types will actually be built 13091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13092$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13094$as_echo "$can_build_shared" >&6; } 13095 13096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13097$as_echo_n "checking whether to build shared libraries... " >&6; } 13098 test no = "$can_build_shared" && enable_shared=no 13099 13100 # On AIX, shared libraries and static libraries use the same namespace, and 13101 # are all built from PIC. 13102 case $host_os in 13103 aix3*) 13104 test yes = "$enable_shared" && enable_static=no 13105 if test -n "$RANLIB"; then 13106 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13107 postinstall_cmds='$RANLIB $lib' 13108 fi 13109 ;; 13110 13111 aix[4-9]*) 13112 if test ia64 != "$host_cpu"; then 13113 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13114 yes,aix,yes) ;; # shared object as lib.so file only 13115 yes,svr4,*) ;; # shared object as lib.so archive member only 13116 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13117 esac 13118 fi 13119 ;; 13120 esac 13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13122$as_echo "$enable_shared" >&6; } 13123 13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13125$as_echo_n "checking whether to build static libraries... " >&6; } 13126 # Make sure either enable_shared or enable_static is yes. 13127 test yes = "$enable_shared" || enable_static=yes 13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13129$as_echo "$enable_static" >&6; } 13130 13131 13132 13133 13134fi 13135ac_ext=c 13136ac_cpp='$CPP $CPPFLAGS' 13137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13139ac_compiler_gnu=$ac_cv_c_compiler_gnu 13140 13141CC=$lt_save_CC 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 ac_config_commands="$ac_config_commands libtool" 13158 13159 13160 13161 13162# Only expand once: 13163 13164 13165 13166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 13167$as_echo_n "checking for egrep... " >&6; } 13168if ${ac_cv_path_EGREP+:} false; then : 13169 $as_echo_n "(cached) " >&6 13170else 13171 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 13172 then ac_cv_path_EGREP="$GREP -E" 13173 else 13174 if test -z "$EGREP"; then 13175 ac_path_EGREP_found=false 13176 # Loop through the user's path and test for each of PROGNAME-LIST 13177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13178for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13179do 13180 IFS=$as_save_IFS 13181 test -z "$as_dir" && as_dir=. 13182 for ac_prog in egrep; do 13183 for ac_exec_ext in '' $ac_executable_extensions; do 13184 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 13185 as_fn_executable_p "$ac_path_EGREP" || continue 13186# Check for GNU ac_path_EGREP and select it if it is found. 13187 # Check for GNU $ac_path_EGREP 13188case `"$ac_path_EGREP" --version 2>&1` in 13189*GNU*) 13190 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 13191*) 13192 ac_count=0 13193 $as_echo_n 0123456789 >"conftest.in" 13194 while : 13195 do 13196 cat "conftest.in" "conftest.in" >"conftest.tmp" 13197 mv "conftest.tmp" "conftest.in" 13198 cp "conftest.in" "conftest.nl" 13199 $as_echo 'EGREP' >> "conftest.nl" 13200 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13201 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13202 as_fn_arith $ac_count + 1 && ac_count=$as_val 13203 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 13204 # Best one so far, save it but keep looking for a better one 13205 ac_cv_path_EGREP="$ac_path_EGREP" 13206 ac_path_EGREP_max=$ac_count 13207 fi 13208 # 10*(2^10) chars as input seems more than enough 13209 test $ac_count -gt 10 && break 13210 done 13211 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13212esac 13213 13214 $ac_path_EGREP_found && break 3 13215 done 13216 done 13217 done 13218IFS=$as_save_IFS 13219 if test -z "$ac_cv_path_EGREP"; then 13220 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13221 fi 13222else 13223 ac_cv_path_EGREP=$EGREP 13224fi 13225 13226 fi 13227fi 13228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 13229$as_echo "$ac_cv_path_EGREP" >&6; } 13230 EGREP="$ac_cv_path_EGREP" 13231 13232 13233 13234 13235for ac_prog in flex lex 13236do 13237 # Extract the first word of "$ac_prog", so it can be a program name with args. 13238set dummy $ac_prog; ac_word=$2 13239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13240$as_echo_n "checking for $ac_word... " >&6; } 13241if ${ac_cv_prog_LEX+:} false; then : 13242 $as_echo_n "(cached) " >&6 13243else 13244 if test -n "$LEX"; then 13245 ac_cv_prog_LEX="$LEX" # Let the user override the test. 13246else 13247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13248for as_dir in $PATH 13249do 13250 IFS=$as_save_IFS 13251 test -z "$as_dir" && as_dir=. 13252 for ac_exec_ext in '' $ac_executable_extensions; do 13253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13254 ac_cv_prog_LEX="$ac_prog" 13255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13256 break 2 13257 fi 13258done 13259 done 13260IFS=$as_save_IFS 13261 13262fi 13263fi 13264LEX=$ac_cv_prog_LEX 13265if test -n "$LEX"; then 13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 13267$as_echo "$LEX" >&6; } 13268else 13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13270$as_echo "no" >&6; } 13271fi 13272 13273 13274 test -n "$LEX" && break 13275done 13276test -n "$LEX" || LEX=":" 13277 13278if test "x$LEX" != "x:"; then 13279 cat >conftest.l <<_ACEOF 13280%% 13281a { ECHO; } 13282b { REJECT; } 13283c { yymore (); } 13284d { yyless (1); } 13285e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 13286 yyless ((input () != 0)); } 13287f { unput (yytext[0]); } 13288. { BEGIN INITIAL; } 13289%% 13290#ifdef YYTEXT_POINTER 13291extern char *yytext; 13292#endif 13293int 13294main (void) 13295{ 13296 return ! yylex () + ! yywrap (); 13297} 13298_ACEOF 13299{ { ac_try="$LEX conftest.l" 13300case "(($ac_try" in 13301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13302 *) ac_try_echo=$ac_try;; 13303esac 13304eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 13305$as_echo "$ac_try_echo"; } >&5 13306 (eval "$LEX conftest.l") 2>&5 13307 ac_status=$? 13308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13309 test $ac_status = 0; } 13310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 13311$as_echo_n "checking lex output file root... " >&6; } 13312if ${ac_cv_prog_lex_root+:} false; then : 13313 $as_echo_n "(cached) " >&6 13314else 13315 13316if test -f lex.yy.c; then 13317 ac_cv_prog_lex_root=lex.yy 13318elif test -f lexyy.c; then 13319 ac_cv_prog_lex_root=lexyy 13320else 13321 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 13322fi 13323fi 13324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 13325$as_echo "$ac_cv_prog_lex_root" >&6; } 13326LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 13327 13328if test -z "${LEXLIB+set}"; then 13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 13330$as_echo_n "checking lex library... " >&6; } 13331if ${ac_cv_lib_lex+:} false; then : 13332 $as_echo_n "(cached) " >&6 13333else 13334 13335 ac_save_LIBS=$LIBS 13336 ac_cv_lib_lex='none needed' 13337 for ac_lib in '' -lfl -ll; do 13338 LIBS="$ac_lib $ac_save_LIBS" 13339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13340/* end confdefs.h. */ 13341`cat $LEX_OUTPUT_ROOT.c` 13342_ACEOF 13343if ac_fn_c_try_link "$LINENO"; then : 13344 ac_cv_lib_lex=$ac_lib 13345fi 13346rm -f core conftest.err conftest.$ac_objext \ 13347 conftest$ac_exeext conftest.$ac_ext 13348 test "$ac_cv_lib_lex" != 'none needed' && break 13349 done 13350 LIBS=$ac_save_LIBS 13351 13352fi 13353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 13354$as_echo "$ac_cv_lib_lex" >&6; } 13355 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 13356fi 13357 13358 13359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 13360$as_echo_n "checking whether yytext is a pointer... " >&6; } 13361if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 13362 $as_echo_n "(cached) " >&6 13363else 13364 # POSIX says lex can declare yytext either as a pointer or an array; the 13365# default is implementation-dependent. Figure out which it is, since 13366# not all implementations provide the %pointer and %array declarations. 13367ac_cv_prog_lex_yytext_pointer=no 13368ac_save_LIBS=$LIBS 13369LIBS="$LEXLIB $ac_save_LIBS" 13370cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13371/* end confdefs.h. */ 13372 13373 #define YYTEXT_POINTER 1 13374`cat $LEX_OUTPUT_ROOT.c` 13375_ACEOF 13376if ac_fn_c_try_link "$LINENO"; then : 13377 ac_cv_prog_lex_yytext_pointer=yes 13378fi 13379rm -f core conftest.err conftest.$ac_objext \ 13380 conftest$ac_exeext conftest.$ac_ext 13381LIBS=$ac_save_LIBS 13382 13383fi 13384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 13385$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 13386if test $ac_cv_prog_lex_yytext_pointer = yes; then 13387 13388$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 13389 13390fi 13391rm -f conftest.l $LEX_OUTPUT_ROOT.c 13392 13393fi 13394if test "$LEX" = :; then 13395 LEX=${am_missing_run}flex 13396fi 13397for ac_prog in 'bison -y' byacc 13398do 13399 # Extract the first word of "$ac_prog", so it can be a program name with args. 13400set dummy $ac_prog; ac_word=$2 13401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13402$as_echo_n "checking for $ac_word... " >&6; } 13403if ${ac_cv_prog_YACC+:} false; then : 13404 $as_echo_n "(cached) " >&6 13405else 13406 if test -n "$YACC"; then 13407 ac_cv_prog_YACC="$YACC" # Let the user override the test. 13408else 13409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13410for as_dir in $PATH 13411do 13412 IFS=$as_save_IFS 13413 test -z "$as_dir" && as_dir=. 13414 for ac_exec_ext in '' $ac_executable_extensions; do 13415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13416 ac_cv_prog_YACC="$ac_prog" 13417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13418 break 2 13419 fi 13420done 13421 done 13422IFS=$as_save_IFS 13423 13424fi 13425fi 13426YACC=$ac_cv_prog_YACC 13427if test -n "$YACC"; then 13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 13429$as_echo "$YACC" >&6; } 13430else 13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13432$as_echo "no" >&6; } 13433fi 13434 13435 13436 test -n "$YACC" && break 13437done 13438test -n "$YACC" || YACC="yacc" 13439 13440 13441if test -n "$ac_tool_prefix"; then 13442 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 13443set dummy ${ac_tool_prefix}windres; ac_word=$2 13444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13445$as_echo_n "checking for $ac_word... " >&6; } 13446if ${ac_cv_prog_RC+:} false; then : 13447 $as_echo_n "(cached) " >&6 13448else 13449 if test -n "$RC"; then 13450 ac_cv_prog_RC="$RC" # Let the user override the test. 13451else 13452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13453for as_dir in $PATH 13454do 13455 IFS=$as_save_IFS 13456 test -z "$as_dir" && as_dir=. 13457 for ac_exec_ext in '' $ac_executable_extensions; do 13458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13459 ac_cv_prog_RC="${ac_tool_prefix}windres" 13460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13461 break 2 13462 fi 13463done 13464 done 13465IFS=$as_save_IFS 13466 13467fi 13468fi 13469RC=$ac_cv_prog_RC 13470if test -n "$RC"; then 13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 13472$as_echo "$RC" >&6; } 13473else 13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13475$as_echo "no" >&6; } 13476fi 13477 13478 13479fi 13480if test -z "$ac_cv_prog_RC"; then 13481 ac_ct_RC=$RC 13482 # Extract the first word of "windres", so it can be a program name with args. 13483set dummy windres; ac_word=$2 13484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13485$as_echo_n "checking for $ac_word... " >&6; } 13486if ${ac_cv_prog_ac_ct_RC+:} false; then : 13487 $as_echo_n "(cached) " >&6 13488else 13489 if test -n "$ac_ct_RC"; then 13490 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test. 13491else 13492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13493for as_dir in $PATH 13494do 13495 IFS=$as_save_IFS 13496 test -z "$as_dir" && as_dir=. 13497 for ac_exec_ext in '' $ac_executable_extensions; do 13498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13499 ac_cv_prog_ac_ct_RC="windres" 13500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13501 break 2 13502 fi 13503done 13504 done 13505IFS=$as_save_IFS 13506 13507fi 13508fi 13509ac_ct_RC=$ac_cv_prog_ac_ct_RC 13510if test -n "$ac_ct_RC"; then 13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5 13512$as_echo "$ac_ct_RC" >&6; } 13513else 13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13515$as_echo "no" >&6; } 13516fi 13517 13518 if test "x$ac_ct_RC" = x; then 13519 RC="" 13520 else 13521 case $cross_compiling:$ac_tool_warned in 13522yes:) 13523{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13524$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13525ac_tool_warned=yes ;; 13526esac 13527 RC=$ac_ct_RC 13528 fi 13529else 13530 RC="$ac_cv_prog_RC" 13531fi 13532 13533 13534 13535# Source file extension for RC test sources. 13536ac_ext=rc 13537 13538# Object file extension for compiled RC test sources. 13539objext=o 13540objext_RC=$objext 13541 13542# Code to be used in simple compile tests 13543lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 13544 13545# Code to be used in simple link tests 13546lt_simple_link_test_code=$lt_simple_compile_test_code 13547 13548# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13549 13550 13551 13552 13553 13554 13555# If no C compiler was specified, use CC. 13556LTCC=${LTCC-"$CC"} 13557 13558# If no C compiler flags were specified, use CFLAGS. 13559LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13560 13561# Allow CC to be a program name with arguments. 13562compiler=$CC 13563 13564 13565# save warnings/boilerplate of simple test code 13566ac_outfile=conftest.$ac_objext 13567echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13568eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13569_lt_compiler_boilerplate=`cat conftest.err` 13570$RM conftest* 13571 13572ac_outfile=conftest.$ac_objext 13573echo "$lt_simple_link_test_code" >conftest.$ac_ext 13574eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13575_lt_linker_boilerplate=`cat conftest.err` 13576$RM -r conftest* 13577 13578 13579# Allow CC to be a program name with arguments. 13580lt_save_CC=$CC 13581lt_save_CFLAGS=$CFLAGS 13582lt_save_GCC=$GCC 13583GCC= 13584CC=${RC-"windres"} 13585CFLAGS= 13586compiler=$CC 13587compiler_RC=$CC 13588func_cc_basename $compiler 13589cc_basename=$func_cc_basename_result 13590 13591lt_cv_prog_compiler_c_o_RC=yes 13592 13593if test -n "$compiler"; then 13594 : 13595 13596 13597 13598fi 13599 13600GCC=$lt_save_GCC 13601ac_ext=c 13602ac_cpp='$CPP $CPPFLAGS' 13603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13605ac_compiler_gnu=$ac_cv_c_compiler_gnu 13606 13607CC=$lt_save_CC 13608CFLAGS=$lt_save_CFLAGS 13609 13610 13611# only GNU Bison is supported, so drop yacc-compatibility warnings if possible 13612# note: that breaks old Bison versions which we still support, 13613# if that changes the test may be obsolete 13614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to disable yacc compatibility warnings" >&5 13615$as_echo_n "checking how to disable yacc compatibility warnings... " >&6; } 13616case "$YACC $YFLAGS $AM_YFLAGS" in 13617 *-Wno-yacc*) 13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: already specified" >&5 13619$as_echo "already specified" >&6; } 13620 ;; 13621 *-Wyacc*) 13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: explicit enabled" >&5 13623$as_echo "explicit enabled" >&6; } 13624 ;; 13625 *) 13626 $YACC $AM_YFLAGS $YFLAGS -Wno-yacc -V 1>/dev/null 2>&1 13627 if test $? -eq 0; then 13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -Wno-yacc" >&5 13629$as_echo "-Wno-yacc" >&6; } 13630 if test -z "$YFLAGS"; then 13631 YFLAGS="-Wno-yacc" 13632 else 13633 YFLAGS="$YFLAGS -Wno-yacc" 13634 fi 13635 else 13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5 13637$as_echo "not supported" >&6; } 13638 fi 13639 ;; 13640esac 13641 13642 13643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for diff arguments" >&5 13644$as_echo_n "checking for diff arguments... " >&6; } 13645case "$DIFF_FLAGS" in 13646 *--strip-trailing-cr*) 13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: specified as $DIFF_FLAGS" >&5 13648$as_echo "specified as $DIFF_FLAGS" >&6; } 13649 ;; 13650 *) 13651 diff $DIFF_FLAGS --strip-trailing-cr --version 1>/dev/null 2>&1 13652 if test $? -eq 0; then 13653 if test -z "$DIFF_FLAGS"; then 13654 DIFF_FLAGS="--strip-trailing-cr" 13655 else 13656 DIFF_FLAGS="$DIFF_FLAGS --strip-trailing-cr" 13657 fi 13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF_FLAGS" >&5 13659$as_echo "$DIFF_FLAGS" >&6; } 13660 else 13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5 13662$as_echo "not supported" >&6; } 13663 fi 13664 ;; 13665esac 13666 13667 13668# Stop tests for C++ and Fortran 13669 13670 13671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 13672$as_echo_n "checking whether ln -s works... " >&6; } 13673LN_S=$as_ln_s 13674if test "$LN_S" = "ln -s"; then 13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13676$as_echo "yes" >&6; } 13677else 13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 13679$as_echo "no, using $LN_S" >&6; } 13680fi 13681 13682 13683 13684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 13685$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 13686set x ${MAKE-make} 13687ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 13688if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 13689 $as_echo_n "(cached) " >&6 13690else 13691 cat >conftest.make <<\_ACEOF 13692SHELL = /bin/sh 13693all: 13694 @echo '@@@%%%=$(MAKE)=@@@%%%' 13695_ACEOF 13696# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 13697case `${MAKE-make} -f conftest.make 2>/dev/null` in 13698 *@@@%%%=?*=@@@%%%*) 13699 eval ac_cv_prog_make_${ac_make}_set=yes;; 13700 *) 13701 eval ac_cv_prog_make_${ac_make}_set=no;; 13702esac 13703rm -f conftest.make 13704fi 13705if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13707$as_echo "yes" >&6; } 13708 SET_MAKE= 13709else 13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13711$as_echo "no" >&6; } 13712 SET_MAKE="MAKE=${MAKE-make}" 13713fi 13714 13715 13716 13717# Check whether --with-gnu-ld was given. 13718if test "${with_gnu_ld+set}" = set; then : 13719 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 13720else 13721 with_gnu_ld=no 13722fi 13723 13724# Prepare PATH_SEPARATOR. 13725# The user is always right. 13726if test "${PATH_SEPARATOR+set}" != set; then 13727 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 13728 # contains only /bin. Note that ksh looks also at the FPATH variable, 13729 # so we have to set that as well for the test. 13730 PATH_SEPARATOR=: 13731 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 13732 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 13733 || PATH_SEPARATOR=';' 13734 } 13735fi 13736 13737ac_prog=ld 13738if test "$GCC" = yes; then 13739 # Check if gcc -print-prog-name=ld gives a path. 13740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13741$as_echo_n "checking for ld used by $CC... " >&6; } 13742 case $host in 13743 *-*-mingw*) 13744 # gcc leaves a trailing carriage return which upsets mingw 13745 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13746 *) 13747 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13748 esac 13749 case $ac_prog in 13750 # Accept absolute paths. 13751 [\\/]* | ?:[\\/]*) 13752 re_direlt='/[^/][^/]*/\.\./' 13753 # Canonicalize the pathname of ld 13754 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'` 13755 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do 13756 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 13757 done 13758 test -z "$LD" && LD="$ac_prog" 13759 ;; 13760 "") 13761 # If it fails, then pretend we aren't using GCC. 13762 ac_prog=ld 13763 ;; 13764 *) 13765 # If it is relative, then search for the first ld in PATH. 13766 with_gnu_ld=unknown 13767 ;; 13768 esac 13769elif test "$with_gnu_ld" = yes; then 13770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13771$as_echo_n "checking for GNU ld... " >&6; } 13772else 13773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13774$as_echo_n "checking for non-GNU ld... " >&6; } 13775fi 13776if ${acl_cv_path_LD+:} false; then : 13777 $as_echo_n "(cached) " >&6 13778else 13779 if test -z "$LD"; then 13780 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 13781 for ac_dir in $PATH; do 13782 IFS="$acl_save_ifs" 13783 test -z "$ac_dir" && ac_dir=. 13784 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13785 acl_cv_path_LD="$ac_dir/$ac_prog" 13786 # Check to see if the program is GNU ld. I'd rather use --version, 13787 # but apparently some variants of GNU ld only accept -v. 13788 # Break only if it was the GNU/non-GNU ld that we prefer. 13789 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in 13790 *GNU* | *'with BFD'*) 13791 test "$with_gnu_ld" != no && break 13792 ;; 13793 *) 13794 test "$with_gnu_ld" != yes && break 13795 ;; 13796 esac 13797 fi 13798 done 13799 IFS="$acl_save_ifs" 13800else 13801 acl_cv_path_LD="$LD" # Let the user override the test with a path. 13802fi 13803fi 13804 13805LD="$acl_cv_path_LD" 13806if test -n "$LD"; then 13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13808$as_echo "$LD" >&6; } 13809else 13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13811$as_echo "no" >&6; } 13812fi 13813test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13815$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13816if ${acl_cv_prog_gnu_ld+:} false; then : 13817 $as_echo_n "(cached) " >&6 13818else 13819 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13820case `$LD -v 2>&1 </dev/null` in 13821*GNU* | *'with BFD'*) 13822 acl_cv_prog_gnu_ld=yes 13823 ;; 13824*) 13825 acl_cv_prog_gnu_ld=no 13826 ;; 13827esac 13828fi 13829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 13830$as_echo "$acl_cv_prog_gnu_ld" >&6; } 13831with_gnu_ld=$acl_cv_prog_gnu_ld 13832 13833 13834 13835 13836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 13837$as_echo_n "checking for shared library run path origin... " >&6; } 13838if ${acl_cv_rpath+:} false; then : 13839 $as_echo_n "(cached) " >&6 13840else 13841 13842 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 13843 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 13844 . ./conftest.sh 13845 rm -f ./conftest.sh 13846 acl_cv_rpath=done 13847 13848fi 13849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 13850$as_echo "$acl_cv_rpath" >&6; } 13851 wl="$acl_cv_wl" 13852 acl_libext="$acl_cv_libext" 13853 acl_shlibext="$acl_cv_shlibext" 13854 acl_libname_spec="$acl_cv_libname_spec" 13855 acl_library_names_spec="$acl_cv_library_names_spec" 13856 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 13857 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 13858 acl_hardcode_direct="$acl_cv_hardcode_direct" 13859 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" 13860 # Check whether --enable-rpath was given. 13861if test "${enable_rpath+set}" = set; then : 13862 enableval=$enable_rpath; : 13863else 13864 enable_rpath=yes 13865fi 13866 13867 13868 13869 13870# Checks for header files. 13871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 13872$as_echo_n "checking for ANSI C header files... " >&6; } 13873if ${ac_cv_header_stdc+:} false; then : 13874 $as_echo_n "(cached) " >&6 13875else 13876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13877/* end confdefs.h. */ 13878#include <stdlib.h> 13879#include <stdarg.h> 13880#include <string.h> 13881#include <float.h> 13882 13883int 13884main () 13885{ 13886 13887 ; 13888 return 0; 13889} 13890_ACEOF 13891if ac_fn_c_try_compile "$LINENO"; then : 13892 ac_cv_header_stdc=yes 13893else 13894 ac_cv_header_stdc=no 13895fi 13896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13897 13898if test $ac_cv_header_stdc = yes; then 13899 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 13900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13901/* end confdefs.h. */ 13902#include <string.h> 13903 13904_ACEOF 13905if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13906 $EGREP "memchr" >/dev/null 2>&1; then : 13907 13908else 13909 ac_cv_header_stdc=no 13910fi 13911rm -f conftest* 13912 13913fi 13914 13915if test $ac_cv_header_stdc = yes; then 13916 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 13917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13918/* end confdefs.h. */ 13919#include <stdlib.h> 13920 13921_ACEOF 13922if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13923 $EGREP "free" >/dev/null 2>&1; then : 13924 13925else 13926 ac_cv_header_stdc=no 13927fi 13928rm -f conftest* 13929 13930fi 13931 13932if test $ac_cv_header_stdc = yes; then 13933 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 13934 if test "$cross_compiling" = yes; then : 13935 : 13936else 13937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13938/* end confdefs.h. */ 13939#include <ctype.h> 13940#include <stdlib.h> 13941#if ((' ' & 0x0FF) == 0x020) 13942# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 13943# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 13944#else 13945# define ISLOWER(c) \ 13946 (('a' <= (c) && (c) <= 'i') \ 13947 || ('j' <= (c) && (c) <= 'r') \ 13948 || ('s' <= (c) && (c) <= 'z')) 13949# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 13950#endif 13951 13952#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 13953int 13954main () 13955{ 13956 int i; 13957 for (i = 0; i < 256; i++) 13958 if (XOR (islower (i), ISLOWER (i)) 13959 || toupper (i) != TOUPPER (i)) 13960 return 2; 13961 return 0; 13962} 13963_ACEOF 13964if ac_fn_c_try_run "$LINENO"; then : 13965 13966else 13967 ac_cv_header_stdc=no 13968fi 13969rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13970 conftest.$ac_objext conftest.beam conftest.$ac_ext 13971fi 13972 13973fi 13974fi 13975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 13976$as_echo "$ac_cv_header_stdc" >&6; } 13977if test $ac_cv_header_stdc = yes; then 13978 13979$as_echo "#define STDC_HEADERS 1" >>confdefs.h 13980 13981fi 13982 13983for ac_header in stdint.h sys/types.h signal.h fcntl.h malloc.h locale.h \ 13984 stddef.h wchar.h dlfcn.h sys/time.h sys/wait.h 13985do : 13986 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13987ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13988if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13989 cat >>confdefs.h <<_ACEOF 13990#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13991_ACEOF 13992 13993fi 13994 13995done 13996 13997 13998 13999# Checks for typedefs, structures, and compiler characteristics. 14000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 14001$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 14002if ${ac_cv_c_const+:} false; then : 14003 $as_echo_n "(cached) " >&6 14004else 14005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14006/* end confdefs.h. */ 14007 14008int 14009main () 14010{ 14011 14012#ifndef __cplusplus 14013 /* Ultrix mips cc rejects this sort of thing. */ 14014 typedef int charset[2]; 14015 const charset cs = { 0, 0 }; 14016 /* SunOS 4.1.1 cc rejects this. */ 14017 char const *const *pcpcc; 14018 char **ppc; 14019 /* NEC SVR4.0.2 mips cc rejects this. */ 14020 struct point {int x, y;}; 14021 static struct point const zero = {0,0}; 14022 /* AIX XL C 1.02.0.0 rejects this. 14023 It does not let you subtract one const X* pointer from another in 14024 an arm of an if-expression whose if-part is not a constant 14025 expression */ 14026 const char *g = "string"; 14027 pcpcc = &g + (g ? g-g : 0); 14028 /* HPUX 7.0 cc rejects these. */ 14029 ++pcpcc; 14030 ppc = (char**) pcpcc; 14031 pcpcc = (char const *const *) ppc; 14032 { /* SCO 3.2v4 cc rejects this sort of thing. */ 14033 char tx; 14034 char *t = &tx; 14035 char const *s = 0 ? (char *) 0 : (char const *) 0; 14036 14037 *t++ = 0; 14038 if (s) return 0; 14039 } 14040 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 14041 int x[] = {25, 17}; 14042 const int *foo = &x[0]; 14043 ++foo; 14044 } 14045 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 14046 typedef const int *iptr; 14047 iptr p = 0; 14048 ++p; 14049 } 14050 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 14051 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 14052 struct s { int j; const int *ap[3]; } bx; 14053 struct s *b = &bx; b->j = 5; 14054 } 14055 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 14056 const int foo = 10; 14057 if (!foo) return 0; 14058 } 14059 return !cs[0] && !zero.x; 14060#endif 14061 14062 ; 14063 return 0; 14064} 14065_ACEOF 14066if ac_fn_c_try_compile "$LINENO"; then : 14067 ac_cv_c_const=yes 14068else 14069 ac_cv_c_const=no 14070fi 14071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14072fi 14073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 14074$as_echo "$ac_cv_c_const" >&6; } 14075if test $ac_cv_c_const = no; then 14076 14077$as_echo "#define const /**/" >>confdefs.h 14078 14079fi 14080 14081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 14082$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 14083if ${ac_cv_c_bigendian+:} false; then : 14084 $as_echo_n "(cached) " >&6 14085else 14086 ac_cv_c_bigendian=unknown 14087 # See if we're dealing with a universal compiler. 14088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14089/* end confdefs.h. */ 14090#ifndef __APPLE_CC__ 14091 not a universal capable compiler 14092 #endif 14093 typedef int dummy; 14094 14095_ACEOF 14096if ac_fn_c_try_compile "$LINENO"; then : 14097 14098 # Check for potential -arch flags. It is not universal unless 14099 # there are at least two -arch flags with different values. 14100 ac_arch= 14101 ac_prev= 14102 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 14103 if test -n "$ac_prev"; then 14104 case $ac_word in 14105 i?86 | x86_64 | ppc | ppc64) 14106 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 14107 ac_arch=$ac_word 14108 else 14109 ac_cv_c_bigendian=universal 14110 break 14111 fi 14112 ;; 14113 esac 14114 ac_prev= 14115 elif test "x$ac_word" = "x-arch"; then 14116 ac_prev=arch 14117 fi 14118 done 14119fi 14120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14121 if test $ac_cv_c_bigendian = unknown; then 14122 # See if sys/param.h defines the BYTE_ORDER macro. 14123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14124/* end confdefs.h. */ 14125#include <sys/types.h> 14126 #include <sys/param.h> 14127 14128int 14129main () 14130{ 14131#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 14132 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 14133 && LITTLE_ENDIAN) 14134 bogus endian macros 14135 #endif 14136 14137 ; 14138 return 0; 14139} 14140_ACEOF 14141if ac_fn_c_try_compile "$LINENO"; then : 14142 # It does; now see whether it defined to BIG_ENDIAN or not. 14143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14144/* end confdefs.h. */ 14145#include <sys/types.h> 14146 #include <sys/param.h> 14147 14148int 14149main () 14150{ 14151#if BYTE_ORDER != BIG_ENDIAN 14152 not big endian 14153 #endif 14154 14155 ; 14156 return 0; 14157} 14158_ACEOF 14159if ac_fn_c_try_compile "$LINENO"; then : 14160 ac_cv_c_bigendian=yes 14161else 14162 ac_cv_c_bigendian=no 14163fi 14164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14165fi 14166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14167 fi 14168 if test $ac_cv_c_bigendian = unknown; then 14169 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 14170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14171/* end confdefs.h. */ 14172#include <limits.h> 14173 14174int 14175main () 14176{ 14177#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 14178 bogus endian macros 14179 #endif 14180 14181 ; 14182 return 0; 14183} 14184_ACEOF 14185if ac_fn_c_try_compile "$LINENO"; then : 14186 # It does; now see whether it defined to _BIG_ENDIAN or not. 14187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14188/* end confdefs.h. */ 14189#include <limits.h> 14190 14191int 14192main () 14193{ 14194#ifndef _BIG_ENDIAN 14195 not big endian 14196 #endif 14197 14198 ; 14199 return 0; 14200} 14201_ACEOF 14202if ac_fn_c_try_compile "$LINENO"; then : 14203 ac_cv_c_bigendian=yes 14204else 14205 ac_cv_c_bigendian=no 14206fi 14207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14208fi 14209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14210 fi 14211 if test $ac_cv_c_bigendian = unknown; then 14212 # Compile a test program. 14213 if test "$cross_compiling" = yes; then : 14214 # Try to guess by grepping values from an object file. 14215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14216/* end confdefs.h. */ 14217short int ascii_mm[] = 14218 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 14219 short int ascii_ii[] = 14220 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 14221 int use_ascii (int i) { 14222 return ascii_mm[i] + ascii_ii[i]; 14223 } 14224 short int ebcdic_ii[] = 14225 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 14226 short int ebcdic_mm[] = 14227 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 14228 int use_ebcdic (int i) { 14229 return ebcdic_mm[i] + ebcdic_ii[i]; 14230 } 14231 extern int foo; 14232 14233int 14234main () 14235{ 14236return use_ascii (foo) == use_ebcdic (foo); 14237 ; 14238 return 0; 14239} 14240_ACEOF 14241if ac_fn_c_try_compile "$LINENO"; then : 14242 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 14243 ac_cv_c_bigendian=yes 14244 fi 14245 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 14246 if test "$ac_cv_c_bigendian" = unknown; then 14247 ac_cv_c_bigendian=no 14248 else 14249 # finding both strings is unlikely to happen, but who knows? 14250 ac_cv_c_bigendian=unknown 14251 fi 14252 fi 14253fi 14254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14255else 14256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14257/* end confdefs.h. */ 14258$ac_includes_default 14259int 14260main () 14261{ 14262 14263 /* Are we little or big endian? From Harbison&Steele. */ 14264 union 14265 { 14266 long int l; 14267 char c[sizeof (long int)]; 14268 } u; 14269 u.l = 1; 14270 return u.c[sizeof (long int) - 1] == 1; 14271 14272 ; 14273 return 0; 14274} 14275_ACEOF 14276if ac_fn_c_try_run "$LINENO"; then : 14277 ac_cv_c_bigendian=no 14278else 14279 ac_cv_c_bigendian=yes 14280fi 14281rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14282 conftest.$ac_objext conftest.beam conftest.$ac_ext 14283fi 14284 14285 fi 14286fi 14287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 14288$as_echo "$ac_cv_c_bigendian" >&6; } 14289 case $ac_cv_c_bigendian in #( 14290 yes) 14291 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 14292;; #( 14293 no) 14294 ;; #( 14295 universal) 14296 14297$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 14298 14299 ;; #( 14300 *) 14301 as_fn_error $? "unknown endianness 14302 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 14303 esac 14304 14305ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 14306if test "x$ac_cv_type_size_t" = xyes; then : 14307 14308else 14309 14310cat >>confdefs.h <<_ACEOF 14311#define size_t unsigned int 14312_ACEOF 14313 14314fi 14315 14316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 14317$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 14318if ${ac_cv_struct_tm+:} false; then : 14319 $as_echo_n "(cached) " >&6 14320else 14321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14322/* end confdefs.h. */ 14323#include <sys/types.h> 14324#include <time.h> 14325 14326int 14327main () 14328{ 14329struct tm tm; 14330 int *p = &tm.tm_sec; 14331 return !p; 14332 ; 14333 return 0; 14334} 14335_ACEOF 14336if ac_fn_c_try_compile "$LINENO"; then : 14337 ac_cv_struct_tm=time.h 14338else 14339 ac_cv_struct_tm=sys/time.h 14340fi 14341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14342fi 14343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 14344$as_echo "$ac_cv_struct_tm" >&6; } 14345if test $ac_cv_struct_tm = sys/time.h; then 14346 14347$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 14348 14349fi 14350 14351ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h> 14352" 14353if test "x$ac_cv_type_sig_atomic_t" = xyes; then : 14354 14355cat >>confdefs.h <<_ACEOF 14356#define HAVE_SIG_ATOMIC_T 1 14357_ACEOF 14358 14359 14360fi 14361 14362 14363# Don't use AC_C_INLINE here. We need the value 14364 14365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline keyword" >&5 14366$as_echo_n "checking for inline keyword... " >&6; } 14367for cob_keyw in __inline __inline__ inline 14368do 14369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14370/* end confdefs.h. */ 14371 14372 #ifndef __cplusplus 14373 typedef int foo_t; 14374 static $cob_keyw foo_t foo () { return 0; } 14375 #endif 14376int 14377main () 14378{ 14379 14380 #ifndef __cplusplus 14381 return foo (); 14382 #else 14383 choke me 14384 #endif 14385 ; 14386 return 0; 14387} 14388_ACEOF 14389if ac_fn_c_try_compile "$LINENO"; then : 14390 cat >>confdefs.h <<_ACEOF 14391#define COB_KEYWORD_INLINE $cob_keyw 14392_ACEOF 14393 break 14394fi 14395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14396done 14397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cob_keyw" >&5 14398$as_echo "$cob_keyw" >&6; } 14399unset cob_keyw 14400 14401 14402# Checks for library functions. 14403for ac_func in vprintf 14404do : 14405 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 14406if test "x$ac_cv_func_vprintf" = xyes; then : 14407 cat >>confdefs.h <<_ACEOF 14408#define HAVE_VPRINTF 1 14409_ACEOF 14410 14411ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 14412if test "x$ac_cv_func__doprnt" = xyes; then : 14413 14414$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 14415 14416fi 14417 14418fi 14419done 14420 14421 14422for ac_func in memmove memset setlocale fcntl strerror strcasecmp \ 14423 strchr strrchr strdup strstr strtol gettimeofday localeconv \ 14424 getexecname canonicalize_file_name popen raise readlink realpath \ 14425 setenv strcoll flockfile 14426do : 14427 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14428ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14429if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14430 cat >>confdefs.h <<_ACEOF 14431#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14432_ACEOF 14433 14434fi 14435done 14436 14437 14438# Check for timezone 14439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable access" >&5 14440$as_echo_n "checking for timezone variable access... " >&6; } 14441cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14442/* end confdefs.h. */ 14443#include <time.h> 14444int 14445main () 14446{ 14447timezone = 3600; 14448 ; 14449 return 0; 14450} 14451_ACEOF 14452if ac_fn_c_try_compile "$LINENO"; then : 14453 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h 14454 14455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14456$as_echo "yes" >&6; } 14457else 14458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14459$as_echo "no" >&6; } 14460fi 14461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14462 14463# Check for designated initializers 14464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for designated initializers" >&5 14465$as_echo_n "checking for designated initializers... " >&6; } 14466cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14467/* end confdefs.h. */ 14468#include <stdio.h> 14469int 14470main () 14471{ 14472static const unsigned char valid_char[256] = { 14473 ['0'] = 1, 14474 ['1'] = 1 }; 14475 14476 ; 14477 return 0; 14478} 14479_ACEOF 14480if ac_fn_c_try_compile "$LINENO"; then : 14481 $as_echo "#define HAVE_DESIGNATED_INITS 1" >>confdefs.h 14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14483$as_echo "yes" >&6; } 14484else 14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14486$as_echo "no" >&6; } 14487fi 14488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14489 14490# Check gcc/icc/clang 14491COB_USES_GCC="no" 14492COB_USES_GCC_NO_ICC="no" 14493COB_USES_ICC_ONLY="no" 14494COB_USES_CLANG_ONLY="no" 14495COB_USES_XLC_ONLY="no" 14496COB_USES_WATCOMC_ONLY="no" 14497 14498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __GNUC__" >&5 14499$as_echo_n "checking for __GNUC__... " >&6; } 14500cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14501/* end confdefs.h. */ 14502 14503 #ifndef __GNUC__ 14504 # error macro not defined 14505 #endif 14506_ACEOF 14507if ac_fn_c_try_compile "$LINENO"; then : 14508 COB_USES_GCC="yes" 14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14510$as_echo "yes" >&6; } 14511else 14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14513$as_echo "no" >&6; } 14514fi 14515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14516 14517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __INTEL_COMPILER" >&5 14518$as_echo_n "checking for __INTEL_COMPILER... " >&6; } 14519cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14520/* end confdefs.h. */ 14521 14522 #ifndef __INTEL_COMPILER 14523 # error macro not defined 14524 #endif 14525_ACEOF 14526if ac_fn_c_try_compile "$LINENO"; then : 14527 COB_USES_ICC_ONLY=yes 14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14529$as_echo "yes" >&6; } 14530else 14531 if test "$COB_USES_GCC" = "yes"; then 14532 COB_USES_GCC_NO_ICC="yes" 14533 fi 14534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14535$as_echo "no" >&6; } 14536 14537fi 14538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14539 14540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clang__" >&5 14541$as_echo_n "checking for __clang__... " >&6; } 14542cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14543/* end confdefs.h. */ 14544 14545 #ifndef __clang__ 14546 # error macro not defined 14547 #endif 14548_ACEOF 14549if ac_fn_c_try_compile "$LINENO"; then : 14550 COB_USES_CLANG_ONLY="yes" 14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14552$as_echo "yes" >&6; } 14553else 14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14555$as_echo "no" >&6; } 14556fi 14557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14558 14559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __xlc__" >&5 14560$as_echo_n "checking for __xlc__... " >&6; } 14561cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14562/* end confdefs.h. */ 14563 14564 #ifndef __xlc__ 14565 # error macro not defined 14566 #endif 14567_ACEOF 14568if ac_fn_c_try_compile "$LINENO"; then : 14569 COB_USES_XLC_ONLY="yes" 14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14571$as_echo "yes" >&6; } 14572else 14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14574$as_echo "no" >&6; } 14575fi 14576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14577 14578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __WATCOMC__" >&5 14579$as_echo_n "checking for __WATCOMC__... " >&6; } 14580cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14581/* end confdefs.h. */ 14582 14583 #ifndef __WATCOMC__ 14584 # error macro not defined 14585 #endif 14586_ACEOF 14587if ac_fn_c_try_compile "$LINENO"; then : 14588 COB_USES_WATCOMC_ONLY="yes" 14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14590$as_echo "yes" >&6; } 14591else 14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14593$as_echo "no" >&6; } 14594fi 14595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14596 14597if test "x$COB_CC" = "x"; then 14598 COB_CC="$CC" 14599fi 14600 14601# FIXME: -lm should only be used if needed (which it often is not), see Bug #559 14602if test "$COB_USES_ICC_ONLY" = "yes"; then 14603 COMMON_LIBS="-limf -lm" 14604else 14605 COMMON_LIBS="-lm" 14606fi 14607if test "x$LIBCOB_LIBS" != "x"; then 14608 LIBCOB_LIBS="$LIBCOB_LIBS $COMMON_LIBS" 14609else 14610 LIBCOB_LIBS="$COMMON_LIBS" 14611fi 14612 14613COB_LIBS="-L$libdir -lcob" 14614if test "x$COMMON_LIBS" != "x"; then 14615 if test "x$COB_LIBS" != "x"; then 14616 COB_LIBS="$COB_LIBS $COMMON_LIBS" 14617 else 14618 COB_LIBS="$COMMON_LIBS" 14619 fi 14620fi 14621if test "x$LDFLAGS" != "x"; then 14622 if test "x$COB_LDFLAGS" != "x"; then 14623 COB_LDFLAGS="$COB_LDFLAGS $LDFLAGS" 14624 else 14625 COB_LDFLAGS="$LDFLAGS" 14626 fi 14627fi 14628 14629# Add --enable-code-coverage and test for code-coverage tools if enabled 14630 14631 14632 14633 14634 14635 14636 14637 14638 14639 14640 14641 14642 14643 14644 # allow to override gcov location 14645 14646# Check whether --with-gcov was given. 14647if test "${with_gcov+set}" = set; then : 14648 withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov 14649else 14650 _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov 14651fi 14652 14653 14654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5 14655$as_echo_n "checking whether to build with code coverage support... " >&6; } 14656 # Check whether --enable-code-coverage was given. 14657if test "${enable_code_coverage+set}" = set; then : 14658 enableval=$enable_code_coverage; 14659else 14660 enable_code_coverage=no 14661fi 14662 14663 14664 if test "x$enable_code_coverage" = xyes; then 14665 CODE_COVERAGE_ENABLED_TRUE= 14666 CODE_COVERAGE_ENABLED_FALSE='#' 14667else 14668 CODE_COVERAGE_ENABLED_TRUE='#' 14669 CODE_COVERAGE_ENABLED_FALSE= 14670fi 14671 14672 CODE_COVERAGE_ENABLED=$enable_code_coverage 14673 14674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5 14675$as_echo "$enable_code_coverage" >&6; } 14676 14677 if test "x$enable_code_coverage" = xyes ; then : 14678 14679 14680 for ac_prog in gawk mawk nawk awk 14681do 14682 # Extract the first word of "$ac_prog", so it can be a program name with args. 14683set dummy $ac_prog; ac_word=$2 14684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14685$as_echo_n "checking for $ac_word... " >&6; } 14686if ${ac_cv_prog_AWK+:} false; then : 14687 $as_echo_n "(cached) " >&6 14688else 14689 if test -n "$AWK"; then 14690 ac_cv_prog_AWK="$AWK" # Let the user override the test. 14691else 14692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14693for as_dir in $PATH 14694do 14695 IFS=$as_save_IFS 14696 test -z "$as_dir" && as_dir=. 14697 for ac_exec_ext in '' $ac_executable_extensions; do 14698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14699 ac_cv_prog_AWK="$ac_prog" 14700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14701 break 2 14702 fi 14703done 14704 done 14705IFS=$as_save_IFS 14706 14707fi 14708fi 14709AWK=$ac_cv_prog_AWK 14710if test -n "$AWK"; then 14711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 14712$as_echo "$AWK" >&6; } 14713else 14714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14715$as_echo "no" >&6; } 14716fi 14717 14718 14719 test -n "$AWK" && break 14720done 14721 14722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 14723$as_echo_n "checking for GNU make... " >&6; } 14724if ${_cv_gnu_make_command+:} false; then : 14725 $as_echo_n "(cached) " >&6 14726else 14727 _cv_gnu_make_command="" ; 14728 for a in "$MAKE" make gmake gnumake ; do 14729 if test -z "$a" ; then continue ; fi ; 14730 if "$a" --version 2> /dev/null | grep GNU 2>&1 > /dev/null ; then 14731 _cv_gnu_make_command=$a ; 14732 AX_CHECK_GNU_MAKE_HEADLINE=$("$a" --version 2> /dev/null | grep "GNU Make") 14733 ax_check_gnu_make_version=$(echo ${AX_CHECK_GNU_MAKE_HEADLINE} | ${AWK} -F " " '{ print $(NF); }') 14734 break ; 14735 fi 14736 done ; 14737fi 14738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5 14739$as_echo "$_cv_gnu_make_command" >&6; } 14740 if test "x$_cv_gnu_make_command" = x""; then : 14741 ifGNUmake="#" 14742else 14743 ifGNUmake="" 14744fi 14745 if test "x$_cv_gnu_make_command" = x""; then : 14746 ifnGNUmake="" 14747else 14748 ifnGNUmake="#" 14749fi 14750 if test "x$_cv_gnu_make_command" = x""; then : 14751 { ax_cv_gnu_make_command=; unset ax_cv_gnu_make_command;} 14752else 14753 ax_cv_gnu_make_command=${_cv_gnu_make_command} 14754fi 14755 if test "x$_cv_gnu_make_command" = x""; then : 14756 as_fn_error $? "not using GNU make that is needed for coverage" "$LINENO" 5 14757fi 14758 14759 14760 14761 14762 # check for gcov 14763 if test -n "$ac_tool_prefix"; then 14764 # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args. 14765set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2 14766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14767$as_echo_n "checking for $ac_word... " >&6; } 14768if ${ac_cv_prog_GCOV+:} false; then : 14769 $as_echo_n "(cached) " >&6 14770else 14771 if test -n "$GCOV"; then 14772 ac_cv_prog_GCOV="$GCOV" # Let the user override the test. 14773else 14774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14775for as_dir in $PATH 14776do 14777 IFS=$as_save_IFS 14778 test -z "$as_dir" && as_dir=. 14779 for ac_exec_ext in '' $ac_executable_extensions; do 14780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14781 ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH" 14782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14783 break 2 14784 fi 14785done 14786 done 14787IFS=$as_save_IFS 14788 14789fi 14790fi 14791GCOV=$ac_cv_prog_GCOV 14792if test -n "$GCOV"; then 14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5 14794$as_echo "$GCOV" >&6; } 14795else 14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14797$as_echo "no" >&6; } 14798fi 14799 14800 14801fi 14802if test -z "$ac_cv_prog_GCOV"; then 14803 ac_ct_GCOV=$GCOV 14804 # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args. 14805set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2 14806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14807$as_echo_n "checking for $ac_word... " >&6; } 14808if ${ac_cv_prog_ac_ct_GCOV+:} false; then : 14809 $as_echo_n "(cached) " >&6 14810else 14811 if test -n "$ac_ct_GCOV"; then 14812 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test. 14813else 14814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14815for as_dir in $PATH 14816do 14817 IFS=$as_save_IFS 14818 test -z "$as_dir" && as_dir=. 14819 for ac_exec_ext in '' $ac_executable_extensions; do 14820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14821 ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH" 14822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14823 break 2 14824 fi 14825done 14826 done 14827IFS=$as_save_IFS 14828 14829fi 14830fi 14831ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV 14832if test -n "$ac_ct_GCOV"; then 14833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5 14834$as_echo "$ac_ct_GCOV" >&6; } 14835else 14836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14837$as_echo "no" >&6; } 14838fi 14839 14840 if test "x$ac_ct_GCOV" = x; then 14841 GCOV=":" 14842 else 14843 case $cross_compiling:$ac_tool_warned in 14844yes:) 14845{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14846$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14847ac_tool_warned=yes ;; 14848esac 14849 GCOV=$ac_ct_GCOV 14850 fi 14851else 14852 GCOV="$ac_cv_prog_GCOV" 14853fi 14854 14855 if test "X$GCOV" = "X:"; then : 14856 as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5 14857fi 14858 14859 14860 if test "$GCC" = "no" ; then : 14861 14862 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5 14863 14864fi 14865 14866 # Extract the first word of "lcov", so it can be a program name with args. 14867set dummy lcov; ac_word=$2 14868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14869$as_echo_n "checking for $ac_word... " >&6; } 14870if ${ac_cv_prog_LCOV+:} false; then : 14871 $as_echo_n "(cached) " >&6 14872else 14873 if test -n "$LCOV"; then 14874 ac_cv_prog_LCOV="$LCOV" # Let the user override the test. 14875else 14876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14877for as_dir in $PATH 14878do 14879 IFS=$as_save_IFS 14880 test -z "$as_dir" && as_dir=. 14881 for ac_exec_ext in '' $ac_executable_extensions; do 14882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14883 ac_cv_prog_LCOV="lcov" 14884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14885 break 2 14886 fi 14887done 14888 done 14889IFS=$as_save_IFS 14890 14891fi 14892fi 14893LCOV=$ac_cv_prog_LCOV 14894if test -n "$LCOV"; then 14895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5 14896$as_echo "$LCOV" >&6; } 14897else 14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14899$as_echo "no" >&6; } 14900fi 14901 14902 14903 # Extract the first word of "genhtml", so it can be a program name with args. 14904set dummy genhtml; ac_word=$2 14905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14906$as_echo_n "checking for $ac_word... " >&6; } 14907if ${ac_cv_prog_GENHTML+:} false; then : 14908 $as_echo_n "(cached) " >&6 14909else 14910 if test -n "$GENHTML"; then 14911 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test. 14912else 14913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14914for as_dir in $PATH 14915do 14916 IFS=$as_save_IFS 14917 test -z "$as_dir" && as_dir=. 14918 for ac_exec_ext in '' $ac_executable_extensions; do 14919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14920 ac_cv_prog_GENHTML="genhtml" 14921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14922 break 2 14923 fi 14924done 14925 done 14926IFS=$as_save_IFS 14927 14928fi 14929fi 14930GENHTML=$ac_cv_prog_GENHTML 14931if test -n "$GENHTML"; then 14932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5 14933$as_echo "$GENHTML" >&6; } 14934else 14935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14936$as_echo "no" >&6; } 14937fi 14938 14939 14940 14941 if test x"$LCOV" = x ; then : 14942 14943 as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5 14944 14945fi 14946 14947 if test x"$GENHTML" = x ; then : 14948 14949 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5 14950 14951fi 14952 14953 CODE_COVERAGE_CPPFLAGS="-DNDEBUG" 14954 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage" 14955 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage" 14956 CODE_COVERAGE_LIBS="-lgcov" 14957 14958 14959 14960 14961 14962 14963 14964fi 14965 14966 14967 14968 14969 14970 14971 14972 14973 14974 14975 14976 14977if test "$COB_USES_GCC_NO_ICC" != yes -a "$enable_code_coverage" = "yes"; then 14978 as_fn_error $? "Code coverage checks are only usable with GCC!" "$LINENO" 5 14979fi 14980 14981 14982# set PKG_CONFIG to use (cross-compile aware) 14983 14984 14985 14986 14987 14988 14989 14990if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 14991 if test -n "$ac_tool_prefix"; then 14992 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 14993set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 14994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14995$as_echo_n "checking for $ac_word... " >&6; } 14996if ${ac_cv_path_PKG_CONFIG+:} false; then : 14997 $as_echo_n "(cached) " >&6 14998else 14999 case $PKG_CONFIG in 15000 [\\/]* | ?:[\\/]*) 15001 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 15002 ;; 15003 *) 15004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15005for as_dir in $PATH 15006do 15007 IFS=$as_save_IFS 15008 test -z "$as_dir" && as_dir=. 15009 for ac_exec_ext in '' $ac_executable_extensions; do 15010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15011 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 15012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15013 break 2 15014 fi 15015done 15016 done 15017IFS=$as_save_IFS 15018 15019 ;; 15020esac 15021fi 15022PKG_CONFIG=$ac_cv_path_PKG_CONFIG 15023if test -n "$PKG_CONFIG"; then 15024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 15025$as_echo "$PKG_CONFIG" >&6; } 15026else 15027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15028$as_echo "no" >&6; } 15029fi 15030 15031 15032fi 15033if test -z "$ac_cv_path_PKG_CONFIG"; then 15034 ac_pt_PKG_CONFIG=$PKG_CONFIG 15035 # Extract the first word of "pkg-config", so it can be a program name with args. 15036set dummy pkg-config; ac_word=$2 15037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15038$as_echo_n "checking for $ac_word... " >&6; } 15039if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 15040 $as_echo_n "(cached) " >&6 15041else 15042 case $ac_pt_PKG_CONFIG in 15043 [\\/]* | ?:[\\/]*) 15044 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 15045 ;; 15046 *) 15047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15048for as_dir in $PATH 15049do 15050 IFS=$as_save_IFS 15051 test -z "$as_dir" && as_dir=. 15052 for ac_exec_ext in '' $ac_executable_extensions; do 15053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15054 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 15055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15056 break 2 15057 fi 15058done 15059 done 15060IFS=$as_save_IFS 15061 15062 ;; 15063esac 15064fi 15065ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 15066if test -n "$ac_pt_PKG_CONFIG"; then 15067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 15068$as_echo "$ac_pt_PKG_CONFIG" >&6; } 15069else 15070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15071$as_echo "no" >&6; } 15072fi 15073 15074 if test "x$ac_pt_PKG_CONFIG" = x; then 15075 PKG_CONFIG="" 15076 else 15077 case $cross_compiling:$ac_tool_warned in 15078yes:) 15079{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15080$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15081ac_tool_warned=yes ;; 15082esac 15083 PKG_CONFIG=$ac_pt_PKG_CONFIG 15084 fi 15085else 15086 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 15087fi 15088 15089fi 15090if test -n "$PKG_CONFIG"; then 15091 _pkg_min_version=0.9.0 15092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 15093$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 15094 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 15095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15096$as_echo "yes" >&6; } 15097 else 15098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15099$as_echo "no" >&6; } 15100 PKG_CONFIG="" 15101 fi 15102fi 15103 15104 15105# Checks for gmp. 15106{ $as_echo "$as_me:${as_lineno-$LINENO}: Checks for GMP/MPIR ..." >&5 15107$as_echo "$as_me: Checks for GMP/MPIR ..." >&6;} 15108 15109 15110# Check whether --with-math was given. 15111if test "${with_math+set}" = set; then : 15112 withval=$with_math; case "$with_math" in 15113 gmp | mpir | check) 15114 USE_MATH="$with_math" 15115 ;; 15116 yes) 15117 USE_MATH="check" 15118 ;; 15119 no) 15120 as_fn_error $? "Cannot build GnuCOBOL without math multiple precision library)" "$LINENO" 5 15121 ;; 15122 *) 15123 as_fn_error $? "invalid value \"$with_math\" for --with-math, 15124 must be one of the following: 15125 gmp, mpir (use only the specified library) 15126 check (use whatever library is usable)" "$LINENO" 5 15127 ;; 15128 esac 15129else 15130 USE_MATH="check" 15131fi 15132 15133 15134curr_libs=$LIBS 15135curr_cppflags=$CPPFLAGS 15136 15137if test "$USE_MATH" = "gmp" -o "$USE_MATH" = "check"; then : 15138 15139 curr_libs="$LIBS"; curr_cppflags="$CPPFLAGS" 15140 15141pkg_failed=no 15142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gmp" >&5 15143$as_echo_n "checking for gmp... " >&6; } 15144 15145if test -n "$GMP_CFLAGS"; then 15146 pkg_cv_GMP_CFLAGS="$GMP_CFLAGS" 15147 elif test -n "$PKG_CONFIG"; then 15148 if test -n "$PKG_CONFIG" && \ 15149 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmp\""; } >&5 15150 ($PKG_CONFIG --exists --print-errors "gmp") 2>&5 15151 ac_status=$? 15152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15153 test $ac_status = 0; }; then 15154 pkg_cv_GMP_CFLAGS=`$PKG_CONFIG --cflags "gmp" 2>/dev/null` 15155 test "x$?" != "x0" && pkg_failed=yes 15156else 15157 pkg_failed=yes 15158fi 15159 else 15160 pkg_failed=untried 15161fi 15162if test -n "$GMP_LIBS"; then 15163 pkg_cv_GMP_LIBS="$GMP_LIBS" 15164 elif test -n "$PKG_CONFIG"; then 15165 if test -n "$PKG_CONFIG" && \ 15166 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmp\""; } >&5 15167 ($PKG_CONFIG --exists --print-errors "gmp") 2>&5 15168 ac_status=$? 15169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15170 test $ac_status = 0; }; then 15171 pkg_cv_GMP_LIBS=`$PKG_CONFIG --libs "gmp" 2>/dev/null` 15172 test "x$?" != "x0" && pkg_failed=yes 15173else 15174 pkg_failed=yes 15175fi 15176 else 15177 pkg_failed=untried 15178fi 15179 15180 15181 15182if test $pkg_failed = yes; then 15183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15184$as_echo "no" >&6; } 15185 15186if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15187 _pkg_short_errors_supported=yes 15188else 15189 _pkg_short_errors_supported=no 15190fi 15191 if test $_pkg_short_errors_supported = yes; then 15192 GMP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gmp" 2>&1` 15193 else 15194 GMP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gmp" 2>&1` 15195 fi 15196 # Put the nasty error message in config.log where it belongs 15197 echo "$GMP_PKG_ERRORS" >&5 15198 15199 15200 15201pkg_failed=no 15202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgmp" >&5 15203$as_echo_n "checking for libgmp... " >&6; } 15204 15205if test -n "$GMP_CFLAGS"; then 15206 pkg_cv_GMP_CFLAGS="$GMP_CFLAGS" 15207 elif test -n "$PKG_CONFIG"; then 15208 if test -n "$PKG_CONFIG" && \ 15209 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgmp\""; } >&5 15210 ($PKG_CONFIG --exists --print-errors "libgmp") 2>&5 15211 ac_status=$? 15212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15213 test $ac_status = 0; }; then 15214 pkg_cv_GMP_CFLAGS=`$PKG_CONFIG --cflags "libgmp" 2>/dev/null` 15215 test "x$?" != "x0" && pkg_failed=yes 15216else 15217 pkg_failed=yes 15218fi 15219 else 15220 pkg_failed=untried 15221fi 15222if test -n "$GMP_LIBS"; then 15223 pkg_cv_GMP_LIBS="$GMP_LIBS" 15224 elif test -n "$PKG_CONFIG"; then 15225 if test -n "$PKG_CONFIG" && \ 15226 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgmp\""; } >&5 15227 ($PKG_CONFIG --exists --print-errors "libgmp") 2>&5 15228 ac_status=$? 15229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15230 test $ac_status = 0; }; then 15231 pkg_cv_GMP_LIBS=`$PKG_CONFIG --libs "libgmp" 2>/dev/null` 15232 test "x$?" != "x0" && pkg_failed=yes 15233else 15234 pkg_failed=yes 15235fi 15236 else 15237 pkg_failed=untried 15238fi 15239 15240 15241 15242if test $pkg_failed = yes; then 15243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15244$as_echo "no" >&6; } 15245 15246if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15247 _pkg_short_errors_supported=yes 15248else 15249 _pkg_short_errors_supported=no 15250fi 15251 if test $_pkg_short_errors_supported = yes; then 15252 GMP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgmp" 2>&1` 15253 else 15254 GMP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgmp" 2>&1` 15255 fi 15256 # Put the nasty error message in config.log where it belongs 15257 echo "$GMP_PKG_ERRORS" >&5 15258 15259 # 15260 15261elif test $pkg_failed = untried; then 15262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15263$as_echo "no" >&6; } 15264 # 15265 15266else 15267 GMP_CFLAGS=$pkg_cv_GMP_CFLAGS 15268 GMP_LIBS=$pkg_cv_GMP_LIBS 15269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15270$as_echo "yes" >&6; } 15271 15272fi 15273 15274elif test $pkg_failed = untried; then 15275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15276$as_echo "no" >&6; } 15277 15278 15279pkg_failed=no 15280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgmp" >&5 15281$as_echo_n "checking for libgmp... " >&6; } 15282 15283if test -n "$GMP_CFLAGS"; then 15284 pkg_cv_GMP_CFLAGS="$GMP_CFLAGS" 15285 elif test -n "$PKG_CONFIG"; then 15286 if test -n "$PKG_CONFIG" && \ 15287 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgmp\""; } >&5 15288 ($PKG_CONFIG --exists --print-errors "libgmp") 2>&5 15289 ac_status=$? 15290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15291 test $ac_status = 0; }; then 15292 pkg_cv_GMP_CFLAGS=`$PKG_CONFIG --cflags "libgmp" 2>/dev/null` 15293 test "x$?" != "x0" && pkg_failed=yes 15294else 15295 pkg_failed=yes 15296fi 15297 else 15298 pkg_failed=untried 15299fi 15300if test -n "$GMP_LIBS"; then 15301 pkg_cv_GMP_LIBS="$GMP_LIBS" 15302 elif test -n "$PKG_CONFIG"; then 15303 if test -n "$PKG_CONFIG" && \ 15304 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgmp\""; } >&5 15305 ($PKG_CONFIG --exists --print-errors "libgmp") 2>&5 15306 ac_status=$? 15307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15308 test $ac_status = 0; }; then 15309 pkg_cv_GMP_LIBS=`$PKG_CONFIG --libs "libgmp" 2>/dev/null` 15310 test "x$?" != "x0" && pkg_failed=yes 15311else 15312 pkg_failed=yes 15313fi 15314 else 15315 pkg_failed=untried 15316fi 15317 15318 15319 15320if test $pkg_failed = yes; then 15321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15322$as_echo "no" >&6; } 15323 15324if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15325 _pkg_short_errors_supported=yes 15326else 15327 _pkg_short_errors_supported=no 15328fi 15329 if test $_pkg_short_errors_supported = yes; then 15330 GMP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgmp" 2>&1` 15331 else 15332 GMP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgmp" 2>&1` 15333 fi 15334 # Put the nasty error message in config.log where it belongs 15335 echo "$GMP_PKG_ERRORS" >&5 15336 15337 # 15338 15339elif test $pkg_failed = untried; then 15340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15341$as_echo "no" >&6; } 15342 # 15343 15344else 15345 GMP_CFLAGS=$pkg_cv_GMP_CFLAGS 15346 GMP_LIBS=$pkg_cv_GMP_LIBS 15347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15348$as_echo "yes" >&6; } 15349 15350fi 15351 15352else 15353 GMP_CFLAGS=$pkg_cv_GMP_CFLAGS 15354 GMP_LIBS=$pkg_cv_GMP_LIBS 15355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15356$as_echo "yes" >&6; } 15357 15358fi 15359 if test -n "$GMP_CFLAGS"; then 15360 CPPFLAGS="$CPPFLAGS $GMP_CFLAGS" 15361 fi 15362 if test -z "${GMP_LIBS+x}"; then 15363 GMP_LIBS="-lgmp" 15364 fi 15365 LIBS="$LIBS $GMP_LIBS" 15366 for ac_header in gmp.h 15367do : 15368 ac_fn_c_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default" 15369if test "x$ac_cv_header_gmp_h" = xyes; then : 15370 cat >>confdefs.h <<_ACEOF 15371#define HAVE_GMP_H 1 15372_ACEOF 15373 15374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking against libgmp with \"$GMP_LIBS\" works" >&5 15375$as_echo_n "checking if linking against libgmp with \"$GMP_LIBS\" works... " >&6; } 15376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15377/* end confdefs.h. */ 15378#include <gmp.h> 15379int 15380main () 15381{ 15382mpz_t integ; mpz_init (integ); 15383 ; 15384 return 0; 15385} 15386_ACEOF 15387if ac_fn_c_try_link "$LINENO"; then : 15388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15389$as_echo "yes" >&6; } 15390 curr_cppflags=$CPPFLAGS # for the include in cobc generated modules 15391 LIBCOB_LIBS="$LIBCOB_LIBS $GMP_LIBS" 15392 USE_MATH=gmp 15393else 15394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15395$as_echo "no" >&6; } 15396 if test "$USE_MATH" = "gmp"; then 15397 as_fn_error $? "GMP is required for --with-math=gmp, you may adjust GMP_LIBS" "$LINENO" 5 15398 fi 15399 LIBS="$curr_libs"; CPPFLAGS="$curr_cppflags" 15400 15401fi 15402rm -f core conftest.err conftest.$ac_objext \ 15403 conftest$ac_exeext conftest.$ac_ext 15404 15405else 15406 if test "$USE_MATH" = "gmp"; then 15407 as_fn_error $? "gmp.h is required for --with-math=gmp, you may adjust GMP_CFLAGS" "$LINENO" 5 15408 fi 15409 LIBS="$curr_libs"; CPPFLAGS="$curr_cppflags" 15410 15411fi 15412 15413done 15414 15415 15416fi 15417 15418if test "$USE_MATH" = "mpir" -o "$USE_MATH" = "check"; then : 15419 15420 # note: currently MPIR does not ship a .pc file, but is expected to follow GMP 15421 curr_libs="$LIBS"; curr_cppflags="$CPPFLAGS" 15422 15423pkg_failed=no 15424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpir" >&5 15425$as_echo_n "checking for mpir... " >&6; } 15426 15427if test -n "$MPIR_CFLAGS"; then 15428 pkg_cv_MPIR_CFLAGS="$MPIR_CFLAGS" 15429 elif test -n "$PKG_CONFIG"; then 15430 if test -n "$PKG_CONFIG" && \ 15431 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mpir\""; } >&5 15432 ($PKG_CONFIG --exists --print-errors "mpir") 2>&5 15433 ac_status=$? 15434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15435 test $ac_status = 0; }; then 15436 pkg_cv_MPIR_CFLAGS=`$PKG_CONFIG --cflags "mpir" 2>/dev/null` 15437 test "x$?" != "x0" && pkg_failed=yes 15438else 15439 pkg_failed=yes 15440fi 15441 else 15442 pkg_failed=untried 15443fi 15444if test -n "$MPIR_LIBS"; then 15445 pkg_cv_MPIR_LIBS="$MPIR_LIBS" 15446 elif test -n "$PKG_CONFIG"; then 15447 if test -n "$PKG_CONFIG" && \ 15448 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mpir\""; } >&5 15449 ($PKG_CONFIG --exists --print-errors "mpir") 2>&5 15450 ac_status=$? 15451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15452 test $ac_status = 0; }; then 15453 pkg_cv_MPIR_LIBS=`$PKG_CONFIG --libs "mpir" 2>/dev/null` 15454 test "x$?" != "x0" && pkg_failed=yes 15455else 15456 pkg_failed=yes 15457fi 15458 else 15459 pkg_failed=untried 15460fi 15461 15462 15463 15464if test $pkg_failed = yes; then 15465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15466$as_echo "no" >&6; } 15467 15468if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15469 _pkg_short_errors_supported=yes 15470else 15471 _pkg_short_errors_supported=no 15472fi 15473 if test $_pkg_short_errors_supported = yes; then 15474 MPIR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "mpir" 2>&1` 15475 else 15476 MPIR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "mpir" 2>&1` 15477 fi 15478 # Put the nasty error message in config.log where it belongs 15479 echo "$MPIR_PKG_ERRORS" >&5 15480 15481 # 15482 15483elif test $pkg_failed = untried; then 15484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15485$as_echo "no" >&6; } 15486 # 15487 15488else 15489 MPIR_CFLAGS=$pkg_cv_MPIR_CFLAGS 15490 MPIR_LIBS=$pkg_cv_MPIR_LIBS 15491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15492$as_echo "yes" >&6; } 15493 15494fi 15495 if test -n "$MPIR_CFLAGS"; then 15496 CPPFLAGS="$CPPFLAGS $MPIR_CFLAGS" 15497 fi 15498 if test -z "${MPIR_LIBS+x}"; then 15499 MPIR_LIBS="-lmpir" 15500 fi 15501 LIBS="$LIBS $MPIR_LIBS" 15502 for ac_header in mpir.h 15503do : 15504 ac_fn_c_check_header_mongrel "$LINENO" "mpir.h" "ac_cv_header_mpir_h" "$ac_includes_default" 15505if test "x$ac_cv_header_mpir_h" = xyes; then : 15506 cat >>confdefs.h <<_ACEOF 15507#define HAVE_MPIR_H 1 15508_ACEOF 15509 15510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking against libmpir with \"$MPIR_LIBS\" works" >&5 15511$as_echo_n "checking if linking against libmpir with \"$MPIR_LIBS\" works... " >&6; } 15512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15513/* end confdefs.h. */ 15514#include <mpir.h> 15515int 15516main () 15517{ 15518mpz_t integ; mpz_init (integ); 15519 ; 15520 return 0; 15521} 15522_ACEOF 15523if ac_fn_c_try_link "$LINENO"; then : 15524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15525$as_echo "yes" >&6; } 15526 curr_cppflags=$CPPFLAGS # for the include in cobc generated modules 15527 LIBCOB_LIBS="$LIBCOB_LIBS $MPIR_LIBS" 15528 USE_MATH=mpir 15529else 15530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15531$as_echo "no" >&6; } 15532 if test "$USE_MATH" = "mpir"; then 15533 as_fn_error $? "MPIR is required for --with-math=mpir, you may adjust MPIR_LIBS" "$LINENO" 5 15534 fi 15535 LIBS="$curr_libs"; CPPFLAGS="$curr_cppflags" 15536 15537fi 15538rm -f core conftest.err conftest.$ac_objext \ 15539 conftest$ac_exeext conftest.$ac_ext 15540 15541else 15542 if test "$USE_MATH" = "mpir"; then 15543 as_fn_error $? "mpir.h is required for --with-math=mpir, you may adjust MPIR_CFLAGS" "$LINENO" 5 15544 fi 15545 LIBS="$curr_libs"; CPPFLAGS="$curr_cppflags" 15546 15547fi 15548 15549done 15550 15551 15552fi 15553 15554if test "$USE_MATH" = "check"; then 15555 as_fn_error $? "neither GMP nor MPIR library are found, but one of those is mandatory" "$LINENO" 5 15556fi 15557 15558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking matching GMP version" >&5 15559$as_echo_n "checking matching GMP version... " >&6; } 15560# Check just major/minor levels between header and library 15561# get GMP version from lib 15562if test "$cross_compiling" = yes; then : 15563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: matching GMP version assumed" >&5 15564$as_echo "$as_me: WARNING: matching GMP version assumed" >&2;} 15565 COB_GMP_LIB="cross" 15566else 15567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15568/* end confdefs.h. */ 15569 15570 #include <stdio.h> 15571 #ifdef _WIN32 15572 #ifndef __GMP_LIBGMP_DLL 15573 #define __GMP_LIBGMP_DLL 1 15574 #endif 15575 #endif 15576 #if defined HAVE_GMP_H 15577 #include <gmp.h> 15578 #elif defined HAVE_MPIR_H 15579 #include <mpir.h> 15580 #endif 15581 int main (int argc, char **argv) 15582 { 15583 (void)argv; 15584 if (argc > 1) 15585 printf ("%s", gmp_version); 15586 return 0; 15587 } 15588 15589_ACEOF 15590if ac_fn_c_try_run "$LINENO"; then : 15591 COB_GMP_LIB=$(./conftest$ac_exeext x) 15592else 15593 as_fn_error $? "Unable to extract GMP version information from gmp_version" "$LINENO" 5 15594fi 15595rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15596 conftest.$ac_objext conftest.beam conftest.$ac_ext 15597fi 15598 15599if test "x$COB_GMP_LIB" = "x"; then 15600 as_fn_error $? "Unable to extract GMP version information (library)" "$LINENO" 5 15601fi 15602 15603# get GMP version from header 15604if test "$cross_compiling" = yes; then : 15605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot run test program while cross-compiling" >&5 15606$as_echo "$as_me: WARNING: cannot run test program while cross-compiling" >&2;} 15607 COB_GMP_HEADER="cross-compilation - assumed" 15608else 15609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15610/* end confdefs.h. */ 15611 15612 #include <stdio.h> 15613 #if defined HAVE_GMP_H 15614 #include <gmp.h> 15615 #elif defined HAVE_MPIR_H 15616 #include <mpir.h> 15617 #endif 15618 int main (int argc, char **argv) 15619 { 15620 (void)argv; 15621 if (argc > 1) 15622 printf ("%d.%d", __GNU_MP_VERSION, __GNU_MP_VERSION_MINOR); 15623 return 0; 15624 } 15625 15626_ACEOF 15627if ac_fn_c_try_run "$LINENO"; then : 15628 COB_GMP_HEADER=$(./conftest$ac_exeext x) 15629else 15630 as_fn_error $? "Unable to extract GMP version information from header" "$LINENO" 5 15631fi 15632rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15633 conftest.$ac_objext conftest.beam conftest.$ac_ext 15634fi 15635 15636if test "x$COB_GMP_HEADER" = "x"; then 15637 as_fn_error $? "Unable to extract GMP version information (header)" "$LINENO" 5 15638fi 15639 15640COB_GMP_LIB_MAJOR=$(echo "$COB_GMP_LIB" | cut -d. -f1) 15641COB_GMP_LIB_MINOR=$(echo "$COB_GMP_LIB" | cut -d. -f2) 15642 15643if test "$COB_GMP_HEADER" = "$COB_GMP_LIB_MAJOR.$COB_GMP_LIB_MINOR" -o "$COB_GMP_LIB" = "cross"; then 15644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($COB_GMP_HEADER)" >&5 15645$as_echo "yes ($COB_GMP_HEADER)" >&6; } 15646else 15647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (header: $COB_GMP_HEADER / library: $COB_GMP_LIB)" >&5 15648$as_echo "no (header: $COB_GMP_HEADER / library: $COB_GMP_LIB)" >&6; } 15649 as_fn_error $? "Unable to use GMP - Please check config.log" "$LINENO" 5 15650fi 15651 15652LIBS="$curr_libs" 15653CPPFLAGS="$curr_cppflags" 15654 15655as_ac_Lib=`$as_echo "ac_cv_lib_$USE_MATH''___gmp_get_memory_functions" | $as_tr_sh` 15656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmp_get_memory_functions in -l$USE_MATH" >&5 15657$as_echo_n "checking for __gmp_get_memory_functions in -l$USE_MATH... " >&6; } 15658if eval \${$as_ac_Lib+:} false; then : 15659 $as_echo_n "(cached) " >&6 15660else 15661 ac_check_lib_save_LIBS=$LIBS 15662LIBS="-l$USE_MATH $LIBS" 15663cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15664/* end confdefs.h. */ 15665 15666/* Override any GCC internal prototype to avoid an error. 15667 Use char because int might match the return type of a GCC 15668 builtin and then its argument prototype would still apply. */ 15669#ifdef __cplusplus 15670extern "C" 15671#endif 15672char __gmp_get_memory_functions (); 15673int 15674main () 15675{ 15676return __gmp_get_memory_functions (); 15677 ; 15678 return 0; 15679} 15680_ACEOF 15681if ac_fn_c_try_link "$LINENO"; then : 15682 eval "$as_ac_Lib=yes" 15683else 15684 eval "$as_ac_Lib=no" 15685fi 15686rm -f core conftest.err conftest.$ac_objext \ 15687 conftest$ac_exeext conftest.$ac_ext 15688LIBS=$ac_check_lib_save_LIBS 15689fi 15690eval ac_res=\$$as_ac_Lib 15691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15692$as_echo "$ac_res" >&6; } 15693if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 15694 $as_echo "#define HAVE_MP_GET_MEMORY_FUNCTIONS 1" >>confdefs.h 15695 15696fi 15697 15698 15699 15700# Configure options part II (needing compilation) 15701 15702# Check whether --with-xml2 was given. 15703if test "${with_xml2+set}" = set; then : 15704 withval=$with_xml2; 15705else 15706 with_xml2=check 15707fi 15708 15709 15710if test "$with_xml2" = "yes" -o "$with_xml2" = "check"; then : 15711 15712 15713pkg_failed=no 15714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0" >&5 15715$as_echo_n "checking for libxml-2.0... " >&6; } 15716 15717if test -n "$XML2_CFLAGS"; then 15718 pkg_cv_XML2_CFLAGS="$XML2_CFLAGS" 15719 elif test -n "$PKG_CONFIG"; then 15720 if test -n "$PKG_CONFIG" && \ 15721 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5 15722 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5 15723 ac_status=$? 15724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15725 test $ac_status = 0; }; then 15726 pkg_cv_XML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null` 15727 test "x$?" != "x0" && pkg_failed=yes 15728else 15729 pkg_failed=yes 15730fi 15731 else 15732 pkg_failed=untried 15733fi 15734if test -n "$XML2_LIBS"; then 15735 pkg_cv_XML2_LIBS="$XML2_LIBS" 15736 elif test -n "$PKG_CONFIG"; then 15737 if test -n "$PKG_CONFIG" && \ 15738 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5 15739 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5 15740 ac_status=$? 15741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15742 test $ac_status = 0; }; then 15743 pkg_cv_XML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null` 15744 test "x$?" != "x0" && pkg_failed=yes 15745else 15746 pkg_failed=yes 15747fi 15748 else 15749 pkg_failed=untried 15750fi 15751 15752 15753 15754if test $pkg_failed = yes; then 15755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15756$as_echo "no" >&6; } 15757 15758if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15759 _pkg_short_errors_supported=yes 15760else 15761 _pkg_short_errors_supported=no 15762fi 15763 if test $_pkg_short_errors_supported = yes; then 15764 XML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1` 15765 else 15766 XML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1` 15767 fi 15768 # Put the nasty error message in config.log where it belongs 15769 echo "$XML2_PKG_ERRORS" >&5 15770 15771 15772 if test -z "${XML2_CFLAGS+x}" -o -z "${XML2_LIBS+x}"; then 15773 # Extract the first word of "xml2-config", so it can be a program name with args. 15774set dummy xml2-config; ac_word=$2 15775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15776$as_echo_n "checking for $ac_word... " >&6; } 15777if ${ac_cv_prog_xml2_config_found+:} false; then : 15778 $as_echo_n "(cached) " >&6 15779else 15780 if test -n "$xml2_config_found"; then 15781 ac_cv_prog_xml2_config_found="$xml2_config_found" # Let the user override the test. 15782else 15783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15784for as_dir in $PATH 15785do 15786 IFS=$as_save_IFS 15787 test -z "$as_dir" && as_dir=. 15788 for ac_exec_ext in '' $ac_executable_extensions; do 15789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15790 ac_cv_prog_xml2_config_found=""yes"" 15791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15792 break 2 15793 fi 15794done 15795 done 15796IFS=$as_save_IFS 15797 15798fi 15799fi 15800xml2_config_found=$ac_cv_prog_xml2_config_found 15801if test -n "$xml2_config_found"; then 15802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config_found" >&5 15803$as_echo "$xml2_config_found" >&6; } 15804else 15805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15806$as_echo "no" >&6; } 15807fi 15808 15809 15810 if test "$xml2_config_found" = "yes"; then 15811 if test -z "${XML2_CFLAGS+x}"; then 15812 XML2_CFLAGS="$(xml2-config --cflags)" 15813 fi 15814 if test -z "${XML2_LIBS+x}"; then 15815 XML2_LIBS="$(xml2-config --libs)" 15816 fi 15817 fi 15818 fi 15819elif test $pkg_failed = untried; then 15820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15821$as_echo "no" >&6; } 15822 15823 if test -z "${XML2_CFLAGS+x}" -o -z "${XML2_LIBS+x}"; then 15824 # Extract the first word of "xml2-config", so it can be a program name with args. 15825set dummy xml2-config; ac_word=$2 15826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15827$as_echo_n "checking for $ac_word... " >&6; } 15828if ${ac_cv_prog_xml2_config_found+:} false; then : 15829 $as_echo_n "(cached) " >&6 15830else 15831 if test -n "$xml2_config_found"; then 15832 ac_cv_prog_xml2_config_found="$xml2_config_found" # Let the user override the test. 15833else 15834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15835for as_dir in $PATH 15836do 15837 IFS=$as_save_IFS 15838 test -z "$as_dir" && as_dir=. 15839 for ac_exec_ext in '' $ac_executable_extensions; do 15840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15841 ac_cv_prog_xml2_config_found=""yes"" 15842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15843 break 2 15844 fi 15845done 15846 done 15847IFS=$as_save_IFS 15848 15849fi 15850fi 15851xml2_config_found=$ac_cv_prog_xml2_config_found 15852if test -n "$xml2_config_found"; then 15853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config_found" >&5 15854$as_echo "$xml2_config_found" >&6; } 15855else 15856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15857$as_echo "no" >&6; } 15858fi 15859 15860 15861 if test "$xml2_config_found" = "yes"; then 15862 if test -z "${XML2_CFLAGS+x}"; then 15863 XML2_CFLAGS="$(xml2-config --cflags)" 15864 fi 15865 if test -z "${XML2_LIBS+x}"; then 15866 XML2_LIBS="$(xml2-config --libs)" 15867 fi 15868 fi 15869 fi 15870else 15871 XML2_CFLAGS=$pkg_cv_XML2_CFLAGS 15872 XML2_LIBS=$pkg_cv_XML2_LIBS 15873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15874$as_echo "yes" >&6; } 15875 15876fi 15877 curr_libs="$LIBS"; curr_cppflags="$CPPFLAGS" 15878 if test -n "$XML2_CFLAGS"; then 15879 CPPFLAGS="$CPPFLAGS $XML2_CFLAGS" 15880 fi 15881 if test -z "${XML2_LIBS+x}"; then 15882 XML2_LIBS="-lxml2" 15883 fi 15884 LIBS="$LIBS $XML2_LIBS" 15885 for header in xmlversion uri xmlwriter 15886 do 15887 as_ac_Header=`$as_echo "ac_cv_header_libxml/$header.h" | $as_tr_sh` 15888ac_fn_c_check_header_mongrel "$LINENO" "libxml/$header.h" "$as_ac_Header" "$ac_includes_default" 15889if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15890 15891else 15892 if test "$with_xml2" = "yes"; then 15893 as_fn_error $? "Headers for libxml2 are required for --with-xml2, you may adjust XML2_CFLAGS" "$LINENO" 5 15894 else 15895 with_xml2=not_found 15896 break 15897 fi 15898 15899fi 15900 15901 15902 done 15903 if test "$with_xml2" != "not_found"; then 15904 15905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML_WRITER_ENABLED defined in libxml/xmlwriter.h" >&5 15906$as_echo_n "checking for LIBXML_WRITER_ENABLED defined in libxml/xmlwriter.h... " >&6; } 15907if ${ac_cv_defined_LIBXML_WRITER_ENABLED_libxml_xmlwriter_h+:} false; then : 15908 $as_echo_n "(cached) " >&6 15909else 15910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15911/* end confdefs.h. */ 15912#include <libxml/xmlwriter.h> 15913int 15914main () 15915{ 15916 15917 #ifdef LIBXML_WRITER_ENABLED 15918 int ok; 15919 (void)ok; 15920 #else 15921 choke me 15922 #endif 15923 15924 ; 15925 return 0; 15926} 15927_ACEOF 15928if ac_fn_c_try_compile "$LINENO"; then : 15929 ac_cv_defined_LIBXML_WRITER_ENABLED_libxml_xmlwriter_h=yes 15930else 15931 ac_cv_defined_LIBXML_WRITER_ENABLED_libxml_xmlwriter_h=no 15932fi 15933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15934fi 15935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined_LIBXML_WRITER_ENABLED_libxml_xmlwriter_h" >&5 15936$as_echo "$ac_cv_defined_LIBXML_WRITER_ENABLED_libxml_xmlwriter_h" >&6; } 15937if test $ac_cv_defined_LIBXML_WRITER_ENABLED_libxml_xmlwriter_h != "no"; then : 15938 15939else 15940 if test "$with_xml2" = "yes"; then 15941 as_fn_error $? "libxml2 is required to be configured with xmlWriter" "$LINENO" 5 15942 else 15943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libxml2 is required to be configured with xmlWriter" >&5 15944$as_echo "$as_me: WARNING: libxml2 is required to be configured with xmlWriter" >&2;} 15945 with_xml2=not_found 15946 fi 15947 15948fi 15949 fi 15950 if test "$with_xml2" != "not_found"; then 15951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking against libxml2 with \"$XML2_LIBS\" works" >&5 15952$as_echo_n "checking if linking against libxml2 with \"$XML2_LIBS\" works... " >&6; } 15953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15954/* end confdefs.h. */ 15955#include <libxml/xmlwriter.h> 15956int 15957main () 15958{ 15959xmlNewTextWriterFilename (NULL, 0); 15960 ; 15961 return 0; 15962} 15963_ACEOF 15964if ac_fn_c_try_link "$LINENO"; then : 15965 $as_echo "#define WITH_XML2 1" >>confdefs.h 15966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15967$as_echo "yes" >&6; } 15968 with_xml2=yes 15969 LIBCOB_CPPFLAGS="$LIBCOB_CPPFLAGS $XML2_CFLAGS" 15970 LIBCOB_LIBS="$LIBCOB_LIBS $XML2_LIBS" 15971else 15972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15973$as_echo "no" >&6; } 15974 if test "$with_xml2" = "yes"; then 15975 as_fn_error $? "xml library is required for --with-xml2, you may adjust XML2_LIBS" "$LINENO" 5 15976 else 15977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xml library not found, you may adjust XML2_LIBS" >&5 15978$as_echo "$as_me: WARNING: xml library not found, you may adjust XML2_LIBS" >&2;} 15979 with_xml2=not_found 15980 fi 15981fi 15982rm -f core conftest.err conftest.$ac_objext \ 15983 conftest$ac_exeext conftest.$ac_ext 15984 else 15985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Headers for libxml2 missing, you may adjust XML2_CFLAGS" >&5 15986$as_echo "$as_me: WARNING: Headers for libxml2 missing, you may adjust XML2_CFLAGS" >&2;} 15987 with_xml2=not_found 15988 fi 15989 LIBS="$curr_libs"; CPPFLAGS="$curr_cppflags" 15990 15991fi 15992 15993 15994 15995# Checks for cjson/json-c. 15996{ $as_echo "$as_me:${as_lineno-$LINENO}: Checks for JSON handler" >&5 15997$as_echo "$as_me: Checks for JSON handler" >&6;} 15998 15999 16000# Check whether --with-json was given. 16001if test "${with_json+set}" = set; then : 16002 withval=$with_json; case "$with_json" in 16003 cjson | local | "json-c" | check | no ) 16004 USE_JSON="$with_json" 16005 ;; 16006 yes) 16007 USE_JSON="check" 16008 ;; 16009 *) 16010 as_fn_error $? "invalid value \"$with_json\" for --with-json, 16011 must be one of the following: 16012 cjson, json-c (use only the specified library) 16013 local (use cjson source included in libcob) 16014 check (use whatever json library is usable, disable if no one usable) 16015 no (disable json usage)" "$LINENO" 5 16016 ;; 16017 esac 16018else 16019 USE_JSON="check" 16020fi 16021 16022 16023curr_libs="$LIBS" 16024if test "$USE_JSON" = "cjson" -o "$USE_JSON" = "local" -o "$USE_JSON" = "check"; then : 16025 16026 { $as_echo "$as_me:${as_lineno-$LINENO}: Checks for local cJSON ..." >&5 16027$as_echo "$as_me: Checks for local cJSON ..." >&6;} 16028 curr_libs="$LIBS"; curr_cppflags="$CPPFLAGS" 16029 with_cjson_local=no 16030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ./libcob/cJSON.c" >&5 16031$as_echo_n "checking for ./libcob/cJSON.c... " >&6; } 16032if ${ac_cv_file___libcob_cJSON_c+:} false; then : 16033 $as_echo_n "(cached) " >&6 16034else 16035 test "$cross_compiling" = yes && 16036 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 16037if test -r "./libcob/cJSON.c"; then 16038 ac_cv_file___libcob_cJSON_c=yes 16039else 16040 ac_cv_file___libcob_cJSON_c=no 16041fi 16042fi 16043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file___libcob_cJSON_c" >&5 16044$as_echo "$ac_cv_file___libcob_cJSON_c" >&6; } 16045if test "x$ac_cv_file___libcob_cJSON_c" = xyes; then : 16046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking of ./libcob/cJSON.c works" >&5 16047$as_echo_n "checking if linking of ./libcob/cJSON.c works... " >&6; } 16048 CPPFLAGS="$curr_cppflags -I./libcob" 16049 LIBS="$LIBS $COMMON_LIBS" 16050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16051/* end confdefs.h. */ 16052 16053 #include "cJSON.c" 16054int 16055main () 16056{ 16057#if (CJSON_VERSION_MAJOR * 100 + CJSON_VERSION_MINOR) < 103 16058 #error Needs at least cJSON 1.3.0 16059 #endif 16060 cJSON_CreateNull (); 16061 ; 16062 return 0; 16063} 16064_ACEOF 16065if ac_fn_c_try_link "$LINENO"; then : 16066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16067$as_echo "yes" >&6; } 16068 $as_echo "#define WITH_CJSON 1" >>confdefs.h 16069 16070 with_cjson_local="yes (in ./libcob)" 16071else 16072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16073$as_echo "no" >&6; } 16074 16075fi 16076rm -f core conftest.err conftest.$ac_objext \ 16077 conftest$ac_exeext conftest.$ac_ext 16078 LIBS="$curr_libs" 16079 16080fi 16081 16082 if test "$with_cjson_local" = "no"; then 16083 as_ac_File=`$as_echo "ac_cv_file_$srcdir/libcob/cJSON.c" | $as_tr_sh` 16084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $srcdir/libcob/cJSON.c" >&5 16085$as_echo_n "checking for $srcdir/libcob/cJSON.c... " >&6; } 16086if eval \${$as_ac_File+:} false; then : 16087 $as_echo_n "(cached) " >&6 16088else 16089 test "$cross_compiling" = yes && 16090 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 16091if test -r "$srcdir/libcob/cJSON.c"; then 16092 eval "$as_ac_File=yes" 16093else 16094 eval "$as_ac_File=no" 16095fi 16096fi 16097eval ac_res=\$$as_ac_File 16098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16099$as_echo "$ac_res" >&6; } 16100if eval test \"x\$"$as_ac_File"\" = x"yes"; then : 16101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking of $srcdir/libcob/cJSON.c works" >&5 16102$as_echo_n "checking if linking of $srcdir/libcob/cJSON.c works... " >&6; } 16103 CPPFLAGS="$curr_cppflags -I$srcdir/libcob" 16104 LIBS="$LIBS $COMMON_LIBS" 16105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16106/* end confdefs.h. */ 16107 16108 #include "cJSON.c" 16109int 16110main () 16111{ 16112#if (CJSON_VERSION_MAJOR * 100 + CJSON_VERSION_MINOR) < 103 16113 #error Needs at least cJSON 1.3.0 16114 #endif 16115 cJSON_CreateNull (); 16116 ; 16117 return 0; 16118} 16119_ACEOF 16120if ac_fn_c_try_link "$LINENO"; then : 16121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16122$as_echo "yes" >&6; } 16123 $as_echo "#define WITH_CJSON 1" >>confdefs.h 16124 16125 with_cjson_local="yes (in $srcdir/libcob)" 16126else 16127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16128$as_echo "no" >&6; } 16129 16130fi 16131rm -f core conftest.err conftest.$ac_objext \ 16132 conftest$ac_exeext conftest.$ac_ext 16133 LIBS="$curr_libs" 16134 16135fi 16136 16137 fi 16138 CPPFLAGS="$curr_cppflags" 16139 if test "$with_cjson_local" = "no"; then : 16140 16141 { $as_echo "$as_me:${as_lineno-$LINENO}: using local cJSON: no" >&5 16142$as_echo "$as_me: using local cJSON: no" >&6;} 16143 if test "$with_json" = "local"; then 16144 as_fn_error $? "cJSON source is required in directory \"libcob\" for --with-json=local" "$LINENO" 5 16145 fi 16146 16147pkg_failed=no 16148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcjson" >&5 16149$as_echo_n "checking for libcjson... " >&6; } 16150 16151if test -n "$CJSON_CFLAGS"; then 16152 pkg_cv_CJSON_CFLAGS="$CJSON_CFLAGS" 16153 elif test -n "$PKG_CONFIG"; then 16154 if test -n "$PKG_CONFIG" && \ 16155 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcjson\""; } >&5 16156 ($PKG_CONFIG --exists --print-errors "libcjson") 2>&5 16157 ac_status=$? 16158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16159 test $ac_status = 0; }; then 16160 pkg_cv_CJSON_CFLAGS=`$PKG_CONFIG --cflags "libcjson" 2>/dev/null` 16161 test "x$?" != "x0" && pkg_failed=yes 16162else 16163 pkg_failed=yes 16164fi 16165 else 16166 pkg_failed=untried 16167fi 16168if test -n "$CJSON_LIBS"; then 16169 pkg_cv_CJSON_LIBS="$CJSON_LIBS" 16170 elif test -n "$PKG_CONFIG"; then 16171 if test -n "$PKG_CONFIG" && \ 16172 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcjson\""; } >&5 16173 ($PKG_CONFIG --exists --print-errors "libcjson") 2>&5 16174 ac_status=$? 16175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16176 test $ac_status = 0; }; then 16177 pkg_cv_CJSON_LIBS=`$PKG_CONFIG --libs "libcjson" 2>/dev/null` 16178 test "x$?" != "x0" && pkg_failed=yes 16179else 16180 pkg_failed=yes 16181fi 16182 else 16183 pkg_failed=untried 16184fi 16185 16186 16187 16188if test $pkg_failed = yes; then 16189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16190$as_echo "no" >&6; } 16191 16192if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16193 _pkg_short_errors_supported=yes 16194else 16195 _pkg_short_errors_supported=no 16196fi 16197 if test $_pkg_short_errors_supported = yes; then 16198 CJSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcjson" 2>&1` 16199 else 16200 CJSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcjson" 2>&1` 16201 fi 16202 # Put the nasty error message in config.log where it belongs 16203 echo "$CJSON_PKG_ERRORS" >&5 16204 16205 # 16206 16207elif test $pkg_failed = untried; then 16208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16209$as_echo "no" >&6; } 16210 # 16211 16212else 16213 CJSON_CFLAGS=$pkg_cv_CJSON_CFLAGS 16214 CJSON_LIBS=$pkg_cv_CJSON_LIBS 16215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16216$as_echo "yes" >&6; } 16217 16218fi 16219 if test -n "$CJSON_CFLAGS"; then 16220 CPPFLAGS="$CPPFLAGS $CJSON_CFLAGS" 16221 fi 16222 if test -z "${CJSON_LIBS+x}"; then 16223 CJSON_LIBS="-lcjson" 16224 fi 16225 LIBS="$LIBS $CJSON_LIBS" 16226 for ac_header in cJSON.h 16227do : 16228 ac_fn_c_check_header_mongrel "$LINENO" "cJSON.h" "ac_cv_header_cJSON_h" "$ac_includes_default" 16229if test "x$ac_cv_header_cJSON_h" = xyes; then : 16230 cat >>confdefs.h <<_ACEOF 16231#define HAVE_CJSON_H 1 16232_ACEOF 16233 16234else 16235 for ac_header in cjson/cJSON.h 16236do : 16237 ac_fn_c_check_header_mongrel "$LINENO" "cjson/cJSON.h" "ac_cv_header_cjson_cJSON_h" "$ac_includes_default" 16238if test "x$ac_cv_header_cjson_cJSON_h" = xyes; then : 16239 cat >>confdefs.h <<_ACEOF 16240#define HAVE_CJSON_CJSON_H 1 16241_ACEOF 16242 16243else 16244 if test "$with_json" = "cjson"; then 16245 as_fn_error $? "Headers for libcjson are required for --with-json, you may adjust CJSON_CFLAGS" "$LINENO" 5 16246 else 16247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Headers for libcjson missing, you may adjust CJSON_CFLAGS or put cJSON sources in \"libcob\"" >&5 16248$as_echo "$as_me: WARNING: Headers for libcjson missing, you may adjust CJSON_CFLAGS or put cJSON sources in \"libcob\"" >&2;} 16249 fi 16250 16251fi 16252 16253done 16254 16255fi 16256 16257done 16258 16259 if test "x$ac_cv_header_cJSON_h" = "xyes" -o "x$ac_cv_header_cjson_cJSON_h" = "xyes"; then 16260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking against libcjson with \"$CJSON_LIBS\" works" >&5 16261$as_echo_n "checking if linking against libcjson with \"$CJSON_LIBS\" works... " >&6; } 16262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16263/* end confdefs.h. */ 16264 16265 #if defined HAVE_CJSON_CJSON_H 16266 #include <cjson/cJSON.h> 16267 #elif defined HAVE_CJSON_H 16268 #include <cJSON.h> 16269 #endif 16270 #if (CJSON_VERSION_MAJOR * 100 + CJSON_VERSION_MINOR) < 103 16271 #error Needs at least cJSON 1.3.0 16272 #endif 16273int 16274main () 16275{ 16276cJSON_CreateNull (); 16277 ; 16278 return 0; 16279} 16280_ACEOF 16281if ac_fn_c_try_link "$LINENO"; then : 16282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16283$as_echo "yes" >&6; } 16284 $as_echo "#define WITH_CJSON 1" >>confdefs.h 16285 16286 USE_JSON=cjson 16287 LIBCOB_CPPFLAGS="$LIBCOB_CPPFLAGS $CJSON_CFLAGS" 16288 LIBCOB_LIBS="$LIBCOB_LIBS $CJSON_LIBS" 16289else 16290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16291$as_echo "no" >&6; } 16292 if test "$with_json" = "cjson"; then 16293 as_fn_error $? "cJSON library is required for --with-json=cjson, you may adjust CJSON_LIBS" "$LINENO" 5 16294 else 16295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cJSON library not found, you may adjust CJSON_LIBS" >&5 16296$as_echo "$as_me: WARNING: cJSON library not found, you may adjust CJSON_LIBS" >&2;} 16297 fi 16298fi 16299rm -f core conftest.err conftest.$ac_objext \ 16300 conftest$ac_exeext conftest.$ac_ext 16301 fi 16302 16303else 16304 16305 { $as_echo "$as_me:${as_lineno-$LINENO}: using local cJSON: $with_cjson_local" >&5 16306$as_echo "$as_me: using local cJSON: $with_cjson_local" >&6;} 16307 USE_JSON="local" 16308 $as_echo "#define HAVE_CJSON_H 1" >>confdefs.h 16309 16310 16311fi 16312 LIBS="$curr_libs"; CPPFLAGS="$curr_cppflags" 16313 16314fi 16315 16316if test "$USE_JSON" = "json-c" -o "$USE_JSON" = "check"; then : 16317 16318 CPPFLAGS="$curr_cppflags" 16319 16320pkg_failed=no 16321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for json-c" >&5 16322$as_echo_n "checking for json-c... " >&6; } 16323 16324if test -n "$JSON_C_CFLAGS"; then 16325 pkg_cv_JSON_C_CFLAGS="$JSON_C_CFLAGS" 16326 elif test -n "$PKG_CONFIG"; then 16327 if test -n "$PKG_CONFIG" && \ 16328 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5 16329 ($PKG_CONFIG --exists --print-errors "json-c") 2>&5 16330 ac_status=$? 16331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16332 test $ac_status = 0; }; then 16333 pkg_cv_JSON_C_CFLAGS=`$PKG_CONFIG --cflags "json-c" 2>/dev/null` 16334 test "x$?" != "x0" && pkg_failed=yes 16335else 16336 pkg_failed=yes 16337fi 16338 else 16339 pkg_failed=untried 16340fi 16341if test -n "$JSON_C_LIBS"; then 16342 pkg_cv_JSON_C_LIBS="$JSON_C_LIBS" 16343 elif test -n "$PKG_CONFIG"; then 16344 if test -n "$PKG_CONFIG" && \ 16345 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5 16346 ($PKG_CONFIG --exists --print-errors "json-c") 2>&5 16347 ac_status=$? 16348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16349 test $ac_status = 0; }; then 16350 pkg_cv_JSON_C_LIBS=`$PKG_CONFIG --libs "json-c" 2>/dev/null` 16351 test "x$?" != "x0" && pkg_failed=yes 16352else 16353 pkg_failed=yes 16354fi 16355 else 16356 pkg_failed=untried 16357fi 16358 16359 16360 16361if test $pkg_failed = yes; then 16362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16363$as_echo "no" >&6; } 16364 16365if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16366 _pkg_short_errors_supported=yes 16367else 16368 _pkg_short_errors_supported=no 16369fi 16370 if test $_pkg_short_errors_supported = yes; then 16371 JSON_C_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c" 2>&1` 16372 else 16373 JSON_C_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c" 2>&1` 16374 fi 16375 # Put the nasty error message in config.log where it belongs 16376 echo "$JSON_C_PKG_ERRORS" >&5 16377 16378 # 16379 16380elif test $pkg_failed = untried; then 16381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16382$as_echo "no" >&6; } 16383 # 16384 16385else 16386 JSON_C_CFLAGS=$pkg_cv_JSON_C_CFLAGS 16387 JSON_C_LIBS=$pkg_cv_JSON_C_LIBS 16388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16389$as_echo "yes" >&6; } 16390 16391fi 16392 # possibly set JSON_C_CFLAGS with $includedir/json-c; 16393 # (has to consider user-setprefix --includir, ... -> left out for now) 16394 if test -n "$JSON_C_CFLAGS"; then 16395 CPPFLAGS="$CPPFLAGS $JSON_C_CFLAGS" 16396 fi 16397 if test -z "${JSON_C_LIBS+x}"; then 16398 JSON_C_LIBS="-ljson-c" 16399 fi 16400 LIBS="$LIBS $JSON_C_LIBS" 16401 ac_fn_c_check_header_mongrel "$LINENO" "json.h" "ac_cv_header_json_h" "$ac_includes_default" 16402if test "x$ac_cv_header_json_h" = xyes; then : 16403 16404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking against libjson-c with \"$JSON_C_LIBS\" works" >&5 16405$as_echo_n "checking if linking against libjson-c with \"$JSON_C_LIBS\" works... " >&6; } 16406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16407/* end confdefs.h. */ 16408 16409 #include <json.h> 16410int 16411main () 16412{ 16413#if (JSON_C_MAJOR_VERSION * 100 + JSON_C_MINOR_VERSION) < 12 16414 #error Needs at least json-c 0.12 16415 #endif 16416 json_c_version (); 16417 ; 16418 return 0; 16419} 16420_ACEOF 16421if ac_fn_c_try_link "$LINENO"; then : 16422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16423$as_echo "yes" >&6; } 16424 $as_echo "#define WITH_JSON_C 1" >>confdefs.h 16425 16426 USE_JSON=json-c 16427 LIBCOB_CPPFLAGS="$LIBCOB_CPPFLAGS $JSON_C_CFLAGS" 16428 LIBCOB_LIBS="$LIBCOB_LIBS $JSON_C_LIBS" 16429else 16430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16431$as_echo "no" >&6; } 16432 if test "$USE_JSON" = "json-c"; then 16433 as_fn_error $? "JSON-C library is required for --with-json-c, you may adjust JSON_C_LIBS" "$LINENO" 5 16434 else 16435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: JSON-C not found, you may adjust JSON_C_LIBS" >&5 16436$as_echo "$as_me: WARNING: JSON-C not found, you may adjust JSON_C_LIBS" >&2;} 16437 fi 16438fi 16439rm -f core conftest.err conftest.$ac_objext \ 16440 conftest$ac_exeext conftest.$ac_ext 16441 16442else 16443 if test "$USE_JSON" = "json-c"; then 16444 as_fn_error $? "Headers for libjson-c are required for --with-json-c, you may adjust JSON_C_CFLAGS" "$LINENO" 5 16445 else 16446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Headers for libjson-c missing, you may adjust JSON_C_CFLAGS\"" >&5 16447$as_echo "$as_me: WARNING: Headers for libjson-c missing, you may adjust JSON_C_CFLAGS\"" >&2;} 16448 fi 16449fi 16450 16451 16452 LIBS="$curr_libs"; CPPFLAGS="$curr_cppflags" 16453 16454fi 16455 16456case "$USE_JSON" in 16457 check) 16458 if test "$with_json" = yes; then 16459 as_fn_error $? "No applicable handler for JSON found" "$LINENO" 5 16460 fi 16461 USE_JSON="not_found" 16462 $as_echo "#define WITH_JSON \"not found\"" >>confdefs.h 16463 16464 ;; 16465 no) 16466 $as_echo "#define WITH_JSON \"disabled\"" >>confdefs.h 16467 16468 ;; 16469 cjson | local) 16470 $as_echo "#define WITH_JSON \"cjson\"" >>confdefs.h 16471 16472 ;; 16473 "json-c") 16474 $as_echo "#define WITH_JSON \"json-c\"" >>confdefs.h 16475 16476 ;; 16477esac 16478 16479 16480 16481# Check whether --with-dl was given. 16482if test "${with_dl+set}" = set; then : 16483 withval=$with_dl; case $with_dl in 16484 yes) 16485 ;; 16486 no) 16487 ;; 16488 *) as_fn_error $? "--with/without-dl can not have a value" "$LINENO" 5 16489 ;; 16490 esac 16491else 16492 with_dl=yes 16493fi 16494 16495 16496 16497# Check whether --with-varseq was given. 16498if test "${with_varseq+set}" = set; then : 16499 withval=$with_varseq; case $with_varseq in 16500 yes) as_fn_error $? "You must give --with-varseq an argument." "$LINENO" 5 16501 ;; 16502 no) as_fn_error $? "--without-varseq not supported." "$LINENO" 5 16503 ;; 16504 [0-3]) 16505 ;; 16506 *) as_fn_error $? "Invalid --with-varseq argument" "$LINENO" 5 16507 ;; 16508 esac 16509else 16510 with_varseq=0 16511fi 16512 16513 16514cat >>confdefs.h <<_ACEOF 16515#define WITH_VARSEQ $with_varseq 16516_ACEOF 16517 16518 16519 16520# Solaris has nanosleep in other libraries 16521cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16522/* end confdefs.h. */ 16523#include <time.h> 16524int 16525main () 16526{ 16527nanosleep (NULL, NULL); 16528 ; 16529 return 0; 16530} 16531_ACEOF 16532if ac_fn_c_try_link "$LINENO"; then : 16533 $as_echo "#define HAVE_NANO_SLEEP 1" >>confdefs.h 16534 16535else 16536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 16537$as_echo_n "checking for nanosleep in -lrt... " >&6; } 16538if ${ac_cv_lib_rt_nanosleep+:} false; then : 16539 $as_echo_n "(cached) " >&6 16540else 16541 ac_check_lib_save_LIBS=$LIBS 16542LIBS="-lrt $LIBS" 16543cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16544/* end confdefs.h. */ 16545 16546/* Override any GCC internal prototype to avoid an error. 16547 Use char because int might match the return type of a GCC 16548 builtin and then its argument prototype would still apply. */ 16549#ifdef __cplusplus 16550extern "C" 16551#endif 16552char nanosleep (); 16553int 16554main () 16555{ 16556return nanosleep (); 16557 ; 16558 return 0; 16559} 16560_ACEOF 16561if ac_fn_c_try_link "$LINENO"; then : 16562 ac_cv_lib_rt_nanosleep=yes 16563else 16564 ac_cv_lib_rt_nanosleep=no 16565fi 16566rm -f core conftest.err conftest.$ac_objext \ 16567 conftest$ac_exeext conftest.$ac_ext 16568LIBS=$ac_check_lib_save_LIBS 16569fi 16570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 16571$as_echo "$ac_cv_lib_rt_nanosleep" >&6; } 16572if test "x$ac_cv_lib_rt_nanosleep" = xyes; then : 16573 cat >>confdefs.h <<_ACEOF 16574#define HAVE_LIBRT 1 16575_ACEOF 16576 16577 LIBS="-lrt $LIBS" 16578 16579fi 16580 16581 if test "x$ac_cv_lib_rt_nanosleep" = "xyes"; then 16582 $as_echo "#define HAVE_NANO_SLEEP 1" >>confdefs.h 16583 16584 LIBCOB_LIBS="$LIBCOB_LIBS -lrt" 16585 else 16586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5 16587$as_echo_n "checking for nanosleep in -lposix4... " >&6; } 16588if ${ac_cv_lib_posix4_nanosleep+:} false; then : 16589 $as_echo_n "(cached) " >&6 16590else 16591 ac_check_lib_save_LIBS=$LIBS 16592LIBS="-lposix4 $LIBS" 16593cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16594/* end confdefs.h. */ 16595 16596/* Override any GCC internal prototype to avoid an error. 16597 Use char because int might match the return type of a GCC 16598 builtin and then its argument prototype would still apply. */ 16599#ifdef __cplusplus 16600extern "C" 16601#endif 16602char nanosleep (); 16603int 16604main () 16605{ 16606return nanosleep (); 16607 ; 16608 return 0; 16609} 16610_ACEOF 16611if ac_fn_c_try_link "$LINENO"; then : 16612 ac_cv_lib_posix4_nanosleep=yes 16613else 16614 ac_cv_lib_posix4_nanosleep=no 16615fi 16616rm -f core conftest.err conftest.$ac_objext \ 16617 conftest$ac_exeext conftest.$ac_ext 16618LIBS=$ac_check_lib_save_LIBS 16619fi 16620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5 16621$as_echo "$ac_cv_lib_posix4_nanosleep" >&6; } 16622if test "x$ac_cv_lib_posix4_nanosleep" = xyes; then : 16623 cat >>confdefs.h <<_ACEOF 16624#define HAVE_LIBPOSIX4 1 16625_ACEOF 16626 16627 LIBS="-lposix4 $LIBS" 16628 16629fi 16630 16631 if test "x$ac_cv_lib_posix4_nanosleep" = "xyes"; then 16632 $as_echo "#define HAVE_NANO_SLEEP 1" >>confdefs.h 16633 16634 LIBCOB_LIBS="$LIBCOB_LIBS -lposix4" 16635 fi 16636 fi 16637fi 16638rm -f core conftest.err conftest.$ac_objext \ 16639 conftest$ac_exeext conftest.$ac_ext 16640 16641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime and CLOCK_REALTIME" >&5 16642$as_echo_n "checking for clock_gettime and CLOCK_REALTIME... " >&6; } 16643cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16644/* end confdefs.h. */ 16645#include <time.h> 16646int 16647main () 16648{ 16649clock_gettime (CLOCK_REALTIME, NULL); 16650 ; 16651 return 0; 16652} 16653_ACEOF 16654if ac_fn_c_try_link "$LINENO"; then : 16655 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 16656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16657$as_echo "yes" >&6; } 16658else 16659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16660$as_echo "no" >&6; } 16661fi 16662rm -f core conftest.err conftest.$ac_objext \ 16663 conftest$ac_exeext conftest.$ac_ext 16664 16665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite" >&5 16666$as_echo_n "checking for isfinite... " >&6; } 16667cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16668/* end confdefs.h. */ 16669#include <math.h> 16670int 16671main () 16672{ 16673isfinite ( 1.0 ); 16674 ; 16675 return 0; 16676} 16677_ACEOF 16678if ac_fn_c_try_link "$LINENO"; then : 16679 $as_echo "#define HAVE_ISFINITE 1" >>confdefs.h 16680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16681$as_echo "yes" >&6; } 16682else 16683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16684$as_echo "no" >&6; } 16685 # Check prototype for finite in math.h (alternative ieeefp.h) 16686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking prototype for finite in <math.h>" >&5 16687$as_echo_n "checking prototype for finite in <math.h>... " >&6; } 16688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16689/* end confdefs.h. */ 16690#include <math.h> 16691 16692_ACEOF 16693if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16694 $EGREP "finite" >/dev/null 2>&1; then : 16695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16696$as_echo "yes" >&6; } 16697else 16698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16699$as_echo "no" >&6; } 16700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking prototype for finite in <ieeefp.h>" >&5 16701$as_echo_n "checking prototype for finite in <ieeefp.h>... " >&6; } 16702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16703/* end confdefs.h. */ 16704#include <ieeefp.h> 16705 16706_ACEOF 16707if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16708 $EGREP "finite" >/dev/null 2>&1; then : 16709 $as_echo "#define HAVE_FINITE_IEEEFP_H 1" >>confdefs.h 16710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16711$as_echo "yes" >&6; } 16712else 16713 as_fn_error $? " 16714 Declaration for finite function neither in math.h nor in ieeefp.h" "$LINENO" 5 16715fi 16716rm -f conftest* 16717 16718 16719fi 16720rm -f conftest* 16721 16722 16723fi 16724rm -f core conftest.err conftest.$ac_objext \ 16725 conftest$ac_exeext conftest.$ac_ext 16726 16727# Check for raise (optional) --> done via AC_CHECK_FUNCS 16728#AC_MSG_CHECKING([for raise]) 16729#AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <signal.h>]], 16730# [[raise (SIGINT);]])], 16731# [AC_DEFINE([HAVE_RAISE], [1]) AC_MSG_RESULT([yes])], 16732# [AC_MSG_RESULT([no])], 16733# []) 16734 16735for ac_func in fdatasync sigaction fmemopen 16736do : 16737 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16738ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16739if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16740 cat >>confdefs.h <<_ACEOF 16741#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16742_ACEOF 16743 16744fi 16745done 16746 16747ac_fn_c_check_decl "$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "$ac_includes_default" 16748if test "x$ac_cv_have_decl_fdatasync" = xyes; then : 16749 ac_have_decl=1 16750else 16751 ac_have_decl=0 16752fi 16753 16754cat >>confdefs.h <<_ACEOF 16755#define HAVE_DECL_FDATASYNC $ac_have_decl 16756_ACEOF 16757 # also check for declaration, missing on MacOS... 16758ac_fn_c_check_decl "$LINENO" "fmemopen" "ac_cv_have_decl_fmemopen" "$ac_includes_default" 16759if test "x$ac_cv_have_decl_fmemopen" = xyes; then : 16760 ac_have_decl=1 16761else 16762 ac_have_decl=0 16763fi 16764 16765cat >>confdefs.h <<_ACEOF 16766#define HAVE_DECL_FMEMOPEN $ac_have_decl 16767_ACEOF 16768 # also check for declaration, missing on AIX... 16769 16770# Checks for gettext. 16771 16772case $host_os in 16773 darwin* | rhapsody*) 16774 ;; 16775 *) 16776 gt_cv_func_CFPreferencesCopyAppValue=no 16777 gt_cv_func_CFLocaleCopyCurrent=no 16778 ;; 16779esac 16780 16781# Checks for ncurses/pdcurses/curses. 16782{ $as_echo "$as_me:${as_lineno-$LINENO}: Checks for curses ..." >&5 16783$as_echo "$as_me: Checks for curses ..." >&6;} 16784 16785 16786# Check whether --with-curses was given. 16787if test "${with_curses+set}" = set; then : 16788 withval=$with_curses; case "$with_curses" in 16789 ncursesw | ncurses | pdcurses | curses | check | no) 16790 USE_CURSES="$with_curses" 16791 ;; 16792 yes) 16793 USE_CURSES="check" 16794 ;; 16795 *) 16796 as_fn_error $? "invalid value \"$with_curses\" for --with-curses, 16797 must be one of the following: 16798 ncursesw, ncurses, pdcurses, curses (use only the specified library) 16799 check (use whatever curses library is usable, disable if no one usable) 16800 no (disable curses usage)" "$LINENO" 5 16801 ;; 16802 esac 16803else 16804 USE_CURSES="check" 16805fi 16806 16807 16808curr_libs="$LIBS" 16809if test "$USE_CURSES" = "ncursesw" -o "$USE_CURSES" = "check"; then 16810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5 16811$as_echo_n "checking for initscr in -lncursesw... " >&6; } 16812if ${ac_cv_lib_ncursesw_initscr+:} false; then : 16813 $as_echo_n "(cached) " >&6 16814else 16815 ac_check_lib_save_LIBS=$LIBS 16816LIBS="-lncursesw $LIBS" 16817cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16818/* end confdefs.h. */ 16819 16820/* Override any GCC internal prototype to avoid an error. 16821 Use char because int might match the return type of a GCC 16822 builtin and then its argument prototype would still apply. */ 16823#ifdef __cplusplus 16824extern "C" 16825#endif 16826char initscr (); 16827int 16828main () 16829{ 16830return initscr (); 16831 ; 16832 return 0; 16833} 16834_ACEOF 16835if ac_fn_c_try_link "$LINENO"; then : 16836 ac_cv_lib_ncursesw_initscr=yes 16837else 16838 ac_cv_lib_ncursesw_initscr=no 16839fi 16840rm -f core conftest.err conftest.$ac_objext \ 16841 conftest$ac_exeext conftest.$ac_ext 16842LIBS=$ac_check_lib_save_LIBS 16843fi 16844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5 16845$as_echo "$ac_cv_lib_ncursesw_initscr" >&6; } 16846if test "x$ac_cv_lib_ncursesw_initscr" = xyes; then : 16847 cat >>confdefs.h <<_ACEOF 16848#define HAVE_LIBNCURSESW 1 16849_ACEOF 16850 16851 LIBS="-lncursesw $LIBS" 16852 16853fi 16854 16855 if test "x$ac_cv_lib_ncursesw_initscr" = "xyes"; then 16856 for ac_header in ncursesw/ncurses.h 16857do : 16858 ac_fn_c_check_header_mongrel "$LINENO" "ncursesw/ncurses.h" "ac_cv_header_ncursesw_ncurses_h" "$ac_includes_default" 16859if test "x$ac_cv_header_ncursesw_ncurses_h" = xyes; then : 16860 cat >>confdefs.h <<_ACEOF 16861#define HAVE_NCURSESW_NCURSES_H 1 16862_ACEOF 16863 USE_CURSES="ncursesw" 16864else 16865 for ac_header in ncursesw/curses.h 16866do : 16867 ac_fn_c_check_header_mongrel "$LINENO" "ncursesw/curses.h" "ac_cv_header_ncursesw_curses_h" "$ac_includes_default" 16868if test "x$ac_cv_header_ncursesw_curses_h" = xyes; then : 16869 cat >>confdefs.h <<_ACEOF 16870#define HAVE_NCURSESW_CURSES_H 1 16871_ACEOF 16872 USE_CURSES="ncursesw" 16873else 16874 if test "$USE_CURSES" = "ncursesw"; then 16875 USE_CURSES="missing_header" 16876 fi 16877fi 16878 16879done 16880 16881fi 16882 16883done 16884 16885 if test "$USE_CURSES" = "ncursesw"; then 16886 LIBCOB_LIBS="$LIBCOB_LIBS -lncursesw" 16887 fi 16888 else 16889 if test "$USE_CURSES" = "ncursesw"; then 16890 USE_CURSES="missing_lib" 16891 fi 16892 fi 16893fi 16894 16895if test "$USE_CURSES" = "ncurses" -o "$USE_CURSES" = "check"; then 16896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5 16897$as_echo_n "checking for initscr in -lncurses... " >&6; } 16898if ${ac_cv_lib_ncurses_initscr+:} false; then : 16899 $as_echo_n "(cached) " >&6 16900else 16901 ac_check_lib_save_LIBS=$LIBS 16902LIBS="-lncurses $LIBS" 16903cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16904/* end confdefs.h. */ 16905 16906/* Override any GCC internal prototype to avoid an error. 16907 Use char because int might match the return type of a GCC 16908 builtin and then its argument prototype would still apply. */ 16909#ifdef __cplusplus 16910extern "C" 16911#endif 16912char initscr (); 16913int 16914main () 16915{ 16916return initscr (); 16917 ; 16918 return 0; 16919} 16920_ACEOF 16921if ac_fn_c_try_link "$LINENO"; then : 16922 ac_cv_lib_ncurses_initscr=yes 16923else 16924 ac_cv_lib_ncurses_initscr=no 16925fi 16926rm -f core conftest.err conftest.$ac_objext \ 16927 conftest$ac_exeext conftest.$ac_ext 16928LIBS=$ac_check_lib_save_LIBS 16929fi 16930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5 16931$as_echo "$ac_cv_lib_ncurses_initscr" >&6; } 16932if test "x$ac_cv_lib_ncurses_initscr" = xyes; then : 16933 cat >>confdefs.h <<_ACEOF 16934#define HAVE_LIBNCURSES 1 16935_ACEOF 16936 16937 LIBS="-lncurses $LIBS" 16938 16939fi 16940 16941 if test "x$ac_cv_lib_ncurses_initscr" = "xyes"; then 16942 for ac_header in ncurses.h 16943do : 16944 ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default" 16945if test "x$ac_cv_header_ncurses_h" = xyes; then : 16946 cat >>confdefs.h <<_ACEOF 16947#define HAVE_NCURSES_H 1 16948_ACEOF 16949 USE_CURSES="ncurses" 16950else 16951 for ac_header in ncurses/ncurses.h 16952do : 16953 ac_fn_c_check_header_mongrel "$LINENO" "ncurses/ncurses.h" "ac_cv_header_ncurses_ncurses_h" "$ac_includes_default" 16954if test "x$ac_cv_header_ncurses_ncurses_h" = xyes; then : 16955 cat >>confdefs.h <<_ACEOF 16956#define HAVE_NCURSES_NCURSES_H 1 16957_ACEOF 16958 USE_CURSES="ncurses" 16959else 16960 for ac_header in curses.h 16961do : 16962 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default" 16963if test "x$ac_cv_header_curses_h" = xyes; then : 16964 cat >>confdefs.h <<_ACEOF 16965#define HAVE_CURSES_H 1 16966_ACEOF 16967 USE_CURSES="ncurses" 16968else 16969 if test "$USE_CURSES" = "ncurses"; then 16970 USE_CURSES="missing_header" 16971 fi 16972fi 16973 16974done 16975 16976fi 16977 16978done 16979 16980fi 16981 16982done 16983 16984 if test "$USE_CURSES" = "ncurses"; then 16985 LIBCOB_LIBS="$LIBCOB_LIBS -lncurses" 16986 fi 16987 else 16988 if test "$USE_CURSES" = "ncurses"; then 16989 USE_CURSES="missing_lib" 16990 fi 16991 fi 16992fi 16993 16994 16995if test "$USE_CURSES" = "pdcurses" -o "$USE_CURSES" = "check"; then 16996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lpdcurses" >&5 16997$as_echo_n "checking for initscr in -lpdcurses... " >&6; } 16998if ${ac_cv_lib_pdcurses_initscr+:} false; then : 16999 $as_echo_n "(cached) " >&6 17000else 17001 ac_check_lib_save_LIBS=$LIBS 17002LIBS="-lpdcurses $LIBS" 17003cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17004/* end confdefs.h. */ 17005 17006/* Override any GCC internal prototype to avoid an error. 17007 Use char because int might match the return type of a GCC 17008 builtin and then its argument prototype would still apply. */ 17009#ifdef __cplusplus 17010extern "C" 17011#endif 17012char initscr (); 17013int 17014main () 17015{ 17016return initscr (); 17017 ; 17018 return 0; 17019} 17020_ACEOF 17021if ac_fn_c_try_link "$LINENO"; then : 17022 ac_cv_lib_pdcurses_initscr=yes 17023else 17024 ac_cv_lib_pdcurses_initscr=no 17025fi 17026rm -f core conftest.err conftest.$ac_objext \ 17027 conftest$ac_exeext conftest.$ac_ext 17028LIBS=$ac_check_lib_save_LIBS 17029fi 17030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pdcurses_initscr" >&5 17031$as_echo "$ac_cv_lib_pdcurses_initscr" >&6; } 17032if test "x$ac_cv_lib_pdcurses_initscr" = xyes; then : 17033 cat >>confdefs.h <<_ACEOF 17034#define HAVE_LIBPDCURSES 1 17035_ACEOF 17036 17037 LIBS="-lpdcurses $LIBS" 17038 17039fi 17040 17041 if test "x$ac_cv_lib_pdcurses_initscr" = "xyes"; then 17042 for ac_header in pdcurses.h 17043do : 17044 ac_fn_c_check_header_mongrel "$LINENO" "pdcurses.h" "ac_cv_header_pdcurses_h" "$ac_includes_default" 17045if test "x$ac_cv_header_pdcurses_h" = xyes; then : 17046 cat >>confdefs.h <<_ACEOF 17047#define HAVE_PDCURSES_H 1 17048_ACEOF 17049 USE_CURSES="pdcurses" 17050else 17051 for ac_header in curses.h 17052do : 17053 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default" 17054if test "x$ac_cv_header_curses_h" = xyes; then : 17055 cat >>confdefs.h <<_ACEOF 17056#define HAVE_CURSES_H 1 17057_ACEOF 17058 USE_CURSES="pdcurses" 17059else 17060 if test "$USE_CURSES" = "pdcurses"; then 17061 USE_CURSES="missing_header" 17062 fi 17063fi 17064 17065done 17066 17067fi 17068 17069done 17070 17071 if test "$USE_CURSES" = "pdcurses"; then 17072 LIBCOB_LIBS="$LIBCOB_LIBS -lpdcurses" 17073 fi 17074 else 17075 if test "$USE_CURSES" = "pdcurses"; then 17076 USE_CURSES="missing_lib" 17077 fi 17078 fi 17079fi 17080 17081if test "$USE_CURSES" = "curses" -o "$USE_CURSES" = "check"; then 17082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5 17083$as_echo_n "checking for initscr in -lncurses... " >&6; } 17084if ${ac_cv_lib_curses_initscr+:} false; then : 17085 $as_echo_n "(cached) " >&6 17086else 17087 ac_check_lib_save_LIBS=$LIBS 17088LIBS="-lncurses $LIBS" 17089cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17090/* end confdefs.h. */ 17091 17092/* Override any GCC internal prototype to avoid an error. 17093 Use char because int might match the return type of a GCC 17094 builtin and then its argument prototype would still apply. */ 17095#ifdef __cplusplus 17096extern "C" 17097#endif 17098char initscr (); 17099int 17100main () 17101{ 17102return initscr (); 17103 ; 17104 return 0; 17105} 17106_ACEOF 17107if ac_fn_c_try_link "$LINENO"; then : 17108 ac_cv_lib_curses_initscr=yes 17109else 17110 ac_cv_lib_curses_initscr=no 17111fi 17112rm -f core conftest.err conftest.$ac_objext \ 17113 conftest$ac_exeext conftest.$ac_ext 17114LIBS=$ac_check_lib_save_LIBS 17115fi 17116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_initscr" >&5 17117$as_echo "$ac_cv_lib_curses_initscr" >&6; } 17118if test "x$ac_cv_lib_curses_initscr" = xyes; then : 17119 cat >>confdefs.h <<_ACEOF 17120#define HAVE_LIBCURSES 1 17121_ACEOF 17122 17123 LIBS="-lncurses $LIBS" 17124 17125fi 17126 17127 if test "x$ac_cv_lib_curses_initscr" = "xyes"; then 17128 for ac_header in curses.h 17129do : 17130 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default" 17131if test "x$ac_cv_header_curses_h" = xyes; then : 17132 cat >>confdefs.h <<_ACEOF 17133#define HAVE_CURSES_H 1 17134_ACEOF 17135 USE_CURSES="curses" 17136else 17137 if test "$USE_CURSES" = "curses"; then 17138 USE_CURSES="missing_header" 17139 fi 17140fi 17141 17142done 17143 17144 if test "$USE_CURSES" != "no"; then 17145 LIBCOB_LIBS="$LIBCOB_LIBS -lncurses" 17146 fi 17147 fi 17148else 17149 if test "$USE_CURSES" = "curses"; then 17150 USE_CURSES="missing_lib" 17151 fi 17152fi 17153 17154case "$USE_CURSES" in 17155 check) 17156 USE_CURSES="not_found" 17157 $as_echo "#define WITH_CURSES \"not found\"" >>confdefs.h 17158 17159 ;; 17160 no) 17161 $as_echo "#define WITH_CURSES \"disabled\"" >>confdefs.h 17162 17163 ;; 17164 missing_lib) 17165 as_fn_error $? "Not able to link configured library $with_curses" "$LINENO" 5 17166 ;; 17167 missing_header) 17168 as_fn_error $? "No header found for configured library $with_curses" "$LINENO" 5 17169 ;; 17170 ncursesw) 17171 $as_echo "#define WITH_CURSES \"ncursesw\"" >>confdefs.h 17172 17173 ;; 17174 ncurses) 17175 $as_echo "#define WITH_CURSES \"ncurses\"" >>confdefs.h 17176 17177 ;; 17178 pdcurses) 17179 $as_echo "#define WITH_CURSES \"pdcurses\"" >>confdefs.h 17180 17181 ;; 17182 curses) 17183 $as_echo "#define WITH_CURSES \"curses\"" >>confdefs.h 17184 17185 ;; 17186esac 17187 17188 17189if test "$USE_CURSES" = "ncurses" -o "$USE_CURSES" = "ncursesw"; then 17190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ncurses _nc_freeall function" >&5 17191$as_echo_n "checking for ncurses _nc_freeall function... " >&6; } 17192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17193/* end confdefs.h. */ 17194 17195 extern void _nc_freeall (void); 17196int 17197main () 17198{ 17199_nc_freeall (); 17200 ; 17201 return 0; 17202} 17203_ACEOF 17204if ac_fn_c_try_link "$LINENO"; then : 17205 $as_echo "#define HAVE_CURSES_FREEALL 1" >>confdefs.h 17206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17207$as_echo "yes" >&6; } 17208else 17209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17210$as_echo "no" >&6; } 17211fi 17212rm -f core conftest.err conftest.$ac_objext \ 17213 conftest$ac_exeext conftest.$ac_ext 17214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ncurses use_legacy_coding function" >&5 17215$as_echo_n "checking for ncurses use_legacy_coding function... " >&6; } 17216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17217/* end confdefs.h. */ 17218 17219 extern void use_legacy_coding (void); 17220int 17221main () 17222{ 17223use_legacy_coding (); 17224 ; 17225 return 0; 17226} 17227_ACEOF 17228if ac_fn_c_try_link "$LINENO"; then : 17229 $as_echo "#define HAVE_USE_LEGACY_CODING 1" >>confdefs.h 17230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17231$as_echo "yes" >&6; } 17232else 17233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17234$as_echo "no" >&6; } 17235fi 17236rm -f core conftest.err conftest.$ac_objext \ 17237 conftest$ac_exeext conftest.$ac_ext 17238fi 17239 17240if test "$USE_CURSES" != "no" -a "$USE_CURSES" != "not_found"; then 17241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curses color_set function" >&5 17242$as_echo_n "checking for curses color_set function... " >&6; } 17243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17244/* end confdefs.h. */ 17245 17246 #ifdef HAVE_NCURSESW_NCURSES_H 17247 #include <ncursesw/ncurses.h> 17248 #elif defined (HAVE_NCURSESW_CURSES_H) 17249 #include <ncursesw/curses.h> 17250 #elif defined (HAVE_NCURSES_H) 17251 #include <ncurses.h> 17252 #elif defined (HAVE_NCURSES_NCURSES_H) 17253 #include <ncurses/ncurses.h> 17254 #elif defined (HAVE_PDCURSES_H) 17255 #include <pdcurses.h> 17256 #elif defined (HAVE_CURSES_H) 17257 #include <curses.h> 17258 #endif 17259int 17260main () 17261{ 17262 17263 color_set (0, NULL); 17264 17265 ; 17266 return 0; 17267} 17268_ACEOF 17269if ac_fn_c_try_link "$LINENO"; then : 17270 $as_echo "#define HAVE_COLOR_SET 1" >>confdefs.h 17271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17272$as_echo "yes" >&6; } 17273else 17274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17275$as_echo "no" >&6; } 17276fi 17277rm -f core conftest.err conftest.$ac_objext \ 17278 conftest$ac_exeext conftest.$ac_ext 17279 17280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curses define_key function" >&5 17281$as_echo_n "checking for curses define_key function... " >&6; } 17282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17283/* end confdefs.h. */ 17284 17285 #ifdef HAVE_NCURSESW_NCURSES_H 17286 #include <ncursesw/ncurses.h> 17287 #elif defined (HAVE_NCURSESW_CURSES_H) 17288 #include <ncursesw/curses.h> 17289 #elif defined (HAVE_NCURSES_H) 17290 #include <ncurses.h> 17291 #elif defined (HAVE_NCURSES_NCURSES_H) 17292 #include <ncurses/ncurses.h> 17293 #elif defined (HAVE_PDCURSES_H) 17294 #include <pdcurses.h> 17295 #elif defined (HAVE_CURSES_H) 17296 #include <curses.h> 17297 #endif 17298int 17299main () 17300{ 17301 17302 define_key ("\E-3;3~", (KEY_MAX + 1)); 17303 17304 ; 17305 return 0; 17306} 17307_ACEOF 17308if ac_fn_c_try_link "$LINENO"; then : 17309 $as_echo "#define HAVE_DEFINE_KEY 1" >>confdefs.h 17310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17311$as_echo "yes" >&6; } 17312else 17313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17314$as_echo "no" >&6; } 17315fi 17316rm -f core conftest.err conftest.$ac_objext \ 17317 conftest$ac_exeext conftest.$ac_ext 17318 17319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curses mouseinterval function" >&5 17320$as_echo_n "checking for curses mouseinterval function... " >&6; } 17321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17322/* end confdefs.h. */ 17323 17324 #ifdef HAVE_NCURSESW_NCURSES_H 17325 #include <ncursesw/ncurses.h> 17326 #elif defined (HAVE_NCURSESW_CURSES_H) 17327 #include <ncursesw/curses.h> 17328 #elif defined (HAVE_NCURSES_H) 17329 #include <ncurses.h> 17330 #elif defined (HAVE_NCURSES_NCURSES_H) 17331 #include <ncurses/ncurses.h> 17332 #elif defined (HAVE_PDCURSES_H) 17333 #include <pdcurses.h> 17334 #elif defined (HAVE_CURSES_H) 17335 #include <curses.h> 17336 #endif 17337int 17338main () 17339{ 17340 17341 mouseinterval (-1); 17342 17343 ; 17344 return 0; 17345} 17346_ACEOF 17347if ac_fn_c_try_link "$LINENO"; then : 17348 $as_echo "#define HAVE_MOUSEINTERVAL 1" >>confdefs.h 17349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17350$as_echo "yes" >&6; } 17351else 17352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17353$as_echo "no" >&6; } 17354fi 17355rm -f core conftest.err conftest.$ac_objext \ 17356 conftest$ac_exeext conftest.$ac_ext 17357 17358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curses has_mouse function" >&5 17359$as_echo_n "checking for curses has_mouse function... " >&6; } 17360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17361/* end confdefs.h. */ 17362 17363 #ifdef HAVE_NCURSESW_NCURSES_H 17364 #include <ncursesw/ncurses.h> 17365 #elif defined (HAVE_NCURSESW_CURSES_H) 17366 #include <ncursesw/curses.h> 17367 #elif defined (HAVE_NCURSES_H) 17368 #include <ncurses.h> 17369 #elif defined (HAVE_NCURSES_NCURSES_H) 17370 #include <ncurses/ncurses.h> 17371 #elif defined (HAVE_PDCURSES_H) 17372 #include <pdcurses.h> 17373 #elif defined (HAVE_CURSES_H) 17374 #include <curses.h> 17375 #endif 17376int 17377main () 17378{ 17379 17380 has_mouse (); 17381 17382 ; 17383 return 0; 17384} 17385_ACEOF 17386if ac_fn_c_try_link "$LINENO"; then : 17387 $as_echo "#define HAVE_HAS_MOUSE 1" >>confdefs.h 17388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17389$as_echo "yes" >&6; } 17390else 17391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17392$as_echo "no" >&6; } 17393fi 17394rm -f core conftest.err conftest.$ac_objext \ 17395 conftest$ac_exeext conftest.$ac_ext 17396fi 17397LIBS="$curr_libs" # removing curses 17398 17399 17400# Check whether --with-seqra-extfh was given. 17401if test "${with_seqra_extfh+set}" = set; then : 17402 withval=$with_seqra_extfh; if test "$with_seqra_extfh" = "yes"; then 17403 $as_echo "#define WITH_SEQRA_EXTFH 1" >>confdefs.h 17404 17405 fi 17406fi 17407 17408 17409 17410# Check whether --with-cisam was given. 17411if test "${with_cisam+set}" = set; then : 17412 withval=$with_cisam; if test "$with_cisam" = "yes"; then 17413 for ac_header in isam.h 17414do : 17415 ac_fn_c_check_header_mongrel "$LINENO" "isam.h" "ac_cv_header_isam_h" "$ac_includes_default" 17416if test "x$ac_cv_header_isam_h" = xyes; then : 17417 cat >>confdefs.h <<_ACEOF 17418#define HAVE_ISAM_H 1 17419_ACEOF 17420 17421else 17422 as_fn_error $? "isam.h is required for CISAM" "$LINENO" 5 17423fi 17424 17425done 17426 17427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isopen in -lifisam" >&5 17428$as_echo_n "checking for isopen in -lifisam... " >&6; } 17429if ${ac_cv_lib_ifisam_isopen+:} false; then : 17430 $as_echo_n "(cached) " >&6 17431else 17432 ac_check_lib_save_LIBS=$LIBS 17433LIBS="-lifisam -lifisamx $LIBS" 17434cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17435/* end confdefs.h. */ 17436 17437/* Override any GCC internal prototype to avoid an error. 17438 Use char because int might match the return type of a GCC 17439 builtin and then its argument prototype would still apply. */ 17440#ifdef __cplusplus 17441extern "C" 17442#endif 17443char isopen (); 17444int 17445main () 17446{ 17447return isopen (); 17448 ; 17449 return 0; 17450} 17451_ACEOF 17452if ac_fn_c_try_link "$LINENO"; then : 17453 ac_cv_lib_ifisam_isopen=yes 17454else 17455 ac_cv_lib_ifisam_isopen=no 17456fi 17457rm -f core conftest.err conftest.$ac_objext \ 17458 conftest$ac_exeext conftest.$ac_ext 17459LIBS=$ac_check_lib_save_LIBS 17460fi 17461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ifisam_isopen" >&5 17462$as_echo "$ac_cv_lib_ifisam_isopen" >&6; } 17463if test "x$ac_cv_lib_ifisam_isopen" = xyes; then : 17464 $as_echo "#define WITH_CISAM 1" >>confdefs.h 17465 17466 LIBCOB_LIBS="$LIBCOB_LIBS -lifisam -lifisamx" 17467else 17468 as_fn_error $? "libifisam is required for CISAM" "$LINENO" 5 17469fi 17470 17471 fi 17472fi 17473 17474 17475if test "$with_cisam" != "yes"; then : 17476 17477 17478# Check whether --with-disam was given. 17479if test "${with_disam+set}" = set; then : 17480 withval=$with_disam; if test "$with_disam" = "yes"; then 17481 for ac_header in disam.h 17482do : 17483 ac_fn_c_check_header_mongrel "$LINENO" "disam.h" "ac_cv_header_disam_h" "$ac_includes_default" 17484if test "x$ac_cv_header_disam_h" = xyes; then : 17485 cat >>confdefs.h <<_ACEOF 17486#define HAVE_DISAM_H 1 17487_ACEOF 17488 17489else 17490 as_fn_error $? "disam.h is required for DISAM" "$LINENO" 5 17491fi 17492 17493done 17494 17495 17496 for cobdisam in disam disam8 disam72 disam71 disam7 17497 do 17498 as_ac_Lib=`$as_echo "ac_cv_lib_$cobdisam''_isopen" | $as_tr_sh` 17499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isopen in -l$cobdisam" >&5 17500$as_echo_n "checking for isopen in -l$cobdisam... " >&6; } 17501if eval \${$as_ac_Lib+:} false; then : 17502 $as_echo_n "(cached) " >&6 17503else 17504 ac_check_lib_save_LIBS=$LIBS 17505LIBS="-l$cobdisam $LIBS" 17506cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17507/* end confdefs.h. */ 17508 17509/* Override any GCC internal prototype to avoid an error. 17510 Use char because int might match the return type of a GCC 17511 builtin and then its argument prototype would still apply. */ 17512#ifdef __cplusplus 17513extern "C" 17514#endif 17515char isopen (); 17516int 17517main () 17518{ 17519return isopen (); 17520 ; 17521 return 0; 17522} 17523_ACEOF 17524if ac_fn_c_try_link "$LINENO"; then : 17525 eval "$as_ac_Lib=yes" 17526else 17527 eval "$as_ac_Lib=no" 17528fi 17529rm -f core conftest.err conftest.$ac_objext \ 17530 conftest$ac_exeext conftest.$ac_ext 17531LIBS=$ac_check_lib_save_LIBS 17532fi 17533eval ac_res=\$$as_ac_Lib 17534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17535$as_echo "$ac_res" >&6; } 17536if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 17537 $as_echo "#define WITH_DISAM 1" >>confdefs.h 17538 17539 LIBCOB_LIBS="$LIBCOB_LIBS -l$cobdisam" 17540 cob_got_disam=yes 17541 break 17542fi 17543 17544 done 17545 if test "$cob_got_disam" = "yes"; then 17546 { $as_echo "$as_me:${as_lineno-$LINENO}: DISAM library found as -l$cobdisam" >&5 17547$as_echo "$as_me: DISAM library found as -l$cobdisam" >&6;} 17548 else 17549 as_fn_error $? "DISAM library not found" "$LINENO" 5 17550 fi 17551 unset cobdisam 17552 unset cob_got_disam 17553 fi 17554fi 17555 17556 17557fi 17558 17559if test "$with_cisam" != "yes" -a "$with_disam" != "yes"; then : 17560 17561 17562# Check whether --with-vbisam was given. 17563if test "${with_vbisam+set}" = set; then : 17564 withval=$with_vbisam; if test "$with_vbisam" = "yes"; then 17565 for ac_header in vbisam.h 17566do : 17567 ac_fn_c_check_header_mongrel "$LINENO" "vbisam.h" "ac_cv_header_vbisam_h" "$ac_includes_default" 17568if test "x$ac_cv_header_vbisam_h" = xyes; then : 17569 cat >>confdefs.h <<_ACEOF 17570#define HAVE_VBISAM_H 1 17571_ACEOF 17572 17573else 17574 as_fn_error $? "vbisam.h is required for VBISAM" "$LINENO" 5 17575fi 17576 17577done 17578 17579 # note: isfullclose is available since 2.0, isopen since 1.0 17580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfullclose in -lvbisam" >&5 17581$as_echo_n "checking for isfullclose in -lvbisam... " >&6; } 17582if ${ac_cv_lib_vbisam_isfullclose+:} false; then : 17583 $as_echo_n "(cached) " >&6 17584else 17585 ac_check_lib_save_LIBS=$LIBS 17586LIBS="-lvbisam $LIBS" 17587cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17588/* end confdefs.h. */ 17589 17590/* Override any GCC internal prototype to avoid an error. 17591 Use char because int might match the return type of a GCC 17592 builtin and then its argument prototype would still apply. */ 17593#ifdef __cplusplus 17594extern "C" 17595#endif 17596char isfullclose (); 17597int 17598main () 17599{ 17600return isfullclose (); 17601 ; 17602 return 0; 17603} 17604_ACEOF 17605if ac_fn_c_try_link "$LINENO"; then : 17606 ac_cv_lib_vbisam_isfullclose=yes 17607else 17608 ac_cv_lib_vbisam_isfullclose=no 17609fi 17610rm -f core conftest.err conftest.$ac_objext \ 17611 conftest$ac_exeext conftest.$ac_ext 17612LIBS=$ac_check_lib_save_LIBS 17613fi 17614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vbisam_isfullclose" >&5 17615$as_echo "$ac_cv_lib_vbisam_isfullclose" >&6; } 17616if test "x$ac_cv_lib_vbisam_isfullclose" = xyes; then : 17617 $as_echo "#define WITH_VBISAM 1" >>confdefs.h 17618 17619 LIBCOB_LIBS="$LIBCOB_LIBS -lvbisam" 17620else 17621 as_fn_error $? "libvbisam >= 2.0 is required for VBISAM" "$LINENO" 5 17622fi 17623 17624 fi 17625fi 17626 17627 17628fi 17629 17630if test "$with_cisam" != "yes" -a "$with_disam" != "yes" -a "$with_vbisam" != "yes"; then : 17631 17632 17633# Check whether --with-index-extfh was given. 17634if test "${with_index_extfh+set}" = set; then : 17635 withval=$with_index_extfh; if test "$with_index_extfh" = "yes"; then 17636 $as_echo "#define WITH_INDEX_EXTFH 1" >>confdefs.h 17637 17638 fi 17639fi 17640 17641 17642fi 17643 17644if test "$with_cisam" != "yes" -a "$with_disam" != "yes" -a "$with_vbisam" != "yes" -a "$with_index_extfh" != "yes"; then : 17645 17646 17647# Check whether --with-db was given. 17648if test "${with_db+set}" = set; then : 17649 withval=$with_db; 17650else 17651 with_db=yes 17652fi 17653 17654 17655fi 17656 17657# Checks for db. 17658if test "$with_db" = "yes"; then 17659 { $as_echo "$as_me:${as_lineno-$LINENO}: Checks for Berkeley DB ..." >&5 17660$as_echo "$as_me: Checks for Berkeley DB ..." >&6;} 17661 17662 for ac_header in db.h 17663do : 17664 ac_fn_c_check_header_mongrel "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default" 17665if test "x$ac_cv_header_db_h" = xyes; then : 17666 cat >>confdefs.h <<_ACEOF 17667#define HAVE_DB_H 1 17668_ACEOF 17669 17670else 17671 as_fn_error $? "Berkeley DB db.h is missing" "$LINENO" 5 17672fi 17673 17674done 17675 17676 17677 # BDB header exists. Extract major/minor number pair 17678 COB_BDB_HEADER='' 17679 COB_BDB_HEADER_STR='' 17680 if test "$cross_compiling" = yes; then : 17681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot run test program while cross-compiling" >&5 17682$as_echo "$as_me: WARNING: cannot run test program while cross-compiling" >&2;} 17683 COB_BDB_HEADER="cross" 17684 COB_BDB_HEADER_STR="cross" 17685else 17686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17687/* end confdefs.h. */ 17688 17689 #include <stdio.h> 17690 #include <db.h> 17691 int main (int argc, char **argv) 17692 { 17693 (void)argv; 17694 if (argc == 2) 17695 printf ("%d.%d", DB_VERSION_MAJOR, DB_VERSION_MINOR); 17696 if (argc == 3) 17697 printf ("-%s-", DB_VERSION_STRING); 17698 return 0; 17699 } 17700 17701_ACEOF 17702if ac_fn_c_try_run "$LINENO"; then : 17703 COB_BDB_HEADER=$(./conftest$ac_exeext x) 17704 COB_BDB_HEADER_STR=$(./conftest$ac_exeext x y) 17705else 17706 as_fn_error $? "Unable to extract Berkeley DB version information from db.h" "$LINENO" 5 17707fi 17708rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17709 conftest.$ac_objext conftest.beam conftest.$ac_ext 17710fi 17711 17712 if test "x$COB_BDB_HEADER" = "x"; then 17713 as_fn_error $? "Unable to extract Berkeley DB version information" "$LINENO" 5 17714 fi 17715 if test "x$COB_BDB_HEADER_STR" != "x"; then 17716 { $as_echo "$as_me:${as_lineno-$LINENO}: db.h reports version \"$COB_BDB_HEADER_STR\"" >&5 17717$as_echo "$as_me: db.h reports version \"$COB_BDB_HEADER_STR\"" >&6;} 17718 fi 17719 if test "$COB_BDB_HEADER_STR" != "cross"; then 17720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB db.h version >= 4.1" >&5 17721$as_echo_n "checking for Berkeley DB db.h version >= 4.1... " >&6; } 17722 COB_BDB_HEADER_MAJOR=$(echo "$COB_BDB_HEADER" | cut -d. -f1) 17723 if test $COB_BDB_HEADER_MAJOR -gt 4; then 17724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($COB_BDB_HEADER)" >&5 17725$as_echo "yes ($COB_BDB_HEADER)" >&6; } 17726 else 17727 COB_BDB_HEADER_MINOR=$(echo "$COB_BDB_HEADER" | cut -d. -f2) 17728 if test $COB_BDB_HEADER_MAJOR -eq 4 -a $COB_BDB_HEADER_MINOR -ge 1; then 17729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($COB_BDB_HEADER)" >&5 17730$as_echo "yes ($COB_BDB_HEADER)" >&6; } 17731 else 17732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($COB_BDB_HEADER)" >&5 17733$as_echo "no ($COB_BDB_HEADER)" >&6; } 17734 as_fn_error $? "Berkeley DB db.h has incompatible version" "$LINENO" 5 17735 fi 17736 fi 17737 test_libs="$LIBS" 17738 cob_got_db=no 17739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB library with version $COB_BDB_HEADER" >&5 17740$as_echo_n "checking for Berkeley DB library with version $COB_BDB_HEADER... " >&6; } 17741 # prefer library with version number included as some systems link against wrong version 17742 # of the library and to not break when a newer BDB version is installed, see bug #100 17743 for cobdb in db-$COB_BDB_HEADER db 17744 do 17745 LIBS="$test_libs -l$cobdb" 17746 if test "$cross_compiling" = yes; then : 17747 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17748$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17749as_fn_error $? "cannot run test program while cross compiling 17750See \`config.log' for more details" "$LINENO" 5; } 17751else 17752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17753/* end confdefs.h. */ 17754#include <stdio.h> 17755 #include <db.h> 17756int 17757main () 17758{ 17759 17760 int major = 0, minor = 0, patch = 0; 17761 db_version (&major, &minor, &patch); 17762 if (major == DB_VERSION_MAJOR && minor == DB_VERSION_MINOR) { 17763 return 0; 17764 } 17765 return 1; 17766 ; 17767 return 0; 17768} 17769_ACEOF 17770if ac_fn_c_try_run "$LINENO"; then : 17771 $as_echo "#define WITH_DB 1" >>confdefs.h 17772 17773 cob_got_db=yes 17774 LIBCOB_LIBS="$LIBCOB_LIBS -l$cobdb" 17775 break 17776fi 17777rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17778 conftest.$ac_objext conftest.beam conftest.$ac_ext 17779fi 17780 17781 done 17782 LIBS="$test_libs" 17783 unset test_libs 17784 if test "$cob_got_db" = "yes"; then 17785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17786$as_echo "yes" >&6; } 17787 { $as_echo "$as_me:${as_lineno-$LINENO}: BDB library version $COB_BDB_HEADER found as -l$cobdb" >&5 17788$as_echo "$as_me: BDB library version $COB_BDB_HEADER found as -l$cobdb" >&6;} 17789 else 17790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17791$as_echo "no" >&6; } 17792 as_fn_error $? "BDB library version $COB_BDB_HEADER not found" "$LINENO" 5 17793 fi 17794 else 17795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Matching BDB version (>=4.1) assumed" >&5 17796$as_echo "$as_me: WARNING: Matching BDB version (>=4.1) assumed" >&2;} 17797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_version in -ldb" >&5 17798$as_echo_n "checking for db_version in -ldb... " >&6; } 17799if ${ac_cv_lib_db_db_version+:} false; then : 17800 $as_echo_n "(cached) " >&6 17801else 17802 ac_check_lib_save_LIBS=$LIBS 17803LIBS="-ldb $LIBS" 17804cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17805/* end confdefs.h. */ 17806 17807/* Override any GCC internal prototype to avoid an error. 17808 Use char because int might match the return type of a GCC 17809 builtin and then its argument prototype would still apply. */ 17810#ifdef __cplusplus 17811extern "C" 17812#endif 17813char db_version (); 17814int 17815main () 17816{ 17817return db_version (); 17818 ; 17819 return 0; 17820} 17821_ACEOF 17822if ac_fn_c_try_link "$LINENO"; then : 17823 ac_cv_lib_db_db_version=yes 17824else 17825 ac_cv_lib_db_db_version=no 17826fi 17827rm -f core conftest.err conftest.$ac_objext \ 17828 conftest$ac_exeext conftest.$ac_ext 17829LIBS=$ac_check_lib_save_LIBS 17830fi 17831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_db_version" >&5 17832$as_echo "$ac_cv_lib_db_db_version" >&6; } 17833if test "x$ac_cv_lib_db_db_version" = xyes; then : 17834 LIBCOB_LIBS="$LIBCOB_LIBS -ldb" 17835else 17836 as_fn_error $? "BDB library is required as -ldb" "$LINENO" 5 17837fi 17838 17839 fi 17840 unset cobdb 17841 unset cob_got_db 17842 unset COB_BDB_HEADER 17843fi 17844LIBS="$curr_libs" # removing INDEXED libraries 17845 17846# Checks for dl/ltdl. 17847DEFINE_DL="no" 17848 17849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _WIN32" >&5 17850$as_echo_n "checking for _WIN32... " >&6; } 17851cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17852/* end confdefs.h. */ 17853 17854 #ifndef _WIN32 17855 # error macro not defined 17856 #endif 17857_ACEOF 17858if ac_fn_c_try_compile "$LINENO"; then : 17859 DEFINE_DL="yes" 17860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17861$as_echo "yes" >&6; } 17862else 17863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17864$as_echo "no" >&6; } 17865fi 17866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17867 17868if test "$DEFINE_DL" = "no" -a "$with_dl" = "yes"; then 17869 if test "x$ac_cv_header_dlfcn_h" = "xyes"; then 17870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5 17871$as_echo_n "checking for dlopen in -lc... " >&6; } 17872if ${ac_cv_lib_c_dlopen+:} false; then : 17873 $as_echo_n "(cached) " >&6 17874else 17875 ac_check_lib_save_LIBS=$LIBS 17876LIBS="-lc $LIBS" 17877cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17878/* end confdefs.h. */ 17879 17880/* Override any GCC internal prototype to avoid an error. 17881 Use char because int might match the return type of a GCC 17882 builtin and then its argument prototype would still apply. */ 17883#ifdef __cplusplus 17884extern "C" 17885#endif 17886char dlopen (); 17887int 17888main () 17889{ 17890return dlopen (); 17891 ; 17892 return 0; 17893} 17894_ACEOF 17895if ac_fn_c_try_link "$LINENO"; then : 17896 ac_cv_lib_c_dlopen=yes 17897else 17898 ac_cv_lib_c_dlopen=no 17899fi 17900rm -f core conftest.err conftest.$ac_objext \ 17901 conftest$ac_exeext conftest.$ac_ext 17902LIBS=$ac_check_lib_save_LIBS 17903fi 17904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5 17905$as_echo "$ac_cv_lib_c_dlopen" >&6; } 17906if test "x$ac_cv_lib_c_dlopen" = xyes; then : 17907 DEFINE_DL="yes" 17908fi 17909 17910 if test "$DEFINE_DL" = "no"; then 17911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17912$as_echo_n "checking for dlopen in -ldl... " >&6; } 17913if ${ac_cv_lib_dl_dlopen+:} false; then : 17914 $as_echo_n "(cached) " >&6 17915else 17916 ac_check_lib_save_LIBS=$LIBS 17917LIBS="-ldl $LIBS" 17918cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17919/* end confdefs.h. */ 17920 17921/* Override any GCC internal prototype to avoid an error. 17922 Use char because int might match the return type of a GCC 17923 builtin and then its argument prototype would still apply. */ 17924#ifdef __cplusplus 17925extern "C" 17926#endif 17927char dlopen (); 17928int 17929main () 17930{ 17931return dlopen (); 17932 ; 17933 return 0; 17934} 17935_ACEOF 17936if ac_fn_c_try_link "$LINENO"; then : 17937 ac_cv_lib_dl_dlopen=yes 17938else 17939 ac_cv_lib_dl_dlopen=no 17940fi 17941rm -f core conftest.err conftest.$ac_objext \ 17942 conftest$ac_exeext conftest.$ac_ext 17943LIBS=$ac_check_lib_save_LIBS 17944fi 17945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17946$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17947if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17948 DEFINE_DL="yes" 17949fi 17950 17951 if test "$DEFINE_DL" = "yes"; then 17952 $as_echo "#define USE_LIBDL 1" >>confdefs.h 17953 17954 LIBCOB_LIBS="$LIBCOB_LIBS -ldl" 17955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldl" >&5 17956$as_echo_n "checking for dladdr in -ldl... " >&6; } 17957if ${ac_cv_lib_dl_dladdr+:} false; then : 17958 $as_echo_n "(cached) " >&6 17959else 17960 ac_check_lib_save_LIBS=$LIBS 17961LIBS="-ldl $LIBS" 17962cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17963/* end confdefs.h. */ 17964 17965/* Override any GCC internal prototype to avoid an error. 17966 Use char because int might match the return type of a GCC 17967 builtin and then its argument prototype would still apply. */ 17968#ifdef __cplusplus 17969extern "C" 17970#endif 17971char dladdr (); 17972int 17973main () 17974{ 17975return dladdr (); 17976 ; 17977 return 0; 17978} 17979_ACEOF 17980if ac_fn_c_try_link "$LINENO"; then : 17981 ac_cv_lib_dl_dladdr=yes 17982else 17983 ac_cv_lib_dl_dladdr=no 17984fi 17985rm -f core conftest.err conftest.$ac_objext \ 17986 conftest$ac_exeext conftest.$ac_ext 17987LIBS=$ac_check_lib_save_LIBS 17988fi 17989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dladdr" >&5 17990$as_echo "$ac_cv_lib_dl_dladdr" >&6; } 17991if test "x$ac_cv_lib_dl_dladdr" = xyes; then : 17992 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h 17993 17994fi 17995 17996 else 17997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldld" >&5 17998$as_echo_n "checking for dlopen in -ldld... " >&6; } 17999if ${ac_cv_lib_dld_dlopen+:} false; then : 18000 $as_echo_n "(cached) " >&6 18001else 18002 ac_check_lib_save_LIBS=$LIBS 18003LIBS="-ldld $LIBS" 18004cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18005/* end confdefs.h. */ 18006 18007/* Override any GCC internal prototype to avoid an error. 18008 Use char because int might match the return type of a GCC 18009 builtin and then its argument prototype would still apply. */ 18010#ifdef __cplusplus 18011extern "C" 18012#endif 18013char dlopen (); 18014int 18015main () 18016{ 18017return dlopen (); 18018 ; 18019 return 0; 18020} 18021_ACEOF 18022if ac_fn_c_try_link "$LINENO"; then : 18023 ac_cv_lib_dld_dlopen=yes 18024else 18025 ac_cv_lib_dld_dlopen=no 18026fi 18027rm -f core conftest.err conftest.$ac_objext \ 18028 conftest$ac_exeext conftest.$ac_ext 18029LIBS=$ac_check_lib_save_LIBS 18030fi 18031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dlopen" >&5 18032$as_echo "$ac_cv_lib_dld_dlopen" >&6; } 18033if test "x$ac_cv_lib_dld_dlopen" = xyes; then : 18034 DEFINE_DL="yes" 18035fi 18036 18037 if test "$DEFINE_DL" = "yes"; then 18038 $as_echo "#define USE_LIBDL 1" >>confdefs.h 18039 18040 LIBCOB_LIBS="$LIBCOB_LIBS -ldld" 18041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldld" >&5 18042$as_echo_n "checking for dladdr in -ldld... " >&6; } 18043if ${ac_cv_lib_dld_dladdr+:} false; then : 18044 $as_echo_n "(cached) " >&6 18045else 18046 ac_check_lib_save_LIBS=$LIBS 18047LIBS="-ldld $LIBS" 18048cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18049/* end confdefs.h. */ 18050 18051/* Override any GCC internal prototype to avoid an error. 18052 Use char because int might match the return type of a GCC 18053 builtin and then its argument prototype would still apply. */ 18054#ifdef __cplusplus 18055extern "C" 18056#endif 18057char dladdr (); 18058int 18059main () 18060{ 18061return dladdr (); 18062 ; 18063 return 0; 18064} 18065_ACEOF 18066if ac_fn_c_try_link "$LINENO"; then : 18067 ac_cv_lib_dld_dladdr=yes 18068else 18069 ac_cv_lib_dld_dladdr=no 18070fi 18071rm -f core conftest.err conftest.$ac_objext \ 18072 conftest$ac_exeext conftest.$ac_ext 18073LIBS=$ac_check_lib_save_LIBS 18074fi 18075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dladdr" >&5 18076$as_echo "$ac_cv_lib_dld_dladdr" >&6; } 18077if test "x$ac_cv_lib_dld_dladdr" = xyes; then : 18078 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h 18079 18080fi 18081 18082 fi 18083 fi 18084 else 18085 $as_echo "#define USE_LIBDL 1" >>confdefs.h 18086 18087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -lc" >&5 18088$as_echo_n "checking for dladdr in -lc... " >&6; } 18089if ${ac_cv_lib_c_dladdr+:} false; then : 18090 $as_echo_n "(cached) " >&6 18091else 18092 ac_check_lib_save_LIBS=$LIBS 18093LIBS="-lc $LIBS" 18094cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18095/* end confdefs.h. */ 18096 18097/* Override any GCC internal prototype to avoid an error. 18098 Use char because int might match the return type of a GCC 18099 builtin and then its argument prototype would still apply. */ 18100#ifdef __cplusplus 18101extern "C" 18102#endif 18103char dladdr (); 18104int 18105main () 18106{ 18107return dladdr (); 18108 ; 18109 return 0; 18110} 18111_ACEOF 18112if ac_fn_c_try_link "$LINENO"; then : 18113 ac_cv_lib_c_dladdr=yes 18114else 18115 ac_cv_lib_c_dladdr=no 18116fi 18117rm -f core conftest.err conftest.$ac_objext \ 18118 conftest$ac_exeext conftest.$ac_ext 18119LIBS=$ac_check_lib_save_LIBS 18120fi 18121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dladdr" >&5 18122$as_echo "$ac_cv_lib_c_dladdr" >&6; } 18123if test "x$ac_cv_lib_c_dladdr" = xyes; then : 18124 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h 18125 18126fi 18127 18128 fi 18129 fi 18130fi 18131 18132if test "$DEFINE_DL" = "no"; then 18133 for ac_header in ltdl.h 18134do : 18135 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default" 18136if test "x$ac_cv_header_ltdl_h" = xyes; then : 18137 cat >>confdefs.h <<_ACEOF 18138#define HAVE_LTDL_H 1 18139_ACEOF 18140 18141else 18142 as_fn_error $? "ltdl.h is required" "$LINENO" 5 18143fi 18144 18145done 18146 18147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlopen in -lltdl" >&5 18148$as_echo_n "checking for lt_dlopen in -lltdl... " >&6; } 18149if ${ac_cv_lib_ltdl_lt_dlopen+:} false; then : 18150 $as_echo_n "(cached) " >&6 18151else 18152 ac_check_lib_save_LIBS=$LIBS 18153LIBS="-lltdl $LIBS" 18154cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18155/* end confdefs.h. */ 18156 18157/* Override any GCC internal prototype to avoid an error. 18158 Use char because int might match the return type of a GCC 18159 builtin and then its argument prototype would still apply. */ 18160#ifdef __cplusplus 18161extern "C" 18162#endif 18163char lt_dlopen (); 18164int 18165main () 18166{ 18167return lt_dlopen (); 18168 ; 18169 return 0; 18170} 18171_ACEOF 18172if ac_fn_c_try_link "$LINENO"; then : 18173 ac_cv_lib_ltdl_lt_dlopen=yes 18174else 18175 ac_cv_lib_ltdl_lt_dlopen=no 18176fi 18177rm -f core conftest.err conftest.$ac_objext \ 18178 conftest$ac_exeext conftest.$ac_ext 18179LIBS=$ac_check_lib_save_LIBS 18180fi 18181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlopen" >&5 18182$as_echo "$ac_cv_lib_ltdl_lt_dlopen" >&6; } 18183if test "x$ac_cv_lib_ltdl_lt_dlopen" = xyes; then : 18184 LIBCOB_LIBS="$LIBCOB_LIBS -lltdl" 18185else 18186 as_fn_error $? "libltdl is required" "$LINENO" 5 18187fi 18188 18189fi 18190 18191# Checks for compiling computed gotos 18192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for support of computed gotos" >&5 18193$as_echo_n "checking for support of computed gotos... " >&6; } 18194cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18195/* end confdefs.h. */ 18196 18197 int test () 18198 { 18199 void *test_ptr; 18200 test_ptr = &&lab; 18201 18202 goto *test_ptr; 18203 return 1; 18204 18205 lab: 18206 return 0; 18207 } 18208_ACEOF 18209if ac_fn_c_try_compile "$LINENO"; then : 18210 $as_echo "#define COB_COMPUTED_GOTO 1" >>confdefs.h 18211 18212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18213$as_echo "yes" >&6; } 18214else 18215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18216$as_echo "no" >&6; } 18217fi 18218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18219 18220# Checks for size of long 18221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if size of long int = size of long long" >&5 18222$as_echo_n "checking if size of long int = size of long long... " >&6; } 18223if test "$cross_compiling" = yes; then : 18224 if test "$COB_LI_IS_LL" = "0"; then 18225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: specified \"no\" on configure line" >&5 18226$as_echo "specified \"no\" on configure line" >&6; } 18227 else 18228 if test "$COB_LI_IS_LL" = "1"; then 18229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: specified \"yes\" on configure line" >&5 18230$as_echo "specified \"yes\" on configure line" >&6; } 18231 else 18232 COB_LI_IS_LL=1 18233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assumed - cross-compilation" >&5 18234$as_echo "assumed - cross-compilation" >&6; } 18235 fi 18236 fi 18237 $as_echo "#define COB_LI_IS_LL \$COB_LI_IS_LL" >>confdefs.h 18238 18239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot run test program while cross-compiling" >&5 18240$as_echo "$as_me: WARNING: cannot run test program while cross-compiling" >&2;} 18241else 18242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18243/* end confdefs.h. */ 18244 18245int 18246main () 18247{ 18248 18249 if (sizeof(long int) == sizeof(long long)) 18250 return 0; 18251 return 1; 18252 18253 ; 18254 return 0; 18255} 18256_ACEOF 18257if ac_fn_c_try_run "$LINENO"; then : 18258 $as_echo "#define COB_LI_IS_LL 1" >>confdefs.h 18259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18260$as_echo "yes" >&6; } 18261else 18262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18263$as_echo "no" >&6; } 18264fi 18265rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18266 conftest.$ac_objext conftest.beam conftest.$ac_ext 18267fi 18268 18269 18270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if long is 32 bits" >&5 18271$as_echo_n "checking if long is 32 bits... " >&6; } 18272if test "$cross_compiling" = yes; then : 18273 if test "$COB_32_BIT_LONG" = "0"; then 18274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: specified \"no\" on configure line" >&5 18275$as_echo "specified \"no\" on configure line" >&6; } 18276 else 18277 if test "$COB_32_BIT_LONG" = "1"; then 18278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: specified \"yes\" on configure line" >&5 18279$as_echo "specified \"yes\" on configure line" >&6; } 18280 else 18281 COB_32_BIT_LONG=1 18282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assumed - cross-compilation" >&5 18283$as_echo "assumed - cross-compilation" >&6; } 18284 fi 18285 fi 18286 $as_echo "#define COB_32_BIT_LONG \$COB_32_BIT_LONG" >>confdefs.h 18287 18288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot run test program while cross-compiling" >&5 18289$as_echo "$as_me: WARNING: cannot run test program while cross-compiling" >&2;} 18290else 18291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18292/* end confdefs.h. */ 18293 18294int 18295main () 18296{ 18297 18298 if (sizeof (long) == 4) 18299 return 0; 18300 return 1; 18301 18302 ; 18303 return 0; 18304} 18305_ACEOF 18306if ac_fn_c_try_run "$LINENO"; then : 18307 $as_echo "#define COB_32_BIT_LONG 1" >>confdefs.h 18308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18309$as_echo "yes" >&6; } 18310else 18311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18312$as_echo "no" >&6; } 18313fi 18314rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18315 conftest.$ac_objext conftest.beam conftest.$ac_ext 18316fi 18317 18318 18319 18320if test "cross_compiling" != "yes"; then 18321 COB_HAS_64_BIT_POINTER="no" 18322fi 18323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pointer is longer than 32 bits" >&5 18324$as_echo_n "checking if pointer is longer than 32 bits... " >&6; } 18325if test "$cross_compiling" = yes; then : 18326 if test "$COB_HAS_64_BIT_POINTER" = "0"; then 18327 COB_HAS_64_BIT_POINTER="no" 18328 $as_echo "#define COB_64_BIT_POINTER 0" >>confdefs.h 18329 18330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: specified \"no\" on configure line" >&5 18331$as_echo "specified \"no\" on configure line" >&6; } 18332 else 18333 if test "$COB_HAS_64_BIT_POINTER" = "1"; then 18334 COB_HAS_64_BIT_POINTER="yes" 18335 $as_echo "#define COB_64_BIT_POINTER 1" >>confdefs.h 18336 18337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: specified \"yes\" on configure line" >&5 18338$as_echo "specified \"yes\" on configure line" >&6; } 18339 else 18340 COB_HAS_64_BIT_POINTER="no" 18341 $as_echo "#define COB_64_BIT_POINTER 0" >>confdefs.h 18342 18343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assumed \"no\" - cross-compilation" >&5 18344$as_echo "assumed \"no\" - cross-compilation" >&6; } 18345 fi 18346 fi 18347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot run test program while cross-compiling" >&5 18348$as_echo "$as_me: WARNING: cannot run test program while cross-compiling" >&2;} 18349else 18350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18351/* end confdefs.h. */ 18352 18353int 18354main () 18355{ 18356 18357 if (sizeof (void *) > 4U) 18358 return 0; 18359 return 1; 18360 18361 ; 18362 return 0; 18363} 18364_ACEOF 18365if ac_fn_c_try_run "$LINENO"; then : 18366 COB_HAS_64_BIT_POINTER="yes" 18367 $as_echo "#define COB_64_BIT_POINTER 1" >>confdefs.h 18368 18369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18370$as_echo "yes" >&6; } 18371else 18372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18373$as_echo "no" >&6; } 18374fi 18375rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18376 conftest.$ac_objext conftest.beam conftest.$ac_ext 18377fi 18378 18379 18380# Check gcc wrapv option 18381# We likely don't need this and remove it before 3.0 final release 18382#if test "$COB_USES_GCC_NO_ICC" = "yes"; then 18383# curr_cflags="$CFLAGS" 18384# CFLAGS="$CFLAGS -fwrapv" 18385# AC_MSG_CHECKING([for gcc -fwrapv option]) 18386# AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[int testint;]])], 18387# [AC_DEFINE([HAVE_FWRAPV_OPT], [1]) AC_MSG_RESULT([yes])], 18388# [AC_MSG_RESULT([no])]) 18389# [], 18390# [CFLAGS="$curr_cflags"]) 18391# CFLAGS="$curr_cflags" 18392#fi 18393 18394# Check if aligned attribute seems to work 18395# done: does not raise an error 18396# *TODO*: has same output as omitting it) 18397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for aligned attribute" >&5 18398$as_echo_n "checking for aligned attribute... " >&6; } 18399cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18400/* end confdefs.h. */ 18401 18402int 18403main () 18404{ 18405char testchar[4] __attribute__((aligned)); 18406 ; 18407 return 0; 18408} 18409_ACEOF 18410if ac_fn_c_try_compile "$LINENO"; then : 18411 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h 18412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18413$as_echo "yes" >&6; } 18414 18415else 18416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18417$as_echo "no" >&6; } 18418fi 18419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18420 18421# Simon: removed, use --disable-nls instead 18422## Disable for Cygwin 18423#AC_MSG_CHECKING([for __CYGWIN__]) 18424#AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ 18425# #ifndef __CYGWIN__ 18426# # error macro not defined 18427# #endif]])], 18428# [enable_nls=no 18429# AC_MSG_RESULT([yes])], 18430# [AC_MSG_RESULT([no])]) 18431 18432 18433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 18434$as_echo_n "checking whether NLS is requested... " >&6; } 18435 # Check whether --enable-nls was given. 18436if test "${enable_nls+set}" = set; then : 18437 enableval=$enable_nls; USE_NLS=$enableval 18438else 18439 USE_NLS=yes 18440fi 18441 18442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 18443$as_echo "$USE_NLS" >&6; } 18444 18445 18446 18447 18448 GETTEXT_MACRO_VERSION=0.20 18449 18450 18451 18452 18453# Prepare PATH_SEPARATOR. 18454# The user is always right. 18455if test "${PATH_SEPARATOR+set}" != set; then 18456 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 18457 # contains only /bin. Note that ksh looks also at the FPATH variable, 18458 # so we have to set that as well for the test. 18459 PATH_SEPARATOR=: 18460 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 18461 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 18462 || PATH_SEPARATOR=';' 18463 } 18464fi 18465 18466# Find out how to test for executable files. Don't use a zero-byte file, 18467# as systems may use methods other than mode bits to determine executability. 18468cat >conf$$.file <<_ASEOF 18469#! /bin/sh 18470exit 0 18471_ASEOF 18472chmod +x conf$$.file 18473if test -x conf$$.file >/dev/null 2>&1; then 18474 ac_executable_p="test -x" 18475else 18476 ac_executable_p="test -f" 18477fi 18478rm -f conf$$.file 18479 18480# Extract the first word of "msgfmt", so it can be a program name with args. 18481set dummy msgfmt; ac_word=$2 18482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18483$as_echo_n "checking for $ac_word... " >&6; } 18484if ${ac_cv_path_MSGFMT+:} false; then : 18485 $as_echo_n "(cached) " >&6 18486else 18487 case "$MSGFMT" in 18488 [\\/]* | ?:[\\/]*) 18489 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 18490 ;; 18491 *) 18492 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 18493 for ac_dir in $PATH; do 18494 IFS="$ac_save_IFS" 18495 test -z "$ac_dir" && ac_dir=. 18496 for ac_exec_ext in '' $ac_executable_extensions; do 18497 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 18498 echo "$as_me: trying $ac_dir/$ac_word..." >&5 18499 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && 18500 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 18501 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 18502 break 2 18503 fi 18504 fi 18505 done 18506 done 18507 IFS="$ac_save_IFS" 18508 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 18509 ;; 18510esac 18511fi 18512MSGFMT="$ac_cv_path_MSGFMT" 18513if test "$MSGFMT" != ":"; then 18514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 18515$as_echo "$MSGFMT" >&6; } 18516else 18517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18518$as_echo "no" >&6; } 18519fi 18520 18521 # Extract the first word of "gmsgfmt", so it can be a program name with args. 18522set dummy gmsgfmt; ac_word=$2 18523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18524$as_echo_n "checking for $ac_word... " >&6; } 18525if ${ac_cv_path_GMSGFMT+:} false; then : 18526 $as_echo_n "(cached) " >&6 18527else 18528 case $GMSGFMT in 18529 [\\/]* | ?:[\\/]*) 18530 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 18531 ;; 18532 *) 18533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18534for as_dir in $PATH 18535do 18536 IFS=$as_save_IFS 18537 test -z "$as_dir" && as_dir=. 18538 for ac_exec_ext in '' $ac_executable_extensions; do 18539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18540 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 18541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18542 break 2 18543 fi 18544done 18545 done 18546IFS=$as_save_IFS 18547 18548 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 18549 ;; 18550esac 18551fi 18552GMSGFMT=$ac_cv_path_GMSGFMT 18553if test -n "$GMSGFMT"; then 18554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 18555$as_echo "$GMSGFMT" >&6; } 18556else 18557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18558$as_echo "no" >&6; } 18559fi 18560 18561 18562 18563 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 18564 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; 18565 *) GMSGFMT_015=$GMSGFMT ;; 18566 esac 18567 18568 18569 18570# Prepare PATH_SEPARATOR. 18571# The user is always right. 18572if test "${PATH_SEPARATOR+set}" != set; then 18573 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 18574 # contains only /bin. Note that ksh looks also at the FPATH variable, 18575 # so we have to set that as well for the test. 18576 PATH_SEPARATOR=: 18577 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 18578 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 18579 || PATH_SEPARATOR=';' 18580 } 18581fi 18582 18583# Find out how to test for executable files. Don't use a zero-byte file, 18584# as systems may use methods other than mode bits to determine executability. 18585cat >conf$$.file <<_ASEOF 18586#! /bin/sh 18587exit 0 18588_ASEOF 18589chmod +x conf$$.file 18590if test -x conf$$.file >/dev/null 2>&1; then 18591 ac_executable_p="test -x" 18592else 18593 ac_executable_p="test -f" 18594fi 18595rm -f conf$$.file 18596 18597# Extract the first word of "xgettext", so it can be a program name with args. 18598set dummy xgettext; ac_word=$2 18599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18600$as_echo_n "checking for $ac_word... " >&6; } 18601if ${ac_cv_path_XGETTEXT+:} false; then : 18602 $as_echo_n "(cached) " >&6 18603else 18604 case "$XGETTEXT" in 18605 [\\/]* | ?:[\\/]*) 18606 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 18607 ;; 18608 *) 18609 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 18610 for ac_dir in $PATH; do 18611 IFS="$ac_save_IFS" 18612 test -z "$ac_dir" && ac_dir=. 18613 for ac_exec_ext in '' $ac_executable_extensions; do 18614 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 18615 echo "$as_me: trying $ac_dir/$ac_word..." >&5 18616 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && 18617 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 18618 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 18619 break 2 18620 fi 18621 fi 18622 done 18623 done 18624 IFS="$ac_save_IFS" 18625 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 18626 ;; 18627esac 18628fi 18629XGETTEXT="$ac_cv_path_XGETTEXT" 18630if test "$XGETTEXT" != ":"; then 18631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 18632$as_echo "$XGETTEXT" >&6; } 18633else 18634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18635$as_echo "no" >&6; } 18636fi 18637 18638 rm -f messages.po 18639 18640 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 18641 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; 18642 *) XGETTEXT_015=$XGETTEXT ;; 18643 esac 18644 18645 18646 18647# Prepare PATH_SEPARATOR. 18648# The user is always right. 18649if test "${PATH_SEPARATOR+set}" != set; then 18650 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 18651 # contains only /bin. Note that ksh looks also at the FPATH variable, 18652 # so we have to set that as well for the test. 18653 PATH_SEPARATOR=: 18654 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 18655 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 18656 || PATH_SEPARATOR=';' 18657 } 18658fi 18659 18660# Find out how to test for executable files. Don't use a zero-byte file, 18661# as systems may use methods other than mode bits to determine executability. 18662cat >conf$$.file <<_ASEOF 18663#! /bin/sh 18664exit 0 18665_ASEOF 18666chmod +x conf$$.file 18667if test -x conf$$.file >/dev/null 2>&1; then 18668 ac_executable_p="test -x" 18669else 18670 ac_executable_p="test -f" 18671fi 18672rm -f conf$$.file 18673 18674# Extract the first word of "msgmerge", so it can be a program name with args. 18675set dummy msgmerge; ac_word=$2 18676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18677$as_echo_n "checking for $ac_word... " >&6; } 18678if ${ac_cv_path_MSGMERGE+:} false; then : 18679 $as_echo_n "(cached) " >&6 18680else 18681 case "$MSGMERGE" in 18682 [\\/]* | ?:[\\/]*) 18683 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 18684 ;; 18685 *) 18686 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 18687 for ac_dir in $PATH; do 18688 IFS="$ac_save_IFS" 18689 test -z "$ac_dir" && ac_dir=. 18690 for ac_exec_ext in '' $ac_executable_extensions; do 18691 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 18692 echo "$as_me: trying $ac_dir/$ac_word..." >&5 18693 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then 18694 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 18695 break 2 18696 fi 18697 fi 18698 done 18699 done 18700 IFS="$ac_save_IFS" 18701 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 18702 ;; 18703esac 18704fi 18705MSGMERGE="$ac_cv_path_MSGMERGE" 18706if test "$MSGMERGE" != ":"; then 18707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 18708$as_echo "$MSGMERGE" >&6; } 18709else 18710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18711$as_echo "no" >&6; } 18712fi 18713 18714 18715 if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then 18716 MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt' 18717 else 18718 if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then 18719 MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet' 18720 else 18721 MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet' 18722 fi 18723 fi 18724 18725 18726 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= 18727 18728 18729 ac_config_commands="$ac_config_commands po-directories" 18730 18731 18732 18733 if test "X$prefix" = "XNONE"; then 18734 acl_final_prefix="$ac_default_prefix" 18735 else 18736 acl_final_prefix="$prefix" 18737 fi 18738 if test "X$exec_prefix" = "XNONE"; then 18739 acl_final_exec_prefix='${prefix}' 18740 else 18741 acl_final_exec_prefix="$exec_prefix" 18742 fi 18743 acl_save_prefix="$prefix" 18744 prefix="$acl_final_prefix" 18745 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 18746 prefix="$acl_save_prefix" 18747 18748 18749 18750 acl_libdirstem=lib 18751 acl_libdirstem2= 18752 case "$host_os" in 18753 solaris*) 18754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 18755$as_echo_n "checking for 64-bit host... " >&6; } 18756if ${gl_cv_solaris_64bit+:} false; then : 18757 $as_echo_n "(cached) " >&6 18758else 18759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18760/* end confdefs.h. */ 18761 18762#ifdef _LP64 18763sixtyfour bits 18764#endif 18765 18766_ACEOF 18767if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18768 $EGREP "sixtyfour bits" >/dev/null 2>&1; then : 18769 gl_cv_solaris_64bit=yes 18770else 18771 gl_cv_solaris_64bit=no 18772fi 18773rm -f conftest* 18774 18775 18776fi 18777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 18778$as_echo "$gl_cv_solaris_64bit" >&6; } 18779 if test $gl_cv_solaris_64bit = yes; then 18780 acl_libdirstem=lib/64 18781 case "$host_cpu" in 18782 sparc*) acl_libdirstem2=lib/sparcv9 ;; 18783 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; 18784 esac 18785 fi 18786 ;; 18787 *) 18788 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 18789 if test -n "$searchpath"; then 18790 acl_save_IFS="${IFS= }"; IFS=":" 18791 for searchdir in $searchpath; do 18792 if test -d "$searchdir"; then 18793 case "$searchdir" in 18794 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 18795 */../ | */.. ) 18796 # Better ignore directories of this form. They are misleading. 18797 ;; 18798 *) searchdir=`cd "$searchdir" && pwd` 18799 case "$searchdir" in 18800 */lib64 ) acl_libdirstem=lib64 ;; 18801 esac ;; 18802 esac 18803 fi 18804 done 18805 IFS="$acl_save_IFS" 18806 fi 18807 ;; 18808 esac 18809 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" 18810 18811 18812 18813 18814 18815 18816 18817 18818 18819 18820 18821 18822 use_additional=yes 18823 18824 acl_save_prefix="$prefix" 18825 prefix="$acl_final_prefix" 18826 acl_save_exec_prefix="$exec_prefix" 18827 exec_prefix="$acl_final_exec_prefix" 18828 18829 eval additional_includedir=\"$includedir\" 18830 eval additional_libdir=\"$libdir\" 18831 18832 exec_prefix="$acl_save_exec_prefix" 18833 prefix="$acl_save_prefix" 18834 18835 18836# Check whether --with-libiconv-prefix was given. 18837if test "${with_libiconv_prefix+set}" = set; then : 18838 withval=$with_libiconv_prefix; 18839 if test "X$withval" = "Xno"; then 18840 use_additional=no 18841 else 18842 if test "X$withval" = "X"; then 18843 18844 acl_save_prefix="$prefix" 18845 prefix="$acl_final_prefix" 18846 acl_save_exec_prefix="$exec_prefix" 18847 exec_prefix="$acl_final_exec_prefix" 18848 18849 eval additional_includedir=\"$includedir\" 18850 eval additional_libdir=\"$libdir\" 18851 18852 exec_prefix="$acl_save_exec_prefix" 18853 prefix="$acl_save_prefix" 18854 18855 else 18856 additional_includedir="$withval/include" 18857 additional_libdir="$withval/$acl_libdirstem" 18858 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 18859 && ! test -d "$withval/$acl_libdirstem"; then 18860 additional_libdir="$withval/$acl_libdirstem2" 18861 fi 18862 fi 18863 fi 18864 18865fi 18866 18867 LIBICONV= 18868 LTLIBICONV= 18869 INCICONV= 18870 LIBICONV_PREFIX= 18871 HAVE_LIBICONV= 18872 rpathdirs= 18873 ltrpathdirs= 18874 names_already_handled= 18875 names_next_round='iconv ' 18876 while test -n "$names_next_round"; do 18877 names_this_round="$names_next_round" 18878 names_next_round= 18879 for name in $names_this_round; do 18880 already_handled= 18881 for n in $names_already_handled; do 18882 if test "$n" = "$name"; then 18883 already_handled=yes 18884 break 18885 fi 18886 done 18887 if test -z "$already_handled"; then 18888 names_already_handled="$names_already_handled $name" 18889 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 18890 eval value=\"\$HAVE_LIB$uppername\" 18891 if test -n "$value"; then 18892 if test "$value" = yes; then 18893 eval value=\"\$LIB$uppername\" 18894 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 18895 eval value=\"\$LTLIB$uppername\" 18896 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 18897 else 18898 : 18899 fi 18900 else 18901 found_dir= 18902 found_la= 18903 found_so= 18904 found_a= 18905 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 18906 if test -n "$acl_shlibext"; then 18907 shrext=".$acl_shlibext" # typically: shrext=.so 18908 else 18909 shrext= 18910 fi 18911 if test $use_additional = yes; then 18912 dir="$additional_libdir" 18913 if test -n "$acl_shlibext"; then 18914 if test -f "$dir/$libname$shrext"; then 18915 found_dir="$dir" 18916 found_so="$dir/$libname$shrext" 18917 else 18918 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 18919 ver=`(cd "$dir" && \ 18920 for f in "$libname$shrext".*; do echo "$f"; done \ 18921 | sed -e "s,^$libname$shrext\\\\.,," \ 18922 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 18923 | sed 1q ) 2>/dev/null` 18924 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 18925 found_dir="$dir" 18926 found_so="$dir/$libname$shrext.$ver" 18927 fi 18928 else 18929 eval library_names=\"$acl_library_names_spec\" 18930 for f in $library_names; do 18931 if test -f "$dir/$f"; then 18932 found_dir="$dir" 18933 found_so="$dir/$f" 18934 break 18935 fi 18936 done 18937 fi 18938 fi 18939 fi 18940 if test "X$found_dir" = "X"; then 18941 if test -f "$dir/$libname.$acl_libext"; then 18942 found_dir="$dir" 18943 found_a="$dir/$libname.$acl_libext" 18944 fi 18945 fi 18946 if test "X$found_dir" != "X"; then 18947 if test -f "$dir/$libname.la"; then 18948 found_la="$dir/$libname.la" 18949 fi 18950 fi 18951 fi 18952 if test "X$found_dir" = "X"; then 18953 for x in $LDFLAGS $LTLIBICONV; do 18954 18955 acl_save_prefix="$prefix" 18956 prefix="$acl_final_prefix" 18957 acl_save_exec_prefix="$exec_prefix" 18958 exec_prefix="$acl_final_exec_prefix" 18959 eval x=\"$x\" 18960 exec_prefix="$acl_save_exec_prefix" 18961 prefix="$acl_save_prefix" 18962 18963 case "$x" in 18964 -L*) 18965 dir=`echo "X$x" | sed -e 's/^X-L//'` 18966 if test -n "$acl_shlibext"; then 18967 if test -f "$dir/$libname$shrext"; then 18968 found_dir="$dir" 18969 found_so="$dir/$libname$shrext" 18970 else 18971 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 18972 ver=`(cd "$dir" && \ 18973 for f in "$libname$shrext".*; do echo "$f"; done \ 18974 | sed -e "s,^$libname$shrext\\\\.,," \ 18975 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 18976 | sed 1q ) 2>/dev/null` 18977 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 18978 found_dir="$dir" 18979 found_so="$dir/$libname$shrext.$ver" 18980 fi 18981 else 18982 eval library_names=\"$acl_library_names_spec\" 18983 for f in $library_names; do 18984 if test -f "$dir/$f"; then 18985 found_dir="$dir" 18986 found_so="$dir/$f" 18987 break 18988 fi 18989 done 18990 fi 18991 fi 18992 fi 18993 if test "X$found_dir" = "X"; then 18994 if test -f "$dir/$libname.$acl_libext"; then 18995 found_dir="$dir" 18996 found_a="$dir/$libname.$acl_libext" 18997 fi 18998 fi 18999 if test "X$found_dir" != "X"; then 19000 if test -f "$dir/$libname.la"; then 19001 found_la="$dir/$libname.la" 19002 fi 19003 fi 19004 ;; 19005 esac 19006 if test "X$found_dir" != "X"; then 19007 break 19008 fi 19009 done 19010 fi 19011 if test "X$found_dir" != "X"; then 19012 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 19013 if test "X$found_so" != "X"; then 19014 if test "$enable_rpath" = no \ 19015 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 19016 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 19017 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 19018 else 19019 haveit= 19020 for x in $ltrpathdirs; do 19021 if test "X$x" = "X$found_dir"; then 19022 haveit=yes 19023 break 19024 fi 19025 done 19026 if test -z "$haveit"; then 19027 ltrpathdirs="$ltrpathdirs $found_dir" 19028 fi 19029 if test "$acl_hardcode_direct" = yes; then 19030 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 19031 else 19032 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 19033 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 19034 haveit= 19035 for x in $rpathdirs; do 19036 if test "X$x" = "X$found_dir"; then 19037 haveit=yes 19038 break 19039 fi 19040 done 19041 if test -z "$haveit"; then 19042 rpathdirs="$rpathdirs $found_dir" 19043 fi 19044 else 19045 haveit= 19046 for x in $LDFLAGS $LIBICONV; do 19047 19048 acl_save_prefix="$prefix" 19049 prefix="$acl_final_prefix" 19050 acl_save_exec_prefix="$exec_prefix" 19051 exec_prefix="$acl_final_exec_prefix" 19052 eval x=\"$x\" 19053 exec_prefix="$acl_save_exec_prefix" 19054 prefix="$acl_save_prefix" 19055 19056 if test "X$x" = "X-L$found_dir"; then 19057 haveit=yes 19058 break 19059 fi 19060 done 19061 if test -z "$haveit"; then 19062 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 19063 fi 19064 if test "$acl_hardcode_minus_L" != no; then 19065 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 19066 else 19067 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 19068 fi 19069 fi 19070 fi 19071 fi 19072 else 19073 if test "X$found_a" != "X"; then 19074 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 19075 else 19076 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 19077 fi 19078 fi 19079 additional_includedir= 19080 case "$found_dir" in 19081 */$acl_libdirstem | */$acl_libdirstem/) 19082 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 19083 if test "$name" = 'iconv'; then 19084 LIBICONV_PREFIX="$basedir" 19085 fi 19086 additional_includedir="$basedir/include" 19087 ;; 19088 */$acl_libdirstem2 | */$acl_libdirstem2/) 19089 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 19090 if test "$name" = 'iconv'; then 19091 LIBICONV_PREFIX="$basedir" 19092 fi 19093 additional_includedir="$basedir/include" 19094 ;; 19095 esac 19096 if test "X$additional_includedir" != "X"; then 19097 if test "X$additional_includedir" != "X/usr/include"; then 19098 haveit= 19099 if test "X$additional_includedir" = "X/usr/local/include"; then 19100 if test -n "$GCC"; then 19101 case $host_os in 19102 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 19103 esac 19104 fi 19105 fi 19106 if test -z "$haveit"; then 19107 for x in $CPPFLAGS $INCICONV; do 19108 19109 acl_save_prefix="$prefix" 19110 prefix="$acl_final_prefix" 19111 acl_save_exec_prefix="$exec_prefix" 19112 exec_prefix="$acl_final_exec_prefix" 19113 eval x=\"$x\" 19114 exec_prefix="$acl_save_exec_prefix" 19115 prefix="$acl_save_prefix" 19116 19117 if test "X$x" = "X-I$additional_includedir"; then 19118 haveit=yes 19119 break 19120 fi 19121 done 19122 if test -z "$haveit"; then 19123 if test -d "$additional_includedir"; then 19124 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 19125 fi 19126 fi 19127 fi 19128 fi 19129 fi 19130 if test -n "$found_la"; then 19131 save_libdir="$libdir" 19132 case "$found_la" in 19133 */* | *\\*) . "$found_la" ;; 19134 *) . "./$found_la" ;; 19135 esac 19136 libdir="$save_libdir" 19137 for dep in $dependency_libs; do 19138 case "$dep" in 19139 -L*) 19140 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 19141 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 19142 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 19143 haveit= 19144 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 19145 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 19146 if test -n "$GCC"; then 19147 case $host_os in 19148 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 19149 esac 19150 fi 19151 fi 19152 if test -z "$haveit"; then 19153 haveit= 19154 for x in $LDFLAGS $LIBICONV; do 19155 19156 acl_save_prefix="$prefix" 19157 prefix="$acl_final_prefix" 19158 acl_save_exec_prefix="$exec_prefix" 19159 exec_prefix="$acl_final_exec_prefix" 19160 eval x=\"$x\" 19161 exec_prefix="$acl_save_exec_prefix" 19162 prefix="$acl_save_prefix" 19163 19164 if test "X$x" = "X-L$additional_libdir"; then 19165 haveit=yes 19166 break 19167 fi 19168 done 19169 if test -z "$haveit"; then 19170 if test -d "$additional_libdir"; then 19171 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 19172 fi 19173 fi 19174 haveit= 19175 for x in $LDFLAGS $LTLIBICONV; do 19176 19177 acl_save_prefix="$prefix" 19178 prefix="$acl_final_prefix" 19179 acl_save_exec_prefix="$exec_prefix" 19180 exec_prefix="$acl_final_exec_prefix" 19181 eval x=\"$x\" 19182 exec_prefix="$acl_save_exec_prefix" 19183 prefix="$acl_save_prefix" 19184 19185 if test "X$x" = "X-L$additional_libdir"; then 19186 haveit=yes 19187 break 19188 fi 19189 done 19190 if test -z "$haveit"; then 19191 if test -d "$additional_libdir"; then 19192 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 19193 fi 19194 fi 19195 fi 19196 fi 19197 ;; 19198 -R*) 19199 dir=`echo "X$dep" | sed -e 's/^X-R//'` 19200 if test "$enable_rpath" != no; then 19201 haveit= 19202 for x in $rpathdirs; do 19203 if test "X$x" = "X$dir"; then 19204 haveit=yes 19205 break 19206 fi 19207 done 19208 if test -z "$haveit"; then 19209 rpathdirs="$rpathdirs $dir" 19210 fi 19211 haveit= 19212 for x in $ltrpathdirs; do 19213 if test "X$x" = "X$dir"; then 19214 haveit=yes 19215 break 19216 fi 19217 done 19218 if test -z "$haveit"; then 19219 ltrpathdirs="$ltrpathdirs $dir" 19220 fi 19221 fi 19222 ;; 19223 -l*) 19224 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 19225 ;; 19226 *.la) 19227 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 19228 ;; 19229 *) 19230 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 19231 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 19232 ;; 19233 esac 19234 done 19235 fi 19236 else 19237 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 19238 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 19239 fi 19240 fi 19241 fi 19242 done 19243 done 19244 if test "X$rpathdirs" != "X"; then 19245 if test -n "$acl_hardcode_libdir_separator"; then 19246 alldirs= 19247 for found_dir in $rpathdirs; do 19248 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 19249 done 19250 acl_save_libdir="$libdir" 19251 libdir="$alldirs" 19252 eval flag=\"$acl_hardcode_libdir_flag_spec\" 19253 libdir="$acl_save_libdir" 19254 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 19255 else 19256 for found_dir in $rpathdirs; do 19257 acl_save_libdir="$libdir" 19258 libdir="$found_dir" 19259 eval flag=\"$acl_hardcode_libdir_flag_spec\" 19260 libdir="$acl_save_libdir" 19261 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 19262 done 19263 fi 19264 fi 19265 if test "X$ltrpathdirs" != "X"; then 19266 for found_dir in $ltrpathdirs; do 19267 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-Wl,-rpath,$found_dir" 19268 done 19269 fi 19270 19271 19272 19273 19274 19275 19276 19277 19278 19279 19280 19281 19282 19283 19284 19285 19286 19287 19288 19289 19290 19291 19292 19293 19294 19295 19296 19297 19298 19299 19300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 19301$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } 19302if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : 19303 $as_echo_n "(cached) " >&6 19304else 19305 gt_save_LIBS="$LIBS" 19306 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 19307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19308/* end confdefs.h. */ 19309#include <CoreFoundation/CFPreferences.h> 19310int 19311main () 19312{ 19313CFPreferencesCopyAppValue(NULL, NULL) 19314 ; 19315 return 0; 19316} 19317_ACEOF 19318if ac_fn_c_try_link "$LINENO"; then : 19319 gt_cv_func_CFPreferencesCopyAppValue=yes 19320else 19321 gt_cv_func_CFPreferencesCopyAppValue=no 19322fi 19323rm -f core conftest.err conftest.$ac_objext \ 19324 conftest$ac_exeext conftest.$ac_ext 19325 LIBS="$gt_save_LIBS" 19326fi 19327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 19328$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 19329 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 19330 19331$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h 19332 19333 fi 19334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5 19335$as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; } 19336if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then : 19337 $as_echo_n "(cached) " >&6 19338else 19339 gt_save_LIBS="$LIBS" 19340 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 19341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19342/* end confdefs.h. */ 19343#include <CoreFoundation/CFLocale.h> 19344int 19345main () 19346{ 19347CFLocaleCopyPreferredLanguages(); 19348 ; 19349 return 0; 19350} 19351_ACEOF 19352if ac_fn_c_try_link "$LINENO"; then : 19353 gt_cv_func_CFLocaleCopyPreferredLanguages=yes 19354else 19355 gt_cv_func_CFLocaleCopyPreferredLanguages=no 19356fi 19357rm -f core conftest.err conftest.$ac_objext \ 19358 conftest$ac_exeext conftest.$ac_ext 19359 LIBS="$gt_save_LIBS" 19360fi 19361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5 19362$as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; } 19363 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then 19364 19365$as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h 19366 19367 fi 19368 INTL_MACOSX_LIBS= 19369 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \ 19370 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then 19371 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 19372 fi 19373 19374 19375 19376 19377 19378 19379 LIBINTL= 19380 LTLIBINTL= 19381 POSUB= 19382 19383 case " $gt_needs " in 19384 *" need-formatstring-macros "*) gt_api_version=3 ;; 19385 *" need-ngettext "*) gt_api_version=2 ;; 19386 *) gt_api_version=1 ;; 19387 esac 19388 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" 19389 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" 19390 19391 if test "$USE_NLS" = "yes"; then 19392 gt_use_preinstalled_gnugettext=no 19393 19394 19395 if test $gt_api_version -ge 3; then 19396 gt_revision_test_code=' 19397#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 19398#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 19399#endif 19400typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 19401' 19402 else 19403 gt_revision_test_code= 19404 fi 19405 if test $gt_api_version -ge 2; then 19406 gt_expression_test_code=' + * ngettext ("", "", 0)' 19407 else 19408 gt_expression_test_code= 19409 fi 19410 19411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 19412$as_echo_n "checking for GNU gettext in libc... " >&6; } 19413if eval \${$gt_func_gnugettext_libc+:} false; then : 19414 $as_echo_n "(cached) " >&6 19415else 19416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19417/* end confdefs.h. */ 19418 19419#include <libintl.h> 19420#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 19421extern int _nl_msg_cat_cntr; 19422extern int *_nl_domain_bindings; 19423#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings) 19424#else 19425#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 19426#endif 19427$gt_revision_test_code 19428 19429int 19430main () 19431{ 19432 19433bindtextdomain ("", ""); 19434return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 19435 19436 ; 19437 return 0; 19438} 19439_ACEOF 19440if ac_fn_c_try_link "$LINENO"; then : 19441 eval "$gt_func_gnugettext_libc=yes" 19442else 19443 eval "$gt_func_gnugettext_libc=no" 19444fi 19445rm -f core conftest.err conftest.$ac_objext \ 19446 conftest$ac_exeext conftest.$ac_ext 19447fi 19448eval ac_res=\$$gt_func_gnugettext_libc 19449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19450$as_echo "$ac_res" >&6; } 19451 19452 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 19453 19454 19455 19456 19457 19458 am_save_CPPFLAGS="$CPPFLAGS" 19459 19460 for element in $INCICONV; do 19461 haveit= 19462 for x in $CPPFLAGS; do 19463 19464 acl_save_prefix="$prefix" 19465 prefix="$acl_final_prefix" 19466 acl_save_exec_prefix="$exec_prefix" 19467 exec_prefix="$acl_final_exec_prefix" 19468 eval x=\"$x\" 19469 exec_prefix="$acl_save_exec_prefix" 19470 prefix="$acl_save_prefix" 19471 19472 if test "X$x" = "X$element"; then 19473 haveit=yes 19474 break 19475 fi 19476 done 19477 if test -z "$haveit"; then 19478 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 19479 fi 19480 done 19481 19482 19483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 19484$as_echo_n "checking for iconv... " >&6; } 19485if ${am_cv_func_iconv+:} false; then : 19486 $as_echo_n "(cached) " >&6 19487else 19488 19489 am_cv_func_iconv="no, consider installing GNU libiconv" 19490 am_cv_lib_iconv=no 19491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19492/* end confdefs.h. */ 19493 19494#include <stdlib.h> 19495#include <iconv.h> 19496 19497int 19498main () 19499{ 19500iconv_t cd = iconv_open("",""); 19501 iconv(cd,NULL,NULL,NULL,NULL); 19502 iconv_close(cd); 19503 ; 19504 return 0; 19505} 19506_ACEOF 19507if ac_fn_c_try_link "$LINENO"; then : 19508 am_cv_func_iconv=yes 19509fi 19510rm -f core conftest.err conftest.$ac_objext \ 19511 conftest$ac_exeext conftest.$ac_ext 19512 if test "$am_cv_func_iconv" != yes; then 19513 am_save_LIBS="$LIBS" 19514 LIBS="$LIBS $LIBICONV" 19515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19516/* end confdefs.h. */ 19517 19518#include <stdlib.h> 19519#include <iconv.h> 19520 19521int 19522main () 19523{ 19524iconv_t cd = iconv_open("",""); 19525 iconv(cd,NULL,NULL,NULL,NULL); 19526 iconv_close(cd); 19527 ; 19528 return 0; 19529} 19530_ACEOF 19531if ac_fn_c_try_link "$LINENO"; then : 19532 am_cv_lib_iconv=yes 19533 am_cv_func_iconv=yes 19534fi 19535rm -f core conftest.err conftest.$ac_objext \ 19536 conftest$ac_exeext conftest.$ac_ext 19537 LIBS="$am_save_LIBS" 19538 fi 19539 19540fi 19541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 19542$as_echo "$am_cv_func_iconv" >&6; } 19543 if test "$am_cv_func_iconv" = yes; then 19544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 19545$as_echo_n "checking for working iconv... " >&6; } 19546if ${am_cv_func_iconv_works+:} false; then : 19547 $as_echo_n "(cached) " >&6 19548else 19549 19550 am_save_LIBS="$LIBS" 19551 if test $am_cv_lib_iconv = yes; then 19552 LIBS="$LIBS $LIBICONV" 19553 fi 19554 am_cv_func_iconv_works=no 19555 for ac_iconv_const in '' 'const'; do 19556 if test "$cross_compiling" = yes; then : 19557 case "$host_os" in 19558 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 19559 *) am_cv_func_iconv_works="guessing yes" ;; 19560 esac 19561else 19562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19563/* end confdefs.h. */ 19564 19565#include <iconv.h> 19566#include <string.h> 19567 19568#ifndef ICONV_CONST 19569# define ICONV_CONST $ac_iconv_const 19570#endif 19571 19572int 19573main () 19574{ 19575int result = 0; 19576 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful 19577 returns. */ 19578 { 19579 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 19580 if (cd_utf8_to_88591 != (iconv_t)(-1)) 19581 { 19582 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */ 19583 char buf[10]; 19584 ICONV_CONST char *inptr = input; 19585 size_t inbytesleft = strlen (input); 19586 char *outptr = buf; 19587 size_t outbytesleft = sizeof (buf); 19588 size_t res = iconv (cd_utf8_to_88591, 19589 &inptr, &inbytesleft, 19590 &outptr, &outbytesleft); 19591 if (res == 0) 19592 result |= 1; 19593 iconv_close (cd_utf8_to_88591); 19594 } 19595 } 19596 /* Test against Solaris 10 bug: Failures are not distinguishable from 19597 successful returns. */ 19598 { 19599 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 19600 if (cd_ascii_to_88591 != (iconv_t)(-1)) 19601 { 19602 static ICONV_CONST char input[] = "\263"; 19603 char buf[10]; 19604 ICONV_CONST char *inptr = input; 19605 size_t inbytesleft = strlen (input); 19606 char *outptr = buf; 19607 size_t outbytesleft = sizeof (buf); 19608 size_t res = iconv (cd_ascii_to_88591, 19609 &inptr, &inbytesleft, 19610 &outptr, &outbytesleft); 19611 if (res == 0) 19612 result |= 2; 19613 iconv_close (cd_ascii_to_88591); 19614 } 19615 } 19616 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ 19617 { 19618 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); 19619 if (cd_88591_to_utf8 != (iconv_t)(-1)) 19620 { 19621 static ICONV_CONST char input[] = "\304"; 19622 static char buf[2] = { (char)0xDE, (char)0xAD }; 19623 ICONV_CONST char *inptr = input; 19624 size_t inbytesleft = 1; 19625 char *outptr = buf; 19626 size_t outbytesleft = 1; 19627 size_t res = iconv (cd_88591_to_utf8, 19628 &inptr, &inbytesleft, 19629 &outptr, &outbytesleft); 19630 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) 19631 result |= 4; 19632 iconv_close (cd_88591_to_utf8); 19633 } 19634 } 19635#if 0 /* This bug could be worked around by the caller. */ 19636 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 19637 { 19638 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 19639 if (cd_88591_to_utf8 != (iconv_t)(-1)) 19640 { 19641 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 19642 char buf[50]; 19643 ICONV_CONST char *inptr = input; 19644 size_t inbytesleft = strlen (input); 19645 char *outptr = buf; 19646 size_t outbytesleft = sizeof (buf); 19647 size_t res = iconv (cd_88591_to_utf8, 19648 &inptr, &inbytesleft, 19649 &outptr, &outbytesleft); 19650 if ((int)res > 0) 19651 result |= 8; 19652 iconv_close (cd_88591_to_utf8); 19653 } 19654 } 19655#endif 19656 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 19657 provided. */ 19658 { 19659 /* Try standardized names. */ 19660 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP"); 19661 /* Try IRIX, OSF/1 names. */ 19662 iconv_t cd2 = iconv_open ("UTF-8", "eucJP"); 19663 /* Try AIX names. */ 19664 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP"); 19665 /* Try HP-UX names. */ 19666 iconv_t cd4 = iconv_open ("utf8", "eucJP"); 19667 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1) 19668 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1)) 19669 result |= 16; 19670 if (cd1 != (iconv_t)(-1)) 19671 iconv_close (cd1); 19672 if (cd2 != (iconv_t)(-1)) 19673 iconv_close (cd2); 19674 if (cd3 != (iconv_t)(-1)) 19675 iconv_close (cd3); 19676 if (cd4 != (iconv_t)(-1)) 19677 iconv_close (cd4); 19678 } 19679 return result; 19680 19681 ; 19682 return 0; 19683} 19684_ACEOF 19685if ac_fn_c_try_run "$LINENO"; then : 19686 am_cv_func_iconv_works=yes 19687fi 19688rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19689 conftest.$ac_objext conftest.beam conftest.$ac_ext 19690fi 19691 19692 test "$am_cv_func_iconv_works" = no || break 19693 done 19694 LIBS="$am_save_LIBS" 19695 19696fi 19697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 19698$as_echo "$am_cv_func_iconv_works" >&6; } 19699 case "$am_cv_func_iconv_works" in 19700 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 19701 *) am_func_iconv=yes ;; 19702 esac 19703 else 19704 am_func_iconv=no am_cv_lib_iconv=no 19705 fi 19706 if test "$am_func_iconv" = yes; then 19707 19708$as_echo "#define HAVE_ICONV 1" >>confdefs.h 19709 19710 fi 19711 if test "$am_cv_lib_iconv" = yes; then 19712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 19713$as_echo_n "checking how to link with libiconv... " >&6; } 19714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 19715$as_echo "$LIBICONV" >&6; } 19716 else 19717 CPPFLAGS="$am_save_CPPFLAGS" 19718 LIBICONV= 19719 LTLIBICONV= 19720 fi 19721 19722 19723 19724 19725 19726 19727 19728 19729 19730 19731 19732 use_additional=yes 19733 19734 acl_save_prefix="$prefix" 19735 prefix="$acl_final_prefix" 19736 acl_save_exec_prefix="$exec_prefix" 19737 exec_prefix="$acl_final_exec_prefix" 19738 19739 eval additional_includedir=\"$includedir\" 19740 eval additional_libdir=\"$libdir\" 19741 19742 exec_prefix="$acl_save_exec_prefix" 19743 prefix="$acl_save_prefix" 19744 19745 19746# Check whether --with-libintl-prefix was given. 19747if test "${with_libintl_prefix+set}" = set; then : 19748 withval=$with_libintl_prefix; 19749 if test "X$withval" = "Xno"; then 19750 use_additional=no 19751 else 19752 if test "X$withval" = "X"; then 19753 19754 acl_save_prefix="$prefix" 19755 prefix="$acl_final_prefix" 19756 acl_save_exec_prefix="$exec_prefix" 19757 exec_prefix="$acl_final_exec_prefix" 19758 19759 eval additional_includedir=\"$includedir\" 19760 eval additional_libdir=\"$libdir\" 19761 19762 exec_prefix="$acl_save_exec_prefix" 19763 prefix="$acl_save_prefix" 19764 19765 else 19766 additional_includedir="$withval/include" 19767 additional_libdir="$withval/$acl_libdirstem" 19768 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 19769 && ! test -d "$withval/$acl_libdirstem"; then 19770 additional_libdir="$withval/$acl_libdirstem2" 19771 fi 19772 fi 19773 fi 19774 19775fi 19776 19777 LIBINTL= 19778 LTLIBINTL= 19779 INCINTL= 19780 LIBINTL_PREFIX= 19781 HAVE_LIBINTL= 19782 rpathdirs= 19783 ltrpathdirs= 19784 names_already_handled= 19785 names_next_round='intl ' 19786 while test -n "$names_next_round"; do 19787 names_this_round="$names_next_round" 19788 names_next_round= 19789 for name in $names_this_round; do 19790 already_handled= 19791 for n in $names_already_handled; do 19792 if test "$n" = "$name"; then 19793 already_handled=yes 19794 break 19795 fi 19796 done 19797 if test -z "$already_handled"; then 19798 names_already_handled="$names_already_handled $name" 19799 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 19800 eval value=\"\$HAVE_LIB$uppername\" 19801 if test -n "$value"; then 19802 if test "$value" = yes; then 19803 eval value=\"\$LIB$uppername\" 19804 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 19805 eval value=\"\$LTLIB$uppername\" 19806 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 19807 else 19808 : 19809 fi 19810 else 19811 found_dir= 19812 found_la= 19813 found_so= 19814 found_a= 19815 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 19816 if test -n "$acl_shlibext"; then 19817 shrext=".$acl_shlibext" # typically: shrext=.so 19818 else 19819 shrext= 19820 fi 19821 if test $use_additional = yes; then 19822 dir="$additional_libdir" 19823 if test -n "$acl_shlibext"; then 19824 if test -f "$dir/$libname$shrext"; then 19825 found_dir="$dir" 19826 found_so="$dir/$libname$shrext" 19827 else 19828 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 19829 ver=`(cd "$dir" && \ 19830 for f in "$libname$shrext".*; do echo "$f"; done \ 19831 | sed -e "s,^$libname$shrext\\\\.,," \ 19832 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 19833 | sed 1q ) 2>/dev/null` 19834 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 19835 found_dir="$dir" 19836 found_so="$dir/$libname$shrext.$ver" 19837 fi 19838 else 19839 eval library_names=\"$acl_library_names_spec\" 19840 for f in $library_names; do 19841 if test -f "$dir/$f"; then 19842 found_dir="$dir" 19843 found_so="$dir/$f" 19844 break 19845 fi 19846 done 19847 fi 19848 fi 19849 fi 19850 if test "X$found_dir" = "X"; then 19851 if test -f "$dir/$libname.$acl_libext"; then 19852 found_dir="$dir" 19853 found_a="$dir/$libname.$acl_libext" 19854 fi 19855 fi 19856 if test "X$found_dir" != "X"; then 19857 if test -f "$dir/$libname.la"; then 19858 found_la="$dir/$libname.la" 19859 fi 19860 fi 19861 fi 19862 if test "X$found_dir" = "X"; then 19863 for x in $LDFLAGS $LTLIBINTL; do 19864 19865 acl_save_prefix="$prefix" 19866 prefix="$acl_final_prefix" 19867 acl_save_exec_prefix="$exec_prefix" 19868 exec_prefix="$acl_final_exec_prefix" 19869 eval x=\"$x\" 19870 exec_prefix="$acl_save_exec_prefix" 19871 prefix="$acl_save_prefix" 19872 19873 case "$x" in 19874 -L*) 19875 dir=`echo "X$x" | sed -e 's/^X-L//'` 19876 if test -n "$acl_shlibext"; then 19877 if test -f "$dir/$libname$shrext"; then 19878 found_dir="$dir" 19879 found_so="$dir/$libname$shrext" 19880 else 19881 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 19882 ver=`(cd "$dir" && \ 19883 for f in "$libname$shrext".*; do echo "$f"; done \ 19884 | sed -e "s,^$libname$shrext\\\\.,," \ 19885 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 19886 | sed 1q ) 2>/dev/null` 19887 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 19888 found_dir="$dir" 19889 found_so="$dir/$libname$shrext.$ver" 19890 fi 19891 else 19892 eval library_names=\"$acl_library_names_spec\" 19893 for f in $library_names; do 19894 if test -f "$dir/$f"; then 19895 found_dir="$dir" 19896 found_so="$dir/$f" 19897 break 19898 fi 19899 done 19900 fi 19901 fi 19902 fi 19903 if test "X$found_dir" = "X"; then 19904 if test -f "$dir/$libname.$acl_libext"; then 19905 found_dir="$dir" 19906 found_a="$dir/$libname.$acl_libext" 19907 fi 19908 fi 19909 if test "X$found_dir" != "X"; then 19910 if test -f "$dir/$libname.la"; then 19911 found_la="$dir/$libname.la" 19912 fi 19913 fi 19914 ;; 19915 esac 19916 if test "X$found_dir" != "X"; then 19917 break 19918 fi 19919 done 19920 fi 19921 if test "X$found_dir" != "X"; then 19922 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 19923 if test "X$found_so" != "X"; then 19924 if test "$enable_rpath" = no \ 19925 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 19926 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 19927 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 19928 else 19929 haveit= 19930 for x in $ltrpathdirs; do 19931 if test "X$x" = "X$found_dir"; then 19932 haveit=yes 19933 break 19934 fi 19935 done 19936 if test -z "$haveit"; then 19937 ltrpathdirs="$ltrpathdirs $found_dir" 19938 fi 19939 if test "$acl_hardcode_direct" = yes; then 19940 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 19941 else 19942 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 19943 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 19944 haveit= 19945 for x in $rpathdirs; do 19946 if test "X$x" = "X$found_dir"; then 19947 haveit=yes 19948 break 19949 fi 19950 done 19951 if test -z "$haveit"; then 19952 rpathdirs="$rpathdirs $found_dir" 19953 fi 19954 else 19955 haveit= 19956 for x in $LDFLAGS $LIBINTL; do 19957 19958 acl_save_prefix="$prefix" 19959 prefix="$acl_final_prefix" 19960 acl_save_exec_prefix="$exec_prefix" 19961 exec_prefix="$acl_final_exec_prefix" 19962 eval x=\"$x\" 19963 exec_prefix="$acl_save_exec_prefix" 19964 prefix="$acl_save_prefix" 19965 19966 if test "X$x" = "X-L$found_dir"; then 19967 haveit=yes 19968 break 19969 fi 19970 done 19971 if test -z "$haveit"; then 19972 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 19973 fi 19974 if test "$acl_hardcode_minus_L" != no; then 19975 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 19976 else 19977 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 19978 fi 19979 fi 19980 fi 19981 fi 19982 else 19983 if test "X$found_a" != "X"; then 19984 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 19985 else 19986 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 19987 fi 19988 fi 19989 additional_includedir= 19990 case "$found_dir" in 19991 */$acl_libdirstem | */$acl_libdirstem/) 19992 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 19993 if test "$name" = 'intl'; then 19994 LIBINTL_PREFIX="$basedir" 19995 fi 19996 additional_includedir="$basedir/include" 19997 ;; 19998 */$acl_libdirstem2 | */$acl_libdirstem2/) 19999 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 20000 if test "$name" = 'intl'; then 20001 LIBINTL_PREFIX="$basedir" 20002 fi 20003 additional_includedir="$basedir/include" 20004 ;; 20005 esac 20006 if test "X$additional_includedir" != "X"; then 20007 if test "X$additional_includedir" != "X/usr/include"; then 20008 haveit= 20009 if test "X$additional_includedir" = "X/usr/local/include"; then 20010 if test -n "$GCC"; then 20011 case $host_os in 20012 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 20013 esac 20014 fi 20015 fi 20016 if test -z "$haveit"; then 20017 for x in $CPPFLAGS $INCINTL; do 20018 20019 acl_save_prefix="$prefix" 20020 prefix="$acl_final_prefix" 20021 acl_save_exec_prefix="$exec_prefix" 20022 exec_prefix="$acl_final_exec_prefix" 20023 eval x=\"$x\" 20024 exec_prefix="$acl_save_exec_prefix" 20025 prefix="$acl_save_prefix" 20026 20027 if test "X$x" = "X-I$additional_includedir"; then 20028 haveit=yes 20029 break 20030 fi 20031 done 20032 if test -z "$haveit"; then 20033 if test -d "$additional_includedir"; then 20034 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 20035 fi 20036 fi 20037 fi 20038 fi 20039 fi 20040 if test -n "$found_la"; then 20041 save_libdir="$libdir" 20042 case "$found_la" in 20043 */* | *\\*) . "$found_la" ;; 20044 *) . "./$found_la" ;; 20045 esac 20046 libdir="$save_libdir" 20047 for dep in $dependency_libs; do 20048 case "$dep" in 20049 -L*) 20050 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 20051 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 20052 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 20053 haveit= 20054 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 20055 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 20056 if test -n "$GCC"; then 20057 case $host_os in 20058 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 20059 esac 20060 fi 20061 fi 20062 if test -z "$haveit"; then 20063 haveit= 20064 for x in $LDFLAGS $LIBINTL; do 20065 20066 acl_save_prefix="$prefix" 20067 prefix="$acl_final_prefix" 20068 acl_save_exec_prefix="$exec_prefix" 20069 exec_prefix="$acl_final_exec_prefix" 20070 eval x=\"$x\" 20071 exec_prefix="$acl_save_exec_prefix" 20072 prefix="$acl_save_prefix" 20073 20074 if test "X$x" = "X-L$additional_libdir"; then 20075 haveit=yes 20076 break 20077 fi 20078 done 20079 if test -z "$haveit"; then 20080 if test -d "$additional_libdir"; then 20081 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 20082 fi 20083 fi 20084 haveit= 20085 for x in $LDFLAGS $LTLIBINTL; do 20086 20087 acl_save_prefix="$prefix" 20088 prefix="$acl_final_prefix" 20089 acl_save_exec_prefix="$exec_prefix" 20090 exec_prefix="$acl_final_exec_prefix" 20091 eval x=\"$x\" 20092 exec_prefix="$acl_save_exec_prefix" 20093 prefix="$acl_save_prefix" 20094 20095 if test "X$x" = "X-L$additional_libdir"; then 20096 haveit=yes 20097 break 20098 fi 20099 done 20100 if test -z "$haveit"; then 20101 if test -d "$additional_libdir"; then 20102 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 20103 fi 20104 fi 20105 fi 20106 fi 20107 ;; 20108 -R*) 20109 dir=`echo "X$dep" | sed -e 's/^X-R//'` 20110 if test "$enable_rpath" != no; then 20111 haveit= 20112 for x in $rpathdirs; do 20113 if test "X$x" = "X$dir"; then 20114 haveit=yes 20115 break 20116 fi 20117 done 20118 if test -z "$haveit"; then 20119 rpathdirs="$rpathdirs $dir" 20120 fi 20121 haveit= 20122 for x in $ltrpathdirs; do 20123 if test "X$x" = "X$dir"; then 20124 haveit=yes 20125 break 20126 fi 20127 done 20128 if test -z "$haveit"; then 20129 ltrpathdirs="$ltrpathdirs $dir" 20130 fi 20131 fi 20132 ;; 20133 -l*) 20134 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 20135 ;; 20136 *.la) 20137 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 20138 ;; 20139 *) 20140 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 20141 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 20142 ;; 20143 esac 20144 done 20145 fi 20146 else 20147 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 20148 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 20149 fi 20150 fi 20151 fi 20152 done 20153 done 20154 if test "X$rpathdirs" != "X"; then 20155 if test -n "$acl_hardcode_libdir_separator"; then 20156 alldirs= 20157 for found_dir in $rpathdirs; do 20158 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 20159 done 20160 acl_save_libdir="$libdir" 20161 libdir="$alldirs" 20162 eval flag=\"$acl_hardcode_libdir_flag_spec\" 20163 libdir="$acl_save_libdir" 20164 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 20165 else 20166 for found_dir in $rpathdirs; do 20167 acl_save_libdir="$libdir" 20168 libdir="$found_dir" 20169 eval flag=\"$acl_hardcode_libdir_flag_spec\" 20170 libdir="$acl_save_libdir" 20171 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 20172 done 20173 fi 20174 fi 20175 if test "X$ltrpathdirs" != "X"; then 20176 for found_dir in $ltrpathdirs; do 20177 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-Wl,-rpath,$found_dir" 20178 done 20179 fi 20180 20181 20182 20183 20184 20185 20186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 20187$as_echo_n "checking for GNU gettext in libintl... " >&6; } 20188if eval \${$gt_func_gnugettext_libintl+:} false; then : 20189 $as_echo_n "(cached) " >&6 20190else 20191 gt_save_CPPFLAGS="$CPPFLAGS" 20192 CPPFLAGS="$CPPFLAGS $INCINTL" 20193 gt_save_LIBS="$LIBS" 20194 LIBS="$LIBS $LIBINTL" 20195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20196/* end confdefs.h. */ 20197 20198#include <libintl.h> 20199#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 20200extern int _nl_msg_cat_cntr; 20201extern 20202#ifdef __cplusplus 20203"C" 20204#endif 20205const char *_nl_expand_alias (const char *); 20206#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) 20207#else 20208#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 20209#endif 20210$gt_revision_test_code 20211 20212int 20213main () 20214{ 20215 20216bindtextdomain ("", ""); 20217return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 20218 20219 ; 20220 return 0; 20221} 20222_ACEOF 20223if ac_fn_c_try_link "$LINENO"; then : 20224 eval "$gt_func_gnugettext_libintl=yes" 20225else 20226 eval "$gt_func_gnugettext_libintl=no" 20227fi 20228rm -f core conftest.err conftest.$ac_objext \ 20229 conftest$ac_exeext conftest.$ac_ext 20230 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then 20231 LIBS="$LIBS $LIBICONV" 20232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20233/* end confdefs.h. */ 20234 20235#include <libintl.h> 20236#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 20237extern int _nl_msg_cat_cntr; 20238extern 20239#ifdef __cplusplus 20240"C" 20241#endif 20242const char *_nl_expand_alias (const char *); 20243#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) 20244#else 20245#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 20246#endif 20247$gt_revision_test_code 20248 20249int 20250main () 20251{ 20252 20253bindtextdomain ("", ""); 20254return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 20255 20256 ; 20257 return 0; 20258} 20259_ACEOF 20260if ac_fn_c_try_link "$LINENO"; then : 20261 LIBINTL="$LIBINTL $LIBICONV" 20262 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 20263 eval "$gt_func_gnugettext_libintl=yes" 20264 20265fi 20266rm -f core conftest.err conftest.$ac_objext \ 20267 conftest$ac_exeext conftest.$ac_ext 20268 fi 20269 CPPFLAGS="$gt_save_CPPFLAGS" 20270 LIBS="$gt_save_LIBS" 20271fi 20272eval ac_res=\$$gt_func_gnugettext_libintl 20273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 20274$as_echo "$ac_res" >&6; } 20275 fi 20276 20277 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ 20278 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ 20279 && test "$PACKAGE" != gettext-runtime \ 20280 && test "$PACKAGE" != gettext-tools; }; then 20281 gt_use_preinstalled_gnugettext=yes 20282 else 20283 LIBINTL= 20284 LTLIBINTL= 20285 INCINTL= 20286 fi 20287 20288 20289 20290 if test -n "$INTL_MACOSX_LIBS"; then 20291 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 20292 || test "$nls_cv_use_gnu_gettext" = "yes"; then 20293 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 20294 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 20295 fi 20296 fi 20297 20298 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 20299 || test "$nls_cv_use_gnu_gettext" = "yes"; then 20300 20301$as_echo "#define ENABLE_NLS 1" >>confdefs.h 20302 20303 else 20304 USE_NLS=no 20305 fi 20306 fi 20307 20308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 20309$as_echo_n "checking whether to use NLS... " >&6; } 20310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 20311$as_echo "$USE_NLS" >&6; } 20312 if test "$USE_NLS" = "yes"; then 20313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 20314$as_echo_n "checking where the gettext function comes from... " >&6; } 20315 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 20316 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 20317 gt_source="external libintl" 20318 else 20319 gt_source="libc" 20320 fi 20321 else 20322 gt_source="included intl directory" 20323 fi 20324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 20325$as_echo "$gt_source" >&6; } 20326 fi 20327 20328 if test "$USE_NLS" = "yes"; then 20329 20330 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 20331 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 20332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 20333$as_echo_n "checking how to link with libintl... " >&6; } 20334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 20335$as_echo "$LIBINTL" >&6; } 20336 20337 for element in $INCINTL; do 20338 haveit= 20339 for x in $CPPFLAGS; do 20340 20341 acl_save_prefix="$prefix" 20342 prefix="$acl_final_prefix" 20343 acl_save_exec_prefix="$exec_prefix" 20344 exec_prefix="$acl_final_exec_prefix" 20345 eval x=\"$x\" 20346 exec_prefix="$acl_save_exec_prefix" 20347 prefix="$acl_save_prefix" 20348 20349 if test "X$x" = "X$element"; then 20350 haveit=yes 20351 break 20352 fi 20353 done 20354 if test -z "$haveit"; then 20355 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 20356 fi 20357 done 20358 20359 fi 20360 20361 20362$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 20363 20364 20365$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h 20366 20367 fi 20368 20369 POSUB=po 20370 fi 20371 20372 20373 20374 INTLLIBS="$LIBINTL" 20375 20376 20377 20378 20379 20380 20381 20382if test "x$LTLIBINTL" != "x"; then 20383 if test "x$PROGRAMS_LIBS" != "x"; then 20384 PROGRAMS_LIBS="$PROGRAMS_LIBS $LTLIBINTL" 20385 else 20386 PROGRAMS_LIBS="$LTLIBINTL" 20387 fi 20388 LIBCOB_LIBS="$LIBCOB_LIBS $LTLIBINTL" 20389fi 20390 20391# Checks for internationalization stuff 20392# AM_ICONV 20393 20394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 20395$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 20396if ${am_cv_langinfo_codeset+:} false; then : 20397 $as_echo_n "(cached) " >&6 20398else 20399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20400/* end confdefs.h. */ 20401#include <langinfo.h> 20402int 20403main () 20404{ 20405char* cs = nl_langinfo(CODESET); return !cs; 20406 ; 20407 return 0; 20408} 20409_ACEOF 20410if ac_fn_c_try_link "$LINENO"; then : 20411 am_cv_langinfo_codeset=yes 20412else 20413 am_cv_langinfo_codeset=no 20414fi 20415rm -f core conftest.err conftest.$ac_objext \ 20416 conftest$ac_exeext conftest.$ac_ext 20417 20418fi 20419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 20420$as_echo "$am_cv_langinfo_codeset" >&6; } 20421 if test $am_cv_langinfo_codeset = yes; then 20422 20423$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 20424 20425 fi 20426 20427 20428# GnuCOBOL Configuration 20429 20430COB_CONFIG_DIR="$datadir/$PACKAGE_TARNAME/config" 20431COB_COPY_DIR="$datadir/$PACKAGE_TARNAME/copy" 20432COB_LIBRARY_PATH="$libdir/$PACKAGE_TARNAME" 20433COB_EXE_EXT="$EXEEXT" 20434if test "$COB_EXE_EXT" = ".exe"; then 20435 COB_MODULE_EXT="dll" 20436else 20437 if test "$COB_EXE_EXT" = ".exe" -o "$COB_EXE_EXT" = ".EXE"; then 20438 COB_MODULE_EXT="dll" 20439 else 20440 # normal case... 20441 COB_MODULE_EXT=$(echo "$acl_cv_shlibext" | sed -e 's/dll\.a/dll/') 20442 fi 20443fi 20444COB_OBJECT_EXT="$OBJEXT" 20445LIBS="$curr_libs" 20446COB_EXPORT_DYN="$(eval echo $export_dynamic_flag_spec)" 20447# FIXME: lt_prog_compiler_pic is not always correct, for example with occ 20448COB_PIC_FLAGS=$(echo "$lt_prog_compiler_pic" | sed -e 's/^ //') 20449 20450if test "$enable_cflags_setting" = "yes"; then 20451 if test "$enable_hardening" != "yes"; then 20452 # Remove -O2 option added by AC_PROG_CC and add -O0 20453 if test "$enable_debug" = "yes" -o "$enable_code_coverage" = "yes"; then 20454 CFLAGS=$(echo "$CFLAGS" | sed -e 's/ *-O[0-9a-zA-Z]* */ /g' -e 's/ $//' -e 's/^ //') 20455 if test "$COB_USES_GCC" = "yes"; then 20456 CFLAGS="$CFLAGS -O0" 20457 fi 20458 fi 20459 fi 20460fi 20461 20462unset enable_cflags_setting 20463 20464# cobc.c assumed -g for all but _MSC_VER 20465COB_DEBUG_FLAGS="-g" 20466 20467# For debugging: add most expressive debug level if using GCC (compatible) 20468curr_cflags="$CFLAGS" 20469if test "$COB_USES_GCC" = "yes"; then 20470 cob_temp_flags="-ggdb3" 20471 CFLAGS="$curr_cflags $cob_temp_flags" 20472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for debug option $cob_temp_flags" >&5 20473$as_echo_n "checking for debug option $cob_temp_flags... " >&6; } 20474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20475/* end confdefs.h. */ 20476 20477int 20478main () 20479{ 20480int testint; 20481 ; 20482 return 0; 20483} 20484_ACEOF 20485if ac_fn_c_try_link "$LINENO"; then : 20486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20487$as_echo "yes" >&6; } 20488 COB_DEBUG_FLAGS="$cob_temp_flags" 20489else 20490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20491$as_echo "no" >&6; } 20492 cob_temp_flags="-g3" 20493 CFLAGS="$curr_cflags $cob_temp_flags" 20494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for debug option $cob_temp_flags" >&5 20495$as_echo_n "checking for debug option $cob_temp_flags... " >&6; } 20496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20497/* end confdefs.h. */ 20498 20499int 20500main () 20501{ 20502int testint; 20503 ; 20504 return 0; 20505} 20506_ACEOF 20507if ac_fn_c_try_link "$LINENO"; then : 20508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20509$as_echo "yes" >&6; } 20510 COB_DEBUG_FLAGS="$cob_temp_flags" 20511else 20512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20513$as_echo "no" >&6; } 20514fi 20515rm -f core conftest.err conftest.$ac_objext \ 20516 conftest$ac_exeext conftest.$ac_ext 20517 20518 20519fi 20520rm -f core conftest.err conftest.$ac_objext \ 20521 conftest$ac_exeext conftest.$ac_ext 20522 20523 cob_temp_flags="-fasynchronous-unwind-tables" 20524 CFLAGS="$curr_cflags $cob_temp_flags" 20525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for debug option $cob_temp_flags" >&5 20526$as_echo_n "checking for debug option $cob_temp_flags... " >&6; } 20527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20528/* end confdefs.h. */ 20529 20530int 20531main () 20532{ 20533int testint; 20534 ; 20535 return 0; 20536} 20537_ACEOF 20538if ac_fn_c_try_link "$LINENO"; then : 20539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20540$as_echo "yes" >&6; } 20541 COB_DEBUG_FLAGS="$COB_DEBUG_FLAGS $cob_temp_flags" 20542else 20543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20544$as_echo "no" >&6; } 20545 cob_temp_flags="-funwind-tables" 20546 CFLAGS="$curr_cflags $cob_temp_flags" 20547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for debug option $cob_temp_flags" >&5 20548$as_echo_n "checking for debug option $cob_temp_flags... " >&6; } 20549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20550/* end confdefs.h. */ 20551 20552int 20553main () 20554{ 20555int testint; 20556 ; 20557 return 0; 20558} 20559_ACEOF 20560if ac_fn_c_try_link "$LINENO"; then : 20561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20562$as_echo "yes" >&6; } 20563 COB_DEBUG_FLAGS="$COB_DEBUG_FLAGS $cob_temp_flags" 20564else 20565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20566$as_echo "no" >&6; } 20567fi 20568rm -f core conftest.err conftest.$ac_objext \ 20569 conftest$ac_exeext conftest.$ac_ext 20570 20571 20572fi 20573rm -f core conftest.err conftest.$ac_objext \ 20574 conftest$ac_exeext conftest.$ac_ext 20575fi 20576 20577if test "$enable_debug" = "yes"; then 20578 CFLAGS="$curr_cflags $COB_DEBUG_FLAGS" 20579else 20580 CFLAGS="$curr_cflags" 20581fi 20582 20583if test "$enable_hardening" = "yes"; then 20584 { $as_echo "$as_me:${as_lineno-$LINENO}: Compile with hardening options" >&5 20585$as_echo "$as_me: Compile with hardening options" >&6;} 20586 # needs optimization 20587 #if test "$enable_debug" = "yes"; then 20588 # CFLAGS="$CFLAGS -O" 20589 #fi 20590 CPPFLAGS="$CPPFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2" 20591 20592 curr_cflags="$CFLAGS" 20593 cob_temp_flags="-fstack-protector-strong" 20594 CFLAGS="$curr_cflags $cob_temp_flags" 20595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $cob_temp_flags option" >&5 20596$as_echo_n "checking for $cob_temp_flags option... " >&6; } 20597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20598/* end confdefs.h. */ 20599 20600int 20601main () 20602{ 20603int testint; 20604 ; 20605 return 0; 20606} 20607_ACEOF 20608if ac_fn_c_try_link "$LINENO"; then : 20609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20610$as_echo "yes" >&6; } 20611else 20612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20613$as_echo "no" >&6; } 20614 cob_temp_flags="-fstack-protector" 20615 CFLAGS="$curr_cflags $cob_temp_flags" 20616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $cob_temp_flags option" >&5 20617$as_echo_n "checking for $cob_temp_flags option... " >&6; } 20618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20619/* end confdefs.h. */ 20620 20621int 20622main () 20623{ 20624int testint; 20625 ; 20626 return 0; 20627} 20628_ACEOF 20629if ac_fn_c_try_link "$LINENO"; then : 20630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20631$as_echo "yes" >&6; } 20632else 20633 CFLAGS="$curr_cflags"; cob_temp_flags=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20634$as_echo "no" >&6; } 20635fi 20636rm -f core conftest.err conftest.$ac_objext \ 20637 conftest$ac_exeext conftest.$ac_ext 20638 20639fi 20640rm -f core conftest.err conftest.$ac_objext \ 20641 conftest$ac_exeext conftest.$ac_ext 20642 if test "x$cob_temp_flags" != "x"; then 20643 if test "x$COB_LDFLAGS" != "x"; then 20644 COB_LDFLAGS="$COB_LDFLAGS $cob_temp_flags" 20645 else 20646 COB_LDFLAGS="$cob_temp_flags" 20647 fi 20648 fi 20649 unset cob_temp_flags 20650fi 20651 20652if test "$COB_USES_GCC" = "yes"; then 20653 if test "x$CFLAGS" != "x"; then 20654 CFLAGS="$CFLAGS -pipe" 20655 else 20656 CFLAGS="-pipe" 20657 fi 20658fi 20659 20660# include directory (install dir) 20661 20662if test "x$prefix" = "xNONE"; then 20663 if test "x$includedir" = "x\${prefix}/include"; then 20664 COB_CFLAGS="-I${ac_default_prefix}/include" 20665 else 20666 COB_CFLAGS="-I${includedir}" 20667 fi 20668else 20669 if test "x$includedir" = "x\${prefix}/include"; then 20670 if test "x$prefix" = "x/usr"; then 20671 COB_CFLAGS="" 20672 else 20673 COB_CFLAGS="-I${prefix}/include" 20674 fi 20675 else 20676 COB_CFLAGS="-I${includedir}" 20677 fi 20678fi 20679 20680 20681# compiler specific general options for COB_CFLAGS, originating from cobc.c (main) 20682 20683if test "$COB_USES_ICC_ONLY" = "yes"; then 20684 # these are deprecated... 20685 COB_CFLAGS="$COB_CFLAGS -vec-report0 -opt-report 0" 20686elif test "$COB_USES_WATCOMC_ONLY" = "yes"; then 20687 # -s = no overflow checks, otherwise need to code/link a CHK routine 20688 COB_CFLAGS="$COB_CFLAGS -s -wcd=118" 20689elif test "$COB_USES_XLC_ONLY" = "yes"; then 20690 # use read-only memory for string literals and constants 20691 COB_CFLAGS="$COB_CFLAGS -qro -qroconst" 20692 # allow nonstandard usage - CHECKME where do we need this ??? 20693 # do we need the additional check for __IBMC__ >= 700 we had in cobc? 20694 COB_CFLAGS="$COB_CFLAGS -qlanglvl=extended" 20695 # Suppress compiler warning about MAXMEM optimization 20696 COB_CFLAGS="$COB_CFLAGS -qsuppress=1500-030" 20697fi 20698 20699if test "$COB_USES_GCC_NO_ICC" = "yes"; then 20700 # comment from cobc.c: --param max-goto-duplication-insns=100000 20701 # /* RXWRXW - gcse */ 20702 # COB_CFLAGS="$COB_CFLAGS -Wno-unused -fsigned-char -fno-gcse" 20703 COB_CFLAGS="$COB_CFLAGS -Wno-unused -fsigned-char" 20704fi 20705 20706# Check gcc 4 pointer sign option (at least available with "recent" clang, too) 20707#if test "$COB_USES_GCC_NO_ICC" = "yes"; then 20708if test "$COB_USES_XLC_ONLY" != "yes"; then 20709 curr_cflags="$CFLAGS" 20710 CFLAGS="$CFLAGS -Wno-pointer-sign" 20711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc pointer sign option" >&5 20712$as_echo_n "checking for gcc pointer sign option... " >&6; } 20713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20714/* end confdefs.h. */ 20715 20716int 20717main () 20718{ 20719int testint; 20720 ; 20721 return 0; 20722} 20723_ACEOF 20724if ac_fn_c_try_compile "$LINENO"; then : 20725 COB_CFLAGS="$COB_CFLAGS -Wno-pointer-sign"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20726$as_echo "yes" >&6; } 20727else 20728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20729$as_echo "no" >&6; } 20730fi 20731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20732 CFLAGS="$curr_cflags" 20733fi 20734#fi 20735 20736if test "$COB_USES_CLANG_ONLY" = "yes"; then 20737 # don't warn if cobc uses arguments which aren't picked up (likely because of the translation phase) 20738 COB_CFLAGS="$COB_CFLAGS -Qunused-arguments" 20739fi 20740 20741 20742# Include CFLAGS / CPPFLAGS in COB_CFLAGS without optimization/debug options. 20743 20744if test "x$CFLAGS" != "x"; then 20745 cob_temp_flags="$CFLAGS" 20746else 20747 cob_temp_flags="" 20748fi 20749if test "x$CPPFLAGS" != "x"; then 20750 if test "x$cob_temp_flags" != "x"; then 20751 cob_temp_flags="$CPPFLAGS $cob_temp_flags" 20752 else 20753 cob_temp_flags="$CPPFLAGS" 20754 fi 20755fi 20756 20757# 20758# Add CFLAGS and CPPFLAGS to COB_CFLAGS, minus optimization/debug options. 20759 20760cob_temp_flags="$CFLAGS $CPPFLAGS" 20761 20762if test "$enable_hardening" = no; then 20763 cob_temp_flags=$(echo x$cob_temp_flags | \ 20764 sed -e 's/^x//' \ 20765 -e 's/-Wp,-D_FORTIFY_SOURCE=.//g' \ 20766 -e 's/-D_FORTIFY_SOURCE=.//g' \ 20767 -e 's/-fmessage-length=0//g' \ 20768 -e 's/-fstack-protector-strong//g' \ 20769 -e 's/-fstack-protector-all//g' \ 20770 -e 's/-fstack-protector//g' \ 20771 ) 20772fi 20773 20774cob_temp_flags=$(echo x$cob_temp_flags | \ 20775 sed -e 's/^x//' \ 20776 -e 's/-g\(db\)\{0,1\}[0-9 ]//g' \ 20777 -e 's/-g\(db\)\{0,1\}$//' \ 20778 -e 's/[+-]O[0-9s]*//g' \ 20779 -e 's/-O//g' \ 20780 -e 's/-funwind-tables//g' \ 20781 -e 's/-fasynchronous-unwind-tables//g' \ 20782 -e 's/ / /g' \ 20783 -e 's/ $//g' \ 20784 ) 20785 20786if test "x$cob_temp_flags" != "x"; then 20787 COB_CFLAGS="$cob_temp_flags $COB_CFLAGS" 20788fi 20789if test "$enable_hardening" = "yes"; then 20790 # needs optimization 20791 COB_CFLAGS="$COB_CFLAGS -O" 20792fi 20793unset cob_temp_flags 20794 20795# Special stuff 20796 20797 20798# FIXME: COB_SHARED_OPT should at least be checked for "compiles"; 20799# for example breaks with occ and other non-GCC compilers, 20800# *at least* check that compilation still works when using this option... 20801COB_SHARED_OPT="-shared" 20802 20803COB_FIX_LIB="$COB_EXPORT_DYN" 20804COB_FIX_LIBTOOL="" 20805case $host_os in 20806 mingw*) 20807 if test "$prefix" = "NONE"; then 20808 COB_CONFIG_DIR="$(cd /usr && pwd -W)/local/share/$PACKAGE_TARNAME/config" 20809 COB_COPY_DIR="$(cd /usr && pwd -W)/local/share/$PACKAGE_TARNAME/copy" 20810 fi 20811 if test "$COB_USES_GCC" = "yes"; then 20812 COB_EXPORT_DYN="-Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--enable-auto-image-base" 20813 COB_FIX_LIBTOOL="-Wl,--enable-auto-import" 20814 fi 20815 #COB_FIX_LIB="" 20816 ;; 20817 cygwin*) 20818 if test "$COB_USES_GCC" = "yes"; then 20819 COB_EXPORT_DYN="-Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--enable-auto-image-base" 20820 COB_FIX_LIBTOOL="-Wl,--enable-auto-import" 20821 fi 20822 #COB_FIX_LIB="" 20823 ;; 20824 darwin* | rhapsody*) 20825 if test "$COB_USES_GCC" = "yes"; then 20826 COB_SHARED_OPT="-bundle -flat_namespace -undefined suppress" 20827 fi 20828 ;; 20829 hpux*) 20830 if test "$COB_USES_GCC" != "yes"; then 20831 COB_SHARED_OPT="-b" 20832 $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h 20833 20834 rm -f hptest* 20835 echo 'int main() { return 0; }' > hptest.c 20836 ${CC} ${CFLAGS} +Olit=all -o hptest hptest.c > hptest.out 2>&1 20837 if test $? -ne 0 -o -s hptest.out; then 20838 CFLAGS="$CFLAGS +ESlit" 20839 COB_CFLAGS="$COB_CFLAGS +ESlit -w" 20840 else 20841 CFLAGS="$CFLAGS +Olit=all" 20842 COB_CFLAGS="$COB_CFLAGS +Olit=all -w" 20843 fi 20844 20845 if test "$enable_debug" = "yes"; then 20846 CFLAGS="$CFLAGS +O0" 20847 else 20848 CFLAGS="$CFLAGS +O2" 20849 fi 20850 20851 rm -f hptest* 20852 fi 20853 ;; 20854 aix*) 20855 COB_EXPORT_DYN="-Wl,-bexpfull -Wl,-brtl" 20856 if test "$COB_USES_GCC" != "yes"; then 20857 CFLAGS="$CFLAGS -Q -qro -qroconst" 20858 if test "$enable_debug" = "yes"; then 20859 CFLAGS="$CFLAGS -qnoopt" 20860 else 20861 CFLAGS="$CFLAGS -O2" 20862 fi 20863 20864 COB_SHARED_OPT="-G" 20865 COB_FIX_LIB="" 20866 # COB_FIX_LIB="-Wc,-G $COB_EXPORT_DYN" 20867 # COB_CFLAGS="$COB_CFLAGS -qchars=signed" 20868 else 20869 COB_FIX_LIB="$COB_EXPORT_DYN" 20870 fi 20871 ;; 20872 solaris*) 20873 if test "$COB_USES_GCC" != "yes"; then 20874 CFLAGS="$CFLAGS -xstrconst" 20875 if test "$enable_debug" != "yes"; then 20876 CFLAGS="$CFLAGS -xO2" 20877 fi 20878 COB_CFLAGS="$COB_CFLAGS -xstrconst" 20879 COB_SHARED_OPT="-G" 20880 fi 20881 ;; 20882esac 20883 20884if test "$COB_USES_ICC_ONLY" = "yes"; then 20885 if test "$enable_debug" != "yes"; then 20886 CFLAGS="$CFLAGS -finline-functions" 20887 fi 20888 CFLAGS="$CFLAGS -Wall -wd1419 -vec-report0 -opt-report 0" 20889elif test "$COB_USES_GCC" = "yes" && test "$with_gnu_ld" = "yes"; then 20890 curr_ldflags="$LDFLAGS" 20891 LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now,-O1" 20892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld bind now option" >&5 20893$as_echo_n "checking for ld bind now option... " >&6; } 20894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20895/* end confdefs.h. */ 20896 20897int 20898main () 20899{ 20900int testint; 20901 ; 20902 return 0; 20903} 20904_ACEOF 20905if ac_fn_c_try_link "$LINENO"; then : 20906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20907$as_echo "yes" >&6; } 20908else 20909 LDFLAGS=$curr_ldflags 20910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20911$as_echo "no" >&6; } 20912fi 20913rm -f core conftest.err conftest.$ac_objext \ 20914 conftest$ac_exeext conftest.$ac_ext 20915 unset curr_ldflags 20916 if test "$enable_debug" != "yes"; then 20917 CFLAGS="$CFLAGS -finline-functions" 20918 fi 20919 CFLAGS="$CFLAGS -fsigned-char -Wall -Wwrite-strings -Wmissing-prototypes -Wno-format-y2k" 20920fi 20921 20922if test "x$lt_cv_dlopen_self" != "xyes"; then 20923 $as_echo "#define COB_NO_SELFOPEN 1" >>confdefs.h 20924 20925fi 20926 20927if test "$with_cisam" = "yes"; then 20928 COB_HAS_ISAM=cisam 20929elif test "$with_disam" = "yes"; then 20930 COB_HAS_ISAM=disam 20931elif test "$with_vbisam" = "yes"; then 20932 COB_HAS_ISAM=vbisam 20933elif test "$with_db" = "yes"; then 20934 COB_HAS_ISAM=db 20935elif test "$with_index_extfh" = "yes"; then 20936 COB_HAS_ISAM=index_extfh 20937else 20938 COB_HAS_ISAM=no 20939fi 20940 20941if test "$USE_CURSES" = "not_found" -o "$USE_CURSES" = "no"; then 20942 COB_HAS_CURSES=no 20943else 20944 COB_HAS_CURSES=yes 20945fi 20946 20947if test "$with_xml2" = "yes"; then 20948 COB_HAS_XML2=yes 20949 with_xml2=libxml2 20950else 20951 COB_HAS_XML2=no 20952fi 20953 20954if test "$USE_JSON" = "local"; then 20955 COB_HAS_JSON=cjson 20956elif test "$USE_JSON" = "not_found"; then 20957 COB_HAS_JSON=no 20958else 20959 COB_HAS_JSON=$USE_JSON 20960fi 20961 20962 if test "$USE_JSON" = "local"; then 20963 LOCAL_CJSON_TRUE= 20964 LOCAL_CJSON_FALSE='#' 20965else 20966 LOCAL_CJSON_TRUE='#' 20967 LOCAL_CJSON_FALSE= 20968fi 20969 20970 20971unset COB_USES_GCC 20972unset COB_USES_GCC_NO_ICC 20973unset COB_USES_ICC_ONLY 20974unset COB_USES_CLANG_ONLY 20975unset COB_USES_XLC_ONLY 20976unset COB_USES_WATCOM_ONLY 20977unset curr_cflags 20978unset curr_cppflags 20979unset curr_libs 20980 20981# Generate the output 20982 20983 if test "$COB_HAS_ISAM" != no; then 20984 COB_MAKE_IX_TRUE= 20985 COB_MAKE_IX_FALSE='#' 20986else 20987 COB_MAKE_IX_TRUE='#' 20988 COB_MAKE_IX_FALSE= 20989fi 20990 20991 if test "$cross_compiling" != yes; then 20992 COB_MAKE_RUN_BINARIES_TRUE= 20993 COB_MAKE_RUN_BINARIES_FALSE='#' 20994else 20995 COB_MAKE_RUN_BINARIES_TRUE='#' 20996 COB_MAKE_RUN_BINARIES_FALSE= 20997fi 20998 20999# FIXME: Should be tested as the system may can actually run these (Bash on Windows?) 21000 21001 21002cat >>confdefs.h <<_ACEOF 21003#define COB_CC "$COB_CC" 21004_ACEOF 21005 21006 21007 21008_VAR_RES_DATAROOTDIR=$(eval echo "${datarootdir}" | $SED "s#NONE#${prefix}#") 21009_VAR_RES_EXEC_PREFIX=$(eval echo "${exec_prefix}" | $SED "s#NONE#${prefix}#") 21010_VAR_RES_PREFIX=$(eval echo "${prefix}") 21011_VAR_RES_RESOLVED=$(echo "$COB_CFLAGS" \ 21012 | $SED 's#${exec_prefix}#'"${_VAR_RES_EXEC_PREFIX}"'#' \ 21013 | $SED 's#${datarootdir}#'"${_VAR_RES_DATAROOTDIR}"'#' \ 21014 | $SED 's#${prefix}#'"${_VAR_RES_PREFIX}"'#' \ 21015 | $SED "s#NONE#${ac_default_prefix}#" ) 21016 21017cat >>confdefs.h <<_ACEOF 21018#define COB_CFLAGS "$(eval echo "${_VAR_RES_RESOLVED}")" 21019_ACEOF 21020 21021 21022unset _VAR_RES_EXEC_PREFIX _VAR_RES_PREFIX _VAR_RES_RESOLVED _VAR_RES_DATAROOTDIR 21023 21024 21025 21026_VAR_RES_DATAROOTDIR=$(eval echo "${datarootdir}" | $SED "s#NONE#${prefix}#") 21027_VAR_RES_EXEC_PREFIX=$(eval echo "${exec_prefix}" | $SED "s#NONE#${prefix}#") 21028_VAR_RES_PREFIX=$(eval echo "${prefix}") 21029_VAR_RES_RESOLVED=$(echo "$COB_LDFLAGS" \ 21030 | $SED 's#${exec_prefix}#'"${_VAR_RES_EXEC_PREFIX}"'#' \ 21031 | $SED 's#${datarootdir}#'"${_VAR_RES_DATAROOTDIR}"'#' \ 21032 | $SED 's#${prefix}#'"${_VAR_RES_PREFIX}"'#' \ 21033 | $SED "s#NONE#${ac_default_prefix}#" ) 21034 21035cat >>confdefs.h <<_ACEOF 21036#define COB_LDFLAGS "$(eval echo "${_VAR_RES_RESOLVED}")" 21037_ACEOF 21038 21039 21040unset _VAR_RES_EXEC_PREFIX _VAR_RES_PREFIX _VAR_RES_RESOLVED _VAR_RES_DATAROOTDIR 21041 21042 21043 21044_VAR_RES_DATAROOTDIR=$(eval echo "${datarootdir}" | $SED "s#NONE#${prefix}#") 21045_VAR_RES_EXEC_PREFIX=$(eval echo "${exec_prefix}" | $SED "s#NONE#${prefix}#") 21046_VAR_RES_PREFIX=$(eval echo "${prefix}") 21047_VAR_RES_RESOLVED=$(echo "$COB_LIBS" \ 21048 | $SED 's#${exec_prefix}#'"${_VAR_RES_EXEC_PREFIX}"'#' \ 21049 | $SED 's#${datarootdir}#'"${_VAR_RES_DATAROOTDIR}"'#' \ 21050 | $SED 's#${prefix}#'"${_VAR_RES_PREFIX}"'#' \ 21051 | $SED "s#NONE#${ac_default_prefix}#" ) 21052 21053cat >>confdefs.h <<_ACEOF 21054#define COB_LIBS "$(eval echo "${_VAR_RES_RESOLVED}")" 21055_ACEOF 21056 21057 21058unset _VAR_RES_EXEC_PREFIX _VAR_RES_PREFIX _VAR_RES_RESOLVED _VAR_RES_DATAROOTDIR 21059 21060cat >>confdefs.h <<_ACEOF 21061#define COB_PIC_FLAGS "$COB_PIC_FLAGS" 21062_ACEOF 21063 21064cat >>confdefs.h <<_ACEOF 21065#define COB_DEBUG_FLAGS "$COB_DEBUG_FLAGS" 21066_ACEOF 21067 21068cat >>confdefs.h <<_ACEOF 21069#define COB_EXPORT_DYN "$COB_EXPORT_DYN" 21070_ACEOF 21071 21072cat >>confdefs.h <<_ACEOF 21073#define COB_SHARED_OPT "$COB_SHARED_OPT" 21074_ACEOF 21075 21076cat >>confdefs.h <<_ACEOF 21077#define COB_MODULE_EXT "$COB_MODULE_EXT" 21078_ACEOF 21079 21080cat >>confdefs.h <<_ACEOF 21081#define COB_OBJECT_EXT "$OBJEXT" 21082_ACEOF 21083 21084cat >>confdefs.h <<_ACEOF 21085#define COB_EXE_EXT "$COB_EXE_EXT" 21086_ACEOF 21087 21088 21089 21090_VAR_RES_DATAROOTDIR=$(eval echo "${datarootdir}" | $SED "s#NONE#${prefix}#") 21091_VAR_RES_EXEC_PREFIX=$(eval echo "${exec_prefix}" | $SED "s#NONE#${prefix}#") 21092_VAR_RES_PREFIX=$(eval echo "${prefix}") 21093_VAR_RES_RESOLVED=$(echo "$COB_LIBRARY_PATH" \ 21094 | $SED 's#${exec_prefix}#'"${_VAR_RES_EXEC_PREFIX}"'#' \ 21095 | $SED 's#${datarootdir}#'"${_VAR_RES_DATAROOTDIR}"'#' \ 21096 | $SED 's#${prefix}#'"${_VAR_RES_PREFIX}"'#' \ 21097 | $SED "s#NONE#${ac_default_prefix}#" ) 21098 21099cat >>confdefs.h <<_ACEOF 21100#define COB_LIBRARY_PATH "$(eval echo "${_VAR_RES_RESOLVED}")" 21101_ACEOF 21102 21103 21104unset _VAR_RES_EXEC_PREFIX _VAR_RES_PREFIX _VAR_RES_RESOLVED _VAR_RES_DATAROOTDIR 21105 21106if test "x$striplib" != "x"; then 21107 cat >>confdefs.h <<_ACEOF 21108#define COB_STRIP_CMD "$striplib" 21109_ACEOF 21110 21111fi 21112 21113 21114_VAR_RES_DATAROOTDIR=$(eval echo "${datarootdir}" | $SED "s#NONE#${prefix}#") 21115_VAR_RES_EXEC_PREFIX=$(eval echo "${exec_prefix}" | $SED "s#NONE#${prefix}#") 21116_VAR_RES_PREFIX=$(eval echo "${prefix}") 21117_VAR_RES_RESOLVED=$(echo "$COB_CONFIG_DIR" \ 21118 | $SED 's#${exec_prefix}#'"${_VAR_RES_EXEC_PREFIX}"'#' \ 21119 | $SED 's#${datarootdir}#'"${_VAR_RES_DATAROOTDIR}"'#' \ 21120 | $SED 's#${prefix}#'"${_VAR_RES_PREFIX}"'#' \ 21121 | $SED "s#NONE#${ac_default_prefix}#" ) 21122 21123cat >>confdefs.h <<_ACEOF 21124#define COB_CONFIG_DIR "$(eval echo "${_VAR_RES_RESOLVED}")" 21125_ACEOF 21126 21127 21128unset _VAR_RES_EXEC_PREFIX _VAR_RES_PREFIX _VAR_RES_RESOLVED _VAR_RES_DATAROOTDIR 21129 21130 21131 21132_VAR_RES_DATAROOTDIR=$(eval echo "${datarootdir}" | $SED "s#NONE#${prefix}#") 21133_VAR_RES_EXEC_PREFIX=$(eval echo "${exec_prefix}" | $SED "s#NONE#${prefix}#") 21134_VAR_RES_PREFIX=$(eval echo "${prefix}") 21135_VAR_RES_RESOLVED=$(echo "$COB_COPY_DIR" \ 21136 | $SED 's#${exec_prefix}#'"${_VAR_RES_EXEC_PREFIX}"'#' \ 21137 | $SED 's#${datarootdir}#'"${_VAR_RES_DATAROOTDIR}"'#' \ 21138 | $SED 's#${prefix}#'"${_VAR_RES_PREFIX}"'#' \ 21139 | $SED "s#NONE#${ac_default_prefix}#" ) 21140 21141cat >>confdefs.h <<_ACEOF 21142#define COB_COPY_DIR "$(eval echo "${_VAR_RES_RESOLVED}")" 21143_ACEOF 21144 21145 21146unset _VAR_RES_EXEC_PREFIX _VAR_RES_PREFIX _VAR_RES_RESOLVED _VAR_RES_DATAROOTDIR 21147 21148 21149#AX_AC_DEFINE_RESOLVED([DATADIR], [$datarootdir], [path for configuration files]) 21150#AX_AC_DEFINE_RESOLVED([LOCALEDIR], [$localedir], [path for locale-dependent data]) 21151 21152#AC_DEFINE_UNQUOTED([COBC_NAME], ["$(echo cobc | $SED "$program_transform_name")"], [executable name for compiler]) 21153 21154cat >>confdefs.h <<_ACEOF 21155#define COBCRUN_NAME "$(echo cobcrun | $SED "$program_transform_name")" 21156_ACEOF 21157 21158 21159# informational only 21160 21161cat >>confdefs.h <<_ACEOF 21162#define COB_BLD_CC "$CC" 21163_ACEOF 21164 21165 21166cat >>confdefs.h <<_ACEOF 21167#define COB_BLD_CFLAGS "$CFLAGS" 21168_ACEOF 21169 21170 21171cat >>confdefs.h <<_ACEOF 21172#define COB_BLD_CPPFLAGS "$CPPFLAGS" 21173_ACEOF 21174 21175 21176cat >>confdefs.h <<_ACEOF 21177#define COB_BLD_LD "$LD" 21178_ACEOF 21179 21180 21181cat >>confdefs.h <<_ACEOF 21182#define COB_BLD_LDFLAGS "$LDFLAGS" 21183_ACEOF 21184 21185 21186cat >>confdefs.h <<_ACEOF 21187#define COB_BLD_BUILD "$build" 21188_ACEOF 21189 21190 21191 21192 21193 # needed for pre-inst-env 21194 21195 21196 21197 21198 21199 21200 21201 21202 21203 21204 21205# was used in bin/Makefile.am - seems not to be needed 21206#AC_SUBST([COB_EXPORT_DYN]) 21207 21208# used in the testsuite 21209COB_BIGENDIAN="$ac_cv_c_bigendian" 21210 21211 21212#AC_SUBST([COB_FIX_LIB]) 21213 21214 21215 21216 21217 21218 21219 21220COB_PATCH_LEVEL=$with_patch_level 21221 # needed for bin/cob-config 21222 21223ac_config_commands="$ac_config_commands chmod" 21224 21225 21226 21227HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"} 21228 21229 21230cat >confcache <<\_ACEOF 21231# This file is a shell script that caches the results of configure 21232# tests run on this system so they can be shared between configure 21233# scripts and configure runs, see configure's option --config-cache. 21234# It is not useful on other systems. If it contains results you don't 21235# want to keep, you may remove or edit it. 21236# 21237# config.status only pays attention to the cache file if you give it 21238# the --recheck option to rerun configure. 21239# 21240# `ac_cv_env_foo' variables (set or unset) will be overridden when 21241# loading this file, other *unset* `ac_cv_foo' will be assigned the 21242# following values. 21243 21244_ACEOF 21245 21246# The following way of writing the cache mishandles newlines in values, 21247# but we know of no workaround that is simple, portable, and efficient. 21248# So, we kill variables containing newlines. 21249# Ultrix sh set writes to stderr and can't be redirected directly, 21250# and sets the high bit in the cache file unless we assign to the vars. 21251( 21252 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21253 eval ac_val=\$$ac_var 21254 case $ac_val in #( 21255 *${as_nl}*) 21256 case $ac_var in #( 21257 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 21258$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 21259 esac 21260 case $ac_var in #( 21261 _ | IFS | as_nl) ;; #( 21262 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 21263 *) { eval $ac_var=; unset $ac_var;} ;; 21264 esac ;; 21265 esac 21266 done 21267 21268 (set) 2>&1 | 21269 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21270 *${as_nl}ac_space=\ *) 21271 # `set' does not quote correctly, so add quotes: double-quote 21272 # substitution turns \\\\ into \\, and sed turns \\ into \. 21273 sed -n \ 21274 "s/'/'\\\\''/g; 21275 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21276 ;; #( 21277 *) 21278 # `set' quotes correctly as required by POSIX, so do not add quotes. 21279 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21280 ;; 21281 esac | 21282 sort 21283) | 21284 sed ' 21285 /^ac_cv_env_/b end 21286 t clear 21287 :clear 21288 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21289 t end 21290 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21291 :end' >>confcache 21292if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21293 if test -w "$cache_file"; then 21294 if test "x$cache_file" != "x/dev/null"; then 21295 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 21296$as_echo "$as_me: updating cache $cache_file" >&6;} 21297 if test ! -f "$cache_file" || test -h "$cache_file"; then 21298 cat confcache >"$cache_file" 21299 else 21300 case $cache_file in #( 21301 */* | ?:*) 21302 mv -f confcache "$cache_file"$$ && 21303 mv -f "$cache_file"$$ "$cache_file" ;; #( 21304 *) 21305 mv -f confcache "$cache_file" ;; 21306 esac 21307 fi 21308 fi 21309 else 21310 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 21311$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21312 fi 21313fi 21314rm -f confcache 21315 21316test "x$prefix" = xNONE && prefix=$ac_default_prefix 21317# Let make expand exec_prefix. 21318test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21319 21320DEFS=-DHAVE_CONFIG_H 21321 21322ac_libobjs= 21323ac_ltlibobjs= 21324U= 21325for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21326 # 1. Remove the extension, and $U if already installed. 21327 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21328 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 21329 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21330 # will be set to the directory where LIBOBJS objects are built. 21331 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21332 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 21333done 21334LIBOBJS=$ac_libobjs 21335 21336LTLIBOBJS=$ac_ltlibobjs 21337 21338 21339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 21340$as_echo_n "checking that generated files are newer than configure... " >&6; } 21341 if test -n "$am_sleep_pid"; then 21342 # Hide warnings about reused PIDs. 21343 wait $am_sleep_pid 2>/dev/null 21344 fi 21345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 21346$as_echo "done" >&6; } 21347 if test -n "$EXEEXT"; then 21348 am__EXEEXT_TRUE= 21349 am__EXEEXT_FALSE='#' 21350else 21351 am__EXEEXT_TRUE='#' 21352 am__EXEEXT_FALSE= 21353fi 21354 21355if test -z "${MAKE_HAS_PREREQ_ONLY_TRUE}" && test -z "${MAKE_HAS_PREREQ_ONLY_FALSE}"; then 21356 as_fn_error $? "conditional \"MAKE_HAS_PREREQ_ONLY\" was never defined. 21357Usually this means the macro was only invoked conditionally." "$LINENO" 5 21358fi 21359if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21360 as_fn_error $? "conditional \"AMDEP\" was never defined. 21361Usually this means the macro was only invoked conditionally." "$LINENO" 5 21362fi 21363if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21364 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 21365Usually this means the macro was only invoked conditionally." "$LINENO" 5 21366fi 21367 21368if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then 21369 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined. 21370Usually this means the macro was only invoked conditionally." "$LINENO" 5 21371fi 21372if test -z "${LOCAL_CJSON_TRUE}" && test -z "${LOCAL_CJSON_FALSE}"; then 21373 as_fn_error $? "conditional \"LOCAL_CJSON\" was never defined. 21374Usually this means the macro was only invoked conditionally." "$LINENO" 5 21375fi 21376if test -z "${COB_MAKE_IX_TRUE}" && test -z "${COB_MAKE_IX_FALSE}"; then 21377 as_fn_error $? "conditional \"COB_MAKE_IX\" was never defined. 21378Usually this means the macro was only invoked conditionally." "$LINENO" 5 21379fi 21380if test -z "${COB_MAKE_RUN_BINARIES_TRUE}" && test -z "${COB_MAKE_RUN_BINARIES_FALSE}"; then 21381 as_fn_error $? "conditional \"COB_MAKE_RUN_BINARIES\" was never defined. 21382Usually this means the macro was only invoked conditionally." "$LINENO" 5 21383fi 21384 21385: "${CONFIG_STATUS=./config.status}" 21386ac_write_fail=0 21387ac_clean_files_save=$ac_clean_files 21388ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21389{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 21390$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 21391as_write_fail=0 21392cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 21393#! $SHELL 21394# Generated by $as_me. 21395# Run this file to recreate the current configuration. 21396# Compiler output produced by configure, useful for debugging 21397# configure, is in config.log if it exists. 21398 21399debug=false 21400ac_cs_recheck=false 21401ac_cs_silent=false 21402 21403SHELL=\${CONFIG_SHELL-$SHELL} 21404export SHELL 21405_ASEOF 21406cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 21407## -------------------- ## 21408## M4sh Initialization. ## 21409## -------------------- ## 21410 21411# Be more Bourne compatible 21412DUALCASE=1; export DUALCASE # for MKS sh 21413if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 21414 emulate sh 21415 NULLCMD=: 21416 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21417 # is contrary to our usage. Disable this feature. 21418 alias -g '${1+"$@"}'='"$@"' 21419 setopt NO_GLOB_SUBST 21420else 21421 case `(set -o) 2>/dev/null` in #( 21422 *posix*) : 21423 set -o posix ;; #( 21424 *) : 21425 ;; 21426esac 21427fi 21428 21429 21430as_nl=' 21431' 21432export as_nl 21433# Printing a long string crashes Solaris 7 /usr/bin/printf. 21434as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 21435as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 21436as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 21437# Prefer a ksh shell builtin over an external printf program on Solaris, 21438# but without wasting forks for bash or zsh. 21439if test -z "$BASH_VERSION$ZSH_VERSION" \ 21440 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 21441 as_echo='print -r --' 21442 as_echo_n='print -rn --' 21443elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 21444 as_echo='printf %s\n' 21445 as_echo_n='printf %s' 21446else 21447 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 21448 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 21449 as_echo_n='/usr/ucb/echo -n' 21450 else 21451 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 21452 as_echo_n_body='eval 21453 arg=$1; 21454 case $arg in #( 21455 *"$as_nl"*) 21456 expr "X$arg" : "X\\(.*\\)$as_nl"; 21457 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 21458 esac; 21459 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 21460 ' 21461 export as_echo_n_body 21462 as_echo_n='sh -c $as_echo_n_body as_echo' 21463 fi 21464 export as_echo_body 21465 as_echo='sh -c $as_echo_body as_echo' 21466fi 21467 21468# The user is always right. 21469if test "${PATH_SEPARATOR+set}" != set; then 21470 PATH_SEPARATOR=: 21471 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 21472 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 21473 PATH_SEPARATOR=';' 21474 } 21475fi 21476 21477 21478# IFS 21479# We need space, tab and new line, in precisely that order. Quoting is 21480# there to prevent editors from complaining about space-tab. 21481# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21482# splitting by setting IFS to empty value.) 21483IFS=" "" $as_nl" 21484 21485# Find who we are. Look in the path if we contain no directory separator. 21486as_myself= 21487case $0 in #(( 21488 *[\\/]* ) as_myself=$0 ;; 21489 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21490for as_dir in $PATH 21491do 21492 IFS=$as_save_IFS 21493 test -z "$as_dir" && as_dir=. 21494 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21495 done 21496IFS=$as_save_IFS 21497 21498 ;; 21499esac 21500# We did not find ourselves, most probably we were run as `sh COMMAND' 21501# in which case we are not to be found in the path. 21502if test "x$as_myself" = x; then 21503 as_myself=$0 21504fi 21505if test ! -f "$as_myself"; then 21506 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21507 exit 1 21508fi 21509 21510# Unset variables that we do not need and which cause bugs (e.g. in 21511# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 21512# suppresses any "Segmentation fault" message there. '((' could 21513# trigger a bug in pdksh 5.2.14. 21514for as_var in BASH_ENV ENV MAIL MAILPATH 21515do eval test x\${$as_var+set} = xset \ 21516 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 21517done 21518PS1='$ ' 21519PS2='> ' 21520PS4='+ ' 21521 21522# NLS nuisances. 21523LC_ALL=C 21524export LC_ALL 21525LANGUAGE=C 21526export LANGUAGE 21527 21528# CDPATH. 21529(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21530 21531 21532# as_fn_error STATUS ERROR [LINENO LOG_FD] 21533# ---------------------------------------- 21534# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 21535# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 21536# script with STATUS, using 1 if that was 0. 21537as_fn_error () 21538{ 21539 as_status=$1; test $as_status -eq 0 && as_status=1 21540 if test "$4"; then 21541 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 21542 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 21543 fi 21544 $as_echo "$as_me: error: $2" >&2 21545 as_fn_exit $as_status 21546} # as_fn_error 21547 21548 21549# as_fn_set_status STATUS 21550# ----------------------- 21551# Set $? to STATUS, without forking. 21552as_fn_set_status () 21553{ 21554 return $1 21555} # as_fn_set_status 21556 21557# as_fn_exit STATUS 21558# ----------------- 21559# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 21560as_fn_exit () 21561{ 21562 set +e 21563 as_fn_set_status $1 21564 exit $1 21565} # as_fn_exit 21566 21567# as_fn_unset VAR 21568# --------------- 21569# Portably unset VAR. 21570as_fn_unset () 21571{ 21572 { eval $1=; unset $1;} 21573} 21574as_unset=as_fn_unset 21575# as_fn_append VAR VALUE 21576# ---------------------- 21577# Append the text in VALUE to the end of the definition contained in VAR. Take 21578# advantage of any shell optimizations that allow amortized linear growth over 21579# repeated appends, instead of the typical quadratic growth present in naive 21580# implementations. 21581if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 21582 eval 'as_fn_append () 21583 { 21584 eval $1+=\$2 21585 }' 21586else 21587 as_fn_append () 21588 { 21589 eval $1=\$$1\$2 21590 } 21591fi # as_fn_append 21592 21593# as_fn_arith ARG... 21594# ------------------ 21595# Perform arithmetic evaluation on the ARGs, and store the result in the 21596# global $as_val. Take advantage of shells that can avoid forks. The arguments 21597# must be portable across $(()) and expr. 21598if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 21599 eval 'as_fn_arith () 21600 { 21601 as_val=$(( $* )) 21602 }' 21603else 21604 as_fn_arith () 21605 { 21606 as_val=`expr "$@" || test $? -eq 1` 21607 } 21608fi # as_fn_arith 21609 21610 21611if expr a : '\(a\)' >/dev/null 2>&1 && 21612 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21613 as_expr=expr 21614else 21615 as_expr=false 21616fi 21617 21618if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21619 as_basename=basename 21620else 21621 as_basename=false 21622fi 21623 21624if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21625 as_dirname=dirname 21626else 21627 as_dirname=false 21628fi 21629 21630as_me=`$as_basename -- "$0" || 21631$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21632 X"$0" : 'X\(//\)$' \| \ 21633 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21634$as_echo X/"$0" | 21635 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21636 s//\1/ 21637 q 21638 } 21639 /^X\/\(\/\/\)$/{ 21640 s//\1/ 21641 q 21642 } 21643 /^X\/\(\/\).*/{ 21644 s//\1/ 21645 q 21646 } 21647 s/.*/./; q'` 21648 21649# Avoid depending upon Character Ranges. 21650as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21651as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21652as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21653as_cr_digits='0123456789' 21654as_cr_alnum=$as_cr_Letters$as_cr_digits 21655 21656ECHO_C= ECHO_N= ECHO_T= 21657case `echo -n x` in #((((( 21658-n*) 21659 case `echo 'xy\c'` in 21660 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21661 xy) ECHO_C='\c';; 21662 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 21663 ECHO_T=' ';; 21664 esac;; 21665*) 21666 ECHO_N='-n';; 21667esac 21668 21669rm -f conf$$ conf$$.exe conf$$.file 21670if test -d conf$$.dir; then 21671 rm -f conf$$.dir/conf$$.file 21672else 21673 rm -f conf$$.dir 21674 mkdir conf$$.dir 2>/dev/null 21675fi 21676if (echo >conf$$.file) 2>/dev/null; then 21677 if ln -s conf$$.file conf$$ 2>/dev/null; then 21678 as_ln_s='ln -s' 21679 # ... but there are two gotchas: 21680 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21681 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21682 # In both cases, we have to default to `cp -pR'. 21683 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21684 as_ln_s='cp -pR' 21685 elif ln conf$$.file conf$$ 2>/dev/null; then 21686 as_ln_s=ln 21687 else 21688 as_ln_s='cp -pR' 21689 fi 21690else 21691 as_ln_s='cp -pR' 21692fi 21693rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21694rmdir conf$$.dir 2>/dev/null 21695 21696 21697# as_fn_mkdir_p 21698# ------------- 21699# Create "$as_dir" as a directory, including parents if necessary. 21700as_fn_mkdir_p () 21701{ 21702 21703 case $as_dir in #( 21704 -*) as_dir=./$as_dir;; 21705 esac 21706 test -d "$as_dir" || eval $as_mkdir_p || { 21707 as_dirs= 21708 while :; do 21709 case $as_dir in #( 21710 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 21711 *) as_qdir=$as_dir;; 21712 esac 21713 as_dirs="'$as_qdir' $as_dirs" 21714 as_dir=`$as_dirname -- "$as_dir" || 21715$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21716 X"$as_dir" : 'X\(//\)[^/]' \| \ 21717 X"$as_dir" : 'X\(//\)$' \| \ 21718 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21719$as_echo X"$as_dir" | 21720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21721 s//\1/ 21722 q 21723 } 21724 /^X\(\/\/\)[^/].*/{ 21725 s//\1/ 21726 q 21727 } 21728 /^X\(\/\/\)$/{ 21729 s//\1/ 21730 q 21731 } 21732 /^X\(\/\).*/{ 21733 s//\1/ 21734 q 21735 } 21736 s/.*/./; q'` 21737 test -d "$as_dir" && break 21738 done 21739 test -z "$as_dirs" || eval "mkdir $as_dirs" 21740 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 21741 21742 21743} # as_fn_mkdir_p 21744if mkdir -p . 2>/dev/null; then 21745 as_mkdir_p='mkdir -p "$as_dir"' 21746else 21747 test -d ./-p && rmdir ./-p 21748 as_mkdir_p=false 21749fi 21750 21751 21752# as_fn_executable_p FILE 21753# ----------------------- 21754# Test if FILE is an executable regular file. 21755as_fn_executable_p () 21756{ 21757 test -f "$1" && test -x "$1" 21758} # as_fn_executable_p 21759as_test_x='test -x' 21760as_executable_p=as_fn_executable_p 21761 21762# Sed expression to map a string onto a valid CPP name. 21763as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21764 21765# Sed expression to map a string onto a valid variable name. 21766as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21767 21768 21769exec 6>&1 21770## ----------------------------------- ## 21771## Main body of $CONFIG_STATUS script. ## 21772## ----------------------------------- ## 21773_ASEOF 21774test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 21775 21776cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21777# Save the log message, to keep $0 and so on meaningful, and to 21778# report actual input values of CONFIG_FILES etc. instead of their 21779# values after options handling. 21780ac_log=" 21781This file was extended by GnuCOBOL $as_me 3.1.2, which was 21782generated by GNU Autoconf 2.69. Invocation command line was 21783 21784 CONFIG_FILES = $CONFIG_FILES 21785 CONFIG_HEADERS = $CONFIG_HEADERS 21786 CONFIG_LINKS = $CONFIG_LINKS 21787 CONFIG_COMMANDS = $CONFIG_COMMANDS 21788 $ $0 $@ 21789 21790on `(hostname || uname -n) 2>/dev/null | sed 1q` 21791" 21792 21793_ACEOF 21794 21795case $ac_config_files in *" 21796"*) set x $ac_config_files; shift; ac_config_files=$*;; 21797esac 21798 21799case $ac_config_headers in *" 21800"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 21801esac 21802 21803 21804cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21805# Files that config.status was made for. 21806config_files="$ac_config_files" 21807config_headers="$ac_config_headers" 21808config_commands="$ac_config_commands" 21809 21810_ACEOF 21811 21812cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21813ac_cs_usage="\ 21814\`$as_me' instantiates files and other configuration actions 21815from templates according to the current configuration. Unless the files 21816and actions are specified as TAGs, all are instantiated by default. 21817 21818Usage: $0 [OPTION]... [TAG]... 21819 21820 -h, --help print this help, then exit 21821 -V, --version print version number and configuration settings, then exit 21822 --config print configuration, then exit 21823 -q, --quiet, --silent 21824 do not print progress messages 21825 -d, --debug don't remove temporary files 21826 --recheck update $as_me by reconfiguring in the same conditions 21827 --file=FILE[:TEMPLATE] 21828 instantiate the configuration file FILE 21829 --header=FILE[:TEMPLATE] 21830 instantiate the configuration header FILE 21831 21832Configuration files: 21833$config_files 21834 21835Configuration headers: 21836$config_headers 21837 21838Configuration commands: 21839$config_commands 21840 21841Report bugs to <bug-gnucobol@gnu.org>. 21842GnuCOBOL home page: <https://www.gnu.org/software/gnucobol/>." 21843 21844_ACEOF 21845cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21846ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 21847ac_cs_version="\\ 21848GnuCOBOL config.status 3.1.2 21849configured by $0, generated by GNU Autoconf 2.69, 21850 with options \\"\$ac_cs_config\\" 21851 21852Copyright (C) 2012 Free Software Foundation, Inc. 21853This config.status script is free software; the Free Software Foundation 21854gives unlimited permission to copy, distribute and modify it." 21855 21856ac_pwd='$ac_pwd' 21857srcdir='$srcdir' 21858INSTALL='$INSTALL' 21859MKDIR_P='$MKDIR_P' 21860AWK='$AWK' 21861test -n "\$AWK" || AWK=awk 21862_ACEOF 21863 21864cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21865# The default lists apply if the user does not specify any file. 21866ac_need_defaults=: 21867while test $# != 0 21868do 21869 case $1 in 21870 --*=?*) 21871 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21872 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21873 ac_shift=: 21874 ;; 21875 --*=) 21876 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21877 ac_optarg= 21878 ac_shift=: 21879 ;; 21880 *) 21881 ac_option=$1 21882 ac_optarg=$2 21883 ac_shift=shift 21884 ;; 21885 esac 21886 21887 case $ac_option in 21888 # Handling of the options. 21889 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21890 ac_cs_recheck=: ;; 21891 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21892 $as_echo "$ac_cs_version"; exit ;; 21893 --config | --confi | --conf | --con | --co | --c ) 21894 $as_echo "$ac_cs_config"; exit ;; 21895 --debug | --debu | --deb | --de | --d | -d ) 21896 debug=: ;; 21897 --file | --fil | --fi | --f ) 21898 $ac_shift 21899 case $ac_optarg in 21900 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21901 '') as_fn_error $? "missing file argument" ;; 21902 esac 21903 as_fn_append CONFIG_FILES " '$ac_optarg'" 21904 ac_need_defaults=false;; 21905 --header | --heade | --head | --hea ) 21906 $ac_shift 21907 case $ac_optarg in 21908 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21909 esac 21910 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21911 ac_need_defaults=false;; 21912 --he | --h) 21913 # Conflict between --help and --header 21914 as_fn_error $? "ambiguous option: \`$1' 21915Try \`$0 --help' for more information.";; 21916 --help | --hel | -h ) 21917 $as_echo "$ac_cs_usage"; exit ;; 21918 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21919 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21920 ac_cs_silent=: ;; 21921 21922 # This is an error. 21923 -*) as_fn_error $? "unrecognized option: \`$1' 21924Try \`$0 --help' for more information." ;; 21925 21926 *) as_fn_append ac_config_targets " $1" 21927 ac_need_defaults=false ;; 21928 21929 esac 21930 shift 21931done 21932 21933ac_configure_extra_args= 21934 21935if $ac_cs_silent; then 21936 exec 6>/dev/null 21937 ac_configure_extra_args="$ac_configure_extra_args --silent" 21938fi 21939 21940_ACEOF 21941cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21942if \$ac_cs_recheck; then 21943 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21944 shift 21945 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 21946 CONFIG_SHELL='$SHELL' 21947 export CONFIG_SHELL 21948 exec "\$@" 21949fi 21950 21951_ACEOF 21952cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21953exec 5>>config.log 21954{ 21955 echo 21956 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21957## Running $as_me. ## 21958_ASBOX 21959 $as_echo "$ac_log" 21960} >&5 21961 21962_ACEOF 21963cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21964# 21965# INIT-COMMANDS 21966# 21967 21968AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 21969 21970 21971# The HP-UX ksh and POSIX shell print the target directory to stdout 21972# if CDPATH is set. 21973(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21974 21975sed_quote_subst='$sed_quote_subst' 21976double_quote_subst='$double_quote_subst' 21977delay_variable_subst='$delay_variable_subst' 21978macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21979macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21980AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 21981DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21982OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21983enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21984enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21985pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21986enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21987shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 21988SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21989ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21990PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21991host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21992host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21993host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21994build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21995build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21996build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21997SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21998Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21999GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 22000EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 22001FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 22002LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 22003NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 22004LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 22005max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 22006ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 22007exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 22008lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 22009lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 22010lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 22011lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 22012lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 22013reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 22014reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 22015deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 22016file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 22017file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 22018want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 22019sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 22020AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 22021AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 22022archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 22023STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 22024RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 22025old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22026old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22027old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 22028lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 22029CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 22030CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 22031compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 22032GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 22033lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 22034lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 22035lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 22036lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 22037lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 22038lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 22039nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 22040lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 22041lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 22042objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 22043MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 22044lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 22045lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 22046lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 22047lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 22048lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 22049need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 22050MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 22051DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 22052NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 22053LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 22054OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 22055OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 22056libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 22057shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 22058extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22059archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 22060enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 22061export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 22062whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 22063compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 22064old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 22065old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22066archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 22067archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22068module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 22069module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22070with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 22071allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 22072no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 22073hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 22074hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 22075hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 22076hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 22077hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 22078hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 22079hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 22080inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 22081link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 22082always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 22083export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 22084exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 22085include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 22086prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 22087postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 22088file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 22089variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 22090need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 22091need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 22092version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 22093runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 22094shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 22095shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 22096libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 22097library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 22098soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 22099install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 22100postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22101postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22102finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 22103finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 22104hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 22105sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 22106configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 22107configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 22108hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 22109enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 22110enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 22111enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 22112old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 22113striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 22114LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`' 22115reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`' 22116reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`' 22117old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`' 22118compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`' 22119GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`' 22120lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`' 22121lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`' 22122lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`' 22123lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`' 22124lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`' 22125archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`' 22126enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`' 22127export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`' 22128whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`' 22129compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`' 22130old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`' 22131old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`' 22132archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`' 22133archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`' 22134module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`' 22135module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`' 22136with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`' 22137allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`' 22138no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`' 22139hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`' 22140hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`' 22141hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`' 22142hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`' 22143hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`' 22144hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`' 22145hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`' 22146inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`' 22147link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`' 22148always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`' 22149export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`' 22150exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`' 22151include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`' 22152prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`' 22153postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`' 22154file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`' 22155hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`' 22156 22157LTCC='$LTCC' 22158LTCFLAGS='$LTCFLAGS' 22159compiler='$compiler_DEFAULT' 22160 22161# A function that is used when there is no print builtin or printf. 22162func_fallback_echo () 22163{ 22164 eval 'cat <<_LTECHO_EOF 22165\$1 22166_LTECHO_EOF' 22167} 22168 22169# Quote evaled strings. 22170for var in AS \ 22171DLLTOOL \ 22172OBJDUMP \ 22173SHELL \ 22174ECHO \ 22175PATH_SEPARATOR \ 22176SED \ 22177GREP \ 22178EGREP \ 22179FGREP \ 22180LD \ 22181NM \ 22182LN_S \ 22183lt_SP2NL \ 22184lt_NL2SP \ 22185reload_flag \ 22186deplibs_check_method \ 22187file_magic_cmd \ 22188file_magic_glob \ 22189want_nocaseglob \ 22190sharedlib_from_linklib_cmd \ 22191AR \ 22192AR_FLAGS \ 22193archiver_list_spec \ 22194STRIP \ 22195RANLIB \ 22196CC \ 22197CFLAGS \ 22198compiler \ 22199lt_cv_sys_global_symbol_pipe \ 22200lt_cv_sys_global_symbol_to_cdecl \ 22201lt_cv_sys_global_symbol_to_import \ 22202lt_cv_sys_global_symbol_to_c_name_address \ 22203lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 22204lt_cv_nm_interface \ 22205nm_file_list_spec \ 22206lt_cv_truncate_bin \ 22207lt_prog_compiler_no_builtin_flag \ 22208lt_prog_compiler_pic \ 22209lt_prog_compiler_wl \ 22210lt_prog_compiler_static \ 22211lt_cv_prog_compiler_c_o \ 22212need_locks \ 22213MANIFEST_TOOL \ 22214DSYMUTIL \ 22215NMEDIT \ 22216LIPO \ 22217OTOOL \ 22218OTOOL64 \ 22219shrext_cmds \ 22220export_dynamic_flag_spec \ 22221whole_archive_flag_spec \ 22222compiler_needs_object \ 22223with_gnu_ld \ 22224allow_undefined_flag \ 22225no_undefined_flag \ 22226hardcode_libdir_flag_spec \ 22227hardcode_libdir_separator \ 22228exclude_expsyms \ 22229include_expsyms \ 22230file_list_spec \ 22231variables_saved_for_relink \ 22232libname_spec \ 22233library_names_spec \ 22234soname_spec \ 22235install_override_mode \ 22236finish_eval \ 22237old_striplib \ 22238striplib \ 22239LD_RC \ 22240reload_flag_RC \ 22241compiler_RC \ 22242lt_prog_compiler_no_builtin_flag_RC \ 22243lt_prog_compiler_pic_RC \ 22244lt_prog_compiler_wl_RC \ 22245lt_prog_compiler_static_RC \ 22246lt_cv_prog_compiler_c_o_RC \ 22247export_dynamic_flag_spec_RC \ 22248whole_archive_flag_spec_RC \ 22249compiler_needs_object_RC \ 22250with_gnu_ld_RC \ 22251allow_undefined_flag_RC \ 22252no_undefined_flag_RC \ 22253hardcode_libdir_flag_spec_RC \ 22254hardcode_libdir_separator_RC \ 22255exclude_expsyms_RC \ 22256include_expsyms_RC \ 22257file_list_spec_RC; do 22258 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22259 *[\\\\\\\`\\"\\\$]*) 22260 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22261 ;; 22262 *) 22263 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22264 ;; 22265 esac 22266done 22267 22268# Double-quote double-evaled strings. 22269for var in reload_cmds \ 22270old_postinstall_cmds \ 22271old_postuninstall_cmds \ 22272old_archive_cmds \ 22273extract_expsyms_cmds \ 22274old_archive_from_new_cmds \ 22275old_archive_from_expsyms_cmds \ 22276archive_cmds \ 22277archive_expsym_cmds \ 22278module_cmds \ 22279module_expsym_cmds \ 22280export_symbols_cmds \ 22281prelink_cmds \ 22282postlink_cmds \ 22283postinstall_cmds \ 22284postuninstall_cmds \ 22285finish_cmds \ 22286sys_lib_search_path_spec \ 22287configure_time_dlsearch_path \ 22288configure_time_lt_sys_library_path \ 22289reload_cmds_RC \ 22290old_archive_cmds_RC \ 22291old_archive_from_new_cmds_RC \ 22292old_archive_from_expsyms_cmds_RC \ 22293archive_cmds_RC \ 22294archive_expsym_cmds_RC \ 22295module_cmds_RC \ 22296module_expsym_cmds_RC \ 22297export_symbols_cmds_RC \ 22298prelink_cmds_RC \ 22299postlink_cmds_RC; do 22300 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22301 *[\\\\\\\`\\"\\\$]*) 22302 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22303 ;; 22304 *) 22305 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22306 ;; 22307 esac 22308done 22309 22310ac_aux_dir='$ac_aux_dir' 22311 22312# See if we are running on zsh, and set the options that allow our 22313# commands through without removal of \ escapes INIT. 22314if test -n "\${ZSH_VERSION+set}"; then 22315 setopt NO_GLOB_SUBST 22316fi 22317 22318 22319 PACKAGE='$PACKAGE' 22320 VERSION='$VERSION' 22321 RM='$RM' 22322 ofile='$ofile' 22323 22324 22325 22326 22327 22328# Capture the value of obsolete ALL_LINGUAS because we need it to compute 22329 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. 22330 OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS" 22331 # Capture the value of LINGUAS because we need it to compute CATALOGS. 22332 LINGUAS="${LINGUAS-%UNSET%}" 22333 22334 22335_ACEOF 22336 22337cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22338 22339# Handling of arguments. 22340for ac_config_target in $ac_config_targets 22341do 22342 case $ac_config_target in 22343 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 22344 "tests/atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS tests/atconfig" ;; 22345 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22346 "libcob/Makefile") CONFIG_FILES="$CONFIG_FILES libcob/Makefile" ;; 22347 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 22348 "cobc/Makefile") CONFIG_FILES="$CONFIG_FILES cobc/Makefile" ;; 22349 "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;; 22350 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 22351 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 22352 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;; 22353 "copy/Makefile") CONFIG_FILES="$CONFIG_FILES copy/Makefile" ;; 22354 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 22355 "tests/cobol85/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cobol85/Makefile" ;; 22356 "extras/Makefile") CONFIG_FILES="$CONFIG_FILES extras/Makefile" ;; 22357 "bin/cob-config") CONFIG_FILES="$CONFIG_FILES bin/cob-config" ;; 22358 "pre-inst-env") CONFIG_FILES="$CONFIG_FILES pre-inst-env:build_aux/pre-inst-env.in" ;; 22359 "tests/atlocal") CONFIG_FILES="$CONFIG_FILES tests/atlocal" ;; 22360 "tests/run_prog_manual.sh") CONFIG_FILES="$CONFIG_FILES tests/run_prog_manual.sh" ;; 22361 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22362 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 22363 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; 22364 "chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS chmod" ;; 22365 22366 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 22367 esac 22368done 22369 22370 22371# If the user did not use the arguments to specify the items to instantiate, 22372# then the envvar interface is used. Set only those that are not. 22373# We use the long form for the default assignment because of an extremely 22374# bizarre bug on SunOS 4.1.3. 22375if $ac_need_defaults; then 22376 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22377 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22378 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22379fi 22380 22381# Have a temporary directory for convenience. Make it in the build tree 22382# simply because there is no reason against having it here, and in addition, 22383# creating and moving files from /tmp can sometimes cause problems. 22384# Hook for its removal unless debugging. 22385# Note that there is a small window in which the directory will not be cleaned: 22386# after its creation but before its name has been assigned to `$tmp'. 22387$debug || 22388{ 22389 tmp= ac_tmp= 22390 trap 'exit_status=$? 22391 : "${ac_tmp:=$tmp}" 22392 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 22393' 0 22394 trap 'as_fn_exit 1' 1 2 13 15 22395} 22396# Create a (secure) tmp directory for tmp files. 22397 22398{ 22399 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22400 test -d "$tmp" 22401} || 22402{ 22403 tmp=./conf$$-$RANDOM 22404 (umask 077 && mkdir "$tmp") 22405} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 22406ac_tmp=$tmp 22407 22408# Set up the scripts for CONFIG_FILES section. 22409# No need to generate them if there are no CONFIG_FILES. 22410# This happens for instance with `./config.status config.h'. 22411if test -n "$CONFIG_FILES"; then 22412 22413 22414ac_cr=`echo X | tr X '\015'` 22415# On cygwin, bash can eat \r inside `` if the user requested igncr. 22416# But we know of no other shell where ac_cr would be empty at this 22417# point, so we can use a bashism as a fallback. 22418if test "x$ac_cr" = x; then 22419 eval ac_cr=\$\'\\r\' 22420fi 22421ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 22422if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 22423 ac_cs_awk_cr='\\r' 22424else 22425 ac_cs_awk_cr=$ac_cr 22426fi 22427 22428echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 22429_ACEOF 22430 22431 22432{ 22433 echo "cat >conf$$subs.awk <<_ACEOF" && 22434 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 22435 echo "_ACEOF" 22436} >conf$$subs.sh || 22437 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22438ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 22439ac_delim='%!_!# ' 22440for ac_last_try in false false false false false :; do 22441 . ./conf$$subs.sh || 22442 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22443 22444 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 22445 if test $ac_delim_n = $ac_delim_num; then 22446 break 22447 elif $ac_last_try; then 22448 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22449 else 22450 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22451 fi 22452done 22453rm -f conf$$subs.sh 22454 22455cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22456cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 22457_ACEOF 22458sed -n ' 22459h 22460s/^/S["/; s/!.*/"]=/ 22461p 22462g 22463s/^[^!]*!// 22464:repl 22465t repl 22466s/'"$ac_delim"'$// 22467t delim 22468:nl 22469h 22470s/\(.\{148\}\)..*/\1/ 22471t more1 22472s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 22473p 22474n 22475b repl 22476:more1 22477s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22478p 22479g 22480s/.\{148\}// 22481t nl 22482:delim 22483h 22484s/\(.\{148\}\)..*/\1/ 22485t more2 22486s/["\\]/\\&/g; s/^/"/; s/$/"/ 22487p 22488b 22489:more2 22490s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22491p 22492g 22493s/.\{148\}// 22494t delim 22495' <conf$$subs.awk | sed ' 22496/^[^""]/{ 22497 N 22498 s/\n// 22499} 22500' >>$CONFIG_STATUS || ac_write_fail=1 22501rm -f conf$$subs.awk 22502cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22503_ACAWK 22504cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 22505 for (key in S) S_is_set[key] = 1 22506 FS = "" 22507 22508} 22509{ 22510 line = $ 0 22511 nfields = split(line, field, "@") 22512 substed = 0 22513 len = length(field[1]) 22514 for (i = 2; i < nfields; i++) { 22515 key = field[i] 22516 keylen = length(key) 22517 if (S_is_set[key]) { 22518 value = S[key] 22519 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 22520 len += length(value) + length(field[++i]) 22521 substed = 1 22522 } else 22523 len += 1 + keylen 22524 } 22525 22526 print line 22527} 22528 22529_ACAWK 22530_ACEOF 22531cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22532if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 22533 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 22534else 22535 cat 22536fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 22537 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 22538_ACEOF 22539 22540# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 22541# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 22542# trailing colons and then remove the whole line if VPATH becomes empty 22543# (actually we leave an empty line to preserve line numbers). 22544if test "x$srcdir" = x.; then 22545 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 22546h 22547s/// 22548s/^/:/ 22549s/[ ]*$/:/ 22550s/:\$(srcdir):/:/g 22551s/:\${srcdir}:/:/g 22552s/:@srcdir@:/:/g 22553s/^:*// 22554s/:*$// 22555x 22556s/\(=[ ]*\).*/\1/ 22557G 22558s/\n// 22559s/^[^=]*=[ ]*$// 22560}' 22561fi 22562 22563cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22564fi # test -n "$CONFIG_FILES" 22565 22566# Set up the scripts for CONFIG_HEADERS section. 22567# No need to generate them if there are no CONFIG_HEADERS. 22568# This happens for instance with `./config.status Makefile'. 22569if test -n "$CONFIG_HEADERS"; then 22570cat >"$ac_tmp/defines.awk" <<\_ACAWK || 22571BEGIN { 22572_ACEOF 22573 22574# Transform confdefs.h into an awk script `defines.awk', embedded as 22575# here-document in config.status, that substitutes the proper values into 22576# config.h.in to produce config.h. 22577 22578# Create a delimiter string that does not exist in confdefs.h, to ease 22579# handling of long lines. 22580ac_delim='%!_!# ' 22581for ac_last_try in false false :; do 22582 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 22583 if test -z "$ac_tt"; then 22584 break 22585 elif $ac_last_try; then 22586 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 22587 else 22588 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22589 fi 22590done 22591 22592# For the awk script, D is an array of macro values keyed by name, 22593# likewise P contains macro parameters if any. Preserve backslash 22594# newline sequences. 22595 22596ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22597sed -n ' 22598s/.\{148\}/&'"$ac_delim"'/g 22599t rset 22600:rset 22601s/^[ ]*#[ ]*define[ ][ ]*/ / 22602t def 22603d 22604:def 22605s/\\$// 22606t bsnl 22607s/["\\]/\\&/g 22608s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22609D["\1"]=" \3"/p 22610s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 22611d 22612:bsnl 22613s/["\\]/\\&/g 22614s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22615D["\1"]=" \3\\\\\\n"\\/p 22616t cont 22617s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 22618t cont 22619d 22620:cont 22621n 22622s/.\{148\}/&'"$ac_delim"'/g 22623t clear 22624:clear 22625s/\\$// 22626t bsnlc 22627s/["\\]/\\&/g; s/^/"/; s/$/"/p 22628d 22629:bsnlc 22630s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 22631b cont 22632' <confdefs.h | sed ' 22633s/'"$ac_delim"'/"\\\ 22634"/g' >>$CONFIG_STATUS || ac_write_fail=1 22635 22636cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22637 for (key in D) D_is_set[key] = 1 22638 FS = "" 22639} 22640/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 22641 line = \$ 0 22642 split(line, arg, " ") 22643 if (arg[1] == "#") { 22644 defundef = arg[2] 22645 mac1 = arg[3] 22646 } else { 22647 defundef = substr(arg[1], 2) 22648 mac1 = arg[2] 22649 } 22650 split(mac1, mac2, "(") #) 22651 macro = mac2[1] 22652 prefix = substr(line, 1, index(line, defundef) - 1) 22653 if (D_is_set[macro]) { 22654 # Preserve the white space surrounding the "#". 22655 print prefix "define", macro P[macro] D[macro] 22656 next 22657 } else { 22658 # Replace #undef with comments. This is necessary, for example, 22659 # in the case of _POSIX_SOURCE, which is predefined and required 22660 # on some systems where configure will not decide to define it. 22661 if (defundef == "undef") { 22662 print "/*", prefix defundef, macro, "*/" 22663 next 22664 } 22665 } 22666} 22667{ print } 22668_ACAWK 22669_ACEOF 22670cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22671 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 22672fi # test -n "$CONFIG_HEADERS" 22673 22674 22675eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 22676shift 22677for ac_tag 22678do 22679 case $ac_tag in 22680 :[FHLC]) ac_mode=$ac_tag; continue;; 22681 esac 22682 case $ac_mode$ac_tag in 22683 :[FHL]*:*);; 22684 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 22685 :[FH]-) ac_tag=-:-;; 22686 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22687 esac 22688 ac_save_IFS=$IFS 22689 IFS=: 22690 set x $ac_tag 22691 IFS=$ac_save_IFS 22692 shift 22693 ac_file=$1 22694 shift 22695 22696 case $ac_mode in 22697 :L) ac_source=$1;; 22698 :[FH]) 22699 ac_file_inputs= 22700 for ac_f 22701 do 22702 case $ac_f in 22703 -) ac_f="$ac_tmp/stdin";; 22704 *) # Look for the file first in the build tree, then in the source tree 22705 # (if the path is not absolute). The absolute path cannot be DOS-style, 22706 # because $ac_f cannot contain `:'. 22707 test -f "$ac_f" || 22708 case $ac_f in 22709 [\\/$]*) false;; 22710 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22711 esac || 22712 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 22713 esac 22714 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 22715 as_fn_append ac_file_inputs " '$ac_f'" 22716 done 22717 22718 # Let's still pretend it is `configure' which instantiates (i.e., don't 22719 # use $as_me), people would be surprised to read: 22720 # /* config.h. Generated by config.status. */ 22721 configure_input='Generated from '` 22722 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 22723 `' by configure.' 22724 if test x"$ac_file" != x-; then 22725 configure_input="$ac_file. $configure_input" 22726 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 22727$as_echo "$as_me: creating $ac_file" >&6;} 22728 fi 22729 # Neutralize special characters interpreted by sed in replacement strings. 22730 case $configure_input in #( 22731 *\&* | *\|* | *\\* ) 22732 ac_sed_conf_input=`$as_echo "$configure_input" | 22733 sed 's/[\\\\&|]/\\\\&/g'`;; #( 22734 *) ac_sed_conf_input=$configure_input;; 22735 esac 22736 22737 case $ac_tag in 22738 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 22739 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 22740 esac 22741 ;; 22742 esac 22743 22744 ac_dir=`$as_dirname -- "$ac_file" || 22745$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22746 X"$ac_file" : 'X\(//\)[^/]' \| \ 22747 X"$ac_file" : 'X\(//\)$' \| \ 22748 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22749$as_echo X"$ac_file" | 22750 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22751 s//\1/ 22752 q 22753 } 22754 /^X\(\/\/\)[^/].*/{ 22755 s//\1/ 22756 q 22757 } 22758 /^X\(\/\/\)$/{ 22759 s//\1/ 22760 q 22761 } 22762 /^X\(\/\).*/{ 22763 s//\1/ 22764 q 22765 } 22766 s/.*/./; q'` 22767 as_dir="$ac_dir"; as_fn_mkdir_p 22768 ac_builddir=. 22769 22770case "$ac_dir" in 22771.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22772*) 22773 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 22774 # A ".." for each directory in $ac_dir_suffix. 22775 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 22776 case $ac_top_builddir_sub in 22777 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22778 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22779 esac ;; 22780esac 22781ac_abs_top_builddir=$ac_pwd 22782ac_abs_builddir=$ac_pwd$ac_dir_suffix 22783# for backward compatibility: 22784ac_top_builddir=$ac_top_build_prefix 22785 22786case $srcdir in 22787 .) # We are building in place. 22788 ac_srcdir=. 22789 ac_top_srcdir=$ac_top_builddir_sub 22790 ac_abs_top_srcdir=$ac_pwd ;; 22791 [\\/]* | ?:[\\/]* ) # Absolute name. 22792 ac_srcdir=$srcdir$ac_dir_suffix; 22793 ac_top_srcdir=$srcdir 22794 ac_abs_top_srcdir=$srcdir ;; 22795 *) # Relative name. 22796 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22797 ac_top_srcdir=$ac_top_build_prefix$srcdir 22798 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22799esac 22800ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22801 22802 22803 case $ac_mode in 22804 :F) 22805 # 22806 # CONFIG_FILE 22807 # 22808 22809 case $INSTALL in 22810 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22811 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22812 esac 22813 ac_MKDIR_P=$MKDIR_P 22814 case $MKDIR_P in 22815 [\\/$]* | ?:[\\/]* ) ;; 22816 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22817 esac 22818_ACEOF 22819 22820cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22821# If the template does not know about datarootdir, expand it. 22822# FIXME: This hack should be removed a few years after 2.60. 22823ac_datarootdir_hack=; ac_datarootdir_seen= 22824ac_sed_dataroot=' 22825/datarootdir/ { 22826 p 22827 q 22828} 22829/@datadir@/p 22830/@docdir@/p 22831/@infodir@/p 22832/@localedir@/p 22833/@mandir@/p' 22834case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 22835*datarootdir*) ac_datarootdir_seen=yes;; 22836*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22838$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22839_ACEOF 22840cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22841 ac_datarootdir_hack=' 22842 s&@datadir@&$datadir&g 22843 s&@docdir@&$docdir&g 22844 s&@infodir@&$infodir&g 22845 s&@localedir@&$localedir&g 22846 s&@mandir@&$mandir&g 22847 s&\\\${datarootdir}&$datarootdir&g' ;; 22848esac 22849_ACEOF 22850 22851# Neutralize VPATH when `$srcdir' = `.'. 22852# Shell code in configure.ac might set extrasub. 22853# FIXME: do we really want to maintain this feature? 22854cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22855ac_sed_extra="$ac_vpsub 22856$extrasub 22857_ACEOF 22858cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22859:t 22860/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22861s|@configure_input@|$ac_sed_conf_input|;t t 22862s&@top_builddir@&$ac_top_builddir_sub&;t t 22863s&@top_build_prefix@&$ac_top_build_prefix&;t t 22864s&@srcdir@&$ac_srcdir&;t t 22865s&@abs_srcdir@&$ac_abs_srcdir&;t t 22866s&@top_srcdir@&$ac_top_srcdir&;t t 22867s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22868s&@builddir@&$ac_builddir&;t t 22869s&@abs_builddir@&$ac_abs_builddir&;t t 22870s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22871s&@INSTALL@&$ac_INSTALL&;t t 22872s&@MKDIR_P@&$ac_MKDIR_P&;t t 22873$ac_datarootdir_hack 22874" 22875eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 22876 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22877 22878test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22879 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 22880 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 22881 "$ac_tmp/out"`; test -z "$ac_out"; } && 22882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22883which seems to be undefined. Please make sure it is defined" >&5 22884$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22885which seems to be undefined. Please make sure it is defined" >&2;} 22886 22887 rm -f "$ac_tmp/stdin" 22888 case $ac_file in 22889 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 22890 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 22891 esac \ 22892 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22893 ;; 22894 :H) 22895 # 22896 # CONFIG_HEADER 22897 # 22898 if test x"$ac_file" != x-; then 22899 { 22900 $as_echo "/* $configure_input */" \ 22901 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 22902 } >"$ac_tmp/config.h" \ 22903 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22904 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 22905 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 22906$as_echo "$as_me: $ac_file is unchanged" >&6;} 22907 else 22908 rm -f "$ac_file" 22909 mv "$ac_tmp/config.h" "$ac_file" \ 22910 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22911 fi 22912 else 22913 $as_echo "/* $configure_input */" \ 22914 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 22915 || as_fn_error $? "could not create -" "$LINENO" 5 22916 fi 22917# Compute "$ac_file"'s index in $config_headers. 22918_am_arg="$ac_file" 22919_am_stamp_count=1 22920for _am_header in $config_headers :; do 22921 case $_am_header in 22922 $_am_arg | $_am_arg:* ) 22923 break ;; 22924 * ) 22925 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22926 esac 22927done 22928echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22929$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22930 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22931 X"$_am_arg" : 'X\(//\)$' \| \ 22932 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22933$as_echo X"$_am_arg" | 22934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22935 s//\1/ 22936 q 22937 } 22938 /^X\(\/\/\)[^/].*/{ 22939 s//\1/ 22940 q 22941 } 22942 /^X\(\/\/\)$/{ 22943 s//\1/ 22944 q 22945 } 22946 /^X\(\/\).*/{ 22947 s//\1/ 22948 q 22949 } 22950 s/.*/./; q'`/stamp-h$_am_stamp_count 22951 ;; 22952 22953 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 22954$as_echo "$as_me: executing $ac_file commands" >&6;} 22955 ;; 22956 esac 22957 22958 22959 case $ac_file$ac_mode in 22960 "tests/atconfig":C) cat >tests/atconfig <<ATEOF 22961# Configurable variable values for building test suites. 22962# Generated by $0. 22963# Copyright (C) 2012 Free Software Foundation, Inc. 22964 22965# The test suite will define top_srcdir=$at_top_srcdir/../.. etc. 22966at_testdir='tests' 22967abs_builddir='$ac_abs_builddir' 22968at_srcdir='$ac_srcdir' 22969abs_srcdir='$ac_abs_srcdir' 22970at_top_srcdir='$ac_top_srcdir' 22971abs_top_srcdir='$ac_abs_top_srcdir' 22972at_top_build_prefix='$ac_top_build_prefix' 22973abs_top_builddir='$ac_abs_top_builddir' 22974 22975# Backward compatibility with Autotest <= 2.59b: 22976at_top_builddir=\$at_top_build_prefix 22977 22978AUTOTEST_PATH='tests' 22979 22980SHELL=\${CONFIG_SHELL-'$SHELL'} 22981ATEOF 22982 ;; 22983 "bin/cob-config":F) chmod +x bin/cob-config ;; 22984 "pre-inst-env":F) chmod +x pre-inst-env ;; 22985 "tests/atlocal":F) chmod +x tests/atlocal ;; 22986 "tests/run_prog_manual.sh":F) chmod +x tests/run_prog_manual.sh ;; 22987 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22988 # Older Autoconf quotes --file arguments for eval, but not when files 22989 # are listed without --file. Let's play safe and only enable the eval 22990 # if we detect the quoting. 22991 # TODO: see whether this extra hack can be removed once we start 22992 # requiring Autoconf 2.70 or later. 22993 case $CONFIG_FILES in #( 22994 *\'*) : 22995 eval set x "$CONFIG_FILES" ;; #( 22996 *) : 22997 set x $CONFIG_FILES ;; #( 22998 *) : 22999 ;; 23000esac 23001 shift 23002 # Used to flag and report bootstrapping failures. 23003 am_rc=0 23004 for am_mf 23005 do 23006 # Strip MF so we end up with the name of the file. 23007 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 23008 # Check whether this is an Automake generated Makefile which includes 23009 # dependency-tracking related rules and includes. 23010 # Grep'ing the whole file directly is not great: AIX grep has a line 23011 # limit of 2048, but all sed's we know have understand at least 4000. 23012 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 23013 || continue 23014 am_dirpart=`$as_dirname -- "$am_mf" || 23015$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23016 X"$am_mf" : 'X\(//\)[^/]' \| \ 23017 X"$am_mf" : 'X\(//\)$' \| \ 23018 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 23019$as_echo X"$am_mf" | 23020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23021 s//\1/ 23022 q 23023 } 23024 /^X\(\/\/\)[^/].*/{ 23025 s//\1/ 23026 q 23027 } 23028 /^X\(\/\/\)$/{ 23029 s//\1/ 23030 q 23031 } 23032 /^X\(\/\).*/{ 23033 s//\1/ 23034 q 23035 } 23036 s/.*/./; q'` 23037 am_filepart=`$as_basename -- "$am_mf" || 23038$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 23039 X"$am_mf" : 'X\(//\)$' \| \ 23040 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 23041$as_echo X/"$am_mf" | 23042 sed '/^.*\/\([^/][^/]*\)\/*$/{ 23043 s//\1/ 23044 q 23045 } 23046 /^X\/\(\/\/\)$/{ 23047 s//\1/ 23048 q 23049 } 23050 /^X\/\(\/\).*/{ 23051 s//\1/ 23052 q 23053 } 23054 s/.*/./; q'` 23055 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 23056 && sed -e '/# am--include-marker/d' "$am_filepart" \ 23057 | $MAKE -f - am--depfiles" >&5 23058 (cd "$am_dirpart" \ 23059 && sed -e '/# am--include-marker/d' "$am_filepart" \ 23060 | $MAKE -f - am--depfiles) >&5 2>&5 23061 ac_status=$? 23062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23063 (exit $ac_status); } || am_rc=$? 23064 done 23065 if test $am_rc -ne 0; then 23066 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23067$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23068as_fn_error $? "Something went wrong bootstrapping makefile fragments 23069 for automatic dependency tracking. Try re-running configure with the 23070 '--disable-dependency-tracking' option to at least be able to build 23071 the package (albeit without support for automatic dependency tracking). 23072See \`config.log' for more details" "$LINENO" 5; } 23073 fi 23074 { am_dirpart=; unset am_dirpart;} 23075 { am_filepart=; unset am_filepart;} 23076 { am_mf=; unset am_mf;} 23077 { am_rc=; unset am_rc;} 23078 rm -f conftest-deps.mk 23079} 23080 ;; 23081 "libtool":C) 23082 23083 # See if we are running on zsh, and set the options that allow our 23084 # commands through without removal of \ escapes. 23085 if test -n "${ZSH_VERSION+set}"; then 23086 setopt NO_GLOB_SUBST 23087 fi 23088 23089 cfgfile=${ofile}T 23090 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 23091 $RM "$cfgfile" 23092 23093 cat <<_LT_EOF >> "$cfgfile" 23094#! $SHELL 23095# Generated automatically by $as_me ($PACKAGE) $VERSION 23096# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 23097# NOTE: Changes made to this file will be lost: look at ltmain.sh. 23098 23099# Provide generalized library-building support services. 23100# Written by Gordon Matzigkeit, 1996 23101 23102# Copyright (C) 2014 Free Software Foundation, Inc. 23103# This is free software; see the source for copying conditions. There is NO 23104# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 23105 23106# GNU Libtool is free software; you can redistribute it and/or modify 23107# it under the terms of the GNU General Public License as published by 23108# the Free Software Foundation; either version 2 of of the License, or 23109# (at your option) any later version. 23110# 23111# As a special exception to the GNU General Public License, if you 23112# distribute this file as part of a program or library that is built 23113# using GNU Libtool, you may include this file under the same 23114# distribution terms that you use for the rest of that program. 23115# 23116# GNU Libtool is distributed in the hope that it will be useful, but 23117# WITHOUT ANY WARRANTY; without even the implied warranty of 23118# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23119# GNU General Public License for more details. 23120# 23121# You should have received a copy of the GNU General Public License 23122# along with this program. If not, see <https://www.gnu.org/licenses/>. 23123 23124 23125# The names of the tagged configurations supported by this script. 23126available_tags='RC ' 23127 23128# Configured defaults for sys_lib_dlsearch_path munging. 23129: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 23130 23131# ### BEGIN LIBTOOL CONFIG 23132 23133# Which release of libtool.m4 was used? 23134macro_version=$macro_version 23135macro_revision=$macro_revision 23136 23137# Assembler program. 23138AS=$lt_AS 23139 23140# DLL creation program. 23141DLLTOOL=$lt_DLLTOOL 23142 23143# Object dumper program. 23144OBJDUMP=$lt_OBJDUMP 23145 23146# Whether or not to build shared libraries. 23147build_libtool_libs=$enable_shared 23148 23149# Whether or not to build static libraries. 23150build_old_libs=$enable_static 23151 23152# What type of objects to build. 23153pic_mode=$pic_mode 23154 23155# Whether or not to optimize for fast installation. 23156fast_install=$enable_fast_install 23157 23158# Shared archive member basename,for filename based shared library versioning on AIX. 23159shared_archive_member_spec=$shared_archive_member_spec 23160 23161# Shell to use when invoking shell scripts. 23162SHELL=$lt_SHELL 23163 23164# An echo program that protects backslashes. 23165ECHO=$lt_ECHO 23166 23167# The PATH separator for the build system. 23168PATH_SEPARATOR=$lt_PATH_SEPARATOR 23169 23170# The host system. 23171host_alias=$host_alias 23172host=$host 23173host_os=$host_os 23174 23175# The build system. 23176build_alias=$build_alias 23177build=$build 23178build_os=$build_os 23179 23180# A sed program that does not truncate output. 23181SED=$lt_SED 23182 23183# Sed that helps us avoid accidentally triggering echo(1) options like -n. 23184Xsed="\$SED -e 1s/^X//" 23185 23186# A grep program that handles long lines. 23187GREP=$lt_GREP 23188 23189# An ERE matcher. 23190EGREP=$lt_EGREP 23191 23192# A literal string matcher. 23193FGREP=$lt_FGREP 23194 23195# A BSD- or MS-compatible name lister. 23196NM=$lt_NM 23197 23198# Whether we need soft or hard links. 23199LN_S=$lt_LN_S 23200 23201# What is the maximum length of a command? 23202max_cmd_len=$max_cmd_len 23203 23204# Object file suffix (normally "o"). 23205objext=$ac_objext 23206 23207# Executable file suffix (normally ""). 23208exeext=$exeext 23209 23210# whether the shell understands "unset". 23211lt_unset=$lt_unset 23212 23213# turn spaces into newlines. 23214SP2NL=$lt_lt_SP2NL 23215 23216# turn newlines into spaces. 23217NL2SP=$lt_lt_NL2SP 23218 23219# convert \$build file names to \$host format. 23220to_host_file_cmd=$lt_cv_to_host_file_cmd 23221 23222# convert \$build files to toolchain format. 23223to_tool_file_cmd=$lt_cv_to_tool_file_cmd 23224 23225# Method to check whether dependent libraries are shared objects. 23226deplibs_check_method=$lt_deplibs_check_method 23227 23228# Command to use when deplibs_check_method = "file_magic". 23229file_magic_cmd=$lt_file_magic_cmd 23230 23231# How to find potential files when deplibs_check_method = "file_magic". 23232file_magic_glob=$lt_file_magic_glob 23233 23234# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 23235want_nocaseglob=$lt_want_nocaseglob 23236 23237# Command to associate shared and link libraries. 23238sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 23239 23240# The archiver. 23241AR=$lt_AR 23242 23243# Flags to create an archive. 23244AR_FLAGS=$lt_AR_FLAGS 23245 23246# How to feed a file listing to the archiver. 23247archiver_list_spec=$lt_archiver_list_spec 23248 23249# A symbol stripping program. 23250STRIP=$lt_STRIP 23251 23252# Commands used to install an old-style archive. 23253RANLIB=$lt_RANLIB 23254old_postinstall_cmds=$lt_old_postinstall_cmds 23255old_postuninstall_cmds=$lt_old_postuninstall_cmds 23256 23257# Whether to use a lock for old archive extraction. 23258lock_old_archive_extraction=$lock_old_archive_extraction 23259 23260# A C compiler. 23261LTCC=$lt_CC 23262 23263# LTCC compiler flags. 23264LTCFLAGS=$lt_CFLAGS 23265 23266# Take the output of nm and produce a listing of raw symbols and C names. 23267global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 23268 23269# Transform the output of nm in a proper C declaration. 23270global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 23271 23272# Transform the output of nm into a list of symbols to manually relocate. 23273global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 23274 23275# Transform the output of nm in a C name address pair. 23276global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 23277 23278# Transform the output of nm in a C name address pair when lib prefix is needed. 23279global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 23280 23281# The name lister interface. 23282nm_interface=$lt_lt_cv_nm_interface 23283 23284# Specify filename containing input files for \$NM. 23285nm_file_list_spec=$lt_nm_file_list_spec 23286 23287# The root where to search for dependent libraries,and where our libraries should be installed. 23288lt_sysroot=$lt_sysroot 23289 23290# Command to truncate a binary pipe. 23291lt_truncate_bin=$lt_lt_cv_truncate_bin 23292 23293# The name of the directory that contains temporary libtool files. 23294objdir=$objdir 23295 23296# Used to examine libraries when file_magic_cmd begins with "file". 23297MAGIC_CMD=$MAGIC_CMD 23298 23299# Must we lock files when doing compilation? 23300need_locks=$lt_need_locks 23301 23302# Manifest tool. 23303MANIFEST_TOOL=$lt_MANIFEST_TOOL 23304 23305# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 23306DSYMUTIL=$lt_DSYMUTIL 23307 23308# Tool to change global to local symbols on Mac OS X. 23309NMEDIT=$lt_NMEDIT 23310 23311# Tool to manipulate fat objects and archives on Mac OS X. 23312LIPO=$lt_LIPO 23313 23314# ldd/readelf like tool for Mach-O binaries on Mac OS X. 23315OTOOL=$lt_OTOOL 23316 23317# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 23318OTOOL64=$lt_OTOOL64 23319 23320# Old archive suffix (normally "a"). 23321libext=$libext 23322 23323# Shared library suffix (normally ".so"). 23324shrext_cmds=$lt_shrext_cmds 23325 23326# The commands to extract the exported symbol list from a shared archive. 23327extract_expsyms_cmds=$lt_extract_expsyms_cmds 23328 23329# Variables whose values should be saved in libtool wrapper scripts and 23330# restored at link time. 23331variables_saved_for_relink=$lt_variables_saved_for_relink 23332 23333# Do we need the "lib" prefix for modules? 23334need_lib_prefix=$need_lib_prefix 23335 23336# Do we need a version for libraries? 23337need_version=$need_version 23338 23339# Library versioning type. 23340version_type=$version_type 23341 23342# Shared library runtime path variable. 23343runpath_var=$runpath_var 23344 23345# Shared library path variable. 23346shlibpath_var=$shlibpath_var 23347 23348# Is shlibpath searched before the hard-coded library search path? 23349shlibpath_overrides_runpath=$shlibpath_overrides_runpath 23350 23351# Format of library name prefix. 23352libname_spec=$lt_libname_spec 23353 23354# List of archive names. First name is the real one, the rest are links. 23355# The last name is the one that the linker finds with -lNAME 23356library_names_spec=$lt_library_names_spec 23357 23358# The coded name of the library, if different from the real name. 23359soname_spec=$lt_soname_spec 23360 23361# Permission mode override for installation of shared libraries. 23362install_override_mode=$lt_install_override_mode 23363 23364# Command to use after installation of a shared archive. 23365postinstall_cmds=$lt_postinstall_cmds 23366 23367# Command to use after uninstallation of a shared archive. 23368postuninstall_cmds=$lt_postuninstall_cmds 23369 23370# Commands used to finish a libtool library installation in a directory. 23371finish_cmds=$lt_finish_cmds 23372 23373# As "finish_cmds", except a single script fragment to be evaled but 23374# not shown. 23375finish_eval=$lt_finish_eval 23376 23377# Whether we should hardcode library paths into libraries. 23378hardcode_into_libs=$hardcode_into_libs 23379 23380# Compile-time system search path for libraries. 23381sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 23382 23383# Detected run-time system search path for libraries. 23384sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 23385 23386# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 23387configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 23388 23389# Whether dlopen is supported. 23390dlopen_support=$enable_dlopen 23391 23392# Whether dlopen of programs is supported. 23393dlopen_self=$enable_dlopen_self 23394 23395# Whether dlopen of statically linked programs is supported. 23396dlopen_self_static=$enable_dlopen_self_static 23397 23398# Commands to strip libraries. 23399old_striplib=$lt_old_striplib 23400striplib=$lt_striplib 23401 23402 23403# The linker used to build libraries. 23404LD=$lt_LD 23405 23406# How to create reloadable object files. 23407reload_flag=$lt_reload_flag 23408reload_cmds=$lt_reload_cmds 23409 23410# Commands used to build an old-style archive. 23411old_archive_cmds=$lt_old_archive_cmds 23412 23413# A language specific compiler. 23414CC=$lt_compiler 23415 23416# Is the compiler the GNU compiler? 23417with_gcc=$GCC 23418 23419# Compiler flag to turn off builtin functions. 23420no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 23421 23422# Additional compiler flags for building library objects. 23423pic_flag=$lt_lt_prog_compiler_pic 23424 23425# How to pass a linker flag through the compiler. 23426wl=$lt_lt_prog_compiler_wl 23427 23428# Compiler flag to prevent dynamic linking. 23429link_static_flag=$lt_lt_prog_compiler_static 23430 23431# Does compiler simultaneously support -c and -o options? 23432compiler_c_o=$lt_lt_cv_prog_compiler_c_o 23433 23434# Whether or not to add -lc for building shared libraries. 23435build_libtool_need_lc=$archive_cmds_need_lc 23436 23437# Whether or not to disallow shared libs when runtime libs are static. 23438allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 23439 23440# Compiler flag to allow reflexive dlopens. 23441export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 23442 23443# Compiler flag to generate shared objects directly from archives. 23444whole_archive_flag_spec=$lt_whole_archive_flag_spec 23445 23446# Whether the compiler copes with passing no objects directly. 23447compiler_needs_object=$lt_compiler_needs_object 23448 23449# Create an old-style archive from a shared archive. 23450old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 23451 23452# Create a temporary old-style archive to link instead of a shared archive. 23453old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 23454 23455# Commands used to build a shared archive. 23456archive_cmds=$lt_archive_cmds 23457archive_expsym_cmds=$lt_archive_expsym_cmds 23458 23459# Commands used to build a loadable module if different from building 23460# a shared archive. 23461module_cmds=$lt_module_cmds 23462module_expsym_cmds=$lt_module_expsym_cmds 23463 23464# Whether we are building with GNU ld or not. 23465with_gnu_ld=$lt_with_gnu_ld 23466 23467# Flag that allows shared libraries with undefined symbols to be built. 23468allow_undefined_flag=$lt_allow_undefined_flag 23469 23470# Flag that enforces no undefined symbols. 23471no_undefined_flag=$lt_no_undefined_flag 23472 23473# Flag to hardcode \$libdir into a binary during linking. 23474# This must work even if \$libdir does not exist 23475hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 23476 23477# Whether we need a single "-rpath" flag with a separated argument. 23478hardcode_libdir_separator=$lt_hardcode_libdir_separator 23479 23480# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23481# DIR into the resulting binary. 23482hardcode_direct=$hardcode_direct 23483 23484# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23485# DIR into the resulting binary and the resulting library dependency is 23486# "absolute",i.e impossible to change by setting \$shlibpath_var if the 23487# library is relocated. 23488hardcode_direct_absolute=$hardcode_direct_absolute 23489 23490# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23491# into the resulting binary. 23492hardcode_minus_L=$hardcode_minus_L 23493 23494# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23495# into the resulting binary. 23496hardcode_shlibpath_var=$hardcode_shlibpath_var 23497 23498# Set to "yes" if building a shared library automatically hardcodes DIR 23499# into the library and all subsequent libraries and executables linked 23500# against it. 23501hardcode_automatic=$hardcode_automatic 23502 23503# Set to yes if linker adds runtime paths of dependent libraries 23504# to runtime path list. 23505inherit_rpath=$inherit_rpath 23506 23507# Whether libtool must link a program against all its dependency libraries. 23508link_all_deplibs=$link_all_deplibs 23509 23510# Set to "yes" if exported symbols are required. 23511always_export_symbols=$always_export_symbols 23512 23513# The commands to list exported symbols. 23514export_symbols_cmds=$lt_export_symbols_cmds 23515 23516# Symbols that should not be listed in the preloaded symbols. 23517exclude_expsyms=$lt_exclude_expsyms 23518 23519# Symbols that must always be exported. 23520include_expsyms=$lt_include_expsyms 23521 23522# Commands necessary for linking programs (against libraries) with templates. 23523prelink_cmds=$lt_prelink_cmds 23524 23525# Commands necessary for finishing linking programs. 23526postlink_cmds=$lt_postlink_cmds 23527 23528# Specify filename containing input files. 23529file_list_spec=$lt_file_list_spec 23530 23531# How to hardcode a shared library path into an executable. 23532hardcode_action=$hardcode_action 23533 23534# ### END LIBTOOL CONFIG 23535 23536_LT_EOF 23537 23538 cat <<'_LT_EOF' >> "$cfgfile" 23539 23540# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 23541 23542# func_munge_path_list VARIABLE PATH 23543# ----------------------------------- 23544# VARIABLE is name of variable containing _space_ separated list of 23545# directories to be munged by the contents of PATH, which is string 23546# having a format: 23547# "DIR[:DIR]:" 23548# string "DIR[ DIR]" will be prepended to VARIABLE 23549# ":DIR[:DIR]" 23550# string "DIR[ DIR]" will be appended to VARIABLE 23551# "DIRP[:DIRP]::[DIRA:]DIRA" 23552# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 23553# "DIRA[ DIRA]" will be appended to VARIABLE 23554# "DIR[:DIR]" 23555# VARIABLE will be replaced by "DIR[ DIR]" 23556func_munge_path_list () 23557{ 23558 case x$2 in 23559 x) 23560 ;; 23561 *:) 23562 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 23563 ;; 23564 x:*) 23565 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 23566 ;; 23567 *::*) 23568 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 23569 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 23570 ;; 23571 *) 23572 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 23573 ;; 23574 esac 23575} 23576 23577 23578# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 23579func_cc_basename () 23580{ 23581 for cc_temp in $*""; do 23582 case $cc_temp in 23583 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 23584 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 23585 \-*) ;; 23586 *) break;; 23587 esac 23588 done 23589 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 23590} 23591 23592 23593# ### END FUNCTIONS SHARED WITH CONFIGURE 23594 23595_LT_EOF 23596 23597 case $host_os in 23598 aix3*) 23599 cat <<\_LT_EOF >> "$cfgfile" 23600# AIX sometimes has problems with the GCC collect2 program. For some 23601# reason, if we set the COLLECT_NAMES environment variable, the problems 23602# vanish in a puff of smoke. 23603if test set != "${COLLECT_NAMES+set}"; then 23604 COLLECT_NAMES= 23605 export COLLECT_NAMES 23606fi 23607_LT_EOF 23608 ;; 23609 esac 23610 23611 23612ltmain=$ac_aux_dir/ltmain.sh 23613 23614 23615 # We use sed instead of cat because bash on DJGPP gets confused if 23616 # if finds mixed CR/LF and LF-only lines. Since sed operates in 23617 # text mode, it properly converts lines to CR/LF. This bash problem 23618 # is reportedly fixed, but why not run on old versions too? 23619 sed '$q' "$ltmain" >> "$cfgfile" \ 23620 || (rm -f "$cfgfile"; exit 1) 23621 23622 mv -f "$cfgfile" "$ofile" || 23623 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 23624 chmod +x "$ofile" 23625 23626 23627 cat <<_LT_EOF >> "$ofile" 23628 23629# ### BEGIN LIBTOOL TAG CONFIG: RC 23630 23631# The linker used to build libraries. 23632LD=$lt_LD_RC 23633 23634# How to create reloadable object files. 23635reload_flag=$lt_reload_flag_RC 23636reload_cmds=$lt_reload_cmds_RC 23637 23638# Commands used to build an old-style archive. 23639old_archive_cmds=$lt_old_archive_cmds_RC 23640 23641# A language specific compiler. 23642CC=$lt_compiler_RC 23643 23644# Is the compiler the GNU compiler? 23645with_gcc=$GCC_RC 23646 23647# Compiler flag to turn off builtin functions. 23648no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 23649 23650# Additional compiler flags for building library objects. 23651pic_flag=$lt_lt_prog_compiler_pic_RC 23652 23653# How to pass a linker flag through the compiler. 23654wl=$lt_lt_prog_compiler_wl_RC 23655 23656# Compiler flag to prevent dynamic linking. 23657link_static_flag=$lt_lt_prog_compiler_static_RC 23658 23659# Does compiler simultaneously support -c and -o options? 23660compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 23661 23662# Whether or not to add -lc for building shared libraries. 23663build_libtool_need_lc=$archive_cmds_need_lc_RC 23664 23665# Whether or not to disallow shared libs when runtime libs are static. 23666allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 23667 23668# Compiler flag to allow reflexive dlopens. 23669export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 23670 23671# Compiler flag to generate shared objects directly from archives. 23672whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 23673 23674# Whether the compiler copes with passing no objects directly. 23675compiler_needs_object=$lt_compiler_needs_object_RC 23676 23677# Create an old-style archive from a shared archive. 23678old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 23679 23680# Create a temporary old-style archive to link instead of a shared archive. 23681old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 23682 23683# Commands used to build a shared archive. 23684archive_cmds=$lt_archive_cmds_RC 23685archive_expsym_cmds=$lt_archive_expsym_cmds_RC 23686 23687# Commands used to build a loadable module if different from building 23688# a shared archive. 23689module_cmds=$lt_module_cmds_RC 23690module_expsym_cmds=$lt_module_expsym_cmds_RC 23691 23692# Whether we are building with GNU ld or not. 23693with_gnu_ld=$lt_with_gnu_ld_RC 23694 23695# Flag that allows shared libraries with undefined symbols to be built. 23696allow_undefined_flag=$lt_allow_undefined_flag_RC 23697 23698# Flag that enforces no undefined symbols. 23699no_undefined_flag=$lt_no_undefined_flag_RC 23700 23701# Flag to hardcode \$libdir into a binary during linking. 23702# This must work even if \$libdir does not exist 23703hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 23704 23705# Whether we need a single "-rpath" flag with a separated argument. 23706hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 23707 23708# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23709# DIR into the resulting binary. 23710hardcode_direct=$hardcode_direct_RC 23711 23712# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23713# DIR into the resulting binary and the resulting library dependency is 23714# "absolute",i.e impossible to change by setting \$shlibpath_var if the 23715# library is relocated. 23716hardcode_direct_absolute=$hardcode_direct_absolute_RC 23717 23718# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23719# into the resulting binary. 23720hardcode_minus_L=$hardcode_minus_L_RC 23721 23722# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23723# into the resulting binary. 23724hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 23725 23726# Set to "yes" if building a shared library automatically hardcodes DIR 23727# into the library and all subsequent libraries and executables linked 23728# against it. 23729hardcode_automatic=$hardcode_automatic_RC 23730 23731# Set to yes if linker adds runtime paths of dependent libraries 23732# to runtime path list. 23733inherit_rpath=$inherit_rpath_RC 23734 23735# Whether libtool must link a program against all its dependency libraries. 23736link_all_deplibs=$link_all_deplibs_RC 23737 23738# Set to "yes" if exported symbols are required. 23739always_export_symbols=$always_export_symbols_RC 23740 23741# The commands to list exported symbols. 23742export_symbols_cmds=$lt_export_symbols_cmds_RC 23743 23744# Symbols that should not be listed in the preloaded symbols. 23745exclude_expsyms=$lt_exclude_expsyms_RC 23746 23747# Symbols that must always be exported. 23748include_expsyms=$lt_include_expsyms_RC 23749 23750# Commands necessary for linking programs (against libraries) with templates. 23751prelink_cmds=$lt_prelink_cmds_RC 23752 23753# Commands necessary for finishing linking programs. 23754postlink_cmds=$lt_postlink_cmds_RC 23755 23756# Specify filename containing input files. 23757file_list_spec=$lt_file_list_spec_RC 23758 23759# How to hardcode a shared library path into an executable. 23760hardcode_action=$hardcode_action_RC 23761 23762# ### END LIBTOOL TAG CONFIG: RC 23763_LT_EOF 23764 23765 ;; 23766 "po-directories":C) 23767 for ac_file in $CONFIG_FILES; do 23768 # Support "outfile[:infile[:infile...]]" 23769 case "$ac_file" in 23770 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 23771 esac 23772 # PO directories have a Makefile.in generated from Makefile.in.in. 23773 case "$ac_file" in */Makefile.in) 23774 # Adjust a relative srcdir. 23775 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 23776 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` 23777 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 23778 # In autoconf-2.13 it is called $ac_given_srcdir. 23779 # In autoconf-2.50 it is called $srcdir. 23780 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 23781 case "$ac_given_srcdir" in 23782 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 23783 /*) top_srcdir="$ac_given_srcdir" ;; 23784 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 23785 esac 23786 # Treat a directory as a PO directory if and only if it has a 23787 # POTFILES.in file. This allows packages to have multiple PO 23788 # directories under different names or in different locations. 23789 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 23790 rm -f "$ac_dir/POTFILES" 23791 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 23792 gt_tab=`printf '\t'` 23793 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 23794 POMAKEFILEDEPS="POTFILES.in" 23795 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 23796 # on $ac_dir but don't depend on user-specified configuration 23797 # parameters. 23798 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 23799 # The LINGUAS file contains the set of available languages. 23800 if test -n "$OBSOLETE_ALL_LINGUAS"; then 23801 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 23802 fi 23803 ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` 23804 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 23805 else 23806 # The set of available languages was given in configure.in. 23807 ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS 23808 fi 23809 # Compute POFILES 23810 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 23811 # Compute UPDATEPOFILES 23812 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 23813 # Compute DUMMYPOFILES 23814 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 23815 # Compute GMOFILES 23816 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 23817 case "$ac_given_srcdir" in 23818 .) srcdirpre= ;; 23819 *) srcdirpre='$(srcdir)/' ;; 23820 esac 23821 POFILES= 23822 UPDATEPOFILES= 23823 DUMMYPOFILES= 23824 GMOFILES= 23825 for lang in $ALL_LINGUAS; do 23826 POFILES="$POFILES $srcdirpre$lang.po" 23827 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 23828 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 23829 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 23830 done 23831 # CATALOGS depends on both $ac_dir and the user's LINGUAS 23832 # environment variable. 23833 INST_LINGUAS= 23834 if test -n "$ALL_LINGUAS"; then 23835 for presentlang in $ALL_LINGUAS; do 23836 useit=no 23837 if test "%UNSET%" != "$LINGUAS"; then 23838 desiredlanguages="$LINGUAS" 23839 else 23840 desiredlanguages="$ALL_LINGUAS" 23841 fi 23842 for desiredlang in $desiredlanguages; do 23843 # Use the presentlang catalog if desiredlang is 23844 # a. equal to presentlang, or 23845 # b. a variant of presentlang (because in this case, 23846 # presentlang can be used as a fallback for messages 23847 # which are not translated in the desiredlang catalog). 23848 case "$desiredlang" in 23849 "$presentlang"*) useit=yes;; 23850 esac 23851 done 23852 if test $useit = yes; then 23853 INST_LINGUAS="$INST_LINGUAS $presentlang" 23854 fi 23855 done 23856 fi 23857 CATALOGS= 23858 if test -n "$INST_LINGUAS"; then 23859 for lang in $INST_LINGUAS; do 23860 CATALOGS="$CATALOGS $lang.gmo" 23861 done 23862 fi 23863 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 23864 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" 23865 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 23866 if test -f "$f"; then 23867 case "$f" in 23868 *.orig | *.bak | *~) ;; 23869 *) cat "$f" >> "$ac_dir/Makefile" ;; 23870 esac 23871 fi 23872 done 23873 fi 23874 ;; 23875 esac 23876 done ;; 23877 "chmod":C) chmod +x bin/cob-config; 23878chmod +x tests/atconfig; 23879chmod +x tests/atlocal ;; 23880 23881 esac 23882done # for ac_tag 23883 23884 23885as_fn_exit 0 23886_ACEOF 23887ac_clean_files=$ac_clean_files_save 23888 23889test $ac_write_fail = 0 || 23890 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 23891 23892 23893# configure is writing to config.log, and then calls config.status. 23894# config.status does its own redirection, appending to config.log. 23895# Unfortunately, on DOS this fails, as config.log is still kept open 23896# by configure, so config.status won't be able to write to it; its 23897# output is simply discarded. So we exec the FD to /dev/null, 23898# effectively closing config.log, so it can be properly (re)opened and 23899# appended to by config.status. When coming back to configure, we 23900# need to make the FD available again. 23901if test "$no_create" != yes; then 23902 ac_cs_success=: 23903 ac_config_status_args= 23904 test "$silent" = yes && 23905 ac_config_status_args="$ac_config_status_args --quiet" 23906 exec 5>/dev/null 23907 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23908 exec 5>>config.log 23909 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23910 # would make configure fail if this is the last instruction. 23911 $ac_cs_success || as_fn_exit 1 23912fi 23913if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 23915$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 23916fi 23917 23918 23919{ $as_echo "$as_me:${as_lineno-$LINENO}: GnuCOBOL Configuration:" >&5 23920$as_echo "$as_me: GnuCOBOL Configuration:" >&6;} 23921{ $as_echo "$as_me:${as_lineno-$LINENO}: CC ${CC}" >&5 23922$as_echo "$as_me: CC ${CC}" >&6;} 23923{ $as_echo "$as_me:${as_lineno-$LINENO}: CFLAGS ${CFLAGS}" >&5 23924$as_echo "$as_me: CFLAGS ${CFLAGS}" >&6;} 23925{ $as_echo "$as_me:${as_lineno-$LINENO}: LDFLAGS ${LDFLAGS}" >&5 23926$as_echo "$as_me: LDFLAGS ${LDFLAGS}" >&6;} 23927if test "x$PROGRAMS_LIBS" != "x"; then 23928 { $as_echo "$as_me:${as_lineno-$LINENO}: PROGRAMS_LIBS ${PROGRAMS_LIBS}" >&5 23929$as_echo "$as_me: PROGRAMS_LIBS ${PROGRAMS_LIBS}" >&6;} 23930fi 23931{ $as_echo "$as_me:${as_lineno-$LINENO}: COB_CC ${COB_CC}" >&5 23932$as_echo "$as_me: COB_CC ${COB_CC}" >&6;} 23933{ $as_echo "$as_me:${as_lineno-$LINENO}: COB_CFLAGS ${COB_CFLAGS}" >&5 23934$as_echo "$as_me: COB_CFLAGS ${COB_CFLAGS}" >&6;} 23935{ $as_echo "$as_me:${as_lineno-$LINENO}: COB_LDFLAGS ${COB_LDFLAGS}" >&5 23936$as_echo "$as_me: COB_LDFLAGS ${COB_LDFLAGS}" >&6;} 23937{ $as_echo "$as_me:${as_lineno-$LINENO}: COB_DEBUG_FLAGS ${COB_DEBUG_FLAGS}" >&5 23938$as_echo "$as_me: COB_DEBUG_FLAGS ${COB_DEBUG_FLAGS}" >&6;} 23939{ $as_echo "$as_me:${as_lineno-$LINENO}: COB_LIBS ${COB_LIBS}" >&5 23940$as_echo "$as_me: COB_LIBS ${COB_LIBS}" >&6;} 23941{ $as_echo "$as_me:${as_lineno-$LINENO}: COB_CONFIG_DIR ${COB_CONFIG_DIR}" >&5 23942$as_echo "$as_me: COB_CONFIG_DIR ${COB_CONFIG_DIR}" >&6;} 23943{ $as_echo "$as_me:${as_lineno-$LINENO}: COB_COPY_DIR ${COB_COPY_DIR}" >&5 23944$as_echo "$as_me: COB_COPY_DIR ${COB_COPY_DIR}" >&6;} 23945{ $as_echo "$as_me:${as_lineno-$LINENO}: COB_LIBRARY_PATH ${COB_LIBRARY_PATH}" >&5 23946$as_echo "$as_me: COB_LIBRARY_PATH ${COB_LIBRARY_PATH}" >&6;} 23947{ $as_echo "$as_me:${as_lineno-$LINENO}: COB_OBJECT_EXT ${OBJEXT}" >&5 23948$as_echo "$as_me: COB_OBJECT_EXT ${OBJEXT}" >&6;} 23949{ $as_echo "$as_me:${as_lineno-$LINENO}: COB_MODULE_EXT ${COB_MODULE_EXT}" >&5 23950$as_echo "$as_me: COB_MODULE_EXT ${COB_MODULE_EXT}" >&6;} 23951{ $as_echo "$as_me:${as_lineno-$LINENO}: COB_EXE_EXT ${COB_EXE_EXT}" >&5 23952$as_echo "$as_me: COB_EXE_EXT ${COB_EXE_EXT}" >&6;} 23953{ $as_echo "$as_me:${as_lineno-$LINENO}: COB_SHARED_OPT ${COB_SHARED_OPT}" >&5 23954$as_echo "$as_me: COB_SHARED_OPT ${COB_SHARED_OPT}" >&6;} 23955{ $as_echo "$as_me:${as_lineno-$LINENO}: COB_PIC_FLAGS ${COB_PIC_FLAGS}" >&5 23956$as_echo "$as_me: COB_PIC_FLAGS ${COB_PIC_FLAGS}" >&6;} 23957{ $as_echo "$as_me:${as_lineno-$LINENO}: COB_EXPORT_DYN ${COB_EXPORT_DYN}" >&5 23958$as_echo "$as_me: COB_EXPORT_DYN ${COB_EXPORT_DYN}" >&6;} 23959if test "x$striplib" != "x"; then 23960 { $as_echo "$as_me:${as_lineno-$LINENO}: COB_STRIP_CMD ${striplib}" >&5 23961$as_echo "$as_me: COB_STRIP_CMD ${striplib}" >&6;} 23962fi 23963if test "${DEFINE_DL}" = "yes" ; then 23964 { $as_echo "$as_me:${as_lineno-$LINENO}: Dynamic loading: System" >&5 23965$as_echo "$as_me: Dynamic loading: System" >&6;} 23966else 23967 { $as_echo "$as_me:${as_lineno-$LINENO}: Dynamic loading: Libtool" >&5 23968$as_echo "$as_me: Dynamic loading: Libtool" >&6;} 23969fi 23970{ $as_echo "$as_me:${as_lineno-$LINENO}: Use gettext for international messages: ${USE_NLS}" >&5 23971$as_echo "$as_me: Use gettext for international messages: ${USE_NLS}" >&6;} 23972{ $as_echo "$as_me:${as_lineno-$LINENO}: Use fcntl for file locking: ${ac_cv_func_fcntl}" >&5 23973$as_echo "$as_me: Use fcntl for file locking: ${ac_cv_func_fcntl}" >&6;} 23974{ $as_echo "$as_me:${as_lineno-$LINENO}: Use math multiple precision library: ${USE_MATH}" >&5 23975$as_echo "$as_me: Use math multiple precision library: ${USE_MATH}" >&6;} 23976case "$USE_CURSES" in 23977 not_found) 23978 { $as_echo "$as_me:${as_lineno-$LINENO}: screen I/O (no curses found): NO" >&5 23979$as_echo "$as_me: screen I/O (no curses found): NO" >&6;} 23980 ;; 23981 no) 23982 { $as_echo "$as_me:${as_lineno-$LINENO}: screen I/O (disabled): NO" >&5 23983$as_echo "$as_me: screen I/O (disabled): NO" >&6;} 23984 ;; 23985 *) 23986 { $as_echo "$as_me:${as_lineno-$LINENO}: Use curses library for screen I/O: ${USE_CURSES}" >&5 23987$as_echo "$as_me: Use curses library for screen I/O: ${USE_CURSES}" >&6;} 23988 ;; 23989esac 23990if test "$with_debug_log" = "yes"; then 23991 { $as_echo "$as_me:${as_lineno-$LINENO}: Enable GnuCOBOL developer logging yes" >&5 23992$as_echo "$as_me: Enable GnuCOBOL developer logging yes" >&6;} 23993fi 23994if test "$with_seqra_extfh" = "yes"; then 23995 { $as_echo "$as_me:${as_lineno-$LINENO}: Use external SEQ/RAN file handler: yes" >&5 23996$as_echo "$as_me: Use external SEQ/RAN file handler: yes" >&6;} 23997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Obsolete feature \"OpenCOBOL-only-EXTFH\" used!" >&5 23998$as_echo "$as_me: WARNING: Obsolete feature \"OpenCOBOL-only-EXTFH\" used!" >&2;} 23999fi 24000if test "$with_index_extfh" = "yes"; then 24001 { $as_echo "$as_me:${as_lineno-$LINENO}: Use external INDEXED file handler: yes" >&5 24002$as_echo "$as_me: Use external INDEXED file handler: yes" >&6;} 24003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Obsolete feature \"OpenCOBOL-only-EXTFH\" used!" >&5 24004$as_echo "$as_me: WARNING: Obsolete feature \"OpenCOBOL-only-EXTFH\" used!" >&2;} 24005elif test "$with_cisam" = "yes"; then 24006 { $as_echo "$as_me:${as_lineno-$LINENO}: Use CISAM for INDEXED I/O: yes" >&5 24007$as_echo "$as_me: Use CISAM for INDEXED I/O: yes" >&6;} 24008elif test "$with_disam" = "yes"; then 24009 { $as_echo "$as_me:${as_lineno-$LINENO}: Use DISAM for INDEXED I/O: yes" >&5 24010$as_echo "$as_me: Use DISAM for INDEXED I/O: yes" >&6;} 24011elif test "$with_vbisam" = "yes"; then 24012 { $as_echo "$as_me:${as_lineno-$LINENO}: Use VBISAM for INDEXED I/O: yes" >&5 24013$as_echo "$as_me: Use VBISAM for INDEXED I/O: yes" >&6;} 24014elif test "$with_db" = "yes"; then 24015 { $as_echo "$as_me:${as_lineno-$LINENO}: Use Berkeley DB for INDEXED I/O: yes" >&5 24016$as_echo "$as_me: Use Berkeley DB for INDEXED I/O: yes" >&6;} 24017else 24018 { $as_echo "$as_me:${as_lineno-$LINENO}: INDEXED I/O (no handler configured): NO" >&5 24019$as_echo "$as_me: INDEXED I/O (no handler configured): NO" >&6;} 24020fi 24021 24022case "$with_xml2" in 24023 not_found) 24024 { $as_echo "$as_me:${as_lineno-$LINENO}: XML I/O (no handler found): NO" >&5 24025$as_echo "$as_me: XML I/O (no handler found): NO" >&6;} 24026 ;; 24027 no) 24028 { $as_echo "$as_me:${as_lineno-$LINENO}: XML I/O (disabled): NO" >&5 24029$as_echo "$as_me: XML I/O (disabled): NO" >&6;} 24030 ;; 24031 *) 24032 { $as_echo "$as_me:${as_lineno-$LINENO}: Used for XML I/O: ${with_xml2}" >&5 24033$as_echo "$as_me: Used for XML I/O: ${with_xml2}" >&6;} 24034 ;; 24035esac 24036case "$USE_JSON" in 24037 not_found) 24038 { $as_echo "$as_me:${as_lineno-$LINENO}: JSON I/O (no handler found): NO" >&5 24039$as_echo "$as_me: JSON I/O (no handler found): NO" >&6;} 24040 ;; 24041 no) 24042 { $as_echo "$as_me:${as_lineno-$LINENO}: JSON I/O (disabled): NO" >&5 24043$as_echo "$as_me: JSON I/O (disabled): NO" >&6;} 24044 ;; 24045 *) 24046 { $as_echo "$as_me:${as_lineno-$LINENO}: Used for JSON I/O: ${USE_JSON}" >&5 24047$as_echo "$as_me: Used for JSON I/O: ${USE_JSON}" >&6;} 24048 ;; 24049esac 24050 24051unset DEFINE_DL 24052