1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.67 for gliv 1.9.7. 4# 5# Report bugs to <guichaz@gmail.com>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 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 138if test "x$CONFIG_SHELL" = x; then 139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 140 emulate sh 141 NULLCMD=: 142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 143 # is contrary to our usage. Disable this feature. 144 alias -g '\${1+\"\$@\"}'='\"\$@\"' 145 setopt NO_GLOB_SUBST 146else 147 case \`(set -o) 2>/dev/null\` in #( 148 *posix*) : 149 set -o posix ;; #( 150 *) : 151 ;; 152esac 153fi 154" 155 as_required="as_fn_return () { (exit \$1); } 156as_fn_success () { as_fn_return 0; } 157as_fn_failure () { as_fn_return 1; } 158as_fn_ret_success () { return 0; } 159as_fn_ret_failure () { return 1; } 160 161exitcode=0 162as_fn_success || { exitcode=1; echo as_fn_success failed.; } 163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 167 168else 169 exitcode=1; echo positional parameters were not saved. 170fi 171test x\$exitcode = x0 || exit 1" 172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 176test \$(( 1 + 1 )) = 2 || exit 1" 177 if (eval "$as_required") 2>/dev/null; then : 178 as_have_required=yes 179else 180 as_have_required=no 181fi 182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 183 184else 185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 186as_found=false 187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 188do 189 IFS=$as_save_IFS 190 test -z "$as_dir" && as_dir=. 191 as_found=: 192 case $as_dir in #( 193 /*) 194 for as_base in sh bash ksh sh5; do 195 # Try only shells that exist, to save several forks. 196 as_shell=$as_dir/$as_base 197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 199 CONFIG_SHELL=$as_shell as_have_required=yes 200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 201 break 2 202fi 203fi 204 done;; 205 esac 206 as_found=false 207done 208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 210 CONFIG_SHELL=$SHELL as_have_required=yes 211fi; } 212IFS=$as_save_IFS 213 214 215 if test "x$CONFIG_SHELL" != x; then : 216 # We cannot yet assume a decent shell, so we have to provide a 217 # neutralization value for shells without unset; and this also 218 # works around shells that cannot unset nonexistent variables. 219 BASH_ENV=/dev/null 220 ENV=/dev/null 221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 222 export CONFIG_SHELL 223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 224fi 225 226 if test x$as_have_required = xno; then : 227 $as_echo "$0: This script requires a shell more modern than all" 228 $as_echo "$0: the shells that I found on your system." 229 if test x${ZSH_VERSION+set} = xset ; then 230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 231 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 232 else 233 $as_echo "$0: Please tell bug-autoconf@gnu.org and guichaz@gmail.com 234$0: about your system, including any error possibly output 235$0: before this message. Then install a modern shell, or 236$0: manually run the script under such a shell if you do 237$0: have one." 238 fi 239 exit 1 240fi 241fi 242fi 243SHELL=${CONFIG_SHELL-/bin/sh} 244export SHELL 245# Unset more variables known to interfere with behavior of common tools. 246CLICOLOR_FORCE= GREP_OPTIONS= 247unset CLICOLOR_FORCE GREP_OPTIONS 248 249## --------------------- ## 250## M4sh Shell Functions. ## 251## --------------------- ## 252# as_fn_unset VAR 253# --------------- 254# Portably unset VAR. 255as_fn_unset () 256{ 257 { eval $1=; unset $1;} 258} 259as_unset=as_fn_unset 260 261# as_fn_set_status STATUS 262# ----------------------- 263# Set $? to STATUS, without forking. 264as_fn_set_status () 265{ 266 return $1 267} # as_fn_set_status 268 269# as_fn_exit STATUS 270# ----------------- 271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 272as_fn_exit () 273{ 274 set +e 275 as_fn_set_status $1 276 exit $1 277} # as_fn_exit 278 279# as_fn_mkdir_p 280# ------------- 281# Create "$as_dir" as a directory, including parents if necessary. 282as_fn_mkdir_p () 283{ 284 285 case $as_dir in #( 286 -*) as_dir=./$as_dir;; 287 esac 288 test -d "$as_dir" || eval $as_mkdir_p || { 289 as_dirs= 290 while :; do 291 case $as_dir in #( 292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 293 *) as_qdir=$as_dir;; 294 esac 295 as_dirs="'$as_qdir' $as_dirs" 296 as_dir=`$as_dirname -- "$as_dir" || 297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 298 X"$as_dir" : 'X\(//\)[^/]' \| \ 299 X"$as_dir" : 'X\(//\)$' \| \ 300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 301$as_echo X"$as_dir" | 302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 303 s//\1/ 304 q 305 } 306 /^X\(\/\/\)[^/].*/{ 307 s//\1/ 308 q 309 } 310 /^X\(\/\/\)$/{ 311 s//\1/ 312 q 313 } 314 /^X\(\/\).*/{ 315 s//\1/ 316 q 317 } 318 s/.*/./; q'` 319 test -d "$as_dir" && break 320 done 321 test -z "$as_dirs" || eval "mkdir $as_dirs" 322 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 323 324 325} # as_fn_mkdir_p 326# as_fn_append VAR VALUE 327# ---------------------- 328# Append the text in VALUE to the end of the definition contained in VAR. Take 329# advantage of any shell optimizations that allow amortized linear growth over 330# repeated appends, instead of the typical quadratic growth present in naive 331# implementations. 332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 333 eval 'as_fn_append () 334 { 335 eval $1+=\$2 336 }' 337else 338 as_fn_append () 339 { 340 eval $1=\$$1\$2 341 } 342fi # as_fn_append 343 344# as_fn_arith ARG... 345# ------------------ 346# Perform arithmetic evaluation on the ARGs, and store the result in the 347# global $as_val. Take advantage of shells that can avoid forks. The arguments 348# must be portable across $(()) and expr. 349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 350 eval 'as_fn_arith () 351 { 352 as_val=$(( $* )) 353 }' 354else 355 as_fn_arith () 356 { 357 as_val=`expr "$@" || test $? -eq 1` 358 } 359fi # as_fn_arith 360 361 362# as_fn_error STATUS ERROR [LINENO LOG_FD] 363# ---------------------------------------- 364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 366# script with STATUS, using 1 if that was 0. 367as_fn_error () 368{ 369 as_status=$1; test $as_status -eq 0 && as_status=1 370 if test "$4"; then 371 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 373 fi 374 $as_echo "$as_me: error: $2" >&2 375 as_fn_exit $as_status 376} # as_fn_error 377 378if expr a : '\(a\)' >/dev/null 2>&1 && 379 test "X`expr 00001 : '.*\(...\)'`" = X001; then 380 as_expr=expr 381else 382 as_expr=false 383fi 384 385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 386 as_basename=basename 387else 388 as_basename=false 389fi 390 391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 392 as_dirname=dirname 393else 394 as_dirname=false 395fi 396 397as_me=`$as_basename -- "$0" || 398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 399 X"$0" : 'X\(//\)$' \| \ 400 X"$0" : 'X\(/\)' \| . 2>/dev/null || 401$as_echo X/"$0" | 402 sed '/^.*\/\([^/][^/]*\)\/*$/{ 403 s//\1/ 404 q 405 } 406 /^X\/\(\/\/\)$/{ 407 s//\1/ 408 q 409 } 410 /^X\/\(\/\).*/{ 411 s//\1/ 412 q 413 } 414 s/.*/./; q'` 415 416# Avoid depending upon Character Ranges. 417as_cr_letters='abcdefghijklmnopqrstuvwxyz' 418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 419as_cr_Letters=$as_cr_letters$as_cr_LETTERS 420as_cr_digits='0123456789' 421as_cr_alnum=$as_cr_Letters$as_cr_digits 422 423 424 as_lineno_1=$LINENO as_lineno_1a=$LINENO 425 as_lineno_2=$LINENO as_lineno_2a=$LINENO 426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 429 sed -n ' 430 p 431 /[$]LINENO/= 432 ' <$as_myself | 433 sed ' 434 s/[$]LINENO.*/&-/ 435 t lineno 436 b 437 :lineno 438 N 439 :loop 440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 441 t loop 442 s/-\n.*// 443 ' >$as_me.lineno && 444 chmod +x "$as_me.lineno" || 445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 446 447 # Don't try to exec as it changes $[0], causing all sort of problems 448 # (the dirname of $[0] is not the place where we might find the 449 # original and so on. Autoconf is especially sensitive to this). 450 . "./$as_me.lineno" 451 # Exit status is that of the last command. 452 exit 453} 454 455ECHO_C= ECHO_N= ECHO_T= 456case `echo -n x` in #((((( 457-n*) 458 case `echo 'xy\c'` in 459 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 460 xy) ECHO_C='\c';; 461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 462 ECHO_T=' ';; 463 esac;; 464*) 465 ECHO_N='-n';; 466esac 467 468rm -f conf$$ conf$$.exe conf$$.file 469if test -d conf$$.dir; then 470 rm -f conf$$.dir/conf$$.file 471else 472 rm -f conf$$.dir 473 mkdir conf$$.dir 2>/dev/null 474fi 475if (echo >conf$$.file) 2>/dev/null; then 476 if ln -s conf$$.file conf$$ 2>/dev/null; then 477 as_ln_s='ln -s' 478 # ... but there are two gotchas: 479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 481 # In both cases, we have to default to `cp -p'. 482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 483 as_ln_s='cp -p' 484 elif ln conf$$.file conf$$ 2>/dev/null; then 485 as_ln_s=ln 486 else 487 as_ln_s='cp -p' 488 fi 489else 490 as_ln_s='cp -p' 491fi 492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 493rmdir conf$$.dir 2>/dev/null 494 495if mkdir -p . 2>/dev/null; then 496 as_mkdir_p='mkdir -p "$as_dir"' 497else 498 test -d ./-p && rmdir ./-p 499 as_mkdir_p=false 500fi 501 502if test -x / >/dev/null 2>&1; then 503 as_test_x='test -x' 504else 505 if ls -dL / >/dev/null 2>&1; then 506 as_ls_L_option=L 507 else 508 as_ls_L_option= 509 fi 510 as_test_x=' 511 eval sh -c '\'' 512 if test -d "$1"; then 513 test -d "$1/."; 514 else 515 case $1 in #( 516 -*)set "./$1";; 517 esac; 518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 519 ???[sx]*):;;*)false;;esac;fi 520 '\'' sh 521 ' 522fi 523as_executable_p=$as_test_x 524 525# Sed expression to map a string onto a valid CPP name. 526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 527 528# Sed expression to map a string onto a valid variable name. 529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 530 531 532test -n "$DJDIR" || exec 7<&0 </dev/null 533exec 6>&1 534 535# Name of the host. 536# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 537# so uname gets run too. 538ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 539 540# 541# Initializations. 542# 543ac_default_prefix=/usr/local 544ac_clean_files= 545ac_config_libobj_dir=. 546LIBOBJS= 547cross_compiling=no 548subdirs= 549MFLAGS= 550MAKEFLAGS= 551 552# Identity of this package. 553PACKAGE_NAME='gliv' 554PACKAGE_TARNAME='gliv' 555PACKAGE_VERSION='1.9.7' 556PACKAGE_STRING='gliv 1.9.7' 557PACKAGE_BUGREPORT='guichaz@gmail.com' 558PACKAGE_URL='' 559 560ac_unique_file="src/main.c" 561# Factoring default headers for most tests. 562ac_includes_default="\ 563#include <stdio.h> 564#ifdef HAVE_SYS_TYPES_H 565# include <sys/types.h> 566#endif 567#ifdef HAVE_SYS_STAT_H 568# include <sys/stat.h> 569#endif 570#ifdef STDC_HEADERS 571# include <stdlib.h> 572# include <stddef.h> 573#else 574# ifdef HAVE_STDLIB_H 575# include <stdlib.h> 576# endif 577#endif 578#ifdef HAVE_STRING_H 579# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 580# include <memory.h> 581# endif 582# include <string.h> 583#endif 584#ifdef HAVE_STRINGS_H 585# include <strings.h> 586#endif 587#ifdef HAVE_INTTYPES_H 588# include <inttypes.h> 589#endif 590#ifdef HAVE_STDINT_H 591# include <stdint.h> 592#endif 593#ifdef HAVE_UNISTD_H 594# include <unistd.h> 595#endif" 596 597gt_needs= 598ac_header_list= 599gl_use_threads_default= 600ac_subst_vars='am__EXEEXT_FALSE 601am__EXEEXT_TRUE 602LTLIBOBJS 603LIBOBJS 604POSUB 605LTLIBINTL 606LIBINTL 607INTLLIBS 608INTL_LIBTOOL_SUFFIX_PREFIX 609INTLOBJS 610GENCAT 611INSTOBJEXT 612DATADIRNAME 613CATOBJEXT 614USE_INCLUDED_LIBINTL 615BUILD_INCLUDED_LIBINTL 616LTLIBC 617WINDRES 618WOE32 619WOE32DLL 620HAVE_WPRINTF 621HAVE_NEWLOCALE 622HAVE_SNPRINTF 623HAVE_ASPRINTF 624HAVE_POSIX_PRINTF 625INTL_DEFAULT_VERBOSITY 626INTL_MACOSX_LIBS 627GLIBC21 628INTLBISON 629LTLIBICONV 630LIBICONV 631LTLIBMULTITHREAD 632LIBMULTITHREAD 633LTLIBTHREAD 634LIBTHREAD 635LIBPTH_PREFIX 636LTLIBPTH 637LIBPTH 638PRI_MACROS_BROKEN 639ALLOCA 640HAVE_VISIBILITY 641CFLAG_VISIBILITY 642GLIBC2 643host_os 644host_vendor 645host_cpu 646host 647build_os 648build_vendor 649build_cpu 650build 651XGETTEXT_EXTRA_OPTIONS 652MSGMERGE 653XGETTEXT_015 654XGETTEXT 655GMSGFMT_015 656MSGFMT_015 657GMSGFMT 658MSGFMT 659GETTEXT_MACRO_VERSION 660USE_NLS 661GTK_LIBS 662GTK_CFLAGS 663GTKGLEXT_LIBS 664GTKGLEXT_CFLAGS 665PKG_CONFIG_LIBDIR 666PKG_CONFIG_PATH 667PKG_CONFIG 668X_EXTRA_LIBS 669X_LIBS 670X_PRE_LIBS 671X_CFLAGS 672XMKMF 673NEED_REPLACEMENTS_FALSE 674NEED_REPLACEMENTS_TRUE 675GETOPT_LONG_FALSE 676GETOPT_LONG_TRUE 677GETDELIM_FALSE 678GETDELIM_TRUE 679RANLIB 680EGREP 681GREP 682CPP 683am__fastdepCC_FALSE 684am__fastdepCC_TRUE 685CCDEPMODE 686AMDEPBACKSLASH 687AMDEP_FALSE 688AMDEP_TRUE 689am__quote 690am__include 691DEPDIR 692OBJEXT 693EXEEXT 694ac_ct_CC 695CPPFLAGS 696LDFLAGS 697CFLAGS 698CC 699am__untar 700am__tar 701AMTAR 702am__leading_dot 703SET_MAKE 704AWK 705mkdir_p 706MKDIR_P 707INSTALL_STRIP_PROGRAM 708STRIP 709install_sh 710MAKEINFO 711AUTOHEADER 712AUTOMAKE 713AUTOCONF 714ACLOCAL 715VERSION 716PACKAGE 717CYGPATH_W 718am__isrc 719INSTALL_DATA 720INSTALL_SCRIPT 721INSTALL_PROGRAM 722target_alias 723host_alias 724build_alias 725LIBS 726ECHO_T 727ECHO_N 728ECHO_C 729DEFS 730mandir 731localedir 732libdir 733psdir 734pdfdir 735dvidir 736htmldir 737infodir 738docdir 739oldincludedir 740includedir 741localstatedir 742sharedstatedir 743sysconfdir 744datadir 745datarootdir 746libexecdir 747sbindir 748bindir 749program_transform_name 750prefix 751exec_prefix 752PACKAGE_URL 753PACKAGE_BUGREPORT 754PACKAGE_STRING 755PACKAGE_VERSION 756PACKAGE_TARNAME 757PACKAGE_NAME 758PATH_SEPARATOR 759SHELL' 760ac_subst_files='' 761ac_user_opts=' 762enable_option_checking 763enable_dependency_tracking 764enable_largefile 765with_x 766enable_gtktest 767enable_nls 768enable_threads 769with_gnu_ld 770enable_rpath 771with_libpth_prefix 772with_libiconv_prefix 773with_included_gettext 774with_libintl_prefix 775' 776 ac_precious_vars='build_alias 777host_alias 778target_alias 779CC 780CFLAGS 781LDFLAGS 782LIBS 783CPPFLAGS 784CPP 785XMKMF 786PKG_CONFIG 787PKG_CONFIG_PATH 788PKG_CONFIG_LIBDIR 789GTKGLEXT_CFLAGS 790GTKGLEXT_LIBS' 791 792 793# Initialize some variables set by options. 794ac_init_help= 795ac_init_version=false 796ac_unrecognized_opts= 797ac_unrecognized_sep= 798# The variables have the same names as the options, with 799# dashes changed to underlines. 800cache_file=/dev/null 801exec_prefix=NONE 802no_create= 803no_recursion= 804prefix=NONE 805program_prefix=NONE 806program_suffix=NONE 807program_transform_name=s,x,x, 808silent= 809site= 810srcdir= 811verbose= 812x_includes=NONE 813x_libraries=NONE 814 815# Installation directory options. 816# These are left unexpanded so users can "make install exec_prefix=/foo" 817# and all the variables that are supposed to be based on exec_prefix 818# by default will actually change. 819# Use braces instead of parens because sh, perl, etc. also accept them. 820# (The list follows the same order as the GNU Coding Standards.) 821bindir='${exec_prefix}/bin' 822sbindir='${exec_prefix}/sbin' 823libexecdir='${exec_prefix}/libexec' 824datarootdir='${prefix}/share' 825datadir='${datarootdir}' 826sysconfdir='${prefix}/etc' 827sharedstatedir='${prefix}/com' 828localstatedir='${prefix}/var' 829includedir='${prefix}/include' 830oldincludedir='/usr/include' 831docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 832infodir='${datarootdir}/info' 833htmldir='${docdir}' 834dvidir='${docdir}' 835pdfdir='${docdir}' 836psdir='${docdir}' 837libdir='${exec_prefix}/lib' 838localedir='${datarootdir}/locale' 839mandir='${datarootdir}/man' 840 841ac_prev= 842ac_dashdash= 843for ac_option 844do 845 # If the previous option needs an argument, assign it. 846 if test -n "$ac_prev"; then 847 eval $ac_prev=\$ac_option 848 ac_prev= 849 continue 850 fi 851 852 case $ac_option in 853 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 854 *=) ac_optarg= ;; 855 *) ac_optarg=yes ;; 856 esac 857 858 # Accept the important Cygnus configure options, so we can diagnose typos. 859 860 case $ac_dashdash$ac_option in 861 --) 862 ac_dashdash=yes ;; 863 864 -bindir | --bindir | --bindi | --bind | --bin | --bi) 865 ac_prev=bindir ;; 866 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 867 bindir=$ac_optarg ;; 868 869 -build | --build | --buil | --bui | --bu) 870 ac_prev=build_alias ;; 871 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 872 build_alias=$ac_optarg ;; 873 874 -cache-file | --cache-file | --cache-fil | --cache-fi \ 875 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 876 ac_prev=cache_file ;; 877 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 878 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 879 cache_file=$ac_optarg ;; 880 881 --config-cache | -C) 882 cache_file=config.cache ;; 883 884 -datadir | --datadir | --datadi | --datad) 885 ac_prev=datadir ;; 886 -datadir=* | --datadir=* | --datadi=* | --datad=*) 887 datadir=$ac_optarg ;; 888 889 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 890 | --dataroo | --dataro | --datar) 891 ac_prev=datarootdir ;; 892 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 893 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 894 datarootdir=$ac_optarg ;; 895 896 -disable-* | --disable-*) 897 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 898 # Reject names that are not valid shell variable names. 899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 900 as_fn_error $? "invalid feature name: $ac_useropt" 901 ac_useropt_orig=$ac_useropt 902 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 903 case $ac_user_opts in 904 *" 905"enable_$ac_useropt" 906"*) ;; 907 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 908 ac_unrecognized_sep=', ';; 909 esac 910 eval enable_$ac_useropt=no ;; 911 912 -docdir | --docdir | --docdi | --doc | --do) 913 ac_prev=docdir ;; 914 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 915 docdir=$ac_optarg ;; 916 917 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 918 ac_prev=dvidir ;; 919 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 920 dvidir=$ac_optarg ;; 921 922 -enable-* | --enable-*) 923 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 924 # Reject names that are not valid shell variable names. 925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 926 as_fn_error $? "invalid feature name: $ac_useropt" 927 ac_useropt_orig=$ac_useropt 928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 929 case $ac_user_opts in 930 *" 931"enable_$ac_useropt" 932"*) ;; 933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 934 ac_unrecognized_sep=', ';; 935 esac 936 eval enable_$ac_useropt=\$ac_optarg ;; 937 938 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 939 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 940 | --exec | --exe | --ex) 941 ac_prev=exec_prefix ;; 942 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 943 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 944 | --exec=* | --exe=* | --ex=*) 945 exec_prefix=$ac_optarg ;; 946 947 -gas | --gas | --ga | --g) 948 # Obsolete; use --with-gas. 949 with_gas=yes ;; 950 951 -help | --help | --hel | --he | -h) 952 ac_init_help=long ;; 953 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 954 ac_init_help=recursive ;; 955 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 956 ac_init_help=short ;; 957 958 -host | --host | --hos | --ho) 959 ac_prev=host_alias ;; 960 -host=* | --host=* | --hos=* | --ho=*) 961 host_alias=$ac_optarg ;; 962 963 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 964 ac_prev=htmldir ;; 965 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 966 | --ht=*) 967 htmldir=$ac_optarg ;; 968 969 -includedir | --includedir | --includedi | --included | --include \ 970 | --includ | --inclu | --incl | --inc) 971 ac_prev=includedir ;; 972 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 973 | --includ=* | --inclu=* | --incl=* | --inc=*) 974 includedir=$ac_optarg ;; 975 976 -infodir | --infodir | --infodi | --infod | --info | --inf) 977 ac_prev=infodir ;; 978 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 979 infodir=$ac_optarg ;; 980 981 -libdir | --libdir | --libdi | --libd) 982 ac_prev=libdir ;; 983 -libdir=* | --libdir=* | --libdi=* | --libd=*) 984 libdir=$ac_optarg ;; 985 986 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 987 | --libexe | --libex | --libe) 988 ac_prev=libexecdir ;; 989 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 990 | --libexe=* | --libex=* | --libe=*) 991 libexecdir=$ac_optarg ;; 992 993 -localedir | --localedir | --localedi | --localed | --locale) 994 ac_prev=localedir ;; 995 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 996 localedir=$ac_optarg ;; 997 998 -localstatedir | --localstatedir | --localstatedi | --localstated \ 999 | --localstate | --localstat | --localsta | --localst | --locals) 1000 ac_prev=localstatedir ;; 1001 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1002 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1003 localstatedir=$ac_optarg ;; 1004 1005 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1006 ac_prev=mandir ;; 1007 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1008 mandir=$ac_optarg ;; 1009 1010 -nfp | --nfp | --nf) 1011 # Obsolete; use --without-fp. 1012 with_fp=no ;; 1013 1014 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1015 | --no-cr | --no-c | -n) 1016 no_create=yes ;; 1017 1018 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1019 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1020 no_recursion=yes ;; 1021 1022 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1023 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1024 | --oldin | --oldi | --old | --ol | --o) 1025 ac_prev=oldincludedir ;; 1026 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1027 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1028 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1029 oldincludedir=$ac_optarg ;; 1030 1031 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1032 ac_prev=prefix ;; 1033 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1034 prefix=$ac_optarg ;; 1035 1036 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1037 | --program-pre | --program-pr | --program-p) 1038 ac_prev=program_prefix ;; 1039 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1040 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1041 program_prefix=$ac_optarg ;; 1042 1043 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1044 | --program-suf | --program-su | --program-s) 1045 ac_prev=program_suffix ;; 1046 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1047 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1048 program_suffix=$ac_optarg ;; 1049 1050 -program-transform-name | --program-transform-name \ 1051 | --program-transform-nam | --program-transform-na \ 1052 | --program-transform-n | --program-transform- \ 1053 | --program-transform | --program-transfor \ 1054 | --program-transfo | --program-transf \ 1055 | --program-trans | --program-tran \ 1056 | --progr-tra | --program-tr | --program-t) 1057 ac_prev=program_transform_name ;; 1058 -program-transform-name=* | --program-transform-name=* \ 1059 | --program-transform-nam=* | --program-transform-na=* \ 1060 | --program-transform-n=* | --program-transform-=* \ 1061 | --program-transform=* | --program-transfor=* \ 1062 | --program-transfo=* | --program-transf=* \ 1063 | --program-trans=* | --program-tran=* \ 1064 | --progr-tra=* | --program-tr=* | --program-t=*) 1065 program_transform_name=$ac_optarg ;; 1066 1067 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1068 ac_prev=pdfdir ;; 1069 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1070 pdfdir=$ac_optarg ;; 1071 1072 -psdir | --psdir | --psdi | --psd | --ps) 1073 ac_prev=psdir ;; 1074 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1075 psdir=$ac_optarg ;; 1076 1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1078 | -silent | --silent | --silen | --sile | --sil) 1079 silent=yes ;; 1080 1081 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1082 ac_prev=sbindir ;; 1083 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1084 | --sbi=* | --sb=*) 1085 sbindir=$ac_optarg ;; 1086 1087 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1088 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1089 | --sharedst | --shareds | --shared | --share | --shar \ 1090 | --sha | --sh) 1091 ac_prev=sharedstatedir ;; 1092 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1093 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1094 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1095 | --sha=* | --sh=*) 1096 sharedstatedir=$ac_optarg ;; 1097 1098 -site | --site | --sit) 1099 ac_prev=site ;; 1100 -site=* | --site=* | --sit=*) 1101 site=$ac_optarg ;; 1102 1103 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1104 ac_prev=srcdir ;; 1105 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1106 srcdir=$ac_optarg ;; 1107 1108 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1109 | --syscon | --sysco | --sysc | --sys | --sy) 1110 ac_prev=sysconfdir ;; 1111 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1112 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1113 sysconfdir=$ac_optarg ;; 1114 1115 -target | --target | --targe | --targ | --tar | --ta | --t) 1116 ac_prev=target_alias ;; 1117 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1118 target_alias=$ac_optarg ;; 1119 1120 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1121 verbose=yes ;; 1122 1123 -version | --version | --versio | --versi | --vers | -V) 1124 ac_init_version=: ;; 1125 1126 -with-* | --with-*) 1127 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1128 # Reject names that are not valid shell variable names. 1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1130 as_fn_error $? "invalid package name: $ac_useropt" 1131 ac_useropt_orig=$ac_useropt 1132 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1133 case $ac_user_opts in 1134 *" 1135"with_$ac_useropt" 1136"*) ;; 1137 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1138 ac_unrecognized_sep=', ';; 1139 esac 1140 eval with_$ac_useropt=\$ac_optarg ;; 1141 1142 -without-* | --without-*) 1143 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1144 # Reject names that are not valid shell variable names. 1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1146 as_fn_error $? "invalid package name: $ac_useropt" 1147 ac_useropt_orig=$ac_useropt 1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1149 case $ac_user_opts in 1150 *" 1151"with_$ac_useropt" 1152"*) ;; 1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1154 ac_unrecognized_sep=', ';; 1155 esac 1156 eval with_$ac_useropt=no ;; 1157 1158 --x) 1159 # Obsolete; use --with-x. 1160 with_x=yes ;; 1161 1162 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1163 | --x-incl | --x-inc | --x-in | --x-i) 1164 ac_prev=x_includes ;; 1165 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1166 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1167 x_includes=$ac_optarg ;; 1168 1169 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1170 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1171 ac_prev=x_libraries ;; 1172 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1173 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1174 x_libraries=$ac_optarg ;; 1175 1176 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1177Try \`$0 --help' for more information" 1178 ;; 1179 1180 *=*) 1181 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1182 # Reject names that are not valid shell variable names. 1183 case $ac_envvar in #( 1184 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1185 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1186 esac 1187 eval $ac_envvar=\$ac_optarg 1188 export $ac_envvar ;; 1189 1190 *) 1191 # FIXME: should be removed in autoconf 3.0. 1192 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1193 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1194 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1195 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1196 ;; 1197 1198 esac 1199done 1200 1201if test -n "$ac_prev"; then 1202 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1203 as_fn_error $? "missing argument to $ac_option" 1204fi 1205 1206if test -n "$ac_unrecognized_opts"; then 1207 case $enable_option_checking in 1208 no) ;; 1209 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1210 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1211 esac 1212fi 1213 1214# Check all directory arguments for consistency. 1215for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1216 datadir sysconfdir sharedstatedir localstatedir includedir \ 1217 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1218 libdir localedir mandir 1219do 1220 eval ac_val=\$$ac_var 1221 # Remove trailing slashes. 1222 case $ac_val in 1223 */ ) 1224 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1225 eval $ac_var=\$ac_val;; 1226 esac 1227 # Be sure to have absolute directory names. 1228 case $ac_val in 1229 [\\/$]* | ?:[\\/]* ) continue;; 1230 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1231 esac 1232 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1233done 1234 1235# There might be people who depend on the old broken behavior: `$host' 1236# used to hold the argument of --host etc. 1237# FIXME: To remove some day. 1238build=$build_alias 1239host=$host_alias 1240target=$target_alias 1241 1242# FIXME: To remove some day. 1243if test "x$host_alias" != x; then 1244 if test "x$build_alias" = x; then 1245 cross_compiling=maybe 1246 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1247 If a cross compiler is detected then cross compile mode will be used" >&2 1248 elif test "x$build_alias" != "x$host_alias"; then 1249 cross_compiling=yes 1250 fi 1251fi 1252 1253ac_tool_prefix= 1254test -n "$host_alias" && ac_tool_prefix=$host_alias- 1255 1256test "$silent" = yes && exec 6>/dev/null 1257 1258 1259ac_pwd=`pwd` && test -n "$ac_pwd" && 1260ac_ls_di=`ls -di .` && 1261ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1262 as_fn_error $? "working directory cannot be determined" 1263test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1264 as_fn_error $? "pwd does not report name of working directory" 1265 1266 1267# Find the source files, if location was not specified. 1268if test -z "$srcdir"; then 1269 ac_srcdir_defaulted=yes 1270 # Try the directory containing this script, then the parent directory. 1271 ac_confdir=`$as_dirname -- "$as_myself" || 1272$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1273 X"$as_myself" : 'X\(//\)[^/]' \| \ 1274 X"$as_myself" : 'X\(//\)$' \| \ 1275 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1276$as_echo X"$as_myself" | 1277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1278 s//\1/ 1279 q 1280 } 1281 /^X\(\/\/\)[^/].*/{ 1282 s//\1/ 1283 q 1284 } 1285 /^X\(\/\/\)$/{ 1286 s//\1/ 1287 q 1288 } 1289 /^X\(\/\).*/{ 1290 s//\1/ 1291 q 1292 } 1293 s/.*/./; q'` 1294 srcdir=$ac_confdir 1295 if test ! -r "$srcdir/$ac_unique_file"; then 1296 srcdir=.. 1297 fi 1298else 1299 ac_srcdir_defaulted=no 1300fi 1301if test ! -r "$srcdir/$ac_unique_file"; then 1302 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1303 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1304fi 1305ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1306ac_abs_confdir=`( 1307 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1308 pwd)` 1309# When building in place, set srcdir=. 1310if test "$ac_abs_confdir" = "$ac_pwd"; then 1311 srcdir=. 1312fi 1313# Remove unnecessary trailing slashes from srcdir. 1314# Double slashes in file names in object file debugging info 1315# mess up M-x gdb in Emacs. 1316case $srcdir in 1317*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1318esac 1319for ac_var in $ac_precious_vars; do 1320 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1321 eval ac_env_${ac_var}_value=\$${ac_var} 1322 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1323 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1324done 1325 1326# 1327# Report the --help message. 1328# 1329if test "$ac_init_help" = "long"; then 1330 # Omit some internal or obsolete options to make the list less imposing. 1331 # This message is too long to be a string in the A/UX 3.1 sh. 1332 cat <<_ACEOF 1333\`configure' configures gliv 1.9.7 to adapt to many kinds of systems. 1334 1335Usage: $0 [OPTION]... [VAR=VALUE]... 1336 1337To assign environment variables (e.g., CC, CFLAGS...), specify them as 1338VAR=VALUE. See below for descriptions of some of the useful variables. 1339 1340Defaults for the options are specified in brackets. 1341 1342Configuration: 1343 -h, --help display this help and exit 1344 --help=short display options specific to this package 1345 --help=recursive display the short help of all the included packages 1346 -V, --version display version information and exit 1347 -q, --quiet, --silent do not print \`checking ...' messages 1348 --cache-file=FILE cache test results in FILE [disabled] 1349 -C, --config-cache alias for \`--cache-file=config.cache' 1350 -n, --no-create do not create output files 1351 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1352 1353Installation directories: 1354 --prefix=PREFIX install architecture-independent files in PREFIX 1355 [$ac_default_prefix] 1356 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1357 [PREFIX] 1358 1359By default, \`make install' will install all the files in 1360\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1361an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1362for instance \`--prefix=\$HOME'. 1363 1364For better control, use the options below. 1365 1366Fine tuning of the installation directories: 1367 --bindir=DIR user executables [EPREFIX/bin] 1368 --sbindir=DIR system admin executables [EPREFIX/sbin] 1369 --libexecdir=DIR program executables [EPREFIX/libexec] 1370 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1371 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1372 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1373 --libdir=DIR object code libraries [EPREFIX/lib] 1374 --includedir=DIR C header files [PREFIX/include] 1375 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1376 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1377 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1378 --infodir=DIR info documentation [DATAROOTDIR/info] 1379 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1380 --mandir=DIR man documentation [DATAROOTDIR/man] 1381 --docdir=DIR documentation root [DATAROOTDIR/doc/gliv] 1382 --htmldir=DIR html documentation [DOCDIR] 1383 --dvidir=DIR dvi documentation [DOCDIR] 1384 --pdfdir=DIR pdf documentation [DOCDIR] 1385 --psdir=DIR ps documentation [DOCDIR] 1386_ACEOF 1387 1388 cat <<\_ACEOF 1389 1390Program names: 1391 --program-prefix=PREFIX prepend PREFIX to installed program names 1392 --program-suffix=SUFFIX append SUFFIX to installed program names 1393 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1394 1395X features: 1396 --x-includes=DIR X include files are in DIR 1397 --x-libraries=DIR X library files are in DIR 1398 1399System types: 1400 --build=BUILD configure for building on BUILD [guessed] 1401 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1402_ACEOF 1403fi 1404 1405if test -n "$ac_init_help"; then 1406 case $ac_init_help in 1407 short | recursive ) echo "Configuration of gliv 1.9.7:";; 1408 esac 1409 cat <<\_ACEOF 1410 1411Optional Features: 1412 --disable-option-checking ignore unrecognized --enable/--with options 1413 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1414 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1415 --disable-dependency-tracking speeds up one-time build 1416 --enable-dependency-tracking do not reject slow dependency extractors 1417 --disable-largefile omit support for large files 1418 --disable-gtktest do not try to compile and run a test GTK+ program 1419 --disable-nls do not use Native Language Support 1420 --enable-threads={posix|solaris|pth|win32} 1421 specify multithreading API 1422 --disable-threads build without multithread safety 1423 --disable-rpath do not hardcode runtime library paths 1424 1425Optional Packages: 1426 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1427 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1428 --with-x use the X Window System 1429 --with-gnu-ld assume the C compiler uses GNU ld default=no 1430 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib 1431 --without-libpth-prefix don't search for libpth in includedir and libdir 1432 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1433 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1434 --with-included-gettext use the GNU gettext library included here 1435 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1436 --without-libintl-prefix don't search for libintl in includedir and libdir 1437 1438Some influential environment variables: 1439 CC C compiler command 1440 CFLAGS C compiler flags 1441 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1442 nonstandard directory <lib dir> 1443 LIBS libraries to pass to the linker, e.g. -l<library> 1444 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1445 you have headers in a nonstandard directory <include dir> 1446 CPP C preprocessor 1447 XMKMF Path to xmkmf, Makefile generator for X Window System 1448 PKG_CONFIG path to pkg-config utility 1449 PKG_CONFIG_PATH 1450 directories to add to pkg-config's search path 1451 PKG_CONFIG_LIBDIR 1452 path overriding pkg-config's built-in search path 1453 GTKGLEXT_CFLAGS 1454 C compiler flags for GTKGLEXT, overriding pkg-config 1455 GTKGLEXT_LIBS 1456 linker flags for GTKGLEXT, overriding pkg-config 1457 1458Use these variables to override the choices made by `configure' or to help 1459it to find libraries and programs with nonstandard names/locations. 1460 1461Report bugs to <guichaz@gmail.com>. 1462_ACEOF 1463ac_status=$? 1464fi 1465 1466if test "$ac_init_help" = "recursive"; then 1467 # If there are subdirs, report their specific --help. 1468 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1469 test -d "$ac_dir" || 1470 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1471 continue 1472 ac_builddir=. 1473 1474case "$ac_dir" in 1475.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1476*) 1477 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1478 # A ".." for each directory in $ac_dir_suffix. 1479 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1480 case $ac_top_builddir_sub in 1481 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1482 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1483 esac ;; 1484esac 1485ac_abs_top_builddir=$ac_pwd 1486ac_abs_builddir=$ac_pwd$ac_dir_suffix 1487# for backward compatibility: 1488ac_top_builddir=$ac_top_build_prefix 1489 1490case $srcdir in 1491 .) # We are building in place. 1492 ac_srcdir=. 1493 ac_top_srcdir=$ac_top_builddir_sub 1494 ac_abs_top_srcdir=$ac_pwd ;; 1495 [\\/]* | ?:[\\/]* ) # Absolute name. 1496 ac_srcdir=$srcdir$ac_dir_suffix; 1497 ac_top_srcdir=$srcdir 1498 ac_abs_top_srcdir=$srcdir ;; 1499 *) # Relative name. 1500 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1501 ac_top_srcdir=$ac_top_build_prefix$srcdir 1502 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1503esac 1504ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1505 1506 cd "$ac_dir" || { ac_status=$?; continue; } 1507 # Check for guested configure. 1508 if test -f "$ac_srcdir/configure.gnu"; then 1509 echo && 1510 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1511 elif test -f "$ac_srcdir/configure"; then 1512 echo && 1513 $SHELL "$ac_srcdir/configure" --help=recursive 1514 else 1515 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1516 fi || ac_status=$? 1517 cd "$ac_pwd" || { ac_status=$?; break; } 1518 done 1519fi 1520 1521test -n "$ac_init_help" && exit $ac_status 1522if $ac_init_version; then 1523 cat <<\_ACEOF 1524gliv configure 1.9.7 1525generated by GNU Autoconf 2.67 1526 1527Copyright (C) 2010 Free Software Foundation, Inc. 1528This configure script is free software; the Free Software Foundation 1529gives unlimited permission to copy, distribute and modify it. 1530_ACEOF 1531 exit 1532fi 1533 1534## ------------------------ ## 1535## Autoconf initialization. ## 1536## ------------------------ ## 1537 1538# ac_fn_c_try_compile LINENO 1539# -------------------------- 1540# Try to compile conftest.$ac_ext, and return whether this succeeded. 1541ac_fn_c_try_compile () 1542{ 1543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1544 rm -f conftest.$ac_objext 1545 if { { ac_try="$ac_compile" 1546case "(($ac_try" in 1547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1548 *) ac_try_echo=$ac_try;; 1549esac 1550eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1551$as_echo "$ac_try_echo"; } >&5 1552 (eval "$ac_compile") 2>conftest.err 1553 ac_status=$? 1554 if test -s conftest.err; then 1555 grep -v '^ *+' conftest.err >conftest.er1 1556 cat conftest.er1 >&5 1557 mv -f conftest.er1 conftest.err 1558 fi 1559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1560 test $ac_status = 0; } && { 1561 test -z "$ac_c_werror_flag" || 1562 test ! -s conftest.err 1563 } && test -s conftest.$ac_objext; then : 1564 ac_retval=0 1565else 1566 $as_echo "$as_me: failed program was:" >&5 1567sed 's/^/| /' conftest.$ac_ext >&5 1568 1569 ac_retval=1 1570fi 1571 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1572 as_fn_set_status $ac_retval 1573 1574} # ac_fn_c_try_compile 1575 1576# ac_fn_c_try_cpp LINENO 1577# ---------------------- 1578# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1579ac_fn_c_try_cpp () 1580{ 1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1582 if { { ac_try="$ac_cpp conftest.$ac_ext" 1583case "(($ac_try" in 1584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1585 *) ac_try_echo=$ac_try;; 1586esac 1587eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1588$as_echo "$ac_try_echo"; } >&5 1589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1590 ac_status=$? 1591 if test -s conftest.err; then 1592 grep -v '^ *+' conftest.err >conftest.er1 1593 cat conftest.er1 >&5 1594 mv -f conftest.er1 conftest.err 1595 fi 1596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1597 test $ac_status = 0; } > conftest.i && { 1598 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1599 test ! -s conftest.err 1600 }; then : 1601 ac_retval=0 1602else 1603 $as_echo "$as_me: failed program was:" >&5 1604sed 's/^/| /' conftest.$ac_ext >&5 1605 1606 ac_retval=1 1607fi 1608 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1609 as_fn_set_status $ac_retval 1610 1611} # ac_fn_c_try_cpp 1612 1613# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1614# ------------------------------------------------------- 1615# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1616# the include files in INCLUDES and setting the cache variable VAR 1617# accordingly. 1618ac_fn_c_check_header_mongrel () 1619{ 1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1621 if eval "test \"\${$3+set}\"" = set; then : 1622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1623$as_echo_n "checking for $2... " >&6; } 1624if eval "test \"\${$3+set}\"" = set; then : 1625 $as_echo_n "(cached) " >&6 1626fi 1627eval ac_res=\$$3 1628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1629$as_echo "$ac_res" >&6; } 1630else 1631 # Is the header compilable? 1632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1633$as_echo_n "checking $2 usability... " >&6; } 1634cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1635/* end confdefs.h. */ 1636$4 1637#include <$2> 1638_ACEOF 1639if ac_fn_c_try_compile "$LINENO"; then : 1640 ac_header_compiler=yes 1641else 1642 ac_header_compiler=no 1643fi 1644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1646$as_echo "$ac_header_compiler" >&6; } 1647 1648# Is the header present? 1649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1650$as_echo_n "checking $2 presence... " >&6; } 1651cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1652/* end confdefs.h. */ 1653#include <$2> 1654_ACEOF 1655if ac_fn_c_try_cpp "$LINENO"; then : 1656 ac_header_preproc=yes 1657else 1658 ac_header_preproc=no 1659fi 1660rm -f conftest.err conftest.i conftest.$ac_ext 1661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1662$as_echo "$ac_header_preproc" >&6; } 1663 1664# So? What about this header? 1665case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1666 yes:no: ) 1667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1668$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1670$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1671 ;; 1672 no:yes:* ) 1673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1674$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1676$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1678$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1680$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1682$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1683( $as_echo "## -------------------------------- ## 1684## Report this to guichaz@gmail.com ## 1685## -------------------------------- ##" 1686 ) | sed "s/^/$as_me: WARNING: /" >&2 1687 ;; 1688esac 1689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1690$as_echo_n "checking for $2... " >&6; } 1691if eval "test \"\${$3+set}\"" = set; then : 1692 $as_echo_n "(cached) " >&6 1693else 1694 eval "$3=\$ac_header_compiler" 1695fi 1696eval ac_res=\$$3 1697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1698$as_echo "$ac_res" >&6; } 1699fi 1700 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1701 1702} # ac_fn_c_check_header_mongrel 1703 1704# ac_fn_c_try_run LINENO 1705# ---------------------- 1706# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1707# that executables *can* be run. 1708ac_fn_c_try_run () 1709{ 1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1711 if { { ac_try="$ac_link" 1712case "(($ac_try" in 1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1714 *) ac_try_echo=$ac_try;; 1715esac 1716eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1717$as_echo "$ac_try_echo"; } >&5 1718 (eval "$ac_link") 2>&5 1719 ac_status=$? 1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1721 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1722 { { case "(($ac_try" in 1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1724 *) ac_try_echo=$ac_try;; 1725esac 1726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1727$as_echo "$ac_try_echo"; } >&5 1728 (eval "$ac_try") 2>&5 1729 ac_status=$? 1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1731 test $ac_status = 0; }; }; then : 1732 ac_retval=0 1733else 1734 $as_echo "$as_me: program exited with status $ac_status" >&5 1735 $as_echo "$as_me: failed program was:" >&5 1736sed 's/^/| /' conftest.$ac_ext >&5 1737 1738 ac_retval=$ac_status 1739fi 1740 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1741 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1742 as_fn_set_status $ac_retval 1743 1744} # ac_fn_c_try_run 1745 1746# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1747# ------------------------------------------------------- 1748# Tests whether HEADER exists and can be compiled using the include files in 1749# INCLUDES, setting the cache variable VAR accordingly. 1750ac_fn_c_check_header_compile () 1751{ 1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1754$as_echo_n "checking for $2... " >&6; } 1755if eval "test \"\${$3+set}\"" = set; then : 1756 $as_echo_n "(cached) " >&6 1757else 1758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1759/* end confdefs.h. */ 1760$4 1761#include <$2> 1762_ACEOF 1763if ac_fn_c_try_compile "$LINENO"; then : 1764 eval "$3=yes" 1765else 1766 eval "$3=no" 1767fi 1768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1769fi 1770eval ac_res=\$$3 1771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1772$as_echo "$ac_res" >&6; } 1773 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1774 1775} # ac_fn_c_check_header_compile 1776 1777# ac_fn_c_try_link LINENO 1778# ----------------------- 1779# Try to link conftest.$ac_ext, and return whether this succeeded. 1780ac_fn_c_try_link () 1781{ 1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1783 rm -f conftest.$ac_objext conftest$ac_exeext 1784 if { { ac_try="$ac_link" 1785case "(($ac_try" in 1786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1787 *) ac_try_echo=$ac_try;; 1788esac 1789eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1790$as_echo "$ac_try_echo"; } >&5 1791 (eval "$ac_link") 2>conftest.err 1792 ac_status=$? 1793 if test -s conftest.err; then 1794 grep -v '^ *+' conftest.err >conftest.er1 1795 cat conftest.er1 >&5 1796 mv -f conftest.er1 conftest.err 1797 fi 1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1799 test $ac_status = 0; } && { 1800 test -z "$ac_c_werror_flag" || 1801 test ! -s conftest.err 1802 } && test -s conftest$ac_exeext && { 1803 test "$cross_compiling" = yes || 1804 $as_test_x conftest$ac_exeext 1805 }; then : 1806 ac_retval=0 1807else 1808 $as_echo "$as_me: failed program was:" >&5 1809sed 's/^/| /' conftest.$ac_ext >&5 1810 1811 ac_retval=1 1812fi 1813 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1814 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1815 # interfere with the next link command; also delete a directory that is 1816 # left behind by Apple's compiler. We do this before executing the actions. 1817 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1818 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1819 as_fn_set_status $ac_retval 1820 1821} # ac_fn_c_try_link 1822 1823# ac_fn_c_check_func LINENO FUNC VAR 1824# ---------------------------------- 1825# Tests whether FUNC exists, setting the cache variable VAR accordingly 1826ac_fn_c_check_func () 1827{ 1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1830$as_echo_n "checking for $2... " >&6; } 1831if eval "test \"\${$3+set}\"" = set; then : 1832 $as_echo_n "(cached) " >&6 1833else 1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1835/* end confdefs.h. */ 1836/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1837 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1838#define $2 innocuous_$2 1839 1840/* System header to define __stub macros and hopefully few prototypes, 1841 which can conflict with char $2 (); below. 1842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1843 <limits.h> exists even on freestanding compilers. */ 1844 1845#ifdef __STDC__ 1846# include <limits.h> 1847#else 1848# include <assert.h> 1849#endif 1850 1851#undef $2 1852 1853/* Override any GCC internal prototype to avoid an error. 1854 Use char because int might match the return type of a GCC 1855 builtin and then its argument prototype would still apply. */ 1856#ifdef __cplusplus 1857extern "C" 1858#endif 1859char $2 (); 1860/* The GNU C library defines this for functions which it implements 1861 to always fail with ENOSYS. Some functions are actually named 1862 something starting with __ and the normal name is an alias. */ 1863#if defined __stub_$2 || defined __stub___$2 1864choke me 1865#endif 1866 1867int 1868main () 1869{ 1870return $2 (); 1871 ; 1872 return 0; 1873} 1874_ACEOF 1875if ac_fn_c_try_link "$LINENO"; then : 1876 eval "$3=yes" 1877else 1878 eval "$3=no" 1879fi 1880rm -f core conftest.err conftest.$ac_objext \ 1881 conftest$ac_exeext conftest.$ac_ext 1882fi 1883eval ac_res=\$$3 1884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1885$as_echo "$ac_res" >&6; } 1886 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1887 1888} # ac_fn_c_check_func 1889 1890# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1891# -------------------------------------------- 1892# Tries to find the compile-time value of EXPR in a program that includes 1893# INCLUDES, setting VAR accordingly. Returns whether the value could be 1894# computed 1895ac_fn_c_compute_int () 1896{ 1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1898 if test "$cross_compiling" = yes; then 1899 # Depending upon the size, compute the lo and hi bounds. 1900cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1901/* end confdefs.h. */ 1902$4 1903int 1904main () 1905{ 1906static int test_array [1 - 2 * !(($2) >= 0)]; 1907test_array [0] = 0 1908 1909 ; 1910 return 0; 1911} 1912_ACEOF 1913if ac_fn_c_try_compile "$LINENO"; then : 1914 ac_lo=0 ac_mid=0 1915 while :; do 1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1917/* end confdefs.h. */ 1918$4 1919int 1920main () 1921{ 1922static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1923test_array [0] = 0 1924 1925 ; 1926 return 0; 1927} 1928_ACEOF 1929if ac_fn_c_try_compile "$LINENO"; then : 1930 ac_hi=$ac_mid; break 1931else 1932 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 1933 if test $ac_lo -le $ac_mid; then 1934 ac_lo= ac_hi= 1935 break 1936 fi 1937 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 1938fi 1939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1940 done 1941else 1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1943/* end confdefs.h. */ 1944$4 1945int 1946main () 1947{ 1948static int test_array [1 - 2 * !(($2) < 0)]; 1949test_array [0] = 0 1950 1951 ; 1952 return 0; 1953} 1954_ACEOF 1955if ac_fn_c_try_compile "$LINENO"; then : 1956 ac_hi=-1 ac_mid=-1 1957 while :; do 1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1959/* end confdefs.h. */ 1960$4 1961int 1962main () 1963{ 1964static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 1965test_array [0] = 0 1966 1967 ; 1968 return 0; 1969} 1970_ACEOF 1971if ac_fn_c_try_compile "$LINENO"; then : 1972 ac_lo=$ac_mid; break 1973else 1974 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 1975 if test $ac_mid -le $ac_hi; then 1976 ac_lo= ac_hi= 1977 break 1978 fi 1979 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 1980fi 1981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1982 done 1983else 1984 ac_lo= ac_hi= 1985fi 1986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1987fi 1988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1989# Binary search between lo and hi bounds. 1990while test "x$ac_lo" != "x$ac_hi"; do 1991 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 1992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1993/* end confdefs.h. */ 1994$4 1995int 1996main () 1997{ 1998static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1999test_array [0] = 0 2000 2001 ; 2002 return 0; 2003} 2004_ACEOF 2005if ac_fn_c_try_compile "$LINENO"; then : 2006 ac_hi=$ac_mid 2007else 2008 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2009fi 2010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2011done 2012case $ac_lo in #(( 2013?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2014'') ac_retval=1 ;; 2015esac 2016 else 2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2018/* end confdefs.h. */ 2019$4 2020static long int longval () { return $2; } 2021static unsigned long int ulongval () { return $2; } 2022#include <stdio.h> 2023#include <stdlib.h> 2024int 2025main () 2026{ 2027 2028 FILE *f = fopen ("conftest.val", "w"); 2029 if (! f) 2030 return 1; 2031 if (($2) < 0) 2032 { 2033 long int i = longval (); 2034 if (i != ($2)) 2035 return 1; 2036 fprintf (f, "%ld", i); 2037 } 2038 else 2039 { 2040 unsigned long int i = ulongval (); 2041 if (i != ($2)) 2042 return 1; 2043 fprintf (f, "%lu", i); 2044 } 2045 /* Do not output a trailing newline, as this causes \r\n confusion 2046 on some platforms. */ 2047 return ferror (f) || fclose (f) != 0; 2048 2049 ; 2050 return 0; 2051} 2052_ACEOF 2053if ac_fn_c_try_run "$LINENO"; then : 2054 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2055else 2056 ac_retval=1 2057fi 2058rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2059 conftest.$ac_objext conftest.beam conftest.$ac_ext 2060rm -f conftest.val 2061 2062 fi 2063 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2064 as_fn_set_status $ac_retval 2065 2066} # ac_fn_c_compute_int 2067 2068# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2069# ------------------------------------------- 2070# Tests whether TYPE exists after having included INCLUDES, setting cache 2071# variable VAR accordingly. 2072ac_fn_c_check_type () 2073{ 2074 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2076$as_echo_n "checking for $2... " >&6; } 2077if eval "test \"\${$3+set}\"" = set; then : 2078 $as_echo_n "(cached) " >&6 2079else 2080 eval "$3=no" 2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2082/* end confdefs.h. */ 2083$4 2084int 2085main () 2086{ 2087if (sizeof ($2)) 2088 return 0; 2089 ; 2090 return 0; 2091} 2092_ACEOF 2093if ac_fn_c_try_compile "$LINENO"; then : 2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2095/* end confdefs.h. */ 2096$4 2097int 2098main () 2099{ 2100if (sizeof (($2))) 2101 return 0; 2102 ; 2103 return 0; 2104} 2105_ACEOF 2106if ac_fn_c_try_compile "$LINENO"; then : 2107 2108else 2109 eval "$3=yes" 2110fi 2111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2112fi 2113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2114fi 2115eval ac_res=\$$3 2116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2117$as_echo "$ac_res" >&6; } 2118 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2119 2120} # ac_fn_c_check_type 2121cat >config.log <<_ACEOF 2122This file contains any messages produced by compilers while 2123running configure, to aid debugging if configure makes a mistake. 2124 2125It was created by gliv $as_me 1.9.7, which was 2126generated by GNU Autoconf 2.67. Invocation command line was 2127 2128 $ $0 $@ 2129 2130_ACEOF 2131exec 5>>config.log 2132{ 2133cat <<_ASUNAME 2134## --------- ## 2135## Platform. ## 2136## --------- ## 2137 2138hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2139uname -m = `(uname -m) 2>/dev/null || echo unknown` 2140uname -r = `(uname -r) 2>/dev/null || echo unknown` 2141uname -s = `(uname -s) 2>/dev/null || echo unknown` 2142uname -v = `(uname -v) 2>/dev/null || echo unknown` 2143 2144/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2145/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2146 2147/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2148/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2149/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2150/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2151/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2152/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2153/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2154 2155_ASUNAME 2156 2157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2158for as_dir in $PATH 2159do 2160 IFS=$as_save_IFS 2161 test -z "$as_dir" && as_dir=. 2162 $as_echo "PATH: $as_dir" 2163 done 2164IFS=$as_save_IFS 2165 2166} >&5 2167 2168cat >&5 <<_ACEOF 2169 2170 2171## ----------- ## 2172## Core tests. ## 2173## ----------- ## 2174 2175_ACEOF 2176 2177 2178# Keep a trace of the command line. 2179# Strip out --no-create and --no-recursion so they do not pile up. 2180# Strip out --silent because we don't want to record it for future runs. 2181# Also quote any args containing shell meta-characters. 2182# Make two passes to allow for proper duplicate-argument suppression. 2183ac_configure_args= 2184ac_configure_args0= 2185ac_configure_args1= 2186ac_must_keep_next=false 2187for ac_pass in 1 2 2188do 2189 for ac_arg 2190 do 2191 case $ac_arg in 2192 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2193 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2194 | -silent | --silent | --silen | --sile | --sil) 2195 continue ;; 2196 *\'*) 2197 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2198 esac 2199 case $ac_pass in 2200 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2201 2) 2202 as_fn_append ac_configure_args1 " '$ac_arg'" 2203 if test $ac_must_keep_next = true; then 2204 ac_must_keep_next=false # Got value, back to normal. 2205 else 2206 case $ac_arg in 2207 *=* | --config-cache | -C | -disable-* | --disable-* \ 2208 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2209 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2210 | -with-* | --with-* | -without-* | --without-* | --x) 2211 case "$ac_configure_args0 " in 2212 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2213 esac 2214 ;; 2215 -* ) ac_must_keep_next=true ;; 2216 esac 2217 fi 2218 as_fn_append ac_configure_args " '$ac_arg'" 2219 ;; 2220 esac 2221 done 2222done 2223{ ac_configure_args0=; unset ac_configure_args0;} 2224{ ac_configure_args1=; unset ac_configure_args1;} 2225 2226# When interrupted or exit'd, cleanup temporary files, and complete 2227# config.log. We remove comments because anyway the quotes in there 2228# would cause problems or look ugly. 2229# WARNING: Use '\'' to represent an apostrophe within the trap. 2230# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2231trap 'exit_status=$? 2232 # Save into config.log some information that might help in debugging. 2233 { 2234 echo 2235 2236 $as_echo "## ---------------- ## 2237## Cache variables. ## 2238## ---------------- ##" 2239 echo 2240 # The following way of writing the cache mishandles newlines in values, 2241( 2242 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2243 eval ac_val=\$$ac_var 2244 case $ac_val in #( 2245 *${as_nl}*) 2246 case $ac_var in #( 2247 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2248$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2249 esac 2250 case $ac_var in #( 2251 _ | IFS | as_nl) ;; #( 2252 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2253 *) { eval $ac_var=; unset $ac_var;} ;; 2254 esac ;; 2255 esac 2256 done 2257 (set) 2>&1 | 2258 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2259 *${as_nl}ac_space=\ *) 2260 sed -n \ 2261 "s/'\''/'\''\\\\'\'''\''/g; 2262 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2263 ;; #( 2264 *) 2265 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2266 ;; 2267 esac | 2268 sort 2269) 2270 echo 2271 2272 $as_echo "## ----------------- ## 2273## Output variables. ## 2274## ----------------- ##" 2275 echo 2276 for ac_var in $ac_subst_vars 2277 do 2278 eval ac_val=\$$ac_var 2279 case $ac_val in 2280 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2281 esac 2282 $as_echo "$ac_var='\''$ac_val'\''" 2283 done | sort 2284 echo 2285 2286 if test -n "$ac_subst_files"; then 2287 $as_echo "## ------------------- ## 2288## File substitutions. ## 2289## ------------------- ##" 2290 echo 2291 for ac_var in $ac_subst_files 2292 do 2293 eval ac_val=\$$ac_var 2294 case $ac_val in 2295 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2296 esac 2297 $as_echo "$ac_var='\''$ac_val'\''" 2298 done | sort 2299 echo 2300 fi 2301 2302 if test -s confdefs.h; then 2303 $as_echo "## ----------- ## 2304## confdefs.h. ## 2305## ----------- ##" 2306 echo 2307 cat confdefs.h 2308 echo 2309 fi 2310 test "$ac_signal" != 0 && 2311 $as_echo "$as_me: caught signal $ac_signal" 2312 $as_echo "$as_me: exit $exit_status" 2313 } >&5 2314 rm -f core *.core core.conftest.* && 2315 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2316 exit $exit_status 2317' 0 2318for ac_signal in 1 2 13 15; do 2319 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2320done 2321ac_signal=0 2322 2323# confdefs.h avoids OS command line length limits that DEFS can exceed. 2324rm -f -r conftest* confdefs.h 2325 2326$as_echo "/* confdefs.h */" > confdefs.h 2327 2328# Predefined preprocessor variables. 2329 2330cat >>confdefs.h <<_ACEOF 2331#define PACKAGE_NAME "$PACKAGE_NAME" 2332_ACEOF 2333 2334cat >>confdefs.h <<_ACEOF 2335#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2336_ACEOF 2337 2338cat >>confdefs.h <<_ACEOF 2339#define PACKAGE_VERSION "$PACKAGE_VERSION" 2340_ACEOF 2341 2342cat >>confdefs.h <<_ACEOF 2343#define PACKAGE_STRING "$PACKAGE_STRING" 2344_ACEOF 2345 2346cat >>confdefs.h <<_ACEOF 2347#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2348_ACEOF 2349 2350cat >>confdefs.h <<_ACEOF 2351#define PACKAGE_URL "$PACKAGE_URL" 2352_ACEOF 2353 2354 2355# Let the site file select an alternate cache file if it wants to. 2356# Prefer an explicitly selected file to automatically selected ones. 2357ac_site_file1=NONE 2358ac_site_file2=NONE 2359if test -n "$CONFIG_SITE"; then 2360 # We do not want a PATH search for config.site. 2361 case $CONFIG_SITE in #(( 2362 -*) ac_site_file1=./$CONFIG_SITE;; 2363 */*) ac_site_file1=$CONFIG_SITE;; 2364 *) ac_site_file1=./$CONFIG_SITE;; 2365 esac 2366elif test "x$prefix" != xNONE; then 2367 ac_site_file1=$prefix/share/config.site 2368 ac_site_file2=$prefix/etc/config.site 2369else 2370 ac_site_file1=$ac_default_prefix/share/config.site 2371 ac_site_file2=$ac_default_prefix/etc/config.site 2372fi 2373for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2374do 2375 test "x$ac_site_file" = xNONE && continue 2376 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2377 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2378$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2379 sed 's/^/| /' "$ac_site_file" >&5 2380 . "$ac_site_file" \ 2381 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2382$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2383as_fn_error $? "failed to load site script $ac_site_file 2384See \`config.log' for more details" "$LINENO" 5 ; } 2385 fi 2386done 2387 2388if test -r "$cache_file"; then 2389 # Some versions of bash will fail to source /dev/null (special files 2390 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2391 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2392 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2393$as_echo "$as_me: loading cache $cache_file" >&6;} 2394 case $cache_file in 2395 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2396 *) . "./$cache_file";; 2397 esac 2398 fi 2399else 2400 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2401$as_echo "$as_me: creating cache $cache_file" >&6;} 2402 >$cache_file 2403fi 2404 2405gt_needs="$gt_needs " 2406as_fn_append ac_header_list " stdlib.h" 2407as_fn_append ac_header_list " unistd.h" 2408as_fn_append ac_header_list " sys/param.h" 2409# Check that the precious variables saved in the cache have kept the same 2410# value. 2411ac_cache_corrupted=false 2412for ac_var in $ac_precious_vars; do 2413 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2414 eval ac_new_set=\$ac_env_${ac_var}_set 2415 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2416 eval ac_new_val=\$ac_env_${ac_var}_value 2417 case $ac_old_set,$ac_new_set in 2418 set,) 2419 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2420$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2421 ac_cache_corrupted=: ;; 2422 ,set) 2423 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2424$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2425 ac_cache_corrupted=: ;; 2426 ,);; 2427 *) 2428 if test "x$ac_old_val" != "x$ac_new_val"; then 2429 # differences in whitespace do not lead to failure. 2430 ac_old_val_w=`echo x $ac_old_val` 2431 ac_new_val_w=`echo x $ac_new_val` 2432 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2433 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2434$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2435 ac_cache_corrupted=: 2436 else 2437 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2438$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2439 eval $ac_var=\$ac_old_val 2440 fi 2441 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2442$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2443 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2444$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2445 fi;; 2446 esac 2447 # Pass precious variables to config.status. 2448 if test "$ac_new_set" = set; then 2449 case $ac_new_val in 2450 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2451 *) ac_arg=$ac_var=$ac_new_val ;; 2452 esac 2453 case " $ac_configure_args " in 2454 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2455 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2456 esac 2457 fi 2458done 2459if $ac_cache_corrupted; then 2460 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2461$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2462 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2463$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2464 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2465fi 2466## -------------------- ## 2467## Main body of script. ## 2468## -------------------- ## 2469 2470ac_ext=c 2471ac_cpp='$CPP $CPPFLAGS' 2472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2474ac_compiler_gnu=$ac_cv_c_compiler_gnu 2475 2476 2477 2478am__api_version='1.11' 2479 2480ac_aux_dir= 2481for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2482 if test -f "$ac_dir/install-sh"; then 2483 ac_aux_dir=$ac_dir 2484 ac_install_sh="$ac_aux_dir/install-sh -c" 2485 break 2486 elif test -f "$ac_dir/install.sh"; then 2487 ac_aux_dir=$ac_dir 2488 ac_install_sh="$ac_aux_dir/install.sh -c" 2489 break 2490 elif test -f "$ac_dir/shtool"; then 2491 ac_aux_dir=$ac_dir 2492 ac_install_sh="$ac_aux_dir/shtool install -c" 2493 break 2494 fi 2495done 2496if test -z "$ac_aux_dir"; then 2497 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2498fi 2499 2500# These three variables are undocumented and unsupported, 2501# and are intended to be withdrawn in a future Autoconf release. 2502# They can cause serious problems if a builder's source tree is in a directory 2503# whose full name contains unusual characters. 2504ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2505ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2506ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2507 2508 2509# Find a good install program. We prefer a C program (faster), 2510# so one script is as good as another. But avoid the broken or 2511# incompatible versions: 2512# SysV /etc/install, /usr/sbin/install 2513# SunOS /usr/etc/install 2514# IRIX /sbin/install 2515# AIX /bin/install 2516# AmigaOS /C/install, which installs bootblocks on floppy discs 2517# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2518# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2519# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2520# OS/2's system install, which has a completely different semantic 2521# ./install, which can be erroneously created by make from ./install.sh. 2522# Reject install programs that cannot install multiple files. 2523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2524$as_echo_n "checking for a BSD-compatible install... " >&6; } 2525if test -z "$INSTALL"; then 2526if test "${ac_cv_path_install+set}" = set; then : 2527 $as_echo_n "(cached) " >&6 2528else 2529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2530for as_dir in $PATH 2531do 2532 IFS=$as_save_IFS 2533 test -z "$as_dir" && as_dir=. 2534 # Account for people who put trailing slashes in PATH elements. 2535case $as_dir/ in #(( 2536 ./ | .// | /[cC]/* | \ 2537 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2538 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2539 /usr/ucb/* ) ;; 2540 *) 2541 # OSF1 and SCO ODT 3.0 have their own names for install. 2542 # Don't use installbsd from OSF since it installs stuff as root 2543 # by default. 2544 for ac_prog in ginstall scoinst install; do 2545 for ac_exec_ext in '' $ac_executable_extensions; do 2546 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2547 if test $ac_prog = install && 2548 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2549 # AIX install. It has an incompatible calling convention. 2550 : 2551 elif test $ac_prog = install && 2552 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2553 # program-specific install script used by HP pwplus--don't use. 2554 : 2555 else 2556 rm -rf conftest.one conftest.two conftest.dir 2557 echo one > conftest.one 2558 echo two > conftest.two 2559 mkdir conftest.dir 2560 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2561 test -s conftest.one && test -s conftest.two && 2562 test -s conftest.dir/conftest.one && 2563 test -s conftest.dir/conftest.two 2564 then 2565 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2566 break 3 2567 fi 2568 fi 2569 fi 2570 done 2571 done 2572 ;; 2573esac 2574 2575 done 2576IFS=$as_save_IFS 2577 2578rm -rf conftest.one conftest.two conftest.dir 2579 2580fi 2581 if test "${ac_cv_path_install+set}" = set; then 2582 INSTALL=$ac_cv_path_install 2583 else 2584 # As a last resort, use the slow shell script. Don't cache a 2585 # value for INSTALL within a source directory, because that will 2586 # break other packages using the cache if that directory is 2587 # removed, or if the value is a relative name. 2588 INSTALL=$ac_install_sh 2589 fi 2590fi 2591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2592$as_echo "$INSTALL" >&6; } 2593 2594# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2595# It thinks the first close brace ends the variable substitution. 2596test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2597 2598test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2599 2600test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2601 2602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2603$as_echo_n "checking whether build environment is sane... " >&6; } 2604# Just in case 2605sleep 1 2606echo timestamp > conftest.file 2607# Reject unsafe characters in $srcdir or the absolute working directory 2608# name. Accept space and tab only in the latter. 2609am_lf=' 2610' 2611case `pwd` in 2612 *[\\\"\#\$\&\'\`$am_lf]*) 2613 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;; 2614esac 2615case $srcdir in 2616 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2617 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;; 2618esac 2619 2620# Do `set' in a subshell so we don't clobber the current shell's 2621# arguments. Must try -L first in case configure is actually a 2622# symlink; some systems play weird games with the mod time of symlinks 2623# (eg FreeBSD returns the mod time of the symlink's containing 2624# directory). 2625if ( 2626 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2627 if test "$*" = "X"; then 2628 # -L didn't work. 2629 set X `ls -t "$srcdir/configure" conftest.file` 2630 fi 2631 rm -f conftest.file 2632 if test "$*" != "X $srcdir/configure conftest.file" \ 2633 && test "$*" != "X conftest.file $srcdir/configure"; then 2634 2635 # If neither matched, then we have a broken ls. This can happen 2636 # if, for instance, CONFIG_SHELL is bash and it inherits a 2637 # broken ls alias from the environment. This has actually 2638 # happened. Such a system could not be considered "sane". 2639 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2640alias in your environment" "$LINENO" 5 2641 fi 2642 2643 test "$2" = conftest.file 2644 ) 2645then 2646 # Ok. 2647 : 2648else 2649 as_fn_error $? "newly created file is older than distributed files! 2650Check your system clock" "$LINENO" 5 2651fi 2652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2653$as_echo "yes" >&6; } 2654test "$program_prefix" != NONE && 2655 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2656# Use a double $ so make ignores it. 2657test "$program_suffix" != NONE && 2658 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2659# Double any \ or $. 2660# By default was `s,x,x', remove it if useless. 2661ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2662program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2663 2664# expand $ac_aux_dir to an absolute path 2665am_aux_dir=`cd $ac_aux_dir && pwd` 2666 2667if test x"${MISSING+set}" != xset; then 2668 case $am_aux_dir in 2669 *\ * | *\ *) 2670 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2671 *) 2672 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2673 esac 2674fi 2675# Use eval to expand $SHELL 2676if eval "$MISSING --run true"; then 2677 am_missing_run="$MISSING --run " 2678else 2679 am_missing_run= 2680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2681$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2682fi 2683 2684if test x"${install_sh}" != xset; then 2685 case $am_aux_dir in 2686 *\ * | *\ *) 2687 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2688 *) 2689 install_sh="\${SHELL} $am_aux_dir/install-sh" 2690 esac 2691fi 2692 2693# Installed binaries are usually stripped using `strip' when the user 2694# run `make install-strip'. However `strip' might not be the right 2695# tool to use in cross-compilation environments, therefore Automake 2696# will honor the `STRIP' environment variable to overrule this program. 2697if test "$cross_compiling" != no; then 2698 if test -n "$ac_tool_prefix"; then 2699 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2700set dummy ${ac_tool_prefix}strip; ac_word=$2 2701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2702$as_echo_n "checking for $ac_word... " >&6; } 2703if test "${ac_cv_prog_STRIP+set}" = set; then : 2704 $as_echo_n "(cached) " >&6 2705else 2706 if test -n "$STRIP"; then 2707 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2708else 2709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2710for as_dir in $PATH 2711do 2712 IFS=$as_save_IFS 2713 test -z "$as_dir" && as_dir=. 2714 for ac_exec_ext in '' $ac_executable_extensions; do 2715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2716 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2718 break 2 2719 fi 2720done 2721 done 2722IFS=$as_save_IFS 2723 2724fi 2725fi 2726STRIP=$ac_cv_prog_STRIP 2727if test -n "$STRIP"; then 2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2729$as_echo "$STRIP" >&6; } 2730else 2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2732$as_echo "no" >&6; } 2733fi 2734 2735 2736fi 2737if test -z "$ac_cv_prog_STRIP"; then 2738 ac_ct_STRIP=$STRIP 2739 # Extract the first word of "strip", so it can be a program name with args. 2740set dummy strip; ac_word=$2 2741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2742$as_echo_n "checking for $ac_word... " >&6; } 2743if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2744 $as_echo_n "(cached) " >&6 2745else 2746 if test -n "$ac_ct_STRIP"; then 2747 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2748else 2749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2750for as_dir in $PATH 2751do 2752 IFS=$as_save_IFS 2753 test -z "$as_dir" && as_dir=. 2754 for ac_exec_ext in '' $ac_executable_extensions; do 2755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2756 ac_cv_prog_ac_ct_STRIP="strip" 2757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2758 break 2 2759 fi 2760done 2761 done 2762IFS=$as_save_IFS 2763 2764fi 2765fi 2766ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2767if test -n "$ac_ct_STRIP"; then 2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2769$as_echo "$ac_ct_STRIP" >&6; } 2770else 2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2772$as_echo "no" >&6; } 2773fi 2774 2775 if test "x$ac_ct_STRIP" = x; then 2776 STRIP=":" 2777 else 2778 case $cross_compiling:$ac_tool_warned in 2779yes:) 2780{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2781$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2782ac_tool_warned=yes ;; 2783esac 2784 STRIP=$ac_ct_STRIP 2785 fi 2786else 2787 STRIP="$ac_cv_prog_STRIP" 2788fi 2789 2790fi 2791INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2792 2793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2794$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2795if test -z "$MKDIR_P"; then 2796 if test "${ac_cv_path_mkdir+set}" = set; then : 2797 $as_echo_n "(cached) " >&6 2798else 2799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2800for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2801do 2802 IFS=$as_save_IFS 2803 test -z "$as_dir" && as_dir=. 2804 for ac_prog in mkdir gmkdir; do 2805 for ac_exec_ext in '' $ac_executable_extensions; do 2806 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2807 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2808 'mkdir (GNU coreutils) '* | \ 2809 'mkdir (coreutils) '* | \ 2810 'mkdir (fileutils) '4.1*) 2811 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2812 break 3;; 2813 esac 2814 done 2815 done 2816 done 2817IFS=$as_save_IFS 2818 2819fi 2820 2821 test -d ./--version && rmdir ./--version 2822 if test "${ac_cv_path_mkdir+set}" = set; then 2823 MKDIR_P="$ac_cv_path_mkdir -p" 2824 else 2825 # As a last resort, use the slow shell script. Don't cache a 2826 # value for MKDIR_P within a source directory, because that will 2827 # break other packages using the cache if that directory is 2828 # removed, or if the value is a relative name. 2829 MKDIR_P="$ac_install_sh -d" 2830 fi 2831fi 2832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2833$as_echo "$MKDIR_P" >&6; } 2834 2835mkdir_p="$MKDIR_P" 2836case $mkdir_p in 2837 [\\/$]* | ?:[\\/]*) ;; 2838 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2839esac 2840 2841for ac_prog in gawk mawk nawk awk 2842do 2843 # Extract the first word of "$ac_prog", so it can be a program name with args. 2844set dummy $ac_prog; ac_word=$2 2845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2846$as_echo_n "checking for $ac_word... " >&6; } 2847if test "${ac_cv_prog_AWK+set}" = set; then : 2848 $as_echo_n "(cached) " >&6 2849else 2850 if test -n "$AWK"; then 2851 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2852else 2853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2854for as_dir in $PATH 2855do 2856 IFS=$as_save_IFS 2857 test -z "$as_dir" && as_dir=. 2858 for ac_exec_ext in '' $ac_executable_extensions; do 2859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2860 ac_cv_prog_AWK="$ac_prog" 2861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2862 break 2 2863 fi 2864done 2865 done 2866IFS=$as_save_IFS 2867 2868fi 2869fi 2870AWK=$ac_cv_prog_AWK 2871if test -n "$AWK"; then 2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2873$as_echo "$AWK" >&6; } 2874else 2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2876$as_echo "no" >&6; } 2877fi 2878 2879 2880 test -n "$AWK" && break 2881done 2882 2883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2884$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2885set x ${MAKE-make} 2886ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2887if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : 2888 $as_echo_n "(cached) " >&6 2889else 2890 cat >conftest.make <<\_ACEOF 2891SHELL = /bin/sh 2892all: 2893 @echo '@@@%%%=$(MAKE)=@@@%%%' 2894_ACEOF 2895# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2896case `${MAKE-make} -f conftest.make 2>/dev/null` in 2897 *@@@%%%=?*=@@@%%%*) 2898 eval ac_cv_prog_make_${ac_make}_set=yes;; 2899 *) 2900 eval ac_cv_prog_make_${ac_make}_set=no;; 2901esac 2902rm -f conftest.make 2903fi 2904if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2906$as_echo "yes" >&6; } 2907 SET_MAKE= 2908else 2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2910$as_echo "no" >&6; } 2911 SET_MAKE="MAKE=${MAKE-make}" 2912fi 2913 2914rm -rf .tst 2>/dev/null 2915mkdir .tst 2>/dev/null 2916if test -d .tst; then 2917 am__leading_dot=. 2918else 2919 am__leading_dot=_ 2920fi 2921rmdir .tst 2>/dev/null 2922 2923if test "`cd $srcdir && pwd`" != "`pwd`"; then 2924 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2925 # is not polluted with repeated "-I." 2926 am__isrc=' -I$(srcdir)' 2927 # test to see if srcdir already configured 2928 if test -f $srcdir/config.status; then 2929 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2930 fi 2931fi 2932 2933# test whether we have cygpath 2934if test -z "$CYGPATH_W"; then 2935 if (cygpath --version) >/dev/null 2>/dev/null; then 2936 CYGPATH_W='cygpath -w' 2937 else 2938 CYGPATH_W=echo 2939 fi 2940fi 2941 2942 2943# Define the identity of the package. 2944 PACKAGE='gliv' 2945 VERSION='1.9.7' 2946 2947 2948cat >>confdefs.h <<_ACEOF 2949#define PACKAGE "$PACKAGE" 2950_ACEOF 2951 2952 2953cat >>confdefs.h <<_ACEOF 2954#define VERSION "$VERSION" 2955_ACEOF 2956 2957# Some tools Automake needs. 2958 2959ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2960 2961 2962AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2963 2964 2965AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2966 2967 2968AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2969 2970 2971MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2972 2973# We need awk for the "check" target. The system "awk" is bad on 2974# some platforms. 2975# Always define AMTAR for backward compatibility. 2976 2977AMTAR=${AMTAR-"${am_missing_run}tar"} 2978 2979am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2980 2981 2982 2983 2984 2985ac_config_headers="$ac_config_headers config.h" 2986 2987ac_ext=c 2988ac_cpp='$CPP $CPPFLAGS' 2989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2991ac_compiler_gnu=$ac_cv_c_compiler_gnu 2992 2993DEPDIR="${am__leading_dot}deps" 2994 2995ac_config_commands="$ac_config_commands depfiles" 2996 2997 2998am_make=${MAKE-make} 2999cat > confinc << 'END' 3000am__doit: 3001 @echo this is the am__doit target 3002.PHONY: am__doit 3003END 3004# If we don't find an include directive, just comment out the code. 3005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3006$as_echo_n "checking for style of include used by $am_make... " >&6; } 3007am__include="#" 3008am__quote= 3009_am_result=none 3010# First try GNU make style include. 3011echo "include confinc" > confmf 3012# Ignore all kinds of additional output from `make'. 3013case `$am_make -s -f confmf 2> /dev/null` in #( 3014*the\ am__doit\ target*) 3015 am__include=include 3016 am__quote= 3017 _am_result=GNU 3018 ;; 3019esac 3020# Now try BSD make style include. 3021if test "$am__include" = "#"; then 3022 echo '.include "confinc"' > confmf 3023 case `$am_make -s -f confmf 2> /dev/null` in #( 3024 *the\ am__doit\ target*) 3025 am__include=.include 3026 am__quote="\"" 3027 _am_result=BSD 3028 ;; 3029 esac 3030fi 3031 3032 3033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3034$as_echo "$_am_result" >&6; } 3035rm -f confinc confmf 3036 3037# Check whether --enable-dependency-tracking was given. 3038if test "${enable_dependency_tracking+set}" = set; then : 3039 enableval=$enable_dependency_tracking; 3040fi 3041 3042if test "x$enable_dependency_tracking" != xno; then 3043 am_depcomp="$ac_aux_dir/depcomp" 3044 AMDEPBACKSLASH='\' 3045fi 3046 if test "x$enable_dependency_tracking" != xno; then 3047 AMDEP_TRUE= 3048 AMDEP_FALSE='#' 3049else 3050 AMDEP_TRUE='#' 3051 AMDEP_FALSE= 3052fi 3053 3054 3055ac_ext=c 3056ac_cpp='$CPP $CPPFLAGS' 3057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3059ac_compiler_gnu=$ac_cv_c_compiler_gnu 3060if test -n "$ac_tool_prefix"; then 3061 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3062set dummy ${ac_tool_prefix}gcc; ac_word=$2 3063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3064$as_echo_n "checking for $ac_word... " >&6; } 3065if test "${ac_cv_prog_CC+set}" = set; then : 3066 $as_echo_n "(cached) " >&6 3067else 3068 if test -n "$CC"; then 3069 ac_cv_prog_CC="$CC" # Let the user override the test. 3070else 3071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3072for as_dir in $PATH 3073do 3074 IFS=$as_save_IFS 3075 test -z "$as_dir" && as_dir=. 3076 for ac_exec_ext in '' $ac_executable_extensions; do 3077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3078 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3080 break 2 3081 fi 3082done 3083 done 3084IFS=$as_save_IFS 3085 3086fi 3087fi 3088CC=$ac_cv_prog_CC 3089if test -n "$CC"; then 3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3091$as_echo "$CC" >&6; } 3092else 3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3094$as_echo "no" >&6; } 3095fi 3096 3097 3098fi 3099if test -z "$ac_cv_prog_CC"; then 3100 ac_ct_CC=$CC 3101 # Extract the first word of "gcc", so it can be a program name with args. 3102set dummy gcc; ac_word=$2 3103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3104$as_echo_n "checking for $ac_word... " >&6; } 3105if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3106 $as_echo_n "(cached) " >&6 3107else 3108 if test -n "$ac_ct_CC"; then 3109 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3110else 3111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3112for as_dir in $PATH 3113do 3114 IFS=$as_save_IFS 3115 test -z "$as_dir" && as_dir=. 3116 for ac_exec_ext in '' $ac_executable_extensions; do 3117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3118 ac_cv_prog_ac_ct_CC="gcc" 3119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3120 break 2 3121 fi 3122done 3123 done 3124IFS=$as_save_IFS 3125 3126fi 3127fi 3128ac_ct_CC=$ac_cv_prog_ac_ct_CC 3129if test -n "$ac_ct_CC"; then 3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3131$as_echo "$ac_ct_CC" >&6; } 3132else 3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3134$as_echo "no" >&6; } 3135fi 3136 3137 if test "x$ac_ct_CC" = x; then 3138 CC="" 3139 else 3140 case $cross_compiling:$ac_tool_warned in 3141yes:) 3142{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3143$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3144ac_tool_warned=yes ;; 3145esac 3146 CC=$ac_ct_CC 3147 fi 3148else 3149 CC="$ac_cv_prog_CC" 3150fi 3151 3152if test -z "$CC"; then 3153 if test -n "$ac_tool_prefix"; then 3154 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3155set dummy ${ac_tool_prefix}cc; ac_word=$2 3156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3157$as_echo_n "checking for $ac_word... " >&6; } 3158if test "${ac_cv_prog_CC+set}" = set; then : 3159 $as_echo_n "(cached) " >&6 3160else 3161 if test -n "$CC"; then 3162 ac_cv_prog_CC="$CC" # Let the user override the test. 3163else 3164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3165for as_dir in $PATH 3166do 3167 IFS=$as_save_IFS 3168 test -z "$as_dir" && as_dir=. 3169 for ac_exec_ext in '' $ac_executable_extensions; do 3170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3171 ac_cv_prog_CC="${ac_tool_prefix}cc" 3172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3173 break 2 3174 fi 3175done 3176 done 3177IFS=$as_save_IFS 3178 3179fi 3180fi 3181CC=$ac_cv_prog_CC 3182if test -n "$CC"; then 3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3184$as_echo "$CC" >&6; } 3185else 3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3187$as_echo "no" >&6; } 3188fi 3189 3190 3191 fi 3192fi 3193if test -z "$CC"; then 3194 # Extract the first word of "cc", so it can be a program name with args. 3195set dummy cc; ac_word=$2 3196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3197$as_echo_n "checking for $ac_word... " >&6; } 3198if test "${ac_cv_prog_CC+set}" = set; then : 3199 $as_echo_n "(cached) " >&6 3200else 3201 if test -n "$CC"; then 3202 ac_cv_prog_CC="$CC" # Let the user override the test. 3203else 3204 ac_prog_rejected=no 3205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3206for as_dir in $PATH 3207do 3208 IFS=$as_save_IFS 3209 test -z "$as_dir" && as_dir=. 3210 for ac_exec_ext in '' $ac_executable_extensions; do 3211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3212 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3213 ac_prog_rejected=yes 3214 continue 3215 fi 3216 ac_cv_prog_CC="cc" 3217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3218 break 2 3219 fi 3220done 3221 done 3222IFS=$as_save_IFS 3223 3224if test $ac_prog_rejected = yes; then 3225 # We found a bogon in the path, so make sure we never use it. 3226 set dummy $ac_cv_prog_CC 3227 shift 3228 if test $# != 0; then 3229 # We chose a different compiler from the bogus one. 3230 # However, it has the same basename, so the bogon will be chosen 3231 # first if we set CC to just the basename; use the full file name. 3232 shift 3233 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3234 fi 3235fi 3236fi 3237fi 3238CC=$ac_cv_prog_CC 3239if test -n "$CC"; then 3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3241$as_echo "$CC" >&6; } 3242else 3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3244$as_echo "no" >&6; } 3245fi 3246 3247 3248fi 3249if test -z "$CC"; then 3250 if test -n "$ac_tool_prefix"; then 3251 for ac_prog in cl.exe 3252 do 3253 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3254set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3256$as_echo_n "checking for $ac_word... " >&6; } 3257if test "${ac_cv_prog_CC+set}" = set; then : 3258 $as_echo_n "(cached) " >&6 3259else 3260 if test -n "$CC"; then 3261 ac_cv_prog_CC="$CC" # Let the user override the test. 3262else 3263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3264for as_dir in $PATH 3265do 3266 IFS=$as_save_IFS 3267 test -z "$as_dir" && as_dir=. 3268 for ac_exec_ext in '' $ac_executable_extensions; do 3269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3270 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3272 break 2 3273 fi 3274done 3275 done 3276IFS=$as_save_IFS 3277 3278fi 3279fi 3280CC=$ac_cv_prog_CC 3281if test -n "$CC"; then 3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3283$as_echo "$CC" >&6; } 3284else 3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3286$as_echo "no" >&6; } 3287fi 3288 3289 3290 test -n "$CC" && break 3291 done 3292fi 3293if test -z "$CC"; then 3294 ac_ct_CC=$CC 3295 for ac_prog in cl.exe 3296do 3297 # Extract the first word of "$ac_prog", so it can be a program name with args. 3298set dummy $ac_prog; ac_word=$2 3299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3300$as_echo_n "checking for $ac_word... " >&6; } 3301if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3302 $as_echo_n "(cached) " >&6 3303else 3304 if test -n "$ac_ct_CC"; then 3305 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3306else 3307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3308for as_dir in $PATH 3309do 3310 IFS=$as_save_IFS 3311 test -z "$as_dir" && as_dir=. 3312 for ac_exec_ext in '' $ac_executable_extensions; do 3313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3314 ac_cv_prog_ac_ct_CC="$ac_prog" 3315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3316 break 2 3317 fi 3318done 3319 done 3320IFS=$as_save_IFS 3321 3322fi 3323fi 3324ac_ct_CC=$ac_cv_prog_ac_ct_CC 3325if test -n "$ac_ct_CC"; then 3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3327$as_echo "$ac_ct_CC" >&6; } 3328else 3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3330$as_echo "no" >&6; } 3331fi 3332 3333 3334 test -n "$ac_ct_CC" && break 3335done 3336 3337 if test "x$ac_ct_CC" = x; then 3338 CC="" 3339 else 3340 case $cross_compiling:$ac_tool_warned in 3341yes:) 3342{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3343$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3344ac_tool_warned=yes ;; 3345esac 3346 CC=$ac_ct_CC 3347 fi 3348fi 3349 3350fi 3351 3352 3353test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3354$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3355as_fn_error $? "no acceptable C compiler found in \$PATH 3356See \`config.log' for more details" "$LINENO" 5 ; } 3357 3358# Provide some information about the compiler. 3359$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3360set X $ac_compile 3361ac_compiler=$2 3362for ac_option in --version -v -V -qversion; do 3363 { { ac_try="$ac_compiler $ac_option >&5" 3364case "(($ac_try" in 3365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3366 *) ac_try_echo=$ac_try;; 3367esac 3368eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3369$as_echo "$ac_try_echo"; } >&5 3370 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3371 ac_status=$? 3372 if test -s conftest.err; then 3373 sed '10a\ 3374... rest of stderr output deleted ... 3375 10q' conftest.err >conftest.er1 3376 cat conftest.er1 >&5 3377 fi 3378 rm -f conftest.er1 conftest.err 3379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3380 test $ac_status = 0; } 3381done 3382 3383cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3384/* end confdefs.h. */ 3385 3386int 3387main () 3388{ 3389 3390 ; 3391 return 0; 3392} 3393_ACEOF 3394ac_clean_files_save=$ac_clean_files 3395ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3396# Try to create an executable without -o first, disregard a.out. 3397# It will help us diagnose broken compilers, and finding out an intuition 3398# of exeext. 3399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3400$as_echo_n "checking whether the C compiler works... " >&6; } 3401ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3402 3403# The possible output files: 3404ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3405 3406ac_rmfiles= 3407for ac_file in $ac_files 3408do 3409 case $ac_file in 3410 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3411 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3412 esac 3413done 3414rm -f $ac_rmfiles 3415 3416if { { ac_try="$ac_link_default" 3417case "(($ac_try" in 3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3419 *) ac_try_echo=$ac_try;; 3420esac 3421eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3422$as_echo "$ac_try_echo"; } >&5 3423 (eval "$ac_link_default") 2>&5 3424 ac_status=$? 3425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3426 test $ac_status = 0; }; then : 3427 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3428# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3429# in a Makefile. We should not override ac_cv_exeext if it was cached, 3430# so that the user can short-circuit this test for compilers unknown to 3431# Autoconf. 3432for ac_file in $ac_files '' 3433do 3434 test -f "$ac_file" || continue 3435 case $ac_file in 3436 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3437 ;; 3438 [ab].out ) 3439 # We found the default executable, but exeext='' is most 3440 # certainly right. 3441 break;; 3442 *.* ) 3443 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3444 then :; else 3445 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3446 fi 3447 # We set ac_cv_exeext here because the later test for it is not 3448 # safe: cross compilers may not add the suffix if given an `-o' 3449 # argument, so we may need to know it at that point already. 3450 # Even if this section looks crufty: it has the advantage of 3451 # actually working. 3452 break;; 3453 * ) 3454 break;; 3455 esac 3456done 3457test "$ac_cv_exeext" = no && ac_cv_exeext= 3458 3459else 3460 ac_file='' 3461fi 3462if test -z "$ac_file"; then : 3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3464$as_echo "no" >&6; } 3465$as_echo "$as_me: failed program was:" >&5 3466sed 's/^/| /' conftest.$ac_ext >&5 3467 3468{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3469$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3470as_fn_error 77 "C compiler cannot create executables 3471See \`config.log' for more details" "$LINENO" 5 ; } 3472else 3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3474$as_echo "yes" >&6; } 3475fi 3476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3477$as_echo_n "checking for C compiler default output file name... " >&6; } 3478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3479$as_echo "$ac_file" >&6; } 3480ac_exeext=$ac_cv_exeext 3481 3482rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3483ac_clean_files=$ac_clean_files_save 3484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3485$as_echo_n "checking for suffix of executables... " >&6; } 3486if { { ac_try="$ac_link" 3487case "(($ac_try" in 3488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3489 *) ac_try_echo=$ac_try;; 3490esac 3491eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3492$as_echo "$ac_try_echo"; } >&5 3493 (eval "$ac_link") 2>&5 3494 ac_status=$? 3495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3496 test $ac_status = 0; }; then : 3497 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3498# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3499# work properly (i.e., refer to `conftest.exe'), while it won't with 3500# `rm'. 3501for ac_file in conftest.exe conftest conftest.*; do 3502 test -f "$ac_file" || continue 3503 case $ac_file in 3504 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3505 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3506 break;; 3507 * ) break;; 3508 esac 3509done 3510else 3511 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3512$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3513as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3514See \`config.log' for more details" "$LINENO" 5 ; } 3515fi 3516rm -f conftest conftest$ac_cv_exeext 3517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3518$as_echo "$ac_cv_exeext" >&6; } 3519 3520rm -f conftest.$ac_ext 3521EXEEXT=$ac_cv_exeext 3522ac_exeext=$EXEEXT 3523cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3524/* end confdefs.h. */ 3525#include <stdio.h> 3526int 3527main () 3528{ 3529FILE *f = fopen ("conftest.out", "w"); 3530 return ferror (f) || fclose (f) != 0; 3531 3532 ; 3533 return 0; 3534} 3535_ACEOF 3536ac_clean_files="$ac_clean_files conftest.out" 3537# Check that the compiler produces executables we can run. If not, either 3538# the compiler is broken, or we cross compile. 3539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3540$as_echo_n "checking whether we are cross compiling... " >&6; } 3541if test "$cross_compiling" != yes; then 3542 { { ac_try="$ac_link" 3543case "(($ac_try" in 3544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3545 *) ac_try_echo=$ac_try;; 3546esac 3547eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3548$as_echo "$ac_try_echo"; } >&5 3549 (eval "$ac_link") 2>&5 3550 ac_status=$? 3551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3552 test $ac_status = 0; } 3553 if { ac_try='./conftest$ac_cv_exeext' 3554 { { case "(($ac_try" in 3555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3556 *) ac_try_echo=$ac_try;; 3557esac 3558eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3559$as_echo "$ac_try_echo"; } >&5 3560 (eval "$ac_try") 2>&5 3561 ac_status=$? 3562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3563 test $ac_status = 0; }; }; then 3564 cross_compiling=no 3565 else 3566 if test "$cross_compiling" = maybe; then 3567 cross_compiling=yes 3568 else 3569 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3570$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3571as_fn_error $? "cannot run C compiled programs. 3572If you meant to cross compile, use \`--host'. 3573See \`config.log' for more details" "$LINENO" 5 ; } 3574 fi 3575 fi 3576fi 3577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3578$as_echo "$cross_compiling" >&6; } 3579 3580rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3581ac_clean_files=$ac_clean_files_save 3582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3583$as_echo_n "checking for suffix of object files... " >&6; } 3584if test "${ac_cv_objext+set}" = set; then : 3585 $as_echo_n "(cached) " >&6 3586else 3587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3588/* end confdefs.h. */ 3589 3590int 3591main () 3592{ 3593 3594 ; 3595 return 0; 3596} 3597_ACEOF 3598rm -f conftest.o conftest.obj 3599if { { ac_try="$ac_compile" 3600case "(($ac_try" in 3601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3602 *) ac_try_echo=$ac_try;; 3603esac 3604eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3605$as_echo "$ac_try_echo"; } >&5 3606 (eval "$ac_compile") 2>&5 3607 ac_status=$? 3608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3609 test $ac_status = 0; }; then : 3610 for ac_file in conftest.o conftest.obj conftest.*; do 3611 test -f "$ac_file" || continue; 3612 case $ac_file in 3613 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3614 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3615 break;; 3616 esac 3617done 3618else 3619 $as_echo "$as_me: failed program was:" >&5 3620sed 's/^/| /' conftest.$ac_ext >&5 3621 3622{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3623$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3624as_fn_error $? "cannot compute suffix of object files: cannot compile 3625See \`config.log' for more details" "$LINENO" 5 ; } 3626fi 3627rm -f conftest.$ac_cv_objext conftest.$ac_ext 3628fi 3629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3630$as_echo "$ac_cv_objext" >&6; } 3631OBJEXT=$ac_cv_objext 3632ac_objext=$OBJEXT 3633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3634$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3635if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3636 $as_echo_n "(cached) " >&6 3637else 3638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3639/* end confdefs.h. */ 3640 3641int 3642main () 3643{ 3644#ifndef __GNUC__ 3645 choke me 3646#endif 3647 3648 ; 3649 return 0; 3650} 3651_ACEOF 3652if ac_fn_c_try_compile "$LINENO"; then : 3653 ac_compiler_gnu=yes 3654else 3655 ac_compiler_gnu=no 3656fi 3657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3658ac_cv_c_compiler_gnu=$ac_compiler_gnu 3659 3660fi 3661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3662$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3663if test $ac_compiler_gnu = yes; then 3664 GCC=yes 3665else 3666 GCC= 3667fi 3668ac_test_CFLAGS=${CFLAGS+set} 3669ac_save_CFLAGS=$CFLAGS 3670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3671$as_echo_n "checking whether $CC accepts -g... " >&6; } 3672if test "${ac_cv_prog_cc_g+set}" = set; then : 3673 $as_echo_n "(cached) " >&6 3674else 3675 ac_save_c_werror_flag=$ac_c_werror_flag 3676 ac_c_werror_flag=yes 3677 ac_cv_prog_cc_g=no 3678 CFLAGS="-g" 3679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3680/* end confdefs.h. */ 3681 3682int 3683main () 3684{ 3685 3686 ; 3687 return 0; 3688} 3689_ACEOF 3690if ac_fn_c_try_compile "$LINENO"; then : 3691 ac_cv_prog_cc_g=yes 3692else 3693 CFLAGS="" 3694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3695/* end confdefs.h. */ 3696 3697int 3698main () 3699{ 3700 3701 ; 3702 return 0; 3703} 3704_ACEOF 3705if ac_fn_c_try_compile "$LINENO"; then : 3706 3707else 3708 ac_c_werror_flag=$ac_save_c_werror_flag 3709 CFLAGS="-g" 3710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3711/* end confdefs.h. */ 3712 3713int 3714main () 3715{ 3716 3717 ; 3718 return 0; 3719} 3720_ACEOF 3721if ac_fn_c_try_compile "$LINENO"; then : 3722 ac_cv_prog_cc_g=yes 3723fi 3724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3725fi 3726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3727fi 3728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3729 ac_c_werror_flag=$ac_save_c_werror_flag 3730fi 3731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3732$as_echo "$ac_cv_prog_cc_g" >&6; } 3733if test "$ac_test_CFLAGS" = set; then 3734 CFLAGS=$ac_save_CFLAGS 3735elif test $ac_cv_prog_cc_g = yes; then 3736 if test "$GCC" = yes; then 3737 CFLAGS="-g -O2" 3738 else 3739 CFLAGS="-g" 3740 fi 3741else 3742 if test "$GCC" = yes; then 3743 CFLAGS="-O2" 3744 else 3745 CFLAGS= 3746 fi 3747fi 3748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3749$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3750if test "${ac_cv_prog_cc_c89+set}" = set; then : 3751 $as_echo_n "(cached) " >&6 3752else 3753 ac_cv_prog_cc_c89=no 3754ac_save_CC=$CC 3755cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3756/* end confdefs.h. */ 3757#include <stdarg.h> 3758#include <stdio.h> 3759#include <sys/types.h> 3760#include <sys/stat.h> 3761/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3762struct buf { int x; }; 3763FILE * (*rcsopen) (struct buf *, struct stat *, int); 3764static char *e (p, i) 3765 char **p; 3766 int i; 3767{ 3768 return p[i]; 3769} 3770static char *f (char * (*g) (char **, int), char **p, ...) 3771{ 3772 char *s; 3773 va_list v; 3774 va_start (v,p); 3775 s = g (p, va_arg (v,int)); 3776 va_end (v); 3777 return s; 3778} 3779 3780/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3781 function prototypes and stuff, but not '\xHH' hex character constants. 3782 These don't provoke an error unfortunately, instead are silently treated 3783 as 'x'. The following induces an error, until -std is added to get 3784 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3785 array size at least. It's necessary to write '\x00'==0 to get something 3786 that's true only with -std. */ 3787int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3788 3789/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3790 inside strings and character constants. */ 3791#define FOO(x) 'x' 3792int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3793 3794int test (int i, double x); 3795struct s1 {int (*f) (int a);}; 3796struct s2 {int (*f) (double a);}; 3797int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3798int argc; 3799char **argv; 3800int 3801main () 3802{ 3803return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3804 ; 3805 return 0; 3806} 3807_ACEOF 3808for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3809 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3810do 3811 CC="$ac_save_CC $ac_arg" 3812 if ac_fn_c_try_compile "$LINENO"; then : 3813 ac_cv_prog_cc_c89=$ac_arg 3814fi 3815rm -f core conftest.err conftest.$ac_objext 3816 test "x$ac_cv_prog_cc_c89" != "xno" && break 3817done 3818rm -f conftest.$ac_ext 3819CC=$ac_save_CC 3820 3821fi 3822# AC_CACHE_VAL 3823case "x$ac_cv_prog_cc_c89" in 3824 x) 3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3826$as_echo "none needed" >&6; } ;; 3827 xno) 3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3829$as_echo "unsupported" >&6; } ;; 3830 *) 3831 CC="$CC $ac_cv_prog_cc_c89" 3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3833$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3834esac 3835if test "x$ac_cv_prog_cc_c89" != xno; then : 3836 3837fi 3838 3839ac_ext=c 3840ac_cpp='$CPP $CPPFLAGS' 3841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3843ac_compiler_gnu=$ac_cv_c_compiler_gnu 3844 3845depcc="$CC" am_compiler_list= 3846 3847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3848$as_echo_n "checking dependency style of $depcc... " >&6; } 3849if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 3850 $as_echo_n "(cached) " >&6 3851else 3852 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3853 # We make a subdir and do the tests there. Otherwise we can end up 3854 # making bogus files that we don't know about and never remove. For 3855 # instance it was reported that on HP-UX the gcc test will end up 3856 # making a dummy file named `D' -- because `-MD' means `put the output 3857 # in D'. 3858 mkdir conftest.dir 3859 # Copy depcomp to subdir because otherwise we won't find it if we're 3860 # using a relative directory. 3861 cp "$am_depcomp" conftest.dir 3862 cd conftest.dir 3863 # We will build objects and dependencies in a subdirectory because 3864 # it helps to detect inapplicable dependency modes. For instance 3865 # both Tru64's cc and ICC support -MD to output dependencies as a 3866 # side effect of compilation, but ICC will put the dependencies in 3867 # the current directory while Tru64 will put them in the object 3868 # directory. 3869 mkdir sub 3870 3871 am_cv_CC_dependencies_compiler_type=none 3872 if test "$am_compiler_list" = ""; then 3873 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3874 fi 3875 am__universal=false 3876 case " $depcc " in #( 3877 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3878 esac 3879 3880 for depmode in $am_compiler_list; do 3881 # Setup a source with many dependencies, because some compilers 3882 # like to wrap large dependency lists on column 80 (with \), and 3883 # we should not choose a depcomp mode which is confused by this. 3884 # 3885 # We need to recreate these files for each test, as the compiler may 3886 # overwrite some of them when testing with obscure command lines. 3887 # This happens at least with the AIX C compiler. 3888 : > sub/conftest.c 3889 for i in 1 2 3 4 5 6; do 3890 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3891 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3892 # Solaris 8's {/usr,}/bin/sh. 3893 touch sub/conftst$i.h 3894 done 3895 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3896 3897 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3898 # mode. It turns out that the SunPro C++ compiler does not properly 3899 # handle `-M -o', and we need to detect this. Also, some Intel 3900 # versions had trouble with output in subdirs 3901 am__obj=sub/conftest.${OBJEXT-o} 3902 am__minus_obj="-o $am__obj" 3903 case $depmode in 3904 gcc) 3905 # This depmode causes a compiler race in universal mode. 3906 test "$am__universal" = false || continue 3907 ;; 3908 nosideeffect) 3909 # after this tag, mechanisms are not by side-effect, so they'll 3910 # only be used when explicitly requested 3911 if test "x$enable_dependency_tracking" = xyes; then 3912 continue 3913 else 3914 break 3915 fi 3916 ;; 3917 msvisualcpp | msvcmsys) 3918 # This compiler won't grok `-c -o', but also, the minuso test has 3919 # not run yet. These depmodes are late enough in the game, and 3920 # so weak that their functioning should not be impacted. 3921 am__obj=conftest.${OBJEXT-o} 3922 am__minus_obj= 3923 ;; 3924 none) break ;; 3925 esac 3926 if depmode=$depmode \ 3927 source=sub/conftest.c object=$am__obj \ 3928 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3929 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3930 >/dev/null 2>conftest.err && 3931 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3932 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3933 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3934 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3935 # icc doesn't choke on unknown options, it will just issue warnings 3936 # or remarks (even with -Werror). So we grep stderr for any message 3937 # that says an option was ignored or not supported. 3938 # When given -MP, icc 7.0 and 7.1 complain thusly: 3939 # icc: Command line warning: ignoring option '-M'; no argument required 3940 # The diagnosis changed in icc 8.0: 3941 # icc: Command line remark: option '-MP' not supported 3942 if (grep 'ignoring option' conftest.err || 3943 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3944 am_cv_CC_dependencies_compiler_type=$depmode 3945 break 3946 fi 3947 fi 3948 done 3949 3950 cd .. 3951 rm -rf conftest.dir 3952else 3953 am_cv_CC_dependencies_compiler_type=none 3954fi 3955 3956fi 3957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3958$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3959CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3960 3961 if 3962 test "x$enable_dependency_tracking" != xno \ 3963 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3964 am__fastdepCC_TRUE= 3965 am__fastdepCC_FALSE='#' 3966else 3967 am__fastdepCC_TRUE='#' 3968 am__fastdepCC_FALSE= 3969fi 3970 3971 3972 3973ac_ext=c 3974ac_cpp='$CPP $CPPFLAGS' 3975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3977ac_compiler_gnu=$ac_cv_c_compiler_gnu 3978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3979$as_echo_n "checking how to run the C preprocessor... " >&6; } 3980# On Suns, sometimes $CPP names a directory. 3981if test -n "$CPP" && test -d "$CPP"; then 3982 CPP= 3983fi 3984if test -z "$CPP"; then 3985 if test "${ac_cv_prog_CPP+set}" = set; then : 3986 $as_echo_n "(cached) " >&6 3987else 3988 # Double quotes because CPP needs to be expanded 3989 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3990 do 3991 ac_preproc_ok=false 3992for ac_c_preproc_warn_flag in '' yes 3993do 3994 # Use a header file that comes with gcc, so configuring glibc 3995 # with a fresh cross-compiler works. 3996 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3997 # <limits.h> exists even on freestanding compilers. 3998 # On the NeXT, cc -E runs the code through the compiler's parser, 3999 # not just through cpp. "Syntax error" is here to catch this case. 4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4001/* end confdefs.h. */ 4002#ifdef __STDC__ 4003# include <limits.h> 4004#else 4005# include <assert.h> 4006#endif 4007 Syntax error 4008_ACEOF 4009if ac_fn_c_try_cpp "$LINENO"; then : 4010 4011else 4012 # Broken: fails on valid input. 4013continue 4014fi 4015rm -f conftest.err conftest.i conftest.$ac_ext 4016 4017 # OK, works on sane cases. Now check whether nonexistent headers 4018 # can be detected and how. 4019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4020/* end confdefs.h. */ 4021#include <ac_nonexistent.h> 4022_ACEOF 4023if ac_fn_c_try_cpp "$LINENO"; then : 4024 # Broken: success on invalid input. 4025continue 4026else 4027 # Passes both tests. 4028ac_preproc_ok=: 4029break 4030fi 4031rm -f conftest.err conftest.i conftest.$ac_ext 4032 4033done 4034# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4035rm -f conftest.i conftest.err conftest.$ac_ext 4036if $ac_preproc_ok; then : 4037 break 4038fi 4039 4040 done 4041 ac_cv_prog_CPP=$CPP 4042 4043fi 4044 CPP=$ac_cv_prog_CPP 4045else 4046 ac_cv_prog_CPP=$CPP 4047fi 4048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4049$as_echo "$CPP" >&6; } 4050ac_preproc_ok=false 4051for ac_c_preproc_warn_flag in '' yes 4052do 4053 # Use a header file that comes with gcc, so configuring glibc 4054 # with a fresh cross-compiler works. 4055 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4056 # <limits.h> exists even on freestanding compilers. 4057 # On the NeXT, cc -E runs the code through the compiler's parser, 4058 # not just through cpp. "Syntax error" is here to catch this case. 4059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4060/* end confdefs.h. */ 4061#ifdef __STDC__ 4062# include <limits.h> 4063#else 4064# include <assert.h> 4065#endif 4066 Syntax error 4067_ACEOF 4068if ac_fn_c_try_cpp "$LINENO"; then : 4069 4070else 4071 # Broken: fails on valid input. 4072continue 4073fi 4074rm -f conftest.err conftest.i conftest.$ac_ext 4075 4076 # OK, works on sane cases. Now check whether nonexistent headers 4077 # can be detected and how. 4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4079/* end confdefs.h. */ 4080#include <ac_nonexistent.h> 4081_ACEOF 4082if ac_fn_c_try_cpp "$LINENO"; then : 4083 # Broken: success on invalid input. 4084continue 4085else 4086 # Passes both tests. 4087ac_preproc_ok=: 4088break 4089fi 4090rm -f conftest.err conftest.i conftest.$ac_ext 4091 4092done 4093# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4094rm -f conftest.i conftest.err conftest.$ac_ext 4095if $ac_preproc_ok; then : 4096 4097else 4098 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4099$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4100as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4101See \`config.log' for more details" "$LINENO" 5 ; } 4102fi 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 4110 4111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4112$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4113if test "${ac_cv_path_GREP+set}" = set; then : 4114 $as_echo_n "(cached) " >&6 4115else 4116 if test -z "$GREP"; then 4117 ac_path_GREP_found=false 4118 # Loop through the user's path and test for each of PROGNAME-LIST 4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4120for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4121do 4122 IFS=$as_save_IFS 4123 test -z "$as_dir" && as_dir=. 4124 for ac_prog in grep ggrep; do 4125 for ac_exec_ext in '' $ac_executable_extensions; do 4126 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4127 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4128# Check for GNU ac_path_GREP and select it if it is found. 4129 # Check for GNU $ac_path_GREP 4130case `"$ac_path_GREP" --version 2>&1` in 4131*GNU*) 4132 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4133*) 4134 ac_count=0 4135 $as_echo_n 0123456789 >"conftest.in" 4136 while : 4137 do 4138 cat "conftest.in" "conftest.in" >"conftest.tmp" 4139 mv "conftest.tmp" "conftest.in" 4140 cp "conftest.in" "conftest.nl" 4141 $as_echo 'GREP' >> "conftest.nl" 4142 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4143 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4144 as_fn_arith $ac_count + 1 && ac_count=$as_val 4145 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4146 # Best one so far, save it but keep looking for a better one 4147 ac_cv_path_GREP="$ac_path_GREP" 4148 ac_path_GREP_max=$ac_count 4149 fi 4150 # 10*(2^10) chars as input seems more than enough 4151 test $ac_count -gt 10 && break 4152 done 4153 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4154esac 4155 4156 $ac_path_GREP_found && break 3 4157 done 4158 done 4159 done 4160IFS=$as_save_IFS 4161 if test -z "$ac_cv_path_GREP"; then 4162 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4163 fi 4164else 4165 ac_cv_path_GREP=$GREP 4166fi 4167 4168fi 4169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4170$as_echo "$ac_cv_path_GREP" >&6; } 4171 GREP="$ac_cv_path_GREP" 4172 4173 4174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4175$as_echo_n "checking for egrep... " >&6; } 4176if test "${ac_cv_path_EGREP+set}" = set; then : 4177 $as_echo_n "(cached) " >&6 4178else 4179 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4180 then ac_cv_path_EGREP="$GREP -E" 4181 else 4182 if test -z "$EGREP"; then 4183 ac_path_EGREP_found=false 4184 # Loop through the user's path and test for each of PROGNAME-LIST 4185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4186for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4187do 4188 IFS=$as_save_IFS 4189 test -z "$as_dir" && as_dir=. 4190 for ac_prog in egrep; do 4191 for ac_exec_ext in '' $ac_executable_extensions; do 4192 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4193 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4194# Check for GNU ac_path_EGREP and select it if it is found. 4195 # Check for GNU $ac_path_EGREP 4196case `"$ac_path_EGREP" --version 2>&1` in 4197*GNU*) 4198 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4199*) 4200 ac_count=0 4201 $as_echo_n 0123456789 >"conftest.in" 4202 while : 4203 do 4204 cat "conftest.in" "conftest.in" >"conftest.tmp" 4205 mv "conftest.tmp" "conftest.in" 4206 cp "conftest.in" "conftest.nl" 4207 $as_echo 'EGREP' >> "conftest.nl" 4208 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4209 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4210 as_fn_arith $ac_count + 1 && ac_count=$as_val 4211 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4212 # Best one so far, save it but keep looking for a better one 4213 ac_cv_path_EGREP="$ac_path_EGREP" 4214 ac_path_EGREP_max=$ac_count 4215 fi 4216 # 10*(2^10) chars as input seems more than enough 4217 test $ac_count -gt 10 && break 4218 done 4219 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4220esac 4221 4222 $ac_path_EGREP_found && break 3 4223 done 4224 done 4225 done 4226IFS=$as_save_IFS 4227 if test -z "$ac_cv_path_EGREP"; then 4228 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4229 fi 4230else 4231 ac_cv_path_EGREP=$EGREP 4232fi 4233 4234 fi 4235fi 4236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4237$as_echo "$ac_cv_path_EGREP" >&6; } 4238 EGREP="$ac_cv_path_EGREP" 4239 4240 4241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4242$as_echo_n "checking for ANSI C header files... " >&6; } 4243if test "${ac_cv_header_stdc+set}" = set; then : 4244 $as_echo_n "(cached) " >&6 4245else 4246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4247/* end confdefs.h. */ 4248#include <stdlib.h> 4249#include <stdarg.h> 4250#include <string.h> 4251#include <float.h> 4252 4253int 4254main () 4255{ 4256 4257 ; 4258 return 0; 4259} 4260_ACEOF 4261if ac_fn_c_try_compile "$LINENO"; then : 4262 ac_cv_header_stdc=yes 4263else 4264 ac_cv_header_stdc=no 4265fi 4266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4267 4268if test $ac_cv_header_stdc = yes; then 4269 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4271/* end confdefs.h. */ 4272#include <string.h> 4273 4274_ACEOF 4275if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4276 $EGREP "memchr" >/dev/null 2>&1; then : 4277 4278else 4279 ac_cv_header_stdc=no 4280fi 4281rm -f conftest* 4282 4283fi 4284 4285if test $ac_cv_header_stdc = yes; then 4286 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4288/* end confdefs.h. */ 4289#include <stdlib.h> 4290 4291_ACEOF 4292if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4293 $EGREP "free" >/dev/null 2>&1; then : 4294 4295else 4296 ac_cv_header_stdc=no 4297fi 4298rm -f conftest* 4299 4300fi 4301 4302if test $ac_cv_header_stdc = yes; then 4303 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4304 if test "$cross_compiling" = yes; then : 4305 : 4306else 4307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4308/* end confdefs.h. */ 4309#include <ctype.h> 4310#include <stdlib.h> 4311#if ((' ' & 0x0FF) == 0x020) 4312# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4313# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4314#else 4315# define ISLOWER(c) \ 4316 (('a' <= (c) && (c) <= 'i') \ 4317 || ('j' <= (c) && (c) <= 'r') \ 4318 || ('s' <= (c) && (c) <= 'z')) 4319# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4320#endif 4321 4322#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4323int 4324main () 4325{ 4326 int i; 4327 for (i = 0; i < 256; i++) 4328 if (XOR (islower (i), ISLOWER (i)) 4329 || toupper (i) != TOUPPER (i)) 4330 return 2; 4331 return 0; 4332} 4333_ACEOF 4334if ac_fn_c_try_run "$LINENO"; then : 4335 4336else 4337 ac_cv_header_stdc=no 4338fi 4339rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4340 conftest.$ac_objext conftest.beam conftest.$ac_ext 4341fi 4342 4343fi 4344fi 4345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4346$as_echo "$ac_cv_header_stdc" >&6; } 4347if test $ac_cv_header_stdc = yes; then 4348 4349$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4350 4351fi 4352 4353# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4354for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4355 inttypes.h stdint.h unistd.h 4356do : 4357 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4358ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4359" 4360if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4361 cat >>confdefs.h <<_ACEOF 4362#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4363_ACEOF 4364 4365fi 4366 4367done 4368 4369 4370 4371 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4372if test "x$ac_cv_header_minix_config_h" = x""yes; then : 4373 MINIX=yes 4374else 4375 MINIX= 4376fi 4377 4378 4379 if test "$MINIX" = yes; then 4380 4381$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4382 4383 4384$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4385 4386 4387$as_echo "#define _MINIX 1" >>confdefs.h 4388 4389 fi 4390 4391 4392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4393$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4394if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : 4395 $as_echo_n "(cached) " >&6 4396else 4397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4398/* end confdefs.h. */ 4399 4400# define __EXTENSIONS__ 1 4401 $ac_includes_default 4402int 4403main () 4404{ 4405 4406 ; 4407 return 0; 4408} 4409_ACEOF 4410if ac_fn_c_try_compile "$LINENO"; then : 4411 ac_cv_safe_to_define___extensions__=yes 4412else 4413 ac_cv_safe_to_define___extensions__=no 4414fi 4415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4416fi 4417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4418$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4419 test $ac_cv_safe_to_define___extensions__ = yes && 4420 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4421 4422 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4423 4424 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4425 4426 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4427 4428 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4429 4430 4431 4432 4433 4434# We check this before AC_PROG_CC fills blank CFLAGS with "-g -O2". 4435if test "x$CFLAGS" = "x"; then 4436 DEFAULT_CFLAGS=yes 4437else 4438 DEFAULT_CFLAGS=no 4439fi 4440 4441# Checks for programs. 4442ac_ext=c 4443ac_cpp='$CPP $CPPFLAGS' 4444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4446ac_compiler_gnu=$ac_cv_c_compiler_gnu 4447if test -n "$ac_tool_prefix"; then 4448 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4449set dummy ${ac_tool_prefix}gcc; ac_word=$2 4450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4451$as_echo_n "checking for $ac_word... " >&6; } 4452if test "${ac_cv_prog_CC+set}" = set; then : 4453 $as_echo_n "(cached) " >&6 4454else 4455 if test -n "$CC"; then 4456 ac_cv_prog_CC="$CC" # Let the user override the test. 4457else 4458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4459for as_dir in $PATH 4460do 4461 IFS=$as_save_IFS 4462 test -z "$as_dir" && as_dir=. 4463 for ac_exec_ext in '' $ac_executable_extensions; do 4464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4465 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4467 break 2 4468 fi 4469done 4470 done 4471IFS=$as_save_IFS 4472 4473fi 4474fi 4475CC=$ac_cv_prog_CC 4476if test -n "$CC"; then 4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4478$as_echo "$CC" >&6; } 4479else 4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4481$as_echo "no" >&6; } 4482fi 4483 4484 4485fi 4486if test -z "$ac_cv_prog_CC"; then 4487 ac_ct_CC=$CC 4488 # Extract the first word of "gcc", so it can be a program name with args. 4489set dummy gcc; ac_word=$2 4490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4491$as_echo_n "checking for $ac_word... " >&6; } 4492if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 4493 $as_echo_n "(cached) " >&6 4494else 4495 if test -n "$ac_ct_CC"; then 4496 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4497else 4498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4499for as_dir in $PATH 4500do 4501 IFS=$as_save_IFS 4502 test -z "$as_dir" && as_dir=. 4503 for ac_exec_ext in '' $ac_executable_extensions; do 4504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4505 ac_cv_prog_ac_ct_CC="gcc" 4506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4507 break 2 4508 fi 4509done 4510 done 4511IFS=$as_save_IFS 4512 4513fi 4514fi 4515ac_ct_CC=$ac_cv_prog_ac_ct_CC 4516if test -n "$ac_ct_CC"; then 4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4518$as_echo "$ac_ct_CC" >&6; } 4519else 4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4521$as_echo "no" >&6; } 4522fi 4523 4524 if test "x$ac_ct_CC" = x; then 4525 CC="" 4526 else 4527 case $cross_compiling:$ac_tool_warned in 4528yes:) 4529{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4530$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4531ac_tool_warned=yes ;; 4532esac 4533 CC=$ac_ct_CC 4534 fi 4535else 4536 CC="$ac_cv_prog_CC" 4537fi 4538 4539if test -z "$CC"; then 4540 if test -n "$ac_tool_prefix"; then 4541 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4542set dummy ${ac_tool_prefix}cc; ac_word=$2 4543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4544$as_echo_n "checking for $ac_word... " >&6; } 4545if test "${ac_cv_prog_CC+set}" = set; then : 4546 $as_echo_n "(cached) " >&6 4547else 4548 if test -n "$CC"; then 4549 ac_cv_prog_CC="$CC" # Let the user override the test. 4550else 4551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4552for as_dir in $PATH 4553do 4554 IFS=$as_save_IFS 4555 test -z "$as_dir" && as_dir=. 4556 for ac_exec_ext in '' $ac_executable_extensions; do 4557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4558 ac_cv_prog_CC="${ac_tool_prefix}cc" 4559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4560 break 2 4561 fi 4562done 4563 done 4564IFS=$as_save_IFS 4565 4566fi 4567fi 4568CC=$ac_cv_prog_CC 4569if test -n "$CC"; then 4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4571$as_echo "$CC" >&6; } 4572else 4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4574$as_echo "no" >&6; } 4575fi 4576 4577 4578 fi 4579fi 4580if test -z "$CC"; then 4581 # Extract the first word of "cc", so it can be a program name with args. 4582set dummy cc; ac_word=$2 4583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4584$as_echo_n "checking for $ac_word... " >&6; } 4585if test "${ac_cv_prog_CC+set}" = set; then : 4586 $as_echo_n "(cached) " >&6 4587else 4588 if test -n "$CC"; then 4589 ac_cv_prog_CC="$CC" # Let the user override the test. 4590else 4591 ac_prog_rejected=no 4592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4593for as_dir in $PATH 4594do 4595 IFS=$as_save_IFS 4596 test -z "$as_dir" && as_dir=. 4597 for ac_exec_ext in '' $ac_executable_extensions; do 4598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4599 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4600 ac_prog_rejected=yes 4601 continue 4602 fi 4603 ac_cv_prog_CC="cc" 4604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4605 break 2 4606 fi 4607done 4608 done 4609IFS=$as_save_IFS 4610 4611if test $ac_prog_rejected = yes; then 4612 # We found a bogon in the path, so make sure we never use it. 4613 set dummy $ac_cv_prog_CC 4614 shift 4615 if test $# != 0; then 4616 # We chose a different compiler from the bogus one. 4617 # However, it has the same basename, so the bogon will be chosen 4618 # first if we set CC to just the basename; use the full file name. 4619 shift 4620 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4621 fi 4622fi 4623fi 4624fi 4625CC=$ac_cv_prog_CC 4626if test -n "$CC"; then 4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4628$as_echo "$CC" >&6; } 4629else 4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4631$as_echo "no" >&6; } 4632fi 4633 4634 4635fi 4636if test -z "$CC"; then 4637 if test -n "$ac_tool_prefix"; then 4638 for ac_prog in cl.exe 4639 do 4640 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4641set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4643$as_echo_n "checking for $ac_word... " >&6; } 4644if test "${ac_cv_prog_CC+set}" = set; then : 4645 $as_echo_n "(cached) " >&6 4646else 4647 if test -n "$CC"; then 4648 ac_cv_prog_CC="$CC" # Let the user override the test. 4649else 4650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4651for as_dir in $PATH 4652do 4653 IFS=$as_save_IFS 4654 test -z "$as_dir" && as_dir=. 4655 for ac_exec_ext in '' $ac_executable_extensions; do 4656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4657 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4659 break 2 4660 fi 4661done 4662 done 4663IFS=$as_save_IFS 4664 4665fi 4666fi 4667CC=$ac_cv_prog_CC 4668if test -n "$CC"; then 4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4670$as_echo "$CC" >&6; } 4671else 4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4673$as_echo "no" >&6; } 4674fi 4675 4676 4677 test -n "$CC" && break 4678 done 4679fi 4680if test -z "$CC"; then 4681 ac_ct_CC=$CC 4682 for ac_prog in cl.exe 4683do 4684 # Extract the first word of "$ac_prog", so it can be a program name with args. 4685set dummy $ac_prog; ac_word=$2 4686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4687$as_echo_n "checking for $ac_word... " >&6; } 4688if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 4689 $as_echo_n "(cached) " >&6 4690else 4691 if test -n "$ac_ct_CC"; then 4692 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4693else 4694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4695for as_dir in $PATH 4696do 4697 IFS=$as_save_IFS 4698 test -z "$as_dir" && as_dir=. 4699 for ac_exec_ext in '' $ac_executable_extensions; do 4700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4701 ac_cv_prog_ac_ct_CC="$ac_prog" 4702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4703 break 2 4704 fi 4705done 4706 done 4707IFS=$as_save_IFS 4708 4709fi 4710fi 4711ac_ct_CC=$ac_cv_prog_ac_ct_CC 4712if test -n "$ac_ct_CC"; then 4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4714$as_echo "$ac_ct_CC" >&6; } 4715else 4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4717$as_echo "no" >&6; } 4718fi 4719 4720 4721 test -n "$ac_ct_CC" && break 4722done 4723 4724 if test "x$ac_ct_CC" = x; then 4725 CC="" 4726 else 4727 case $cross_compiling:$ac_tool_warned in 4728yes:) 4729{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4730$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4731ac_tool_warned=yes ;; 4732esac 4733 CC=$ac_ct_CC 4734 fi 4735fi 4736 4737fi 4738 4739 4740test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4741$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4742as_fn_error $? "no acceptable C compiler found in \$PATH 4743See \`config.log' for more details" "$LINENO" 5 ; } 4744 4745# Provide some information about the compiler. 4746$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4747set X $ac_compile 4748ac_compiler=$2 4749for ac_option in --version -v -V -qversion; do 4750 { { ac_try="$ac_compiler $ac_option >&5" 4751case "(($ac_try" in 4752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4753 *) ac_try_echo=$ac_try;; 4754esac 4755eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4756$as_echo "$ac_try_echo"; } >&5 4757 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4758 ac_status=$? 4759 if test -s conftest.err; then 4760 sed '10a\ 4761... rest of stderr output deleted ... 4762 10q' conftest.err >conftest.er1 4763 cat conftest.er1 >&5 4764 fi 4765 rm -f conftest.er1 conftest.err 4766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4767 test $ac_status = 0; } 4768done 4769 4770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4771$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4772if test "${ac_cv_c_compiler_gnu+set}" = set; then : 4773 $as_echo_n "(cached) " >&6 4774else 4775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4776/* end confdefs.h. */ 4777 4778int 4779main () 4780{ 4781#ifndef __GNUC__ 4782 choke me 4783#endif 4784 4785 ; 4786 return 0; 4787} 4788_ACEOF 4789if ac_fn_c_try_compile "$LINENO"; then : 4790 ac_compiler_gnu=yes 4791else 4792 ac_compiler_gnu=no 4793fi 4794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4795ac_cv_c_compiler_gnu=$ac_compiler_gnu 4796 4797fi 4798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4799$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4800if test $ac_compiler_gnu = yes; then 4801 GCC=yes 4802else 4803 GCC= 4804fi 4805ac_test_CFLAGS=${CFLAGS+set} 4806ac_save_CFLAGS=$CFLAGS 4807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4808$as_echo_n "checking whether $CC accepts -g... " >&6; } 4809if test "${ac_cv_prog_cc_g+set}" = set; then : 4810 $as_echo_n "(cached) " >&6 4811else 4812 ac_save_c_werror_flag=$ac_c_werror_flag 4813 ac_c_werror_flag=yes 4814 ac_cv_prog_cc_g=no 4815 CFLAGS="-g" 4816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4817/* end confdefs.h. */ 4818 4819int 4820main () 4821{ 4822 4823 ; 4824 return 0; 4825} 4826_ACEOF 4827if ac_fn_c_try_compile "$LINENO"; then : 4828 ac_cv_prog_cc_g=yes 4829else 4830 CFLAGS="" 4831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4832/* end confdefs.h. */ 4833 4834int 4835main () 4836{ 4837 4838 ; 4839 return 0; 4840} 4841_ACEOF 4842if ac_fn_c_try_compile "$LINENO"; then : 4843 4844else 4845 ac_c_werror_flag=$ac_save_c_werror_flag 4846 CFLAGS="-g" 4847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4848/* end confdefs.h. */ 4849 4850int 4851main () 4852{ 4853 4854 ; 4855 return 0; 4856} 4857_ACEOF 4858if ac_fn_c_try_compile "$LINENO"; then : 4859 ac_cv_prog_cc_g=yes 4860fi 4861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4862fi 4863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4864fi 4865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4866 ac_c_werror_flag=$ac_save_c_werror_flag 4867fi 4868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4869$as_echo "$ac_cv_prog_cc_g" >&6; } 4870if test "$ac_test_CFLAGS" = set; then 4871 CFLAGS=$ac_save_CFLAGS 4872elif test $ac_cv_prog_cc_g = yes; then 4873 if test "$GCC" = yes; then 4874 CFLAGS="-g -O2" 4875 else 4876 CFLAGS="-g" 4877 fi 4878else 4879 if test "$GCC" = yes; then 4880 CFLAGS="-O2" 4881 else 4882 CFLAGS= 4883 fi 4884fi 4885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4886$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4887if test "${ac_cv_prog_cc_c89+set}" = set; then : 4888 $as_echo_n "(cached) " >&6 4889else 4890 ac_cv_prog_cc_c89=no 4891ac_save_CC=$CC 4892cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4893/* end confdefs.h. */ 4894#include <stdarg.h> 4895#include <stdio.h> 4896#include <sys/types.h> 4897#include <sys/stat.h> 4898/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4899struct buf { int x; }; 4900FILE * (*rcsopen) (struct buf *, struct stat *, int); 4901static char *e (p, i) 4902 char **p; 4903 int i; 4904{ 4905 return p[i]; 4906} 4907static char *f (char * (*g) (char **, int), char **p, ...) 4908{ 4909 char *s; 4910 va_list v; 4911 va_start (v,p); 4912 s = g (p, va_arg (v,int)); 4913 va_end (v); 4914 return s; 4915} 4916 4917/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4918 function prototypes and stuff, but not '\xHH' hex character constants. 4919 These don't provoke an error unfortunately, instead are silently treated 4920 as 'x'. The following induces an error, until -std is added to get 4921 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4922 array size at least. It's necessary to write '\x00'==0 to get something 4923 that's true only with -std. */ 4924int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4925 4926/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4927 inside strings and character constants. */ 4928#define FOO(x) 'x' 4929int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4930 4931int test (int i, double x); 4932struct s1 {int (*f) (int a);}; 4933struct s2 {int (*f) (double a);}; 4934int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4935int argc; 4936char **argv; 4937int 4938main () 4939{ 4940return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4941 ; 4942 return 0; 4943} 4944_ACEOF 4945for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4946 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4947do 4948 CC="$ac_save_CC $ac_arg" 4949 if ac_fn_c_try_compile "$LINENO"; then : 4950 ac_cv_prog_cc_c89=$ac_arg 4951fi 4952rm -f core conftest.err conftest.$ac_objext 4953 test "x$ac_cv_prog_cc_c89" != "xno" && break 4954done 4955rm -f conftest.$ac_ext 4956CC=$ac_save_CC 4957 4958fi 4959# AC_CACHE_VAL 4960case "x$ac_cv_prog_cc_c89" in 4961 x) 4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4963$as_echo "none needed" >&6; } ;; 4964 xno) 4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4966$as_echo "unsupported" >&6; } ;; 4967 *) 4968 CC="$CC $ac_cv_prog_cc_c89" 4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4970$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4971esac 4972if test "x$ac_cv_prog_cc_c89" != xno; then : 4973 4974fi 4975 4976ac_ext=c 4977ac_cpp='$CPP $CPPFLAGS' 4978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4980ac_compiler_gnu=$ac_cv_c_compiler_gnu 4981 4982depcc="$CC" am_compiler_list= 4983 4984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4985$as_echo_n "checking dependency style of $depcc... " >&6; } 4986if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 4987 $as_echo_n "(cached) " >&6 4988else 4989 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4990 # We make a subdir and do the tests there. Otherwise we can end up 4991 # making bogus files that we don't know about and never remove. For 4992 # instance it was reported that on HP-UX the gcc test will end up 4993 # making a dummy file named `D' -- because `-MD' means `put the output 4994 # in D'. 4995 mkdir conftest.dir 4996 # Copy depcomp to subdir because otherwise we won't find it if we're 4997 # using a relative directory. 4998 cp "$am_depcomp" conftest.dir 4999 cd conftest.dir 5000 # We will build objects and dependencies in a subdirectory because 5001 # it helps to detect inapplicable dependency modes. For instance 5002 # both Tru64's cc and ICC support -MD to output dependencies as a 5003 # side effect of compilation, but ICC will put the dependencies in 5004 # the current directory while Tru64 will put them in the object 5005 # directory. 5006 mkdir sub 5007 5008 am_cv_CC_dependencies_compiler_type=none 5009 if test "$am_compiler_list" = ""; then 5010 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5011 fi 5012 am__universal=false 5013 case " $depcc " in #( 5014 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5015 esac 5016 5017 for depmode in $am_compiler_list; do 5018 # Setup a source with many dependencies, because some compilers 5019 # like to wrap large dependency lists on column 80 (with \), and 5020 # we should not choose a depcomp mode which is confused by this. 5021 # 5022 # We need to recreate these files for each test, as the compiler may 5023 # overwrite some of them when testing with obscure command lines. 5024 # This happens at least with the AIX C compiler. 5025 : > sub/conftest.c 5026 for i in 1 2 3 4 5 6; do 5027 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5028 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5029 # Solaris 8's {/usr,}/bin/sh. 5030 touch sub/conftst$i.h 5031 done 5032 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5033 5034 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5035 # mode. It turns out that the SunPro C++ compiler does not properly 5036 # handle `-M -o', and we need to detect this. Also, some Intel 5037 # versions had trouble with output in subdirs 5038 am__obj=sub/conftest.${OBJEXT-o} 5039 am__minus_obj="-o $am__obj" 5040 case $depmode in 5041 gcc) 5042 # This depmode causes a compiler race in universal mode. 5043 test "$am__universal" = false || continue 5044 ;; 5045 nosideeffect) 5046 # after this tag, mechanisms are not by side-effect, so they'll 5047 # only be used when explicitly requested 5048 if test "x$enable_dependency_tracking" = xyes; then 5049 continue 5050 else 5051 break 5052 fi 5053 ;; 5054 msvisualcpp | msvcmsys) 5055 # This compiler won't grok `-c -o', but also, the minuso test has 5056 # not run yet. These depmodes are late enough in the game, and 5057 # so weak that their functioning should not be impacted. 5058 am__obj=conftest.${OBJEXT-o} 5059 am__minus_obj= 5060 ;; 5061 none) break ;; 5062 esac 5063 if depmode=$depmode \ 5064 source=sub/conftest.c object=$am__obj \ 5065 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5066 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5067 >/dev/null 2>conftest.err && 5068 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5069 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5070 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5071 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5072 # icc doesn't choke on unknown options, it will just issue warnings 5073 # or remarks (even with -Werror). So we grep stderr for any message 5074 # that says an option was ignored or not supported. 5075 # When given -MP, icc 7.0 and 7.1 complain thusly: 5076 # icc: Command line warning: ignoring option '-M'; no argument required 5077 # The diagnosis changed in icc 8.0: 5078 # icc: Command line remark: option '-MP' not supported 5079 if (grep 'ignoring option' conftest.err || 5080 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5081 am_cv_CC_dependencies_compiler_type=$depmode 5082 break 5083 fi 5084 fi 5085 done 5086 5087 cd .. 5088 rm -rf conftest.dir 5089else 5090 am_cv_CC_dependencies_compiler_type=none 5091fi 5092 5093fi 5094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5095$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5096CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5097 5098 if 5099 test "x$enable_dependency_tracking" != xno \ 5100 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5101 am__fastdepCC_TRUE= 5102 am__fastdepCC_FALSE='#' 5103else 5104 am__fastdepCC_TRUE='#' 5105 am__fastdepCC_FALSE= 5106fi 5107 5108 5109if test -n "$ac_tool_prefix"; then 5110 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5111set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5113$as_echo_n "checking for $ac_word... " >&6; } 5114if test "${ac_cv_prog_RANLIB+set}" = set; then : 5115 $as_echo_n "(cached) " >&6 5116else 5117 if test -n "$RANLIB"; then 5118 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5119else 5120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5121for as_dir in $PATH 5122do 5123 IFS=$as_save_IFS 5124 test -z "$as_dir" && as_dir=. 5125 for ac_exec_ext in '' $ac_executable_extensions; do 5126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5127 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5129 break 2 5130 fi 5131done 5132 done 5133IFS=$as_save_IFS 5134 5135fi 5136fi 5137RANLIB=$ac_cv_prog_RANLIB 5138if test -n "$RANLIB"; then 5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5140$as_echo "$RANLIB" >&6; } 5141else 5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5143$as_echo "no" >&6; } 5144fi 5145 5146 5147fi 5148if test -z "$ac_cv_prog_RANLIB"; then 5149 ac_ct_RANLIB=$RANLIB 5150 # Extract the first word of "ranlib", so it can be a program name with args. 5151set dummy ranlib; ac_word=$2 5152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5153$as_echo_n "checking for $ac_word... " >&6; } 5154if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 5155 $as_echo_n "(cached) " >&6 5156else 5157 if test -n "$ac_ct_RANLIB"; then 5158 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5159else 5160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5161for as_dir in $PATH 5162do 5163 IFS=$as_save_IFS 5164 test -z "$as_dir" && as_dir=. 5165 for ac_exec_ext in '' $ac_executable_extensions; do 5166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5167 ac_cv_prog_ac_ct_RANLIB="ranlib" 5168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5169 break 2 5170 fi 5171done 5172 done 5173IFS=$as_save_IFS 5174 5175fi 5176fi 5177ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5178if test -n "$ac_ct_RANLIB"; then 5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5180$as_echo "$ac_ct_RANLIB" >&6; } 5181else 5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5183$as_echo "no" >&6; } 5184fi 5185 5186 if test "x$ac_ct_RANLIB" = x; then 5187 RANLIB=":" 5188 else 5189 case $cross_compiling:$ac_tool_warned in 5190yes:) 5191{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5192$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5193ac_tool_warned=yes ;; 5194esac 5195 RANLIB=$ac_ct_RANLIB 5196 fi 5197else 5198 RANLIB="$ac_cv_prog_RANLIB" 5199fi 5200 5201 5202 5203# Default CFLAGS. 5204if test "x$GCC" = "xyes" && test "$DEFAULT_CFLAGS" = "yes"; then 5205 CFLAGS="-Wall -O2 -fomit-frame-pointer -ffast-math" 5206fi 5207CFLAGS="$CFLAGS -I${srcdir}/../lib" 5208 5209# Checks for LFS flags, we may not handle big files, but it doesn't hurt. 5210# Check whether --enable-largefile was given. 5211if test "${enable_largefile+set}" = set; then : 5212 enableval=$enable_largefile; 5213fi 5214 5215if test "$enable_largefile" != no; then 5216 5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 5218$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 5219if test "${ac_cv_sys_largefile_CC+set}" = set; then : 5220 $as_echo_n "(cached) " >&6 5221else 5222 ac_cv_sys_largefile_CC=no 5223 if test "$GCC" != yes; then 5224 ac_save_CC=$CC 5225 while :; do 5226 # IRIX 6.2 and later do not support large files by default, 5227 # so use the C compiler's -n32 option if that helps. 5228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5229/* end confdefs.h. */ 5230#include <sys/types.h> 5231 /* Check that off_t can represent 2**63 - 1 correctly. 5232 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5233 since some C++ compilers masquerading as C compilers 5234 incorrectly reject 9223372036854775807. */ 5235#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5236 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5237 && LARGE_OFF_T % 2147483647 == 1) 5238 ? 1 : -1]; 5239int 5240main () 5241{ 5242 5243 ; 5244 return 0; 5245} 5246_ACEOF 5247 if ac_fn_c_try_compile "$LINENO"; then : 5248 break 5249fi 5250rm -f core conftest.err conftest.$ac_objext 5251 CC="$CC -n32" 5252 if ac_fn_c_try_compile "$LINENO"; then : 5253 ac_cv_sys_largefile_CC=' -n32'; break 5254fi 5255rm -f core conftest.err conftest.$ac_objext 5256 break 5257 done 5258 CC=$ac_save_CC 5259 rm -f conftest.$ac_ext 5260 fi 5261fi 5262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 5263$as_echo "$ac_cv_sys_largefile_CC" >&6; } 5264 if test "$ac_cv_sys_largefile_CC" != no; then 5265 CC=$CC$ac_cv_sys_largefile_CC 5266 fi 5267 5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 5269$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 5270if test "${ac_cv_sys_file_offset_bits+set}" = set; then : 5271 $as_echo_n "(cached) " >&6 5272else 5273 while :; do 5274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5275/* end confdefs.h. */ 5276#include <sys/types.h> 5277 /* Check that off_t can represent 2**63 - 1 correctly. 5278 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5279 since some C++ compilers masquerading as C compilers 5280 incorrectly reject 9223372036854775807. */ 5281#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5282 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5283 && LARGE_OFF_T % 2147483647 == 1) 5284 ? 1 : -1]; 5285int 5286main () 5287{ 5288 5289 ; 5290 return 0; 5291} 5292_ACEOF 5293if ac_fn_c_try_compile "$LINENO"; then : 5294 ac_cv_sys_file_offset_bits=no; break 5295fi 5296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5298/* end confdefs.h. */ 5299#define _FILE_OFFSET_BITS 64 5300#include <sys/types.h> 5301 /* Check that off_t can represent 2**63 - 1 correctly. 5302 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5303 since some C++ compilers masquerading as C compilers 5304 incorrectly reject 9223372036854775807. */ 5305#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5306 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5307 && LARGE_OFF_T % 2147483647 == 1) 5308 ? 1 : -1]; 5309int 5310main () 5311{ 5312 5313 ; 5314 return 0; 5315} 5316_ACEOF 5317if ac_fn_c_try_compile "$LINENO"; then : 5318 ac_cv_sys_file_offset_bits=64; break 5319fi 5320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5321 ac_cv_sys_file_offset_bits=unknown 5322 break 5323done 5324fi 5325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 5326$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 5327case $ac_cv_sys_file_offset_bits in #( 5328 no | unknown) ;; 5329 *) 5330cat >>confdefs.h <<_ACEOF 5331#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 5332_ACEOF 5333;; 5334esac 5335rm -rf conftest* 5336 if test $ac_cv_sys_file_offset_bits = unknown; then 5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 5338$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 5339if test "${ac_cv_sys_large_files+set}" = set; then : 5340 $as_echo_n "(cached) " >&6 5341else 5342 while :; do 5343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5344/* end confdefs.h. */ 5345#include <sys/types.h> 5346 /* Check that off_t can represent 2**63 - 1 correctly. 5347 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5348 since some C++ compilers masquerading as C compilers 5349 incorrectly reject 9223372036854775807. */ 5350#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5351 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5352 && LARGE_OFF_T % 2147483647 == 1) 5353 ? 1 : -1]; 5354int 5355main () 5356{ 5357 5358 ; 5359 return 0; 5360} 5361_ACEOF 5362if ac_fn_c_try_compile "$LINENO"; then : 5363 ac_cv_sys_large_files=no; break 5364fi 5365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5367/* end confdefs.h. */ 5368#define _LARGE_FILES 1 5369#include <sys/types.h> 5370 /* Check that off_t can represent 2**63 - 1 correctly. 5371 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5372 since some C++ compilers masquerading as C compilers 5373 incorrectly reject 9223372036854775807. */ 5374#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5375 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5376 && LARGE_OFF_T % 2147483647 == 1) 5377 ? 1 : -1]; 5378int 5379main () 5380{ 5381 5382 ; 5383 return 0; 5384} 5385_ACEOF 5386if ac_fn_c_try_compile "$LINENO"; then : 5387 ac_cv_sys_large_files=1; break 5388fi 5389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5390 ac_cv_sys_large_files=unknown 5391 break 5392done 5393fi 5394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 5395$as_echo "$ac_cv_sys_large_files" >&6; } 5396case $ac_cv_sys_large_files in #( 5397 no | unknown) ;; 5398 *) 5399cat >>confdefs.h <<_ACEOF 5400#define _LARGE_FILES $ac_cv_sys_large_files 5401_ACEOF 5402;; 5403esac 5404rm -rf conftest* 5405 fi 5406fi 5407 5408 5409 5410 5411 5412OLD_CFLAGS="$CFLAGS" 5413 CFLAGS="$CFLAGS -w" 5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing atan2" >&5 5415$as_echo_n "checking for library containing atan2... " >&6; } 5416if test "${ac_cv_search_atan2+set}" = set; then : 5417 $as_echo_n "(cached) " >&6 5418else 5419 ac_func_search_save_LIBS=$LIBS 5420cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5421/* end confdefs.h. */ 5422 5423/* Override any GCC internal prototype to avoid an error. 5424 Use char because int might match the return type of a GCC 5425 builtin and then its argument prototype would still apply. */ 5426#ifdef __cplusplus 5427extern "C" 5428#endif 5429char atan2 (); 5430int 5431main () 5432{ 5433return atan2 (); 5434 ; 5435 return 0; 5436} 5437_ACEOF 5438for ac_lib in '' m mx; do 5439 if test -z "$ac_lib"; then 5440 ac_res="none required" 5441 else 5442 ac_res=-l$ac_lib 5443 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5444 fi 5445 if ac_fn_c_try_link "$LINENO"; then : 5446 ac_cv_search_atan2=$ac_res 5447fi 5448rm -f core conftest.err conftest.$ac_objext \ 5449 conftest$ac_exeext 5450 if test "${ac_cv_search_atan2+set}" = set; then : 5451 break 5452fi 5453done 5454if test "${ac_cv_search_atan2+set}" = set; then : 5455 5456else 5457 ac_cv_search_atan2=no 5458fi 5459rm conftest.$ac_ext 5460LIBS=$ac_func_search_save_LIBS 5461fi 5462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_atan2" >&5 5463$as_echo "$ac_cv_search_atan2" >&6; } 5464ac_res=$ac_cv_search_atan2 5465if test "$ac_res" != no; then : 5466 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5467 5468$as_echo "#define HAVE_ATAN2 1" >>confdefs.h 5469 5470fi 5471 5472 CFLAGS="$OLD_CFLAGS" 5473 5474 5475# Checks for hypot (SVID 3, BSD 4.3). 5476# The replacement is #defined in the source. 5477OLD_CFLAGS="$CFLAGS" 5478 CFLAGS="$CFLAGS -w" 5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hypot" >&5 5480$as_echo_n "checking for library containing hypot... " >&6; } 5481if test "${ac_cv_search_hypot+set}" = set; then : 5482 $as_echo_n "(cached) " >&6 5483else 5484 ac_func_search_save_LIBS=$LIBS 5485cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5486/* end confdefs.h. */ 5487 5488/* Override any GCC internal prototype to avoid an error. 5489 Use char because int might match the return type of a GCC 5490 builtin and then its argument prototype would still apply. */ 5491#ifdef __cplusplus 5492extern "C" 5493#endif 5494char hypot (); 5495int 5496main () 5497{ 5498return hypot (); 5499 ; 5500 return 0; 5501} 5502_ACEOF 5503for ac_lib in '' m mx; do 5504 if test -z "$ac_lib"; then 5505 ac_res="none required" 5506 else 5507 ac_res=-l$ac_lib 5508 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5509 fi 5510 if ac_fn_c_try_link "$LINENO"; then : 5511 ac_cv_search_hypot=$ac_res 5512fi 5513rm -f core conftest.err conftest.$ac_objext \ 5514 conftest$ac_exeext 5515 if test "${ac_cv_search_hypot+set}" = set; then : 5516 break 5517fi 5518done 5519if test "${ac_cv_search_hypot+set}" = set; then : 5520 5521else 5522 ac_cv_search_hypot=no 5523fi 5524rm conftest.$ac_ext 5525LIBS=$ac_func_search_save_LIBS 5526fi 5527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hypot" >&5 5528$as_echo "$ac_cv_search_hypot" >&6; } 5529ac_res=$ac_cv_search_hypot 5530if test "$ac_res" != no; then : 5531 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5532 5533$as_echo "#define HAVE_HYPOT 1" >>confdefs.h 5534 5535fi 5536 5537 CFLAGS="$OLD_CFLAGS" 5538 5539 5540# Checks for math functions using floats. 5541# Using floats instead of doubles makes gcc use SSE with -msse 5542# The replacement are #defined in math_floats.h. 5543OLD_CFLAGS="$CFLAGS" 5544 CFLAGS="$CFLAGS -w" 5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqrtf" >&5 5546$as_echo_n "checking for library containing sqrtf... " >&6; } 5547if test "${ac_cv_search_sqrtf+set}" = set; then : 5548 $as_echo_n "(cached) " >&6 5549else 5550 ac_func_search_save_LIBS=$LIBS 5551cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5552/* end confdefs.h. */ 5553 5554/* Override any GCC internal prototype to avoid an error. 5555 Use char because int might match the return type of a GCC 5556 builtin and then its argument prototype would still apply. */ 5557#ifdef __cplusplus 5558extern "C" 5559#endif 5560char sqrtf (); 5561int 5562main () 5563{ 5564return sqrtf (); 5565 ; 5566 return 0; 5567} 5568_ACEOF 5569for ac_lib in '' m mx; do 5570 if test -z "$ac_lib"; then 5571 ac_res="none required" 5572 else 5573 ac_res=-l$ac_lib 5574 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5575 fi 5576 if ac_fn_c_try_link "$LINENO"; then : 5577 ac_cv_search_sqrtf=$ac_res 5578fi 5579rm -f core conftest.err conftest.$ac_objext \ 5580 conftest$ac_exeext 5581 if test "${ac_cv_search_sqrtf+set}" = set; then : 5582 break 5583fi 5584done 5585if test "${ac_cv_search_sqrtf+set}" = set; then : 5586 5587else 5588 ac_cv_search_sqrtf=no 5589fi 5590rm conftest.$ac_ext 5591LIBS=$ac_func_search_save_LIBS 5592fi 5593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrtf" >&5 5594$as_echo "$ac_cv_search_sqrtf" >&6; } 5595ac_res=$ac_cv_search_sqrtf 5596if test "$ac_res" != no; then : 5597 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5598 5599$as_echo "#define HAVE_SQRTF 1" >>confdefs.h 5600 5601fi 5602 5603 CFLAGS="$OLD_CFLAGS" 5604OLD_CFLAGS="$CFLAGS" 5605 CFLAGS="$CFLAGS -w" 5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hypotf" >&5 5607$as_echo_n "checking for library containing hypotf... " >&6; } 5608if test "${ac_cv_search_hypotf+set}" = set; then : 5609 $as_echo_n "(cached) " >&6 5610else 5611 ac_func_search_save_LIBS=$LIBS 5612cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5613/* end confdefs.h. */ 5614 5615/* Override any GCC internal prototype to avoid an error. 5616 Use char because int might match the return type of a GCC 5617 builtin and then its argument prototype would still apply. */ 5618#ifdef __cplusplus 5619extern "C" 5620#endif 5621char hypotf (); 5622int 5623main () 5624{ 5625return hypotf (); 5626 ; 5627 return 0; 5628} 5629_ACEOF 5630for ac_lib in '' m mx; do 5631 if test -z "$ac_lib"; then 5632 ac_res="none required" 5633 else 5634 ac_res=-l$ac_lib 5635 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5636 fi 5637 if ac_fn_c_try_link "$LINENO"; then : 5638 ac_cv_search_hypotf=$ac_res 5639fi 5640rm -f core conftest.err conftest.$ac_objext \ 5641 conftest$ac_exeext 5642 if test "${ac_cv_search_hypotf+set}" = set; then : 5643 break 5644fi 5645done 5646if test "${ac_cv_search_hypotf+set}" = set; then : 5647 5648else 5649 ac_cv_search_hypotf=no 5650fi 5651rm conftest.$ac_ext 5652LIBS=$ac_func_search_save_LIBS 5653fi 5654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hypotf" >&5 5655$as_echo "$ac_cv_search_hypotf" >&6; } 5656ac_res=$ac_cv_search_hypotf 5657if test "$ac_res" != no; then : 5658 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5659 5660$as_echo "#define HAVE_HYPOTF 1" >>confdefs.h 5661 5662fi 5663 5664 CFLAGS="$OLD_CFLAGS" 5665OLD_CFLAGS="$CFLAGS" 5666 CFLAGS="$CFLAGS -w" 5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing atan2f" >&5 5668$as_echo_n "checking for library containing atan2f... " >&6; } 5669if test "${ac_cv_search_atan2f+set}" = set; then : 5670 $as_echo_n "(cached) " >&6 5671else 5672 ac_func_search_save_LIBS=$LIBS 5673cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5674/* end confdefs.h. */ 5675 5676/* Override any GCC internal prototype to avoid an error. 5677 Use char because int might match the return type of a GCC 5678 builtin and then its argument prototype would still apply. */ 5679#ifdef __cplusplus 5680extern "C" 5681#endif 5682char atan2f (); 5683int 5684main () 5685{ 5686return atan2f (); 5687 ; 5688 return 0; 5689} 5690_ACEOF 5691for ac_lib in '' m mx; do 5692 if test -z "$ac_lib"; then 5693 ac_res="none required" 5694 else 5695 ac_res=-l$ac_lib 5696 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5697 fi 5698 if ac_fn_c_try_link "$LINENO"; then : 5699 ac_cv_search_atan2f=$ac_res 5700fi 5701rm -f core conftest.err conftest.$ac_objext \ 5702 conftest$ac_exeext 5703 if test "${ac_cv_search_atan2f+set}" = set; then : 5704 break 5705fi 5706done 5707if test "${ac_cv_search_atan2f+set}" = set; then : 5708 5709else 5710 ac_cv_search_atan2f=no 5711fi 5712rm conftest.$ac_ext 5713LIBS=$ac_func_search_save_LIBS 5714fi 5715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_atan2f" >&5 5716$as_echo "$ac_cv_search_atan2f" >&6; } 5717ac_res=$ac_cv_search_atan2f 5718if test "$ac_res" != no; then : 5719 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5720 5721$as_echo "#define HAVE_ATAN2F 1" >>confdefs.h 5722 5723fi 5724 5725 CFLAGS="$OLD_CFLAGS" 5726OLD_CFLAGS="$CFLAGS" 5727 CFLAGS="$CFLAGS -w" 5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing powf" >&5 5729$as_echo_n "checking for library containing powf... " >&6; } 5730if test "${ac_cv_search_powf+set}" = set; then : 5731 $as_echo_n "(cached) " >&6 5732else 5733 ac_func_search_save_LIBS=$LIBS 5734cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5735/* end confdefs.h. */ 5736 5737/* Override any GCC internal prototype to avoid an error. 5738 Use char because int might match the return type of a GCC 5739 builtin and then its argument prototype would still apply. */ 5740#ifdef __cplusplus 5741extern "C" 5742#endif 5743char powf (); 5744int 5745main () 5746{ 5747return powf (); 5748 ; 5749 return 0; 5750} 5751_ACEOF 5752for ac_lib in '' m mx; do 5753 if test -z "$ac_lib"; then 5754 ac_res="none required" 5755 else 5756 ac_res=-l$ac_lib 5757 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5758 fi 5759 if ac_fn_c_try_link "$LINENO"; then : 5760 ac_cv_search_powf=$ac_res 5761fi 5762rm -f core conftest.err conftest.$ac_objext \ 5763 conftest$ac_exeext 5764 if test "${ac_cv_search_powf+set}" = set; then : 5765 break 5766fi 5767done 5768if test "${ac_cv_search_powf+set}" = set; then : 5769 5770else 5771 ac_cv_search_powf=no 5772fi 5773rm conftest.$ac_ext 5774LIBS=$ac_func_search_save_LIBS 5775fi 5776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_powf" >&5 5777$as_echo "$ac_cv_search_powf" >&6; } 5778ac_res=$ac_cv_search_powf 5779if test "$ac_res" != no; then : 5780 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5781 5782$as_echo "#define HAVE_POWF 1" >>confdefs.h 5783 5784fi 5785 5786 CFLAGS="$OLD_CFLAGS" 5787OLD_CFLAGS="$CFLAGS" 5788 CFLAGS="$CFLAGS -w" 5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ceilf" >&5 5790$as_echo_n "checking for library containing ceilf... " >&6; } 5791if test "${ac_cv_search_ceilf+set}" = set; then : 5792 $as_echo_n "(cached) " >&6 5793else 5794 ac_func_search_save_LIBS=$LIBS 5795cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5796/* end confdefs.h. */ 5797 5798/* Override any GCC internal prototype to avoid an error. 5799 Use char because int might match the return type of a GCC 5800 builtin and then its argument prototype would still apply. */ 5801#ifdef __cplusplus 5802extern "C" 5803#endif 5804char ceilf (); 5805int 5806main () 5807{ 5808return ceilf (); 5809 ; 5810 return 0; 5811} 5812_ACEOF 5813for ac_lib in '' m mx; do 5814 if test -z "$ac_lib"; then 5815 ac_res="none required" 5816 else 5817 ac_res=-l$ac_lib 5818 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5819 fi 5820 if ac_fn_c_try_link "$LINENO"; then : 5821 ac_cv_search_ceilf=$ac_res 5822fi 5823rm -f core conftest.err conftest.$ac_objext \ 5824 conftest$ac_exeext 5825 if test "${ac_cv_search_ceilf+set}" = set; then : 5826 break 5827fi 5828done 5829if test "${ac_cv_search_ceilf+set}" = set; then : 5830 5831else 5832 ac_cv_search_ceilf=no 5833fi 5834rm conftest.$ac_ext 5835LIBS=$ac_func_search_save_LIBS 5836fi 5837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ceilf" >&5 5838$as_echo "$ac_cv_search_ceilf" >&6; } 5839ac_res=$ac_cv_search_ceilf 5840if test "$ac_res" != no; then : 5841 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5842 5843$as_echo "#define HAVE_CEILF 1" >>confdefs.h 5844 5845fi 5846 5847 CFLAGS="$OLD_CFLAGS" 5848OLD_CFLAGS="$CFLAGS" 5849 CFLAGS="$CFLAGS -w" 5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5 5851$as_echo_n "checking for library containing cosf... " >&6; } 5852if test "${ac_cv_search_cosf+set}" = set; then : 5853 $as_echo_n "(cached) " >&6 5854else 5855 ac_func_search_save_LIBS=$LIBS 5856cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5857/* end confdefs.h. */ 5858 5859/* Override any GCC internal prototype to avoid an error. 5860 Use char because int might match the return type of a GCC 5861 builtin and then its argument prototype would still apply. */ 5862#ifdef __cplusplus 5863extern "C" 5864#endif 5865char cosf (); 5866int 5867main () 5868{ 5869return cosf (); 5870 ; 5871 return 0; 5872} 5873_ACEOF 5874for ac_lib in '' m mx; do 5875 if test -z "$ac_lib"; then 5876 ac_res="none required" 5877 else 5878 ac_res=-l$ac_lib 5879 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5880 fi 5881 if ac_fn_c_try_link "$LINENO"; then : 5882 ac_cv_search_cosf=$ac_res 5883fi 5884rm -f core conftest.err conftest.$ac_objext \ 5885 conftest$ac_exeext 5886 if test "${ac_cv_search_cosf+set}" = set; then : 5887 break 5888fi 5889done 5890if test "${ac_cv_search_cosf+set}" = set; then : 5891 5892else 5893 ac_cv_search_cosf=no 5894fi 5895rm conftest.$ac_ext 5896LIBS=$ac_func_search_save_LIBS 5897fi 5898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5 5899$as_echo "$ac_cv_search_cosf" >&6; } 5900ac_res=$ac_cv_search_cosf 5901if test "$ac_res" != no; then : 5902 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5903 5904$as_echo "#define HAVE_COSF 1" >>confdefs.h 5905 5906fi 5907 5908 CFLAGS="$OLD_CFLAGS" 5909OLD_CFLAGS="$CFLAGS" 5910 CFLAGS="$CFLAGS -w" 5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sinf" >&5 5912$as_echo_n "checking for library containing sinf... " >&6; } 5913if test "${ac_cv_search_sinf+set}" = set; then : 5914 $as_echo_n "(cached) " >&6 5915else 5916 ac_func_search_save_LIBS=$LIBS 5917cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5918/* end confdefs.h. */ 5919 5920/* Override any GCC internal prototype to avoid an error. 5921 Use char because int might match the return type of a GCC 5922 builtin and then its argument prototype would still apply. */ 5923#ifdef __cplusplus 5924extern "C" 5925#endif 5926char sinf (); 5927int 5928main () 5929{ 5930return sinf (); 5931 ; 5932 return 0; 5933} 5934_ACEOF 5935for ac_lib in '' m mx; do 5936 if test -z "$ac_lib"; then 5937 ac_res="none required" 5938 else 5939 ac_res=-l$ac_lib 5940 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5941 fi 5942 if ac_fn_c_try_link "$LINENO"; then : 5943 ac_cv_search_sinf=$ac_res 5944fi 5945rm -f core conftest.err conftest.$ac_objext \ 5946 conftest$ac_exeext 5947 if test "${ac_cv_search_sinf+set}" = set; then : 5948 break 5949fi 5950done 5951if test "${ac_cv_search_sinf+set}" = set; then : 5952 5953else 5954 ac_cv_search_sinf=no 5955fi 5956rm conftest.$ac_ext 5957LIBS=$ac_func_search_save_LIBS 5958fi 5959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sinf" >&5 5960$as_echo "$ac_cv_search_sinf" >&6; } 5961ac_res=$ac_cv_search_sinf 5962if test "$ac_res" != no; then : 5963 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5964 5965$as_echo "#define HAVE_SINF 1" >>confdefs.h 5966 5967fi 5968 5969 CFLAGS="$OLD_CFLAGS" 5970OLD_CFLAGS="$CFLAGS" 5971 CFLAGS="$CFLAGS -w" 5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acosf" >&5 5973$as_echo_n "checking for library containing acosf... " >&6; } 5974if test "${ac_cv_search_acosf+set}" = set; then : 5975 $as_echo_n "(cached) " >&6 5976else 5977 ac_func_search_save_LIBS=$LIBS 5978cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5979/* end confdefs.h. */ 5980 5981/* Override any GCC internal prototype to avoid an error. 5982 Use char because int might match the return type of a GCC 5983 builtin and then its argument prototype would still apply. */ 5984#ifdef __cplusplus 5985extern "C" 5986#endif 5987char acosf (); 5988int 5989main () 5990{ 5991return acosf (); 5992 ; 5993 return 0; 5994} 5995_ACEOF 5996for ac_lib in '' m mx; do 5997 if test -z "$ac_lib"; then 5998 ac_res="none required" 5999 else 6000 ac_res=-l$ac_lib 6001 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6002 fi 6003 if ac_fn_c_try_link "$LINENO"; then : 6004 ac_cv_search_acosf=$ac_res 6005fi 6006rm -f core conftest.err conftest.$ac_objext \ 6007 conftest$ac_exeext 6008 if test "${ac_cv_search_acosf+set}" = set; then : 6009 break 6010fi 6011done 6012if test "${ac_cv_search_acosf+set}" = set; then : 6013 6014else 6015 ac_cv_search_acosf=no 6016fi 6017rm conftest.$ac_ext 6018LIBS=$ac_func_search_save_LIBS 6019fi 6020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acosf" >&5 6021$as_echo "$ac_cv_search_acosf" >&6; } 6022ac_res=$ac_cv_search_acosf 6023if test "$ac_res" != no; then : 6024 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6025 6026$as_echo "#define HAVE_ACOSF 1" >>confdefs.h 6027 6028fi 6029 6030 CFLAGS="$OLD_CFLAGS" 6031OLD_CFLAGS="$CFLAGS" 6032 CFLAGS="$CFLAGS -w" 6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmodf" >&5 6034$as_echo_n "checking for library containing fmodf... " >&6; } 6035if test "${ac_cv_search_fmodf+set}" = set; then : 6036 $as_echo_n "(cached) " >&6 6037else 6038 ac_func_search_save_LIBS=$LIBS 6039cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6040/* end confdefs.h. */ 6041 6042/* Override any GCC internal prototype to avoid an error. 6043 Use char because int might match the return type of a GCC 6044 builtin and then its argument prototype would still apply. */ 6045#ifdef __cplusplus 6046extern "C" 6047#endif 6048char fmodf (); 6049int 6050main () 6051{ 6052return fmodf (); 6053 ; 6054 return 0; 6055} 6056_ACEOF 6057for ac_lib in '' m mx; do 6058 if test -z "$ac_lib"; then 6059 ac_res="none required" 6060 else 6061 ac_res=-l$ac_lib 6062 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6063 fi 6064 if ac_fn_c_try_link "$LINENO"; then : 6065 ac_cv_search_fmodf=$ac_res 6066fi 6067rm -f core conftest.err conftest.$ac_objext \ 6068 conftest$ac_exeext 6069 if test "${ac_cv_search_fmodf+set}" = set; then : 6070 break 6071fi 6072done 6073if test "${ac_cv_search_fmodf+set}" = set; then : 6074 6075else 6076 ac_cv_search_fmodf=no 6077fi 6078rm conftest.$ac_ext 6079LIBS=$ac_func_search_save_LIBS 6080fi 6081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmodf" >&5 6082$as_echo "$ac_cv_search_fmodf" >&6; } 6083ac_res=$ac_cv_search_fmodf 6084if test "$ac_res" != no; then : 6085 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6086 6087$as_echo "#define HAVE_FMODF 1" >>confdefs.h 6088 6089fi 6090 6091 CFLAGS="$OLD_CFLAGS" 6092OLD_CFLAGS="$CFLAGS" 6093 CFLAGS="$CFLAGS -w" 6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabsf" >&5 6095$as_echo_n "checking for library containing fabsf... " >&6; } 6096if test "${ac_cv_search_fabsf+set}" = set; then : 6097 $as_echo_n "(cached) " >&6 6098else 6099 ac_func_search_save_LIBS=$LIBS 6100cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6101/* end confdefs.h. */ 6102 6103/* Override any GCC internal prototype to avoid an error. 6104 Use char because int might match the return type of a GCC 6105 builtin and then its argument prototype would still apply. */ 6106#ifdef __cplusplus 6107extern "C" 6108#endif 6109char fabsf (); 6110int 6111main () 6112{ 6113return fabsf (); 6114 ; 6115 return 0; 6116} 6117_ACEOF 6118for ac_lib in '' m mx; do 6119 if test -z "$ac_lib"; then 6120 ac_res="none required" 6121 else 6122 ac_res=-l$ac_lib 6123 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6124 fi 6125 if ac_fn_c_try_link "$LINENO"; then : 6126 ac_cv_search_fabsf=$ac_res 6127fi 6128rm -f core conftest.err conftest.$ac_objext \ 6129 conftest$ac_exeext 6130 if test "${ac_cv_search_fabsf+set}" = set; then : 6131 break 6132fi 6133done 6134if test "${ac_cv_search_fabsf+set}" = set; then : 6135 6136else 6137 ac_cv_search_fabsf=no 6138fi 6139rm conftest.$ac_ext 6140LIBS=$ac_func_search_save_LIBS 6141fi 6142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabsf" >&5 6143$as_echo "$ac_cv_search_fabsf" >&6; } 6144ac_res=$ac_cv_search_fabsf 6145if test "$ac_res" != no; then : 6146 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6147 6148$as_echo "#define HAVE_FABSF 1" >>confdefs.h 6149 6150fi 6151 6152 CFLAGS="$OLD_CFLAGS" 6153OLD_CFLAGS="$CFLAGS" 6154 CFLAGS="$CFLAGS -w" 6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log10f" >&5 6156$as_echo_n "checking for library containing log10f... " >&6; } 6157if test "${ac_cv_search_log10f+set}" = set; then : 6158 $as_echo_n "(cached) " >&6 6159else 6160 ac_func_search_save_LIBS=$LIBS 6161cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6162/* end confdefs.h. */ 6163 6164/* Override any GCC internal prototype to avoid an error. 6165 Use char because int might match the return type of a GCC 6166 builtin and then its argument prototype would still apply. */ 6167#ifdef __cplusplus 6168extern "C" 6169#endif 6170char log10f (); 6171int 6172main () 6173{ 6174return log10f (); 6175 ; 6176 return 0; 6177} 6178_ACEOF 6179for ac_lib in '' m mx; do 6180 if test -z "$ac_lib"; then 6181 ac_res="none required" 6182 else 6183 ac_res=-l$ac_lib 6184 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6185 fi 6186 if ac_fn_c_try_link "$LINENO"; then : 6187 ac_cv_search_log10f=$ac_res 6188fi 6189rm -f core conftest.err conftest.$ac_objext \ 6190 conftest$ac_exeext 6191 if test "${ac_cv_search_log10f+set}" = set; then : 6192 break 6193fi 6194done 6195if test "${ac_cv_search_log10f+set}" = set; then : 6196 6197else 6198 ac_cv_search_log10f=no 6199fi 6200rm conftest.$ac_ext 6201LIBS=$ac_func_search_save_LIBS 6202fi 6203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log10f" >&5 6204$as_echo "$ac_cv_search_log10f" >&6; } 6205ac_res=$ac_cv_search_log10f 6206if test "$ac_res" != no; then : 6207 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6208 6209$as_echo "#define HAVE_LOG10F 1" >>confdefs.h 6210 6211fi 6212 6213 CFLAGS="$OLD_CFLAGS" 6214 6215# If we don't have ftello, we'll use ftell. 6216for ac_func in ftello 6217do : 6218 ac_fn_c_check_func "$LINENO" "ftello" "ac_cv_func_ftello" 6219if test "x$ac_cv_func_ftello" = x""yes; then : 6220 cat >>confdefs.h <<_ACEOF 6221#define HAVE_FTELLO 1 6222_ACEOF 6223 6224fi 6225done 6226 6227 6228# If we don't have fseeko, we'll use fseek. 6229for ac_func in fseeko 6230do : 6231 ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko" 6232if test "x$ac_cv_func_fseeko" = x""yes; then : 6233 cat >>confdefs.h <<_ACEOF 6234#define HAVE_FSEEKO 1 6235_ACEOF 6236 6237fi 6238done 6239 6240 6241 6242# Checks for getdelim, this is a GNU extension. 6243CFLAGS="$CFLAGS -D_GNU_SOURCE" 6244for ac_func in getdelim 6245do : 6246 ac_fn_c_check_func "$LINENO" "getdelim" "ac_cv_func_getdelim" 6247if test "x$ac_cv_func_getdelim" = x""yes; then : 6248 cat >>confdefs.h <<_ACEOF 6249#define HAVE_GETDELIM 1 6250_ACEOF 6251 6252 have_getdelim="yes" 6253 6254else 6255 6256 have_getdelim="no" 6257 6258fi 6259done 6260 6261 6262 if test "$have_getdelim" = "yes"; then 6263 GETDELIM_TRUE= 6264 GETDELIM_FALSE='#' 6265else 6266 GETDELIM_TRUE='#' 6267 GETDELIM_FALSE= 6268fi 6269 6270 6271 6272# Checks for getopt_long, another GNU extension. 6273for ac_func in getopt_long 6274do : 6275 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long" 6276if test "x$ac_cv_func_getopt_long" = x""yes; then : 6277 cat >>confdefs.h <<_ACEOF 6278#define HAVE_GETOPT_LONG 1 6279_ACEOF 6280 6281 have_getopt_long="yes" 6282 6283else 6284 6285 have_getopt_long="no" 6286 6287fi 6288done 6289 6290 6291 if test "$have_getopt_long" = "yes"; then 6292 GETOPT_LONG_TRUE= 6293 GETOPT_LONG_FALSE='#' 6294else 6295 GETOPT_LONG_TRUE='#' 6296 GETOPT_LONG_FALSE= 6297fi 6298 6299 6300 6301if test "$have_getdelim" = "no" || 6302 test "$have_getopt_long" = "no"; then 6303 if true; then 6304 NEED_REPLACEMENTS_TRUE= 6305 NEED_REPLACEMENTS_FALSE='#' 6306else 6307 NEED_REPLACEMENTS_TRUE='#' 6308 NEED_REPLACEMENTS_FALSE= 6309fi 6310 6311else 6312 if false; then 6313 NEED_REPLACEMENTS_TRUE= 6314 NEED_REPLACEMENTS_FALSE='#' 6315else 6316 NEED_REPLACEMENTS_TRUE='#' 6317 NEED_REPLACEMENTS_FALSE= 6318fi 6319 6320fi 6321 6322 6323# Checks for flavours of varargs macros (borrowed from glib-2) 6324# ISO C99 6325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 varargs macros" >&5 6326$as_echo_n "checking for ISO C99 varargs macros... " >&6; } 6327 6328cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6329/* end confdefs.h. */ 6330 6331int 6332main () 6333{ 6334 6335 int a(int p1, int p2, int p3); 6336 #define call_a(...) a(1,__VA_ARGS__) 6337 call_a(2,3); 6338 6339 ; 6340 return 0; 6341} 6342_ACEOF 6343if ac_fn_c_try_compile "$LINENO"; then : 6344 have_iso_c_varargs=yes 6345else 6346 have_iso_c_varargs=no 6347fi 6348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6349 6350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_iso_c_varargs" >&5 6351$as_echo "$have_iso_c_varargs" >&6; } 6352 6353if test $have_iso_c_varargs = yes; then 6354 iso_c_varargs=1 6355else 6356 iso_c_varargs=0 6357fi 6358 6359 6360cat >>confdefs.h <<_ACEOF 6361#define HAVE_ISO_C_VARARGS $iso_c_varargs 6362_ACEOF 6363 6364 6365if test $have_iso_c_varargs = no; then 6366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No ISO C99 variadic macros" >&5 6367$as_echo "$as_me: WARNING: No ISO C99 variadic macros" >&2;} 6368fi 6369 6370# 32bit or 64bit ? 6371# The cast to long int works around a bug in the HP C Compiler 6372# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6373# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6374# This bug is HP SR number 8606223364. 6375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 6376$as_echo_n "checking size of unsigned long... " >&6; } 6377if test "${ac_cv_sizeof_unsigned_long+set}" = set; then : 6378 $as_echo_n "(cached) " >&6 6379else 6380 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : 6381 6382else 6383 if test "$ac_cv_type_unsigned_long" = yes; then 6384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6385$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6386as_fn_error 77 "cannot compute sizeof (unsigned long) 6387See \`config.log' for more details" "$LINENO" 5 ; } 6388 else 6389 ac_cv_sizeof_unsigned_long=0 6390 fi 6391fi 6392 6393fi 6394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 6395$as_echo "$ac_cv_sizeof_unsigned_long" >&6; } 6396 6397 6398 6399cat >>confdefs.h <<_ACEOF 6400#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long 6401_ACEOF 6402 6403 6404 6405# Checks for X. 6406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 6407$as_echo_n "checking for X... " >&6; } 6408 6409 6410# Check whether --with-x was given. 6411if test "${with_x+set}" = set; then : 6412 withval=$with_x; 6413fi 6414 6415# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 6416if test "x$with_x" = xno; then 6417 # The user explicitly disabled X. 6418 have_x=disabled 6419else 6420 case $x_includes,$x_libraries in #( 6421 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #( 6422 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : 6423 $as_echo_n "(cached) " >&6 6424else 6425 # One or both of the vars are not set, and there is no cached value. 6426ac_x_includes=no ac_x_libraries=no 6427rm -f -r conftest.dir 6428if mkdir conftest.dir; then 6429 cd conftest.dir 6430 cat >Imakefile <<'_ACEOF' 6431incroot: 6432 @echo incroot='${INCROOT}' 6433usrlibdir: 6434 @echo usrlibdir='${USRLIBDIR}' 6435libdir: 6436 @echo libdir='${LIBDIR}' 6437_ACEOF 6438 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 6439 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 6440 for ac_var in incroot usrlibdir libdir; do 6441 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 6442 done 6443 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 6444 for ac_extension in a so sl dylib la dll; do 6445 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 6446 test -f "$ac_im_libdir/libX11.$ac_extension"; then 6447 ac_im_usrlibdir=$ac_im_libdir; break 6448 fi 6449 done 6450 # Screen out bogus values from the imake configuration. They are 6451 # bogus both because they are the default anyway, and because 6452 # using them would break gcc on systems where it needs fixed includes. 6453 case $ac_im_incroot in 6454 /usr/include) ac_x_includes= ;; 6455 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 6456 esac 6457 case $ac_im_usrlibdir in 6458 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 6459 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 6460 esac 6461 fi 6462 cd .. 6463 rm -f -r conftest.dir 6464fi 6465 6466# Standard set of common directories for X headers. 6467# Check X11 before X11Rn because it is often a symlink to the current release. 6468ac_x_header_dirs=' 6469/usr/X11/include 6470/usr/X11R7/include 6471/usr/X11R6/include 6472/usr/X11R5/include 6473/usr/X11R4/include 6474 6475/usr/include/X11 6476/usr/include/X11R7 6477/usr/include/X11R6 6478/usr/include/X11R5 6479/usr/include/X11R4 6480 6481/usr/local/X11/include 6482/usr/local/X11R7/include 6483/usr/local/X11R6/include 6484/usr/local/X11R5/include 6485/usr/local/X11R4/include 6486 6487/usr/local/include/X11 6488/usr/local/include/X11R7 6489/usr/local/include/X11R6 6490/usr/local/include/X11R5 6491/usr/local/include/X11R4 6492 6493/usr/X386/include 6494/usr/x386/include 6495/usr/XFree86/include/X11 6496 6497/usr/include 6498/usr/local/include 6499/usr/unsupported/include 6500/usr/athena/include 6501/usr/local/x11r5/include 6502/usr/lpp/Xamples/include 6503 6504/usr/openwin/include 6505/usr/openwin/share/include' 6506 6507if test "$ac_x_includes" = no; then 6508 # Guess where to find include files, by looking for Xlib.h. 6509 # First, try using that file with no special directory specified. 6510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6511/* end confdefs.h. */ 6512#include <X11/Xlib.h> 6513_ACEOF 6514if ac_fn_c_try_cpp "$LINENO"; then : 6515 # We can compile using X headers with no special include directory. 6516ac_x_includes= 6517else 6518 for ac_dir in $ac_x_header_dirs; do 6519 if test -r "$ac_dir/X11/Xlib.h"; then 6520 ac_x_includes=$ac_dir 6521 break 6522 fi 6523done 6524fi 6525rm -f conftest.err conftest.i conftest.$ac_ext 6526fi # $ac_x_includes = no 6527 6528if test "$ac_x_libraries" = no; then 6529 # Check for the libraries. 6530 # See if we find them without any special options. 6531 # Don't add to $LIBS permanently. 6532 ac_save_LIBS=$LIBS 6533 LIBS="-lX11 $LIBS" 6534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6535/* end confdefs.h. */ 6536#include <X11/Xlib.h> 6537int 6538main () 6539{ 6540XrmInitialize () 6541 ; 6542 return 0; 6543} 6544_ACEOF 6545if ac_fn_c_try_link "$LINENO"; then : 6546 LIBS=$ac_save_LIBS 6547# We can link X programs with no special library path. 6548ac_x_libraries= 6549else 6550 LIBS=$ac_save_LIBS 6551for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 6552do 6553 # Don't even attempt the hair of trying to link an X program! 6554 for ac_extension in a so sl dylib la dll; do 6555 if test -r "$ac_dir/libX11.$ac_extension"; then 6556 ac_x_libraries=$ac_dir 6557 break 2 6558 fi 6559 done 6560done 6561fi 6562rm -f core conftest.err conftest.$ac_objext \ 6563 conftest$ac_exeext conftest.$ac_ext 6564fi # $ac_x_libraries = no 6565 6566case $ac_x_includes,$ac_x_libraries in #( 6567 no,* | *,no | *\'*) 6568 # Didn't find X, or a directory has "'" in its name. 6569 ac_cv_have_x="have_x=no";; #( 6570 *) 6571 # Record where we found X for the cache. 6572 ac_cv_have_x="have_x=yes\ 6573 ac_x_includes='$ac_x_includes'\ 6574 ac_x_libraries='$ac_x_libraries'" 6575esac 6576fi 6577;; #( 6578 *) have_x=yes;; 6579 esac 6580 eval "$ac_cv_have_x" 6581fi # $with_x != no 6582 6583if test "$have_x" != yes; then 6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 6585$as_echo "$have_x" >&6; } 6586 no_x=yes 6587else 6588 # If each of the values was on the command line, it overrides each guess. 6589 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 6590 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 6591 # Update the cache value to reflect the command line values. 6592 ac_cv_have_x="have_x=yes\ 6593 ac_x_includes='$x_includes'\ 6594 ac_x_libraries='$x_libraries'" 6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 6596$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 6597fi 6598 6599if test "$no_x" = yes; then 6600 # Not all programs may use this symbol, but it does not hurt to define it. 6601 6602$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 6603 6604 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 6605else 6606 if test -n "$x_includes"; then 6607 X_CFLAGS="$X_CFLAGS -I$x_includes" 6608 fi 6609 6610 # It would also be nice to do this for all -L options, not just this one. 6611 if test -n "$x_libraries"; then 6612 X_LIBS="$X_LIBS -L$x_libraries" 6613 # For Solaris; some versions of Sun CC require a space after -R and 6614 # others require no space. Words are not sufficient . . . . 6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 6616$as_echo_n "checking whether -R must be followed by a space... " >&6; } 6617 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 6618 ac_xsave_c_werror_flag=$ac_c_werror_flag 6619 ac_c_werror_flag=yes 6620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6621/* end confdefs.h. */ 6622 6623int 6624main () 6625{ 6626 6627 ; 6628 return 0; 6629} 6630_ACEOF 6631if ac_fn_c_try_link "$LINENO"; then : 6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6633$as_echo "no" >&6; } 6634 X_LIBS="$X_LIBS -R$x_libraries" 6635else 6636 LIBS="$ac_xsave_LIBS -R $x_libraries" 6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6638/* end confdefs.h. */ 6639 6640int 6641main () 6642{ 6643 6644 ; 6645 return 0; 6646} 6647_ACEOF 6648if ac_fn_c_try_link "$LINENO"; then : 6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6650$as_echo "yes" >&6; } 6651 X_LIBS="$X_LIBS -R $x_libraries" 6652else 6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 6654$as_echo "neither works" >&6; } 6655fi 6656rm -f core conftest.err conftest.$ac_objext \ 6657 conftest$ac_exeext conftest.$ac_ext 6658fi 6659rm -f core conftest.err conftest.$ac_objext \ 6660 conftest$ac_exeext conftest.$ac_ext 6661 ac_c_werror_flag=$ac_xsave_c_werror_flag 6662 LIBS=$ac_xsave_LIBS 6663 fi 6664 6665 # Check for system-dependent libraries X programs must link with. 6666 # Do this before checking for the system-independent R6 libraries 6667 # (-lICE), since we may need -lsocket or whatever for X linking. 6668 6669 if test "$ISC" = yes; then 6670 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 6671 else 6672 # Martyn Johnson says this is needed for Ultrix, if the X 6673 # libraries were built with DECnet support. And Karl Berry says 6674 # the Alpha needs dnet_stub (dnet does not exist). 6675 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 6676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6677/* end confdefs.h. */ 6678 6679/* Override any GCC internal prototype to avoid an error. 6680 Use char because int might match the return type of a GCC 6681 builtin and then its argument prototype would still apply. */ 6682#ifdef __cplusplus 6683extern "C" 6684#endif 6685char XOpenDisplay (); 6686int 6687main () 6688{ 6689return XOpenDisplay (); 6690 ; 6691 return 0; 6692} 6693_ACEOF 6694if ac_fn_c_try_link "$LINENO"; then : 6695 6696else 6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 6698$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 6699if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then : 6700 $as_echo_n "(cached) " >&6 6701else 6702 ac_check_lib_save_LIBS=$LIBS 6703LIBS="-ldnet $LIBS" 6704cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6705/* end confdefs.h. */ 6706 6707/* Override any GCC internal prototype to avoid an error. 6708 Use char because int might match the return type of a GCC 6709 builtin and then its argument prototype would still apply. */ 6710#ifdef __cplusplus 6711extern "C" 6712#endif 6713char dnet_ntoa (); 6714int 6715main () 6716{ 6717return dnet_ntoa (); 6718 ; 6719 return 0; 6720} 6721_ACEOF 6722if ac_fn_c_try_link "$LINENO"; then : 6723 ac_cv_lib_dnet_dnet_ntoa=yes 6724else 6725 ac_cv_lib_dnet_dnet_ntoa=no 6726fi 6727rm -f core conftest.err conftest.$ac_objext \ 6728 conftest$ac_exeext conftest.$ac_ext 6729LIBS=$ac_check_lib_save_LIBS 6730fi 6731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 6732$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 6733if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then : 6734 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 6735fi 6736 6737 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 6739$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 6740if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then : 6741 $as_echo_n "(cached) " >&6 6742else 6743 ac_check_lib_save_LIBS=$LIBS 6744LIBS="-ldnet_stub $LIBS" 6745cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6746/* end confdefs.h. */ 6747 6748/* Override any GCC internal prototype to avoid an error. 6749 Use char because int might match the return type of a GCC 6750 builtin and then its argument prototype would still apply. */ 6751#ifdef __cplusplus 6752extern "C" 6753#endif 6754char dnet_ntoa (); 6755int 6756main () 6757{ 6758return dnet_ntoa (); 6759 ; 6760 return 0; 6761} 6762_ACEOF 6763if ac_fn_c_try_link "$LINENO"; then : 6764 ac_cv_lib_dnet_stub_dnet_ntoa=yes 6765else 6766 ac_cv_lib_dnet_stub_dnet_ntoa=no 6767fi 6768rm -f core conftest.err conftest.$ac_objext \ 6769 conftest$ac_exeext conftest.$ac_ext 6770LIBS=$ac_check_lib_save_LIBS 6771fi 6772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 6773$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 6774if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then : 6775 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 6776fi 6777 6778 fi 6779fi 6780rm -f core conftest.err conftest.$ac_objext \ 6781 conftest$ac_exeext conftest.$ac_ext 6782 LIBS="$ac_xsave_LIBS" 6783 6784 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 6785 # to get the SysV transport functions. 6786 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 6787 # needs -lnsl. 6788 # The nsl library prevents programs from opening the X display 6789 # on Irix 5.2, according to T.E. Dickey. 6790 # The functions gethostbyname, getservbyname, and inet_addr are 6791 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 6792 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 6793if test "x$ac_cv_func_gethostbyname" = x""yes; then : 6794 6795fi 6796 6797 if test $ac_cv_func_gethostbyname = no; then 6798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 6799$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 6800if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then : 6801 $as_echo_n "(cached) " >&6 6802else 6803 ac_check_lib_save_LIBS=$LIBS 6804LIBS="-lnsl $LIBS" 6805cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6806/* end confdefs.h. */ 6807 6808/* Override any GCC internal prototype to avoid an error. 6809 Use char because int might match the return type of a GCC 6810 builtin and then its argument prototype would still apply. */ 6811#ifdef __cplusplus 6812extern "C" 6813#endif 6814char gethostbyname (); 6815int 6816main () 6817{ 6818return gethostbyname (); 6819 ; 6820 return 0; 6821} 6822_ACEOF 6823if ac_fn_c_try_link "$LINENO"; then : 6824 ac_cv_lib_nsl_gethostbyname=yes 6825else 6826 ac_cv_lib_nsl_gethostbyname=no 6827fi 6828rm -f core conftest.err conftest.$ac_objext \ 6829 conftest$ac_exeext conftest.$ac_ext 6830LIBS=$ac_check_lib_save_LIBS 6831fi 6832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 6833$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 6834if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then : 6835 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 6836fi 6837 6838 if test $ac_cv_lib_nsl_gethostbyname = no; then 6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 6840$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 6841if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then : 6842 $as_echo_n "(cached) " >&6 6843else 6844 ac_check_lib_save_LIBS=$LIBS 6845LIBS="-lbsd $LIBS" 6846cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6847/* end confdefs.h. */ 6848 6849/* Override any GCC internal prototype to avoid an error. 6850 Use char because int might match the return type of a GCC 6851 builtin and then its argument prototype would still apply. */ 6852#ifdef __cplusplus 6853extern "C" 6854#endif 6855char gethostbyname (); 6856int 6857main () 6858{ 6859return gethostbyname (); 6860 ; 6861 return 0; 6862} 6863_ACEOF 6864if ac_fn_c_try_link "$LINENO"; then : 6865 ac_cv_lib_bsd_gethostbyname=yes 6866else 6867 ac_cv_lib_bsd_gethostbyname=no 6868fi 6869rm -f core conftest.err conftest.$ac_objext \ 6870 conftest$ac_exeext conftest.$ac_ext 6871LIBS=$ac_check_lib_save_LIBS 6872fi 6873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 6874$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 6875if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then : 6876 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 6877fi 6878 6879 fi 6880 fi 6881 6882 # lieder@skyler.mavd.honeywell.com says without -lsocket, 6883 # socket/setsockopt and other routines are undefined under SCO ODT 6884 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 6885 # on later versions), says Simon Leinen: it contains gethostby* 6886 # variants that don't use the name server (or something). -lsocket 6887 # must be given before -lnsl if both are needed. We assume that 6888 # if connect needs -lnsl, so does gethostbyname. 6889 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 6890if test "x$ac_cv_func_connect" = x""yes; then : 6891 6892fi 6893 6894 if test $ac_cv_func_connect = no; then 6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 6896$as_echo_n "checking for connect in -lsocket... " >&6; } 6897if test "${ac_cv_lib_socket_connect+set}" = set; then : 6898 $as_echo_n "(cached) " >&6 6899else 6900 ac_check_lib_save_LIBS=$LIBS 6901LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 6902cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6903/* end confdefs.h. */ 6904 6905/* Override any GCC internal prototype to avoid an error. 6906 Use char because int might match the return type of a GCC 6907 builtin and then its argument prototype would still apply. */ 6908#ifdef __cplusplus 6909extern "C" 6910#endif 6911char connect (); 6912int 6913main () 6914{ 6915return connect (); 6916 ; 6917 return 0; 6918} 6919_ACEOF 6920if ac_fn_c_try_link "$LINENO"; then : 6921 ac_cv_lib_socket_connect=yes 6922else 6923 ac_cv_lib_socket_connect=no 6924fi 6925rm -f core conftest.err conftest.$ac_objext \ 6926 conftest$ac_exeext conftest.$ac_ext 6927LIBS=$ac_check_lib_save_LIBS 6928fi 6929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 6930$as_echo "$ac_cv_lib_socket_connect" >&6; } 6931if test "x$ac_cv_lib_socket_connect" = x""yes; then : 6932 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 6933fi 6934 6935 fi 6936 6937 # Guillermo Gomez says -lposix is necessary on A/UX. 6938 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 6939if test "x$ac_cv_func_remove" = x""yes; then : 6940 6941fi 6942 6943 if test $ac_cv_func_remove = no; then 6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 6945$as_echo_n "checking for remove in -lposix... " >&6; } 6946if test "${ac_cv_lib_posix_remove+set}" = set; then : 6947 $as_echo_n "(cached) " >&6 6948else 6949 ac_check_lib_save_LIBS=$LIBS 6950LIBS="-lposix $LIBS" 6951cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6952/* end confdefs.h. */ 6953 6954/* Override any GCC internal prototype to avoid an error. 6955 Use char because int might match the return type of a GCC 6956 builtin and then its argument prototype would still apply. */ 6957#ifdef __cplusplus 6958extern "C" 6959#endif 6960char remove (); 6961int 6962main () 6963{ 6964return remove (); 6965 ; 6966 return 0; 6967} 6968_ACEOF 6969if ac_fn_c_try_link "$LINENO"; then : 6970 ac_cv_lib_posix_remove=yes 6971else 6972 ac_cv_lib_posix_remove=no 6973fi 6974rm -f core conftest.err conftest.$ac_objext \ 6975 conftest$ac_exeext conftest.$ac_ext 6976LIBS=$ac_check_lib_save_LIBS 6977fi 6978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 6979$as_echo "$ac_cv_lib_posix_remove" >&6; } 6980if test "x$ac_cv_lib_posix_remove" = x""yes; then : 6981 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 6982fi 6983 6984 fi 6985 6986 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 6987 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 6988if test "x$ac_cv_func_shmat" = x""yes; then : 6989 6990fi 6991 6992 if test $ac_cv_func_shmat = no; then 6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 6994$as_echo_n "checking for shmat in -lipc... " >&6; } 6995if test "${ac_cv_lib_ipc_shmat+set}" = set; then : 6996 $as_echo_n "(cached) " >&6 6997else 6998 ac_check_lib_save_LIBS=$LIBS 6999LIBS="-lipc $LIBS" 7000cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7001/* end confdefs.h. */ 7002 7003/* Override any GCC internal prototype to avoid an error. 7004 Use char because int might match the return type of a GCC 7005 builtin and then its argument prototype would still apply. */ 7006#ifdef __cplusplus 7007extern "C" 7008#endif 7009char shmat (); 7010int 7011main () 7012{ 7013return shmat (); 7014 ; 7015 return 0; 7016} 7017_ACEOF 7018if ac_fn_c_try_link "$LINENO"; then : 7019 ac_cv_lib_ipc_shmat=yes 7020else 7021 ac_cv_lib_ipc_shmat=no 7022fi 7023rm -f core conftest.err conftest.$ac_objext \ 7024 conftest$ac_exeext conftest.$ac_ext 7025LIBS=$ac_check_lib_save_LIBS 7026fi 7027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 7028$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 7029if test "x$ac_cv_lib_ipc_shmat" = x""yes; then : 7030 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 7031fi 7032 7033 fi 7034 fi 7035 7036 # Check for libraries that X11R6 Xt/Xaw programs need. 7037 ac_save_LDFLAGS=$LDFLAGS 7038 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 7039 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 7040 # check for ICE first), but we must link in the order -lSM -lICE or 7041 # we get undefined symbols. So assume we have SM if we have ICE. 7042 # These have to be linked with before -lX11, unlike the other 7043 # libraries we check for below, so use a different variable. 7044 # John Interrante, Karl Berry 7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 7046$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 7047if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then : 7048 $as_echo_n "(cached) " >&6 7049else 7050 ac_check_lib_save_LIBS=$LIBS 7051LIBS="-lICE $X_EXTRA_LIBS $LIBS" 7052cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7053/* end confdefs.h. */ 7054 7055/* Override any GCC internal prototype to avoid an error. 7056 Use char because int might match the return type of a GCC 7057 builtin and then its argument prototype would still apply. */ 7058#ifdef __cplusplus 7059extern "C" 7060#endif 7061char IceConnectionNumber (); 7062int 7063main () 7064{ 7065return IceConnectionNumber (); 7066 ; 7067 return 0; 7068} 7069_ACEOF 7070if ac_fn_c_try_link "$LINENO"; then : 7071 ac_cv_lib_ICE_IceConnectionNumber=yes 7072else 7073 ac_cv_lib_ICE_IceConnectionNumber=no 7074fi 7075rm -f core conftest.err conftest.$ac_objext \ 7076 conftest$ac_exeext conftest.$ac_ext 7077LIBS=$ac_check_lib_save_LIBS 7078fi 7079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 7080$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 7081if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then : 7082 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 7083fi 7084 7085 LDFLAGS=$ac_save_LDFLAGS 7086 7087fi 7088 7089CFLAGS="$X_CFLAGS $CFLAGS" 7090LDFLAGS="$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS $LDFLAGS" 7091 7092# Checks for GtkGLExt. 7093 7094 7095 7096 7097 7098 7099if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 7100 if test -n "$ac_tool_prefix"; then 7101 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 7102set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 7103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7104$as_echo_n "checking for $ac_word... " >&6; } 7105if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 7106 $as_echo_n "(cached) " >&6 7107else 7108 case $PKG_CONFIG in 7109 [\\/]* | ?:[\\/]*) 7110 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 7111 ;; 7112 *) 7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7114for as_dir in $PATH 7115do 7116 IFS=$as_save_IFS 7117 test -z "$as_dir" && as_dir=. 7118 for ac_exec_ext in '' $ac_executable_extensions; do 7119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7120 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7122 break 2 7123 fi 7124done 7125 done 7126IFS=$as_save_IFS 7127 7128 ;; 7129esac 7130fi 7131PKG_CONFIG=$ac_cv_path_PKG_CONFIG 7132if test -n "$PKG_CONFIG"; then 7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 7134$as_echo "$PKG_CONFIG" >&6; } 7135else 7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7137$as_echo "no" >&6; } 7138fi 7139 7140 7141fi 7142if test -z "$ac_cv_path_PKG_CONFIG"; then 7143 ac_pt_PKG_CONFIG=$PKG_CONFIG 7144 # Extract the first word of "pkg-config", so it can be a program name with args. 7145set dummy pkg-config; ac_word=$2 7146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7147$as_echo_n "checking for $ac_word... " >&6; } 7148if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : 7149 $as_echo_n "(cached) " >&6 7150else 7151 case $ac_pt_PKG_CONFIG in 7152 [\\/]* | ?:[\\/]*) 7153 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 7154 ;; 7155 *) 7156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7157for as_dir in $PATH 7158do 7159 IFS=$as_save_IFS 7160 test -z "$as_dir" && as_dir=. 7161 for ac_exec_ext in '' $ac_executable_extensions; do 7162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7163 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7165 break 2 7166 fi 7167done 7168 done 7169IFS=$as_save_IFS 7170 7171 ;; 7172esac 7173fi 7174ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 7175if test -n "$ac_pt_PKG_CONFIG"; then 7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 7177$as_echo "$ac_pt_PKG_CONFIG" >&6; } 7178else 7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7180$as_echo "no" >&6; } 7181fi 7182 7183 if test "x$ac_pt_PKG_CONFIG" = x; then 7184 PKG_CONFIG="" 7185 else 7186 case $cross_compiling:$ac_tool_warned in 7187yes:) 7188{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7189$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7190ac_tool_warned=yes ;; 7191esac 7192 PKG_CONFIG=$ac_pt_PKG_CONFIG 7193 fi 7194else 7195 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 7196fi 7197 7198fi 7199if test -n "$PKG_CONFIG"; then 7200 _pkg_min_version=0.9.0 7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 7202$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 7203 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7205$as_echo "yes" >&6; } 7206 else 7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7208$as_echo "no" >&6; } 7209 PKG_CONFIG="" 7210 fi 7211fi 7212 7213pkg_failed=no 7214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKGLEXT" >&5 7215$as_echo_n "checking for GTKGLEXT... " >&6; } 7216 7217if test -n "$GTKGLEXT_CFLAGS"; then 7218 pkg_cv_GTKGLEXT_CFLAGS="$GTKGLEXT_CFLAGS" 7219 elif test -n "$PKG_CONFIG"; then 7220 if test -n "$PKG_CONFIG" && \ 7221 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtkglext-1.0 >= 0.7.0\""; } >&5 7222 ($PKG_CONFIG --exists --print-errors "gtkglext-1.0 >= 0.7.0") 2>&5 7223 ac_status=$? 7224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7225 test $ac_status = 0; }; then 7226 pkg_cv_GTKGLEXT_CFLAGS=`$PKG_CONFIG --cflags "gtkglext-1.0 >= 0.7.0" 2>/dev/null` 7227else 7228 pkg_failed=yes 7229fi 7230 else 7231 pkg_failed=untried 7232fi 7233if test -n "$GTKGLEXT_LIBS"; then 7234 pkg_cv_GTKGLEXT_LIBS="$GTKGLEXT_LIBS" 7235 elif test -n "$PKG_CONFIG"; then 7236 if test -n "$PKG_CONFIG" && \ 7237 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtkglext-1.0 >= 0.7.0\""; } >&5 7238 ($PKG_CONFIG --exists --print-errors "gtkglext-1.0 >= 0.7.0") 2>&5 7239 ac_status=$? 7240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7241 test $ac_status = 0; }; then 7242 pkg_cv_GTKGLEXT_LIBS=`$PKG_CONFIG --libs "gtkglext-1.0 >= 0.7.0" 2>/dev/null` 7243else 7244 pkg_failed=yes 7245fi 7246 else 7247 pkg_failed=untried 7248fi 7249 7250 7251 7252if test $pkg_failed = yes; then 7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7254$as_echo "no" >&6; } 7255 7256if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 7257 _pkg_short_errors_supported=yes 7258else 7259 _pkg_short_errors_supported=no 7260fi 7261 if test $_pkg_short_errors_supported = yes; then 7262 GTKGLEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtkglext-1.0 >= 0.7.0" 2>&1` 7263 else 7264 GTKGLEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtkglext-1.0 >= 0.7.0" 2>&1` 7265 fi 7266 # Put the nasty error message in config.log where it belongs 7267 echo "$GTKGLEXT_PKG_ERRORS" >&5 7268 7269 as_fn_error $? "Package requirements (gtkglext-1.0 >= 0.7.0) were not met: 7270 7271$GTKGLEXT_PKG_ERRORS 7272 7273Consider adjusting the PKG_CONFIG_PATH environment variable if you 7274installed software in a non-standard prefix. 7275 7276Alternatively, you may set the environment variables GTKGLEXT_CFLAGS 7277and GTKGLEXT_LIBS to avoid the need to call pkg-config. 7278See the pkg-config man page for more details." "$LINENO" 5 7279elif test $pkg_failed = untried; then 7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7281$as_echo "no" >&6; } 7282 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7283$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7284as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 7285is in your PATH or set the PKG_CONFIG environment variable to the full 7286path to pkg-config. 7287 7288Alternatively, you may set the environment variables GTKGLEXT_CFLAGS 7289and GTKGLEXT_LIBS to avoid the need to call pkg-config. 7290See the pkg-config man page for more details. 7291 7292To get pkg-config, see <http://pkg-config.freedesktop.org/>. 7293See \`config.log' for more details" "$LINENO" 5 ; } 7294else 7295 GTKGLEXT_CFLAGS=$pkg_cv_GTKGLEXT_CFLAGS 7296 GTKGLEXT_LIBS=$pkg_cv_GTKGLEXT_LIBS 7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7298$as_echo "yes" >&6; } 7299 7300fi 7301CFLAGS="$GTKGLEXT_CFLAGS $CFLAGS" 7302LDFLAGS="$GTKGLEXT_LIBS $LDFLAGS" 7303GTKGL_VERSION="$($PKG_CONFIG --modversion gtkglext-1.0)" 7304 7305# Checks for OpenGL. 7306cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7307/* end confdefs.h. */ 7308#include "GL/gl.h" 7309int 7310main () 7311{ 7312glBegin(GL_QUADS); 7313 ; 7314 return 0; 7315} 7316_ACEOF 7317if ac_fn_c_try_link "$LINENO"; then : 7318 ogl="yes" 7319else 7320 ogl="no" 7321fi 7322rm -f core conftest.err conftest.$ac_objext \ 7323 conftest$ac_exeext conftest.$ac_ext 7324 7325if test "x$ogl" = "xno"; then 7326 { $as_echo "$as_me:${as_lineno-$LINENO}: maybe libGL requires libpthread..." >&5 7327$as_echo "$as_me: maybe libGL requires libpthread..." >&6;} 7328 OLD_LDFLAGS="$LDFLAGS" 7329 LDFLAGS="$LDFLAGS -lpthread" 7330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7331/* end confdefs.h. */ 7332#include "GL/gl.h" 7333int 7334main () 7335{ 7336glBegin(GL_QUADS); 7337 ; 7338 return 0; 7339} 7340_ACEOF 7341if ac_fn_c_try_link "$LINENO"; then : 7342 7343else 7344 as_fn_error $? "cannot use -lGL" "$LINENO" 5 7345fi 7346rm -f core conftest.err conftest.$ac_objext \ 7347 conftest$ac_exeext conftest.$ac_ext 7348fi 7349 7350# Checks for gtk. 7351# Check whether --enable-gtktest was given. 7352if test "${enable_gtktest+set}" = set; then : 7353 enableval=$enable_gtktest; 7354else 7355 enable_gtktest=yes 7356fi 7357 7358 7359 pkg_config_args=gtk+-2.0 7360 for module in . gthread 7361 do 7362 case "$module" in 7363 gthread) 7364 pkg_config_args="$pkg_config_args gthread-2.0" 7365 ;; 7366 esac 7367 done 7368 7369 no_gtk="" 7370 7371 # Extract the first word of "pkg-config", so it can be a program name with args. 7372set dummy pkg-config; ac_word=$2 7373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7374$as_echo_n "checking for $ac_word... " >&6; } 7375if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 7376 $as_echo_n "(cached) " >&6 7377else 7378 case $PKG_CONFIG in 7379 [\\/]* | ?:[\\/]*) 7380 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 7381 ;; 7382 *) 7383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7384for as_dir in $PATH 7385do 7386 IFS=$as_save_IFS 7387 test -z "$as_dir" && as_dir=. 7388 for ac_exec_ext in '' $ac_executable_extensions; do 7389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7390 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7392 break 2 7393 fi 7394done 7395 done 7396IFS=$as_save_IFS 7397 7398 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 7399 ;; 7400esac 7401fi 7402PKG_CONFIG=$ac_cv_path_PKG_CONFIG 7403if test -n "$PKG_CONFIG"; then 7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 7405$as_echo "$PKG_CONFIG" >&6; } 7406else 7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7408$as_echo "no" >&6; } 7409fi 7410 7411 7412 7413 if test x$PKG_CONFIG != xno ; then 7414 if pkg-config --atleast-pkgconfig-version 0.7 ; then 7415 : 7416 else 7417 echo "*** pkg-config too old; version 0.7 or better required." 7418 no_gtk=yes 7419 PKG_CONFIG=no 7420 fi 7421 else 7422 no_gtk=yes 7423 fi 7424 7425 min_gtk_version=2.6.0 7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK+ - version >= $min_gtk_version" >&5 7427$as_echo_n "checking for GTK+ - version >= $min_gtk_version... " >&6; } 7428 7429 if test x$PKG_CONFIG != xno ; then 7430 ## don't try to run the test against uninstalled libtool libs 7431 if $PKG_CONFIG --uninstalled $pkg_config_args; then 7432 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" 7433 enable_gtktest=no 7434 fi 7435 7436 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then 7437 : 7438 else 7439 no_gtk=yes 7440 fi 7441 fi 7442 7443 if test x"$no_gtk" = x ; then 7444 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` 7445 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` 7446 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 7447 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 7448 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 7449 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 7450 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 7451 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 7452 if test "x$enable_gtktest" = "xyes" ; then 7453 ac_save_CFLAGS="$CFLAGS" 7454 ac_save_LIBS="$LIBS" 7455 CFLAGS="$CFLAGS $GTK_CFLAGS" 7456 LIBS="$GTK_LIBS $LIBS" 7457 rm -f conf.gtktest 7458 if test "$cross_compiling" = yes; then : 7459 echo $ac_n "cross compiling; assumed OK... $ac_c" 7460else 7461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7462/* end confdefs.h. */ 7463 7464#include <gtk/gtk.h> 7465#include <stdio.h> 7466#include <stdlib.h> 7467 7468int 7469main () 7470{ 7471 int major, minor, micro; 7472 char *tmp_version; 7473 7474 fclose (fopen ("conf.gtktest", "w")); 7475 7476 /* HP/UX 9 (%@#!) writes to sscanf strings */ 7477 tmp_version = g_strdup("$min_gtk_version"); 7478 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 7479 printf("%s, bad version string\n", "$min_gtk_version"); 7480 exit(1); 7481 } 7482 7483 if ((gtk_major_version != $gtk_config_major_version) || 7484 (gtk_minor_version != $gtk_config_minor_version) || 7485 (gtk_micro_version != $gtk_config_micro_version)) 7486 { 7487 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 7488 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, 7489 gtk_major_version, gtk_minor_version, gtk_micro_version); 7490 printf ("*** was found! If pkg-config was correct, then it is best\n"); 7491 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); 7492 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); 7493 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); 7494 printf("*** required on your system.\n"); 7495 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); 7496 printf("*** to point to the correct configuration files\n"); 7497 } 7498 else if ((gtk_major_version != GTK_MAJOR_VERSION) || 7499 (gtk_minor_version != GTK_MINOR_VERSION) || 7500 (gtk_micro_version != GTK_MICRO_VERSION)) 7501 { 7502 printf("*** GTK+ header files (version %d.%d.%d) do not match\n", 7503 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); 7504 printf("*** library (version %d.%d.%d)\n", 7505 gtk_major_version, gtk_minor_version, gtk_micro_version); 7506 } 7507 else 7508 { 7509 if ((gtk_major_version > major) || 7510 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 7511 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) 7512 { 7513 return 0; 7514 } 7515 else 7516 { 7517 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", 7518 gtk_major_version, gtk_minor_version, gtk_micro_version); 7519 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", 7520 major, minor, micro); 7521 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); 7522 printf("***\n"); 7523 printf("*** If you have already installed a sufficiently new version, this error\n"); 7524 printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); 7525 printf("*** being found. The easiest way to fix this is to remove the old version\n"); 7526 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); 7527 printf("*** correct copy of pkg-config. (In this case, you will have to\n"); 7528 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); 7529 printf("*** so that the correct libraries are found at run-time))\n"); 7530 } 7531 } 7532 return 1; 7533} 7534 7535_ACEOF 7536if ac_fn_c_try_run "$LINENO"; then : 7537 7538else 7539 no_gtk=yes 7540fi 7541rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7542 conftest.$ac_objext conftest.beam conftest.$ac_ext 7543fi 7544 7545 CFLAGS="$ac_save_CFLAGS" 7546 LIBS="$ac_save_LIBS" 7547 fi 7548 fi 7549 if test "x$no_gtk" = x ; then 7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 7551$as_echo "yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; } 7552 7553 CFLAGS="$GTK_CFLAGS $CFLAGS" 7554 LDFLAGS="$GTK_LIBS $LDFLAGS" 7555 GTK_VERSION="$($PKG_CONFIG --modversion gtk+-2.0)" 7556 7557 else 7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7559$as_echo "no" >&6; } 7560 if test "$PKG_CONFIG" = "no" ; then 7561 echo "*** A new enough version of pkg-config was not found." 7562 echo "*** See http://pkgconfig.sourceforge.net" 7563 else 7564 if test -f conf.gtktest ; then 7565 : 7566 else 7567 echo "*** Could not run GTK+ test program, checking why..." 7568 ac_save_CFLAGS="$CFLAGS" 7569 ac_save_LIBS="$LIBS" 7570 CFLAGS="$CFLAGS $GTK_CFLAGS" 7571 LIBS="$LIBS $GTK_LIBS" 7572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7573/* end confdefs.h. */ 7574 7575#include <gtk/gtk.h> 7576#include <stdio.h> 7577 7578int 7579main () 7580{ 7581 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 7582 ; 7583 return 0; 7584} 7585_ACEOF 7586if ac_fn_c_try_link "$LINENO"; then : 7587 echo "*** The test program compiled, but did not run. This usually means" 7588 echo "*** that the run-time linker is not finding GTK+ or finding the wrong" 7589 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" 7590 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 7591 echo "*** to the installed location Also, make sure you have run ldconfig if that" 7592 echo "*** is required on your system" 7593 echo "***" 7594 echo "*** If you have an old version installed, it is best to remove it, although" 7595 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 7596else 7597 echo "*** The test program failed to compile or link. See the file config.log for the" 7598 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." 7599fi 7600rm -f core conftest.err conftest.$ac_objext \ 7601 conftest$ac_exeext conftest.$ac_ext 7602 CFLAGS="$ac_save_CFLAGS" 7603 LIBS="$ac_save_LIBS" 7604 fi 7605 fi 7606 GTK_CFLAGS="" 7607 GTK_LIBS="" 7608 exit 1 7609 fi 7610 7611 7612 rm -f conf.gtktest 7613 7614 7615# I18n. 7616ALL_LINGUAS=$(echo po/*.po | sed -e 's|\.po||g' -e 's|po/||g') 7617 7618 7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 7620$as_echo_n "checking whether NLS is requested... " >&6; } 7621 # Check whether --enable-nls was given. 7622if test "${enable_nls+set}" = set; then : 7623 enableval=$enable_nls; USE_NLS=$enableval 7624else 7625 USE_NLS=yes 7626fi 7627 7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 7629$as_echo "$USE_NLS" >&6; } 7630 7631 7632 7633 7634 GETTEXT_MACRO_VERSION=0.18 7635 7636 7637 7638 7639# Prepare PATH_SEPARATOR. 7640# The user is always right. 7641if test "${PATH_SEPARATOR+set}" != set; then 7642 echo "#! /bin/sh" >conf$$.sh 7643 echo "exit 0" >>conf$$.sh 7644 chmod +x conf$$.sh 7645 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 7646 PATH_SEPARATOR=';' 7647 else 7648 PATH_SEPARATOR=: 7649 fi 7650 rm -f conf$$.sh 7651fi 7652 7653# Find out how to test for executable files. Don't use a zero-byte file, 7654# as systems may use methods other than mode bits to determine executability. 7655cat >conf$$.file <<_ASEOF 7656#! /bin/sh 7657exit 0 7658_ASEOF 7659chmod +x conf$$.file 7660if test -x conf$$.file >/dev/null 2>&1; then 7661 ac_executable_p="test -x" 7662else 7663 ac_executable_p="test -f" 7664fi 7665rm -f conf$$.file 7666 7667# Extract the first word of "msgfmt", so it can be a program name with args. 7668set dummy msgfmt; ac_word=$2 7669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7670$as_echo_n "checking for $ac_word... " >&6; } 7671if test "${ac_cv_path_MSGFMT+set}" = set; then : 7672 $as_echo_n "(cached) " >&6 7673else 7674 case "$MSGFMT" in 7675 [\\/]* | ?:[\\/]*) 7676 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 7677 ;; 7678 *) 7679 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 7680 for ac_dir in $PATH; do 7681 IFS="$ac_save_IFS" 7682 test -z "$ac_dir" && ac_dir=. 7683 for ac_exec_ext in '' $ac_executable_extensions; do 7684 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 7685 echo "$as_me: trying $ac_dir/$ac_word..." >&5 7686 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && 7687 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 7688 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 7689 break 2 7690 fi 7691 fi 7692 done 7693 done 7694 IFS="$ac_save_IFS" 7695 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 7696 ;; 7697esac 7698fi 7699MSGFMT="$ac_cv_path_MSGFMT" 7700if test "$MSGFMT" != ":"; then 7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 7702$as_echo "$MSGFMT" >&6; } 7703else 7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7705$as_echo "no" >&6; } 7706fi 7707 7708 # Extract the first word of "gmsgfmt", so it can be a program name with args. 7709set dummy gmsgfmt; ac_word=$2 7710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7711$as_echo_n "checking for $ac_word... " >&6; } 7712if test "${ac_cv_path_GMSGFMT+set}" = set; then : 7713 $as_echo_n "(cached) " >&6 7714else 7715 case $GMSGFMT in 7716 [\\/]* | ?:[\\/]*) 7717 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 7718 ;; 7719 *) 7720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7721for as_dir in $PATH 7722do 7723 IFS=$as_save_IFS 7724 test -z "$as_dir" && as_dir=. 7725 for ac_exec_ext in '' $ac_executable_extensions; do 7726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7727 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 7728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7729 break 2 7730 fi 7731done 7732 done 7733IFS=$as_save_IFS 7734 7735 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 7736 ;; 7737esac 7738fi 7739GMSGFMT=$ac_cv_path_GMSGFMT 7740if test -n "$GMSGFMT"; then 7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 7742$as_echo "$GMSGFMT" >&6; } 7743else 7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7745$as_echo "no" >&6; } 7746fi 7747 7748 7749 7750 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 7751 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; 7752 *) MSGFMT_015=$MSGFMT ;; 7753 esac 7754 7755 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 7756 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; 7757 *) GMSGFMT_015=$GMSGFMT ;; 7758 esac 7759 7760 7761 7762# Prepare PATH_SEPARATOR. 7763# The user is always right. 7764if test "${PATH_SEPARATOR+set}" != set; then 7765 echo "#! /bin/sh" >conf$$.sh 7766 echo "exit 0" >>conf$$.sh 7767 chmod +x conf$$.sh 7768 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 7769 PATH_SEPARATOR=';' 7770 else 7771 PATH_SEPARATOR=: 7772 fi 7773 rm -f conf$$.sh 7774fi 7775 7776# Find out how to test for executable files. Don't use a zero-byte file, 7777# as systems may use methods other than mode bits to determine executability. 7778cat >conf$$.file <<_ASEOF 7779#! /bin/sh 7780exit 0 7781_ASEOF 7782chmod +x conf$$.file 7783if test -x conf$$.file >/dev/null 2>&1; then 7784 ac_executable_p="test -x" 7785else 7786 ac_executable_p="test -f" 7787fi 7788rm -f conf$$.file 7789 7790# Extract the first word of "xgettext", so it can be a program name with args. 7791set dummy xgettext; ac_word=$2 7792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7793$as_echo_n "checking for $ac_word... " >&6; } 7794if test "${ac_cv_path_XGETTEXT+set}" = set; then : 7795 $as_echo_n "(cached) " >&6 7796else 7797 case "$XGETTEXT" in 7798 [\\/]* | ?:[\\/]*) 7799 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 7800 ;; 7801 *) 7802 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 7803 for ac_dir in $PATH; do 7804 IFS="$ac_save_IFS" 7805 test -z "$ac_dir" && ac_dir=. 7806 for ac_exec_ext in '' $ac_executable_extensions; do 7807 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 7808 echo "$as_me: trying $ac_dir/$ac_word..." >&5 7809 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && 7810 (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 7811 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 7812 break 2 7813 fi 7814 fi 7815 done 7816 done 7817 IFS="$ac_save_IFS" 7818 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 7819 ;; 7820esac 7821fi 7822XGETTEXT="$ac_cv_path_XGETTEXT" 7823if test "$XGETTEXT" != ":"; then 7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 7825$as_echo "$XGETTEXT" >&6; } 7826else 7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7828$as_echo "no" >&6; } 7829fi 7830 7831 rm -f messages.po 7832 7833 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 7834 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; 7835 *) XGETTEXT_015=$XGETTEXT ;; 7836 esac 7837 7838 7839 7840# Prepare PATH_SEPARATOR. 7841# The user is always right. 7842if test "${PATH_SEPARATOR+set}" != set; then 7843 echo "#! /bin/sh" >conf$$.sh 7844 echo "exit 0" >>conf$$.sh 7845 chmod +x conf$$.sh 7846 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 7847 PATH_SEPARATOR=';' 7848 else 7849 PATH_SEPARATOR=: 7850 fi 7851 rm -f conf$$.sh 7852fi 7853 7854# Find out how to test for executable files. Don't use a zero-byte file, 7855# as systems may use methods other than mode bits to determine executability. 7856cat >conf$$.file <<_ASEOF 7857#! /bin/sh 7858exit 0 7859_ASEOF 7860chmod +x conf$$.file 7861if test -x conf$$.file >/dev/null 2>&1; then 7862 ac_executable_p="test -x" 7863else 7864 ac_executable_p="test -f" 7865fi 7866rm -f conf$$.file 7867 7868# Extract the first word of "msgmerge", so it can be a program name with args. 7869set dummy msgmerge; ac_word=$2 7870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7871$as_echo_n "checking for $ac_word... " >&6; } 7872if test "${ac_cv_path_MSGMERGE+set}" = set; then : 7873 $as_echo_n "(cached) " >&6 7874else 7875 case "$MSGMERGE" in 7876 [\\/]* | ?:[\\/]*) 7877 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 7878 ;; 7879 *) 7880 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 7881 for ac_dir in $PATH; do 7882 IFS="$ac_save_IFS" 7883 test -z "$ac_dir" && ac_dir=. 7884 for ac_exec_ext in '' $ac_executable_extensions; do 7885 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 7886 echo "$as_me: trying $ac_dir/$ac_word..." >&5 7887 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then 7888 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 7889 break 2 7890 fi 7891 fi 7892 done 7893 done 7894 IFS="$ac_save_IFS" 7895 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 7896 ;; 7897esac 7898fi 7899MSGMERGE="$ac_cv_path_MSGMERGE" 7900if test "$MSGMERGE" != ":"; then 7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 7902$as_echo "$MSGMERGE" >&6; } 7903else 7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7905$as_echo "no" >&6; } 7906fi 7907 7908 7909 test -n "$localedir" || localedir='${datadir}/locale' 7910 7911 7912 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= 7913 7914 7915 ac_config_commands="$ac_config_commands po-directories" 7916 7917 7918# Make sure we can run config.sub. 7919$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 7920 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 7921 7922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 7923$as_echo_n "checking build system type... " >&6; } 7924if test "${ac_cv_build+set}" = set; then : 7925 $as_echo_n "(cached) " >&6 7926else 7927 ac_build_alias=$build_alias 7928test "x$ac_build_alias" = x && 7929 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 7930test "x$ac_build_alias" = x && 7931 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 7932ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 7933 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 7934 7935fi 7936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 7937$as_echo "$ac_cv_build" >&6; } 7938case $ac_cv_build in 7939*-*-*) ;; 7940*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;; 7941esac 7942build=$ac_cv_build 7943ac_save_IFS=$IFS; IFS='-' 7944set x $ac_cv_build 7945shift 7946build_cpu=$1 7947build_vendor=$2 7948shift; shift 7949# Remember, the first character of IFS is used to create $*, 7950# except with old shells: 7951build_os=$* 7952IFS=$ac_save_IFS 7953case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 7954 7955 7956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 7957$as_echo_n "checking host system type... " >&6; } 7958if test "${ac_cv_host+set}" = set; then : 7959 $as_echo_n "(cached) " >&6 7960else 7961 if test "x$host_alias" = x; then 7962 ac_cv_host=$ac_cv_build 7963else 7964 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 7965 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 7966fi 7967 7968fi 7969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 7970$as_echo "$ac_cv_host" >&6; } 7971case $ac_cv_host in 7972*-*-*) ;; 7973*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;; 7974esac 7975host=$ac_cv_host 7976ac_save_IFS=$IFS; IFS='-' 7977set x $ac_cv_host 7978shift 7979host_cpu=$1 7980host_vendor=$2 7981shift; shift 7982# Remember, the first character of IFS is used to create $*, 7983# except with old shells: 7984host_os=$* 7985IFS=$ac_save_IFS 7986case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 7987 7988 7989 7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5 7991$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; } 7992if test "${ac_cv_gnu_library_2+set}" = set; then : 7993 $as_echo_n "(cached) " >&6 7994else 7995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7996/* end confdefs.h. */ 7997 7998#include <features.h> 7999#ifdef __GNU_LIBRARY__ 8000 #if (__GLIBC__ >= 2) 8001 Lucky GNU user 8002 #endif 8003#endif 8004 8005_ACEOF 8006if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8007 $EGREP "Lucky GNU user" >/dev/null 2>&1; then : 8008 ac_cv_gnu_library_2=yes 8009else 8010 ac_cv_gnu_library_2=no 8011fi 8012rm -f conftest* 8013 8014 8015 8016fi 8017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5 8018$as_echo "$ac_cv_gnu_library_2" >&6; } 8019 8020 GLIBC2="$ac_cv_gnu_library_2" 8021 8022 8023 8024 8025 CFLAG_VISIBILITY= 8026 HAVE_VISIBILITY=0 8027 if test -n "$GCC"; then 8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 8029$as_echo_n "checking whether the -Werror option is usable... " >&6; } 8030 if test "${gl_cv_cc_vis_werror+set}" = set; then : 8031 $as_echo_n "(cached) " >&6 8032else 8033 8034 gl_save_CFLAGS="$CFLAGS" 8035 CFLAGS="$CFLAGS -Werror" 8036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8037/* end confdefs.h. */ 8038 8039int 8040main () 8041{ 8042 8043 ; 8044 return 0; 8045} 8046_ACEOF 8047if ac_fn_c_try_compile "$LINENO"; then : 8048 gl_cv_cc_vis_werror=yes 8049else 8050 gl_cv_cc_vis_werror=no 8051fi 8052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8053 CFLAGS="$gl_save_CFLAGS" 8054fi 8055 8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5 8057$as_echo "$gl_cv_cc_vis_werror" >&6; } 8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 8059$as_echo_n "checking for simple visibility declarations... " >&6; } 8060 if test "${gl_cv_cc_visibility+set}" = set; then : 8061 $as_echo_n "(cached) " >&6 8062else 8063 8064 gl_save_CFLAGS="$CFLAGS" 8065 CFLAGS="$CFLAGS -fvisibility=hidden" 8066 if test $gl_cv_cc_vis_werror = yes; then 8067 CFLAGS="$CFLAGS -Werror" 8068 fi 8069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8070/* end confdefs.h. */ 8071extern __attribute__((__visibility__("hidden"))) int hiddenvar; 8072 extern __attribute__((__visibility__("default"))) int exportedvar; 8073 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); 8074 extern __attribute__((__visibility__("default"))) int exportedfunc (void); 8075 void dummyfunc (void) {} 8076int 8077main () 8078{ 8079 8080 ; 8081 return 0; 8082} 8083_ACEOF 8084if ac_fn_c_try_compile "$LINENO"; then : 8085 gl_cv_cc_visibility=yes 8086else 8087 gl_cv_cc_visibility=no 8088fi 8089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8090 CFLAGS="$gl_save_CFLAGS" 8091fi 8092 8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 8094$as_echo "$gl_cv_cc_visibility" >&6; } 8095 if test $gl_cv_cc_visibility = yes; then 8096 CFLAG_VISIBILITY="-fvisibility=hidden" 8097 HAVE_VISIBILITY=1 8098 fi 8099 fi 8100 8101 8102 8103cat >>confdefs.h <<_ACEOF 8104#define HAVE_VISIBILITY $HAVE_VISIBILITY 8105_ACEOF 8106 8107 8108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 8109$as_echo_n "checking for inline... " >&6; } 8110if test "${ac_cv_c_inline+set}" = set; then : 8111 $as_echo_n "(cached) " >&6 8112else 8113 ac_cv_c_inline=no 8114for ac_kw in inline __inline__ __inline; do 8115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8116/* end confdefs.h. */ 8117#ifndef __cplusplus 8118typedef int foo_t; 8119static $ac_kw foo_t static_foo () {return 0; } 8120$ac_kw foo_t foo () {return 0; } 8121#endif 8122 8123_ACEOF 8124if ac_fn_c_try_compile "$LINENO"; then : 8125 ac_cv_c_inline=$ac_kw 8126fi 8127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8128 test "$ac_cv_c_inline" != no && break 8129done 8130 8131fi 8132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 8133$as_echo "$ac_cv_c_inline" >&6; } 8134 8135case $ac_cv_c_inline in 8136 inline | yes) ;; 8137 *) 8138 case $ac_cv_c_inline in 8139 no) ac_val=;; 8140 *) ac_val=$ac_cv_c_inline;; 8141 esac 8142 cat >>confdefs.h <<_ACEOF 8143#ifndef __cplusplus 8144#define inline $ac_val 8145#endif 8146_ACEOF 8147 ;; 8148esac 8149 8150ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 8151if test "x$ac_cv_type_size_t" = x""yes; then : 8152 8153else 8154 8155cat >>confdefs.h <<_ACEOF 8156#define size_t unsigned int 8157_ACEOF 8158 8159fi 8160 8161 8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 8163$as_echo_n "checking for stdint.h... " >&6; } 8164if test "${gl_cv_header_stdint_h+set}" = set; then : 8165 $as_echo_n "(cached) " >&6 8166else 8167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8168/* end confdefs.h. */ 8169#include <sys/types.h> 8170#include <stdint.h> 8171int 8172main () 8173{ 8174uintmax_t i = (uintmax_t) -1; return !i; 8175 ; 8176 return 0; 8177} 8178_ACEOF 8179if ac_fn_c_try_compile "$LINENO"; then : 8180 gl_cv_header_stdint_h=yes 8181else 8182 gl_cv_header_stdint_h=no 8183fi 8184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8185fi 8186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5 8187$as_echo "$gl_cv_header_stdint_h" >&6; } 8188 if test $gl_cv_header_stdint_h = yes; then 8189 8190cat >>confdefs.h <<_ACEOF 8191#define HAVE_STDINT_H_WITH_UINTMAX 1 8192_ACEOF 8193 8194 fi 8195 8196# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 8197# for constant arguments. Useless! 8198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 8199$as_echo_n "checking for working alloca.h... " >&6; } 8200if test "${ac_cv_working_alloca_h+set}" = set; then : 8201 $as_echo_n "(cached) " >&6 8202else 8203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8204/* end confdefs.h. */ 8205#include <alloca.h> 8206int 8207main () 8208{ 8209char *p = (char *) alloca (2 * sizeof (int)); 8210 if (p) return 0; 8211 ; 8212 return 0; 8213} 8214_ACEOF 8215if ac_fn_c_try_link "$LINENO"; then : 8216 ac_cv_working_alloca_h=yes 8217else 8218 ac_cv_working_alloca_h=no 8219fi 8220rm -f core conftest.err conftest.$ac_objext \ 8221 conftest$ac_exeext conftest.$ac_ext 8222fi 8223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 8224$as_echo "$ac_cv_working_alloca_h" >&6; } 8225if test $ac_cv_working_alloca_h = yes; then 8226 8227$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 8228 8229fi 8230 8231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 8232$as_echo_n "checking for alloca... " >&6; } 8233if test "${ac_cv_func_alloca_works+set}" = set; then : 8234 $as_echo_n "(cached) " >&6 8235else 8236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8237/* end confdefs.h. */ 8238#ifdef __GNUC__ 8239# define alloca __builtin_alloca 8240#else 8241# ifdef _MSC_VER 8242# include <malloc.h> 8243# define alloca _alloca 8244# else 8245# ifdef HAVE_ALLOCA_H 8246# include <alloca.h> 8247# else 8248# ifdef _AIX 8249 #pragma alloca 8250# else 8251# ifndef alloca /* predefined by HP cc +Olibcalls */ 8252char *alloca (); 8253# endif 8254# endif 8255# endif 8256# endif 8257#endif 8258 8259int 8260main () 8261{ 8262char *p = (char *) alloca (1); 8263 if (p) return 0; 8264 ; 8265 return 0; 8266} 8267_ACEOF 8268if ac_fn_c_try_link "$LINENO"; then : 8269 ac_cv_func_alloca_works=yes 8270else 8271 ac_cv_func_alloca_works=no 8272fi 8273rm -f core conftest.err conftest.$ac_objext \ 8274 conftest$ac_exeext conftest.$ac_ext 8275fi 8276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 8277$as_echo "$ac_cv_func_alloca_works" >&6; } 8278 8279if test $ac_cv_func_alloca_works = yes; then 8280 8281$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 8282 8283else 8284 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 8285# that cause trouble. Some versions do not even contain alloca or 8286# contain a buggy version. If you still want to use their alloca, 8287# use ar to extract alloca.o from them instead of compiling alloca.c. 8288 8289ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 8290 8291$as_echo "#define C_ALLOCA 1" >>confdefs.h 8292 8293 8294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 8295$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 8296if test "${ac_cv_os_cray+set}" = set; then : 8297 $as_echo_n "(cached) " >&6 8298else 8299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8300/* end confdefs.h. */ 8301#if defined CRAY && ! defined CRAY2 8302webecray 8303#else 8304wenotbecray 8305#endif 8306 8307_ACEOF 8308if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8309 $EGREP "webecray" >/dev/null 2>&1; then : 8310 ac_cv_os_cray=yes 8311else 8312 ac_cv_os_cray=no 8313fi 8314rm -f conftest* 8315 8316fi 8317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 8318$as_echo "$ac_cv_os_cray" >&6; } 8319if test $ac_cv_os_cray = yes; then 8320 for ac_func in _getb67 GETB67 getb67; do 8321 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8322ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8323if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 8324 8325cat >>confdefs.h <<_ACEOF 8326#define CRAY_STACKSEG_END $ac_func 8327_ACEOF 8328 8329 break 8330fi 8331 8332 done 8333fi 8334 8335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 8336$as_echo_n "checking stack direction for C alloca... " >&6; } 8337if test "${ac_cv_c_stack_direction+set}" = set; then : 8338 $as_echo_n "(cached) " >&6 8339else 8340 if test "$cross_compiling" = yes; then : 8341 ac_cv_c_stack_direction=0 8342else 8343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8344/* end confdefs.h. */ 8345$ac_includes_default 8346int 8347find_stack_direction () 8348{ 8349 static char *addr = 0; 8350 auto char dummy; 8351 if (addr == 0) 8352 { 8353 addr = &dummy; 8354 return find_stack_direction (); 8355 } 8356 else 8357 return (&dummy > addr) ? 1 : -1; 8358} 8359 8360int 8361main () 8362{ 8363 return find_stack_direction () < 0; 8364} 8365_ACEOF 8366if ac_fn_c_try_run "$LINENO"; then : 8367 ac_cv_c_stack_direction=1 8368else 8369 ac_cv_c_stack_direction=-1 8370fi 8371rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8372 conftest.$ac_objext conftest.beam conftest.$ac_ext 8373fi 8374 8375fi 8376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 8377$as_echo "$ac_cv_c_stack_direction" >&6; } 8378cat >>confdefs.h <<_ACEOF 8379#define STACK_DIRECTION $ac_cv_c_stack_direction 8380_ACEOF 8381 8382 8383fi 8384 8385 8386 8387 8388 for ac_header in $ac_header_list 8389do : 8390 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8391ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8392" 8393if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8394 cat >>confdefs.h <<_ACEOF 8395#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8396_ACEOF 8397 8398fi 8399 8400done 8401 8402 8403 8404 8405 8406 8407 8408 8409for ac_func in getpagesize 8410do : 8411 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 8412if test "x$ac_cv_func_getpagesize" = x""yes; then : 8413 cat >>confdefs.h <<_ACEOF 8414#define HAVE_GETPAGESIZE 1 8415_ACEOF 8416 8417fi 8418done 8419 8420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 8421$as_echo_n "checking for working mmap... " >&6; } 8422if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : 8423 $as_echo_n "(cached) " >&6 8424else 8425 if test "$cross_compiling" = yes; then : 8426 ac_cv_func_mmap_fixed_mapped=no 8427else 8428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8429/* end confdefs.h. */ 8430$ac_includes_default 8431/* malloc might have been renamed as rpl_malloc. */ 8432#undef malloc 8433 8434/* Thanks to Mike Haertel and Jim Avera for this test. 8435 Here is a matrix of mmap possibilities: 8436 mmap private not fixed 8437 mmap private fixed at somewhere currently unmapped 8438 mmap private fixed at somewhere already mapped 8439 mmap shared not fixed 8440 mmap shared fixed at somewhere currently unmapped 8441 mmap shared fixed at somewhere already mapped 8442 For private mappings, we should verify that changes cannot be read() 8443 back from the file, nor mmap's back from the file at a different 8444 address. (There have been systems where private was not correctly 8445 implemented like the infamous i386 svr4.0, and systems where the 8446 VM page cache was not coherent with the file system buffer cache 8447 like early versions of FreeBSD and possibly contemporary NetBSD.) 8448 For shared mappings, we should conversely verify that changes get 8449 propagated back to all the places they're supposed to be. 8450 8451 Grep wants private fixed already mapped. 8452 The main things grep needs to know about mmap are: 8453 * does it exist and is it safe to write into the mmap'd area 8454 * how to use it (BSD variants) */ 8455 8456#include <fcntl.h> 8457#include <sys/mman.h> 8458 8459#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 8460char *malloc (); 8461#endif 8462 8463/* This mess was copied from the GNU getpagesize.h. */ 8464#ifndef HAVE_GETPAGESIZE 8465# ifdef _SC_PAGESIZE 8466# define getpagesize() sysconf(_SC_PAGESIZE) 8467# else /* no _SC_PAGESIZE */ 8468# ifdef HAVE_SYS_PARAM_H 8469# include <sys/param.h> 8470# ifdef EXEC_PAGESIZE 8471# define getpagesize() EXEC_PAGESIZE 8472# else /* no EXEC_PAGESIZE */ 8473# ifdef NBPG 8474# define getpagesize() NBPG * CLSIZE 8475# ifndef CLSIZE 8476# define CLSIZE 1 8477# endif /* no CLSIZE */ 8478# else /* no NBPG */ 8479# ifdef NBPC 8480# define getpagesize() NBPC 8481# else /* no NBPC */ 8482# ifdef PAGESIZE 8483# define getpagesize() PAGESIZE 8484# endif /* PAGESIZE */ 8485# endif /* no NBPC */ 8486# endif /* no NBPG */ 8487# endif /* no EXEC_PAGESIZE */ 8488# else /* no HAVE_SYS_PARAM_H */ 8489# define getpagesize() 8192 /* punt totally */ 8490# endif /* no HAVE_SYS_PARAM_H */ 8491# endif /* no _SC_PAGESIZE */ 8492 8493#endif /* no HAVE_GETPAGESIZE */ 8494 8495int 8496main () 8497{ 8498 char *data, *data2, *data3; 8499 const char *cdata2; 8500 int i, pagesize; 8501 int fd, fd2; 8502 8503 pagesize = getpagesize (); 8504 8505 /* First, make a file with some known garbage in it. */ 8506 data = (char *) malloc (pagesize); 8507 if (!data) 8508 return 1; 8509 for (i = 0; i < pagesize; ++i) 8510 *(data + i) = rand (); 8511 umask (0); 8512 fd = creat ("conftest.mmap", 0600); 8513 if (fd < 0) 8514 return 2; 8515 if (write (fd, data, pagesize) != pagesize) 8516 return 3; 8517 close (fd); 8518 8519 /* Next, check that the tail of a page is zero-filled. File must have 8520 non-zero length, otherwise we risk SIGBUS for entire page. */ 8521 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 8522 if (fd2 < 0) 8523 return 4; 8524 cdata2 = ""; 8525 if (write (fd2, cdata2, 1) != 1) 8526 return 5; 8527 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 8528 if (data2 == MAP_FAILED) 8529 return 6; 8530 for (i = 0; i < pagesize; ++i) 8531 if (*(data2 + i)) 8532 return 7; 8533 close (fd2); 8534 if (munmap (data2, pagesize)) 8535 return 8; 8536 8537 /* Next, try to mmap the file at a fixed address which already has 8538 something else allocated at it. If we can, also make sure that 8539 we see the same garbage. */ 8540 fd = open ("conftest.mmap", O_RDWR); 8541 if (fd < 0) 8542 return 9; 8543 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 8544 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 8545 return 10; 8546 for (i = 0; i < pagesize; ++i) 8547 if (*(data + i) != *(data2 + i)) 8548 return 11; 8549 8550 /* Finally, make sure that changes to the mapped area do not 8551 percolate back to the file as seen by read(). (This is a bug on 8552 some variants of i386 svr4.0.) */ 8553 for (i = 0; i < pagesize; ++i) 8554 *(data2 + i) = *(data2 + i) + 1; 8555 data3 = (char *) malloc (pagesize); 8556 if (!data3) 8557 return 12; 8558 if (read (fd, data3, pagesize) != pagesize) 8559 return 13; 8560 for (i = 0; i < pagesize; ++i) 8561 if (*(data + i) != *(data3 + i)) 8562 return 14; 8563 close (fd); 8564 return 0; 8565} 8566_ACEOF 8567if ac_fn_c_try_run "$LINENO"; then : 8568 ac_cv_func_mmap_fixed_mapped=yes 8569else 8570 ac_cv_func_mmap_fixed_mapped=no 8571fi 8572rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8573 conftest.$ac_objext conftest.beam conftest.$ac_ext 8574fi 8575 8576fi 8577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 8578$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 8579if test $ac_cv_func_mmap_fixed_mapped = yes; then 8580 8581$as_echo "#define HAVE_MMAP 1" >>confdefs.h 8582 8583fi 8584rm -f conftest.mmap conftest.txt 8585 8586 8587 8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5 8589$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; } 8590if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then : 8591 $as_echo_n "(cached) " >&6 8592else 8593 8594 gt_cv_int_divbyzero_sigfpe= 8595 case "$host_os" in 8596 macos* | darwin[6-9]* | darwin[1-9][0-9]*) 8597 # On MacOS X 10.2 or newer, just assume the same as when cross- 8598 # compiling. If we were to perform the real test, 1 Crash Report 8599 # dialog window would pop up. 8600 case "$host_cpu" in 8601 i[34567]86 | x86_64) 8602 gt_cv_int_divbyzero_sigfpe="guessing yes" ;; 8603 esac 8604 ;; 8605 esac 8606 if test -z "$gt_cv_int_divbyzero_sigfpe"; then 8607 if test "$cross_compiling" = yes; then : 8608 8609 # Guess based on the CPU. 8610 case "$host_cpu" in 8611 alpha* | i[34567]86 | x86_64 | m68k | s390*) 8612 gt_cv_int_divbyzero_sigfpe="guessing yes";; 8613 *) 8614 gt_cv_int_divbyzero_sigfpe="guessing no";; 8615 esac 8616 8617else 8618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8619/* end confdefs.h. */ 8620 8621#include <stdlib.h> 8622#include <signal.h> 8623 8624static void 8625sigfpe_handler (int sig) 8626{ 8627 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ 8628 exit (sig != SIGFPE); 8629} 8630 8631int x = 1; 8632int y = 0; 8633int z; 8634int nan; 8635 8636int main () 8637{ 8638 signal (SIGFPE, sigfpe_handler); 8639/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ 8640#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) 8641 signal (SIGTRAP, sigfpe_handler); 8642#endif 8643/* Linux/SPARC yields signal SIGILL. */ 8644#if defined (__sparc__) && defined (__linux__) 8645 signal (SIGILL, sigfpe_handler); 8646#endif 8647 8648 z = x / y; 8649 nan = y / y; 8650 exit (1); 8651} 8652 8653_ACEOF 8654if ac_fn_c_try_run "$LINENO"; then : 8655 gt_cv_int_divbyzero_sigfpe=yes 8656else 8657 gt_cv_int_divbyzero_sigfpe=no 8658fi 8659rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8660 conftest.$ac_objext conftest.beam conftest.$ac_ext 8661fi 8662 8663 fi 8664 8665fi 8666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5 8667$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; } 8668 case "$gt_cv_int_divbyzero_sigfpe" in 8669 *yes) value=1;; 8670 *) value=0;; 8671 esac 8672 8673cat >>confdefs.h <<_ACEOF 8674#define INTDIV0_RAISES_SIGFPE $value 8675_ACEOF 8676 8677 8678 8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 8680$as_echo_n "checking for inttypes.h... " >&6; } 8681if test "${gl_cv_header_inttypes_h+set}" = set; then : 8682 $as_echo_n "(cached) " >&6 8683else 8684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8685/* end confdefs.h. */ 8686#include <sys/types.h> 8687#include <inttypes.h> 8688int 8689main () 8690{ 8691uintmax_t i = (uintmax_t) -1; return !i; 8692 ; 8693 return 0; 8694} 8695_ACEOF 8696if ac_fn_c_try_compile "$LINENO"; then : 8697 gl_cv_header_inttypes_h=yes 8698else 8699 gl_cv_header_inttypes_h=no 8700fi 8701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8702fi 8703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5 8704$as_echo "$gl_cv_header_inttypes_h" >&6; } 8705 if test $gl_cv_header_inttypes_h = yes; then 8706 8707cat >>confdefs.h <<_ACEOF 8708#define HAVE_INTTYPES_H_WITH_UINTMAX 1 8709_ACEOF 8710 8711 fi 8712 8713 8714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 8715$as_echo_n "checking for unsigned long long int... " >&6; } 8716if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then : 8717 $as_echo_n "(cached) " >&6 8718else 8719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8720/* end confdefs.h. */ 8721 8722 /* For now, do not test the preprocessor; as of 2007 there are too many 8723 implementations with broken preprocessors. Perhaps this can 8724 be revisited in 2012. In the meantime, code should not expect 8725 #if to work with literals wider than 32 bits. */ 8726 /* Test literals. */ 8727 long long int ll = 9223372036854775807ll; 8728 long long int nll = -9223372036854775807LL; 8729 unsigned long long int ull = 18446744073709551615ULL; 8730 /* Test constant expressions. */ 8731 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 8732 ? 1 : -1)]; 8733 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 8734 ? 1 : -1)]; 8735 int i = 63; 8736int 8737main () 8738{ 8739/* Test availability of runtime routines for shift and division. */ 8740 long long int llmax = 9223372036854775807ll; 8741 unsigned long long int ullmax = 18446744073709551615ull; 8742 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 8743 | (llmax / ll) | (llmax % ll) 8744 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 8745 | (ullmax / ull) | (ullmax % ull)); 8746 ; 8747 return 0; 8748} 8749 8750_ACEOF 8751if ac_fn_c_try_link "$LINENO"; then : 8752 ac_cv_type_unsigned_long_long_int=yes 8753else 8754 ac_cv_type_unsigned_long_long_int=no 8755fi 8756rm -f core conftest.err conftest.$ac_objext \ 8757 conftest$ac_exeext conftest.$ac_ext 8758fi 8759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 8760$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 8761 if test $ac_cv_type_unsigned_long_long_int = yes; then 8762 8763$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 8764 8765 fi 8766 8767 8768 8769 8770 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then 8771 8772 test $ac_cv_type_unsigned_long_long_int = yes \ 8773 && ac_type='unsigned long long' \ 8774 || ac_type='unsigned long' 8775 8776cat >>confdefs.h <<_ACEOF 8777#define uintmax_t $ac_type 8778_ACEOF 8779 8780 else 8781 8782$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h 8783 8784 fi 8785 8786 8787 for ac_header in inttypes.h 8788do : 8789 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" 8790if test "x$ac_cv_header_inttypes_h" = x""yes; then : 8791 cat >>confdefs.h <<_ACEOF 8792#define HAVE_INTTYPES_H 1 8793_ACEOF 8794 8795fi 8796 8797done 8798 8799 if test $ac_cv_header_inttypes_h = yes; then 8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5 8801$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } 8802if test "${gt_cv_inttypes_pri_broken+set}" = set; then : 8803 $as_echo_n "(cached) " >&6 8804else 8805 8806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8807/* end confdefs.h. */ 8808#include <inttypes.h> 8809#ifdef PRId32 8810char *p = PRId32; 8811#endif 8812 8813int 8814main () 8815{ 8816 8817 ; 8818 return 0; 8819} 8820_ACEOF 8821if ac_fn_c_try_compile "$LINENO"; then : 8822 gt_cv_inttypes_pri_broken=no 8823else 8824 gt_cv_inttypes_pri_broken=yes 8825fi 8826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8827 8828fi 8829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5 8830$as_echo "$gt_cv_inttypes_pri_broken" >&6; } 8831 fi 8832 if test "$gt_cv_inttypes_pri_broken" = yes; then 8833 8834cat >>confdefs.h <<_ACEOF 8835#define PRI_MACROS_BROKEN 1 8836_ACEOF 8837 8838 PRI_MACROS_BROKEN=1 8839 else 8840 PRI_MACROS_BROKEN=0 8841 fi 8842 8843 8844 8845 8846 8847 8848 8849 # Check whether --enable-threads was given. 8850if test "${enable_threads+set}" = set; then : 8851 enableval=$enable_threads; gl_use_threads=$enableval 8852else 8853 if test -n "$gl_use_threads_default"; then 8854 gl_use_threads="$gl_use_threads_default" 8855 else 8856 case "$host_os" in 8857 osf*) gl_use_threads=no ;; 8858 cygwin*) 8859 case `uname -r` in 8860 1.[0-5].*) gl_use_threads=no ;; 8861 *) gl_use_threads=yes ;; 8862 esac 8863 ;; 8864 *) gl_use_threads=yes ;; 8865 esac 8866 fi 8867 8868fi 8869 8870 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then 8871 # For using <pthread.h>: 8872 case "$host_os" in 8873 osf*) 8874 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it 8875 # groks <pthread.h>. cc also understands the flag -pthread, but 8876 # we don't use it because 1. gcc-2.95 doesn't understand -pthread, 8877 # 2. putting a flag into CPPFLAGS that has an effect on the linker 8878 # causes the AC_TRY_LINK test below to succeed unexpectedly, 8879 # leading to wrong values of LIBTHREAD and LTLIBTHREAD. 8880 CPPFLAGS="$CPPFLAGS -D_REENTRANT" 8881 ;; 8882 esac 8883 # Some systems optimize for single-threaded programs by default, and 8884 # need special flags to disable these optimizations. For example, the 8885 # definition of 'errno' in <errno.h>. 8886 case "$host_os" in 8887 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;; 8888 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;; 8889 esac 8890 fi 8891 8892 8893 8894 8895 8896 if test "X$prefix" = "XNONE"; then 8897 acl_final_prefix="$ac_default_prefix" 8898 else 8899 acl_final_prefix="$prefix" 8900 fi 8901 if test "X$exec_prefix" = "XNONE"; then 8902 acl_final_exec_prefix='${prefix}' 8903 else 8904 acl_final_exec_prefix="$exec_prefix" 8905 fi 8906 acl_save_prefix="$prefix" 8907 prefix="$acl_final_prefix" 8908 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 8909 prefix="$acl_save_prefix" 8910 8911 8912# Check whether --with-gnu-ld was given. 8913if test "${with_gnu_ld+set}" = set; then : 8914 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 8915else 8916 with_gnu_ld=no 8917fi 8918 8919# Prepare PATH_SEPARATOR. 8920# The user is always right. 8921if test "${PATH_SEPARATOR+set}" != set; then 8922 echo "#! /bin/sh" >conf$$.sh 8923 echo "exit 0" >>conf$$.sh 8924 chmod +x conf$$.sh 8925 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 8926 PATH_SEPARATOR=';' 8927 else 8928 PATH_SEPARATOR=: 8929 fi 8930 rm -f conf$$.sh 8931fi 8932ac_prog=ld 8933if test "$GCC" = yes; then 8934 # Check if gcc -print-prog-name=ld gives a path. 8935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 8936$as_echo_n "checking for ld used by GCC... " >&6; } 8937 case $host in 8938 *-*-mingw*) 8939 # gcc leaves a trailing carriage return which upsets mingw 8940 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 8941 *) 8942 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 8943 esac 8944 case $ac_prog in 8945 # Accept absolute paths. 8946 [\\/]* | [A-Za-z]:[\\/]*) 8947 re_direlt='/[^/][^/]*/\.\./' 8948 # Canonicalize the path of ld 8949 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 8950 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 8951 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 8952 done 8953 test -z "$LD" && LD="$ac_prog" 8954 ;; 8955 "") 8956 # If it fails, then pretend we aren't using GCC. 8957 ac_prog=ld 8958 ;; 8959 *) 8960 # If it is relative, then search for the first ld in PATH. 8961 with_gnu_ld=unknown 8962 ;; 8963 esac 8964elif test "$with_gnu_ld" = yes; then 8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 8966$as_echo_n "checking for GNU ld... " >&6; } 8967else 8968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 8969$as_echo_n "checking for non-GNU ld... " >&6; } 8970fi 8971if test "${acl_cv_path_LD+set}" = set; then : 8972 $as_echo_n "(cached) " >&6 8973else 8974 if test -z "$LD"; then 8975 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 8976 for ac_dir in $PATH; do 8977 test -z "$ac_dir" && ac_dir=. 8978 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 8979 acl_cv_path_LD="$ac_dir/$ac_prog" 8980 # Check to see if the program is GNU ld. I'd rather use --version, 8981 # but apparently some GNU ld's only accept -v. 8982 # Break only if it was the GNU/non-GNU ld that we prefer. 8983 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in 8984 *GNU* | *'with BFD'*) 8985 test "$with_gnu_ld" != no && break ;; 8986 *) 8987 test "$with_gnu_ld" != yes && break ;; 8988 esac 8989 fi 8990 done 8991 IFS="$ac_save_ifs" 8992else 8993 acl_cv_path_LD="$LD" # Let the user override the test with a path. 8994fi 8995fi 8996 8997LD="$acl_cv_path_LD" 8998if test -n "$LD"; then 8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 9000$as_echo "$LD" >&6; } 9001else 9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9003$as_echo "no" >&6; } 9004fi 9005test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 9006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 9007$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 9008if test "${acl_cv_prog_gnu_ld+set}" = set; then : 9009 $as_echo_n "(cached) " >&6 9010else 9011 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 9012case `$LD -v 2>&1 </dev/null` in 9013*GNU* | *'with BFD'*) 9014 acl_cv_prog_gnu_ld=yes ;; 9015*) 9016 acl_cv_prog_gnu_ld=no ;; 9017esac 9018fi 9019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 9020$as_echo "$acl_cv_prog_gnu_ld" >&6; } 9021with_gnu_ld=$acl_cv_prog_gnu_ld 9022 9023 9024 9025 9026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 9027$as_echo_n "checking for shared library run path origin... " >&6; } 9028if test "${acl_cv_rpath+set}" = set; then : 9029 $as_echo_n "(cached) " >&6 9030else 9031 9032 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 9033 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 9034 . ./conftest.sh 9035 rm -f ./conftest.sh 9036 acl_cv_rpath=done 9037 9038fi 9039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 9040$as_echo "$acl_cv_rpath" >&6; } 9041 wl="$acl_cv_wl" 9042 acl_libext="$acl_cv_libext" 9043 acl_shlibext="$acl_cv_shlibext" 9044 acl_libname_spec="$acl_cv_libname_spec" 9045 acl_library_names_spec="$acl_cv_library_names_spec" 9046 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 9047 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 9048 acl_hardcode_direct="$acl_cv_hardcode_direct" 9049 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" 9050 # Check whether --enable-rpath was given. 9051if test "${enable_rpath+set}" = set; then : 9052 enableval=$enable_rpath; : 9053else 9054 enable_rpath=yes 9055fi 9056 9057 9058 9059 9060 acl_libdirstem=lib 9061 acl_libdirstem2= 9062 case "$host_os" in 9063 solaris*) 9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 9065$as_echo_n "checking for 64-bit host... " >&6; } 9066if test "${gl_cv_solaris_64bit+set}" = set; then : 9067 $as_echo_n "(cached) " >&6 9068else 9069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9070/* end confdefs.h. */ 9071 9072#ifdef _LP64 9073sixtyfour bits 9074#endif 9075 9076_ACEOF 9077if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9078 $EGREP "sixtyfour bits" >/dev/null 2>&1; then : 9079 gl_cv_solaris_64bit=yes 9080else 9081 gl_cv_solaris_64bit=no 9082fi 9083rm -f conftest* 9084 9085 9086fi 9087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 9088$as_echo "$gl_cv_solaris_64bit" >&6; } 9089 if test $gl_cv_solaris_64bit = yes; then 9090 acl_libdirstem=lib/64 9091 case "$host_cpu" in 9092 sparc*) acl_libdirstem2=lib/sparcv9 ;; 9093 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; 9094 esac 9095 fi 9096 ;; 9097 *) 9098 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 9099 if test -n "$searchpath"; then 9100 acl_save_IFS="${IFS= }"; IFS=":" 9101 for searchdir in $searchpath; do 9102 if test -d "$searchdir"; then 9103 case "$searchdir" in 9104 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 9105 */../ | */.. ) 9106 # Better ignore directories of this form. They are misleading. 9107 ;; 9108 *) searchdir=`cd "$searchdir" && pwd` 9109 case "$searchdir" in 9110 */lib64 ) acl_libdirstem=lib64 ;; 9111 esac ;; 9112 esac 9113 fi 9114 done 9115 IFS="$acl_save_IFS" 9116 fi 9117 ;; 9118 esac 9119 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" 9120 9121 9122 9123 gl_threads_api=none 9124 LIBTHREAD= 9125 LTLIBTHREAD= 9126 LIBMULTITHREAD= 9127 LTLIBMULTITHREAD= 9128 if test "$gl_use_threads" != no; then 9129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 9130$as_echo_n "checking whether imported symbols can be declared weak... " >&6; } 9131if test "${gl_cv_have_weak+set}" = set; then : 9132 $as_echo_n "(cached) " >&6 9133else 9134 gl_cv_have_weak=no 9135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9136/* end confdefs.h. */ 9137extern void xyzzy (); 9138#pragma weak xyzzy 9139int 9140main () 9141{ 9142xyzzy(); 9143 ; 9144 return 0; 9145} 9146_ACEOF 9147if ac_fn_c_try_link "$LINENO"; then : 9148 gl_cv_have_weak=maybe 9149fi 9150rm -f core conftest.err conftest.$ac_objext \ 9151 conftest$ac_exeext conftest.$ac_ext 9152 if test $gl_cv_have_weak = maybe; then 9153 if test "$cross_compiling" = yes; then : 9154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9155/* end confdefs.h. */ 9156#ifdef __ELF__ 9157 Extensible Linking Format 9158 #endif 9159 9160_ACEOF 9161if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9162 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then : 9163 gl_cv_have_weak="guessing yes" 9164else 9165 gl_cv_have_weak="guessing no" 9166fi 9167rm -f conftest* 9168 9169 9170else 9171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9172/* end confdefs.h. */ 9173 9174#include <stdio.h> 9175#pragma weak fputs 9176int main () 9177{ 9178 return (fputs == NULL); 9179} 9180_ACEOF 9181if ac_fn_c_try_run "$LINENO"; then : 9182 gl_cv_have_weak=yes 9183else 9184 gl_cv_have_weak=no 9185fi 9186rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9187 conftest.$ac_objext conftest.beam conftest.$ac_ext 9188fi 9189 9190 fi 9191 9192fi 9193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5 9194$as_echo "$gl_cv_have_weak" >&6; } 9195 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then 9196 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that 9197 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY. 9198 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 9199if test "x$ac_cv_header_pthread_h" = x""yes; then : 9200 gl_have_pthread_h=yes 9201else 9202 gl_have_pthread_h=no 9203fi 9204 9205 9206 if test "$gl_have_pthread_h" = yes; then 9207 # Other possible tests: 9208 # -lpthreads (FSU threads, PCthreads) 9209 # -lgthreads 9210 gl_have_pthread= 9211 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist 9212 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but 9213 # the second one only in libpthread, and lock.c needs it. 9214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9215/* end confdefs.h. */ 9216#include <pthread.h> 9217int 9218main () 9219{ 9220pthread_mutex_lock((pthread_mutex_t*)0); 9221 pthread_mutexattr_init((pthread_mutexattr_t*)0); 9222 ; 9223 return 0; 9224} 9225_ACEOF 9226if ac_fn_c_try_link "$LINENO"; then : 9227 gl_have_pthread=yes 9228fi 9229rm -f core conftest.err conftest.$ac_objext \ 9230 conftest$ac_exeext conftest.$ac_ext 9231 # Test for libpthread by looking for pthread_kill. (Not pthread_self, 9232 # since it is defined as a macro on OSF/1.) 9233 if test -n "$gl_have_pthread"; then 9234 # The program links fine without libpthread. But it may actually 9235 # need to link with libpthread in order to create multiple threads. 9236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 9237$as_echo_n "checking for pthread_kill in -lpthread... " >&6; } 9238if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then : 9239 $as_echo_n "(cached) " >&6 9240else 9241 ac_check_lib_save_LIBS=$LIBS 9242LIBS="-lpthread $LIBS" 9243cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9244/* end confdefs.h. */ 9245 9246/* Override any GCC internal prototype to avoid an error. 9247 Use char because int might match the return type of a GCC 9248 builtin and then its argument prototype would still apply. */ 9249#ifdef __cplusplus 9250extern "C" 9251#endif 9252char pthread_kill (); 9253int 9254main () 9255{ 9256return pthread_kill (); 9257 ; 9258 return 0; 9259} 9260_ACEOF 9261if ac_fn_c_try_link "$LINENO"; then : 9262 ac_cv_lib_pthread_pthread_kill=yes 9263else 9264 ac_cv_lib_pthread_pthread_kill=no 9265fi 9266rm -f core conftest.err conftest.$ac_objext \ 9267 conftest$ac_exeext conftest.$ac_ext 9268LIBS=$ac_check_lib_save_LIBS 9269fi 9270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 9271$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } 9272if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then : 9273 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread 9274 # On Solaris and HP-UX, most pthread functions exist also in libc. 9275 # Therefore pthread_in_use() needs to actually try to create a 9276 # thread: pthread_create from libc will fail, whereas 9277 # pthread_create will actually create a thread. 9278 case "$host_os" in 9279 solaris* | hpux*) 9280 9281$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h 9282 9283 esac 9284 9285fi 9286 9287 else 9288 # Some library is needed. Try libpthread and libc_r. 9289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 9290$as_echo_n "checking for pthread_kill in -lpthread... " >&6; } 9291if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then : 9292 $as_echo_n "(cached) " >&6 9293else 9294 ac_check_lib_save_LIBS=$LIBS 9295LIBS="-lpthread $LIBS" 9296cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9297/* end confdefs.h. */ 9298 9299/* Override any GCC internal prototype to avoid an error. 9300 Use char because int might match the return type of a GCC 9301 builtin and then its argument prototype would still apply. */ 9302#ifdef __cplusplus 9303extern "C" 9304#endif 9305char pthread_kill (); 9306int 9307main () 9308{ 9309return pthread_kill (); 9310 ; 9311 return 0; 9312} 9313_ACEOF 9314if ac_fn_c_try_link "$LINENO"; then : 9315 ac_cv_lib_pthread_pthread_kill=yes 9316else 9317 ac_cv_lib_pthread_pthread_kill=no 9318fi 9319rm -f core conftest.err conftest.$ac_objext \ 9320 conftest$ac_exeext conftest.$ac_ext 9321LIBS=$ac_check_lib_save_LIBS 9322fi 9323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 9324$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } 9325if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then : 9326 gl_have_pthread=yes 9327 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread 9328 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread 9329fi 9330 9331 if test -z "$gl_have_pthread"; then 9332 # For FreeBSD 4. 9333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5 9334$as_echo_n "checking for pthread_kill in -lc_r... " >&6; } 9335if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then : 9336 $as_echo_n "(cached) " >&6 9337else 9338 ac_check_lib_save_LIBS=$LIBS 9339LIBS="-lc_r $LIBS" 9340cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9341/* end confdefs.h. */ 9342 9343/* Override any GCC internal prototype to avoid an error. 9344 Use char because int might match the return type of a GCC 9345 builtin and then its argument prototype would still apply. */ 9346#ifdef __cplusplus 9347extern "C" 9348#endif 9349char pthread_kill (); 9350int 9351main () 9352{ 9353return pthread_kill (); 9354 ; 9355 return 0; 9356} 9357_ACEOF 9358if ac_fn_c_try_link "$LINENO"; then : 9359 ac_cv_lib_c_r_pthread_kill=yes 9360else 9361 ac_cv_lib_c_r_pthread_kill=no 9362fi 9363rm -f core conftest.err conftest.$ac_objext \ 9364 conftest$ac_exeext conftest.$ac_ext 9365LIBS=$ac_check_lib_save_LIBS 9366fi 9367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5 9368$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; } 9369if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then : 9370 gl_have_pthread=yes 9371 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r 9372 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r 9373fi 9374 9375 fi 9376 fi 9377 if test -n "$gl_have_pthread"; then 9378 gl_threads_api=posix 9379 9380$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h 9381 9382 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then 9383 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then 9384 9385$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h 9386 9387 LIBTHREAD= 9388 LTLIBTHREAD= 9389 fi 9390 fi 9391 fi 9392 fi 9393 fi 9394 if test -z "$gl_have_pthread"; then 9395 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then 9396 gl_have_solaristhread= 9397 gl_save_LIBS="$LIBS" 9398 LIBS="$LIBS -lthread" 9399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9400/* end confdefs.h. */ 9401#include <thread.h> 9402#include <synch.h> 9403int 9404main () 9405{ 9406thr_self(); 9407 ; 9408 return 0; 9409} 9410_ACEOF 9411if ac_fn_c_try_link "$LINENO"; then : 9412 gl_have_solaristhread=yes 9413fi 9414rm -f core conftest.err conftest.$ac_objext \ 9415 conftest$ac_exeext conftest.$ac_ext 9416 LIBS="$gl_save_LIBS" 9417 if test -n "$gl_have_solaristhread"; then 9418 gl_threads_api=solaris 9419 LIBTHREAD=-lthread 9420 LTLIBTHREAD=-lthread 9421 LIBMULTITHREAD="$LIBTHREAD" 9422 LTLIBMULTITHREAD="$LTLIBTHREAD" 9423 9424$as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h 9425 9426 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then 9427 9428$as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h 9429 9430 LIBTHREAD= 9431 LTLIBTHREAD= 9432 fi 9433 fi 9434 fi 9435 fi 9436 if test "$gl_use_threads" = pth; then 9437 gl_save_CPPFLAGS="$CPPFLAGS" 9438 9439 9440 9441 9442 9443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5 9444$as_echo_n "checking how to link with libpth... " >&6; } 9445if test "${ac_cv_libpth_libs+set}" = set; then : 9446 $as_echo_n "(cached) " >&6 9447else 9448 9449 9450 9451 9452 9453 9454 9455 9456 use_additional=yes 9457 9458 acl_save_prefix="$prefix" 9459 prefix="$acl_final_prefix" 9460 acl_save_exec_prefix="$exec_prefix" 9461 exec_prefix="$acl_final_exec_prefix" 9462 9463 eval additional_includedir=\"$includedir\" 9464 eval additional_libdir=\"$libdir\" 9465 9466 exec_prefix="$acl_save_exec_prefix" 9467 prefix="$acl_save_prefix" 9468 9469 9470# Check whether --with-libpth-prefix was given. 9471if test "${with_libpth_prefix+set}" = set; then : 9472 withval=$with_libpth_prefix; 9473 if test "X$withval" = "Xno"; then 9474 use_additional=no 9475 else 9476 if test "X$withval" = "X"; then 9477 9478 acl_save_prefix="$prefix" 9479 prefix="$acl_final_prefix" 9480 acl_save_exec_prefix="$exec_prefix" 9481 exec_prefix="$acl_final_exec_prefix" 9482 9483 eval additional_includedir=\"$includedir\" 9484 eval additional_libdir=\"$libdir\" 9485 9486 exec_prefix="$acl_save_exec_prefix" 9487 prefix="$acl_save_prefix" 9488 9489 else 9490 additional_includedir="$withval/include" 9491 additional_libdir="$withval/$acl_libdirstem" 9492 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 9493 && ! test -d "$withval/$acl_libdirstem"; then 9494 additional_libdir="$withval/$acl_libdirstem2" 9495 fi 9496 fi 9497 fi 9498 9499fi 9500 9501 LIBPTH= 9502 LTLIBPTH= 9503 INCPTH= 9504 LIBPTH_PREFIX= 9505 HAVE_LIBPTH= 9506 rpathdirs= 9507 ltrpathdirs= 9508 names_already_handled= 9509 names_next_round='pth ' 9510 while test -n "$names_next_round"; do 9511 names_this_round="$names_next_round" 9512 names_next_round= 9513 for name in $names_this_round; do 9514 already_handled= 9515 for n in $names_already_handled; do 9516 if test "$n" = "$name"; then 9517 already_handled=yes 9518 break 9519 fi 9520 done 9521 if test -z "$already_handled"; then 9522 names_already_handled="$names_already_handled $name" 9523 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 9524 eval value=\"\$HAVE_LIB$uppername\" 9525 if test -n "$value"; then 9526 if test "$value" = yes; then 9527 eval value=\"\$LIB$uppername\" 9528 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value" 9529 eval value=\"\$LTLIB$uppername\" 9530 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value" 9531 else 9532 : 9533 fi 9534 else 9535 found_dir= 9536 found_la= 9537 found_so= 9538 found_a= 9539 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 9540 if test -n "$acl_shlibext"; then 9541 shrext=".$acl_shlibext" # typically: shrext=.so 9542 else 9543 shrext= 9544 fi 9545 if test $use_additional = yes; then 9546 dir="$additional_libdir" 9547 if test -n "$acl_shlibext"; then 9548 if test -f "$dir/$libname$shrext"; then 9549 found_dir="$dir" 9550 found_so="$dir/$libname$shrext" 9551 else 9552 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 9553 ver=`(cd "$dir" && \ 9554 for f in "$libname$shrext".*; do echo "$f"; done \ 9555 | sed -e "s,^$libname$shrext\\\\.,," \ 9556 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 9557 | sed 1q ) 2>/dev/null` 9558 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 9559 found_dir="$dir" 9560 found_so="$dir/$libname$shrext.$ver" 9561 fi 9562 else 9563 eval library_names=\"$acl_library_names_spec\" 9564 for f in $library_names; do 9565 if test -f "$dir/$f"; then 9566 found_dir="$dir" 9567 found_so="$dir/$f" 9568 break 9569 fi 9570 done 9571 fi 9572 fi 9573 fi 9574 if test "X$found_dir" = "X"; then 9575 if test -f "$dir/$libname.$acl_libext"; then 9576 found_dir="$dir" 9577 found_a="$dir/$libname.$acl_libext" 9578 fi 9579 fi 9580 if test "X$found_dir" != "X"; then 9581 if test -f "$dir/$libname.la"; then 9582 found_la="$dir/$libname.la" 9583 fi 9584 fi 9585 fi 9586 if test "X$found_dir" = "X"; then 9587 for x in $LDFLAGS $LTLIBPTH; do 9588 9589 acl_save_prefix="$prefix" 9590 prefix="$acl_final_prefix" 9591 acl_save_exec_prefix="$exec_prefix" 9592 exec_prefix="$acl_final_exec_prefix" 9593 eval x=\"$x\" 9594 exec_prefix="$acl_save_exec_prefix" 9595 prefix="$acl_save_prefix" 9596 9597 case "$x" in 9598 -L*) 9599 dir=`echo "X$x" | sed -e 's/^X-L//'` 9600 if test -n "$acl_shlibext"; then 9601 if test -f "$dir/$libname$shrext"; then 9602 found_dir="$dir" 9603 found_so="$dir/$libname$shrext" 9604 else 9605 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 9606 ver=`(cd "$dir" && \ 9607 for f in "$libname$shrext".*; do echo "$f"; done \ 9608 | sed -e "s,^$libname$shrext\\\\.,," \ 9609 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 9610 | sed 1q ) 2>/dev/null` 9611 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 9612 found_dir="$dir" 9613 found_so="$dir/$libname$shrext.$ver" 9614 fi 9615 else 9616 eval library_names=\"$acl_library_names_spec\" 9617 for f in $library_names; do 9618 if test -f "$dir/$f"; then 9619 found_dir="$dir" 9620 found_so="$dir/$f" 9621 break 9622 fi 9623 done 9624 fi 9625 fi 9626 fi 9627 if test "X$found_dir" = "X"; then 9628 if test -f "$dir/$libname.$acl_libext"; then 9629 found_dir="$dir" 9630 found_a="$dir/$libname.$acl_libext" 9631 fi 9632 fi 9633 if test "X$found_dir" != "X"; then 9634 if test -f "$dir/$libname.la"; then 9635 found_la="$dir/$libname.la" 9636 fi 9637 fi 9638 ;; 9639 esac 9640 if test "X$found_dir" != "X"; then 9641 break 9642 fi 9643 done 9644 fi 9645 if test "X$found_dir" != "X"; then 9646 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name" 9647 if test "X$found_so" != "X"; then 9648 if test "$enable_rpath" = no \ 9649 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 9650 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 9651 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" 9652 else 9653 haveit= 9654 for x in $ltrpathdirs; do 9655 if test "X$x" = "X$found_dir"; then 9656 haveit=yes 9657 break 9658 fi 9659 done 9660 if test -z "$haveit"; then 9661 ltrpathdirs="$ltrpathdirs $found_dir" 9662 fi 9663 if test "$acl_hardcode_direct" = yes; then 9664 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" 9665 else 9666 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 9667 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" 9668 haveit= 9669 for x in $rpathdirs; do 9670 if test "X$x" = "X$found_dir"; then 9671 haveit=yes 9672 break 9673 fi 9674 done 9675 if test -z "$haveit"; then 9676 rpathdirs="$rpathdirs $found_dir" 9677 fi 9678 else 9679 haveit= 9680 for x in $LDFLAGS $LIBPTH; do 9681 9682 acl_save_prefix="$prefix" 9683 prefix="$acl_final_prefix" 9684 acl_save_exec_prefix="$exec_prefix" 9685 exec_prefix="$acl_final_exec_prefix" 9686 eval x=\"$x\" 9687 exec_prefix="$acl_save_exec_prefix" 9688 prefix="$acl_save_prefix" 9689 9690 if test "X$x" = "X-L$found_dir"; then 9691 haveit=yes 9692 break 9693 fi 9694 done 9695 if test -z "$haveit"; then 9696 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir" 9697 fi 9698 if test "$acl_hardcode_minus_L" != no; then 9699 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" 9700 else 9701 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name" 9702 fi 9703 fi 9704 fi 9705 fi 9706 else 9707 if test "X$found_a" != "X"; then 9708 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a" 9709 else 9710 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name" 9711 fi 9712 fi 9713 additional_includedir= 9714 case "$found_dir" in 9715 */$acl_libdirstem | */$acl_libdirstem/) 9716 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 9717 if test "$name" = 'pth'; then 9718 LIBPTH_PREFIX="$basedir" 9719 fi 9720 additional_includedir="$basedir/include" 9721 ;; 9722 */$acl_libdirstem2 | */$acl_libdirstem2/) 9723 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 9724 if test "$name" = 'pth'; then 9725 LIBPTH_PREFIX="$basedir" 9726 fi 9727 additional_includedir="$basedir/include" 9728 ;; 9729 esac 9730 if test "X$additional_includedir" != "X"; then 9731 if test "X$additional_includedir" != "X/usr/include"; then 9732 haveit= 9733 if test "X$additional_includedir" = "X/usr/local/include"; then 9734 if test -n "$GCC"; then 9735 case $host_os in 9736 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 9737 esac 9738 fi 9739 fi 9740 if test -z "$haveit"; then 9741 for x in $CPPFLAGS $INCPTH; do 9742 9743 acl_save_prefix="$prefix" 9744 prefix="$acl_final_prefix" 9745 acl_save_exec_prefix="$exec_prefix" 9746 exec_prefix="$acl_final_exec_prefix" 9747 eval x=\"$x\" 9748 exec_prefix="$acl_save_exec_prefix" 9749 prefix="$acl_save_prefix" 9750 9751 if test "X$x" = "X-I$additional_includedir"; then 9752 haveit=yes 9753 break 9754 fi 9755 done 9756 if test -z "$haveit"; then 9757 if test -d "$additional_includedir"; then 9758 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir" 9759 fi 9760 fi 9761 fi 9762 fi 9763 fi 9764 if test -n "$found_la"; then 9765 save_libdir="$libdir" 9766 case "$found_la" in 9767 */* | *\\*) . "$found_la" ;; 9768 *) . "./$found_la" ;; 9769 esac 9770 libdir="$save_libdir" 9771 for dep in $dependency_libs; do 9772 case "$dep" in 9773 -L*) 9774 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 9775 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 9776 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 9777 haveit= 9778 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 9779 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 9780 if test -n "$GCC"; then 9781 case $host_os in 9782 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 9783 esac 9784 fi 9785 fi 9786 if test -z "$haveit"; then 9787 haveit= 9788 for x in $LDFLAGS $LIBPTH; do 9789 9790 acl_save_prefix="$prefix" 9791 prefix="$acl_final_prefix" 9792 acl_save_exec_prefix="$exec_prefix" 9793 exec_prefix="$acl_final_exec_prefix" 9794 eval x=\"$x\" 9795 exec_prefix="$acl_save_exec_prefix" 9796 prefix="$acl_save_prefix" 9797 9798 if test "X$x" = "X-L$additional_libdir"; then 9799 haveit=yes 9800 break 9801 fi 9802 done 9803 if test -z "$haveit"; then 9804 if test -d "$additional_libdir"; then 9805 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir" 9806 fi 9807 fi 9808 haveit= 9809 for x in $LDFLAGS $LTLIBPTH; do 9810 9811 acl_save_prefix="$prefix" 9812 prefix="$acl_final_prefix" 9813 acl_save_exec_prefix="$exec_prefix" 9814 exec_prefix="$acl_final_exec_prefix" 9815 eval x=\"$x\" 9816 exec_prefix="$acl_save_exec_prefix" 9817 prefix="$acl_save_prefix" 9818 9819 if test "X$x" = "X-L$additional_libdir"; then 9820 haveit=yes 9821 break 9822 fi 9823 done 9824 if test -z "$haveit"; then 9825 if test -d "$additional_libdir"; then 9826 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir" 9827 fi 9828 fi 9829 fi 9830 fi 9831 ;; 9832 -R*) 9833 dir=`echo "X$dep" | sed -e 's/^X-R//'` 9834 if test "$enable_rpath" != no; then 9835 haveit= 9836 for x in $rpathdirs; do 9837 if test "X$x" = "X$dir"; then 9838 haveit=yes 9839 break 9840 fi 9841 done 9842 if test -z "$haveit"; then 9843 rpathdirs="$rpathdirs $dir" 9844 fi 9845 haveit= 9846 for x in $ltrpathdirs; do 9847 if test "X$x" = "X$dir"; then 9848 haveit=yes 9849 break 9850 fi 9851 done 9852 if test -z "$haveit"; then 9853 ltrpathdirs="$ltrpathdirs $dir" 9854 fi 9855 fi 9856 ;; 9857 -l*) 9858 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 9859 ;; 9860 *.la) 9861 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 9862 ;; 9863 *) 9864 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep" 9865 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep" 9866 ;; 9867 esac 9868 done 9869 fi 9870 else 9871 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name" 9872 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name" 9873 fi 9874 fi 9875 fi 9876 done 9877 done 9878 if test "X$rpathdirs" != "X"; then 9879 if test -n "$acl_hardcode_libdir_separator"; then 9880 alldirs= 9881 for found_dir in $rpathdirs; do 9882 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 9883 done 9884 acl_save_libdir="$libdir" 9885 libdir="$alldirs" 9886 eval flag=\"$acl_hardcode_libdir_flag_spec\" 9887 libdir="$acl_save_libdir" 9888 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag" 9889 else 9890 for found_dir in $rpathdirs; do 9891 acl_save_libdir="$libdir" 9892 libdir="$found_dir" 9893 eval flag=\"$acl_hardcode_libdir_flag_spec\" 9894 libdir="$acl_save_libdir" 9895 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag" 9896 done 9897 fi 9898 fi 9899 if test "X$ltrpathdirs" != "X"; then 9900 for found_dir in $ltrpathdirs; do 9901 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir" 9902 done 9903 fi 9904 9905 9906 9907 9908 9909 9910 ac_cv_libpth_libs="$LIBPTH" 9911 ac_cv_libpth_ltlibs="$LTLIBPTH" 9912 ac_cv_libpth_cppflags="$INCPTH" 9913 ac_cv_libpth_prefix="$LIBPTH_PREFIX" 9914 9915fi 9916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5 9917$as_echo "$ac_cv_libpth_libs" >&6; } 9918 LIBPTH="$ac_cv_libpth_libs" 9919 LTLIBPTH="$ac_cv_libpth_ltlibs" 9920 INCPTH="$ac_cv_libpth_cppflags" 9921 LIBPTH_PREFIX="$ac_cv_libpth_prefix" 9922 9923 for element in $INCPTH; do 9924 haveit= 9925 for x in $CPPFLAGS; do 9926 9927 acl_save_prefix="$prefix" 9928 prefix="$acl_final_prefix" 9929 acl_save_exec_prefix="$exec_prefix" 9930 exec_prefix="$acl_final_exec_prefix" 9931 eval x=\"$x\" 9932 exec_prefix="$acl_save_exec_prefix" 9933 prefix="$acl_save_prefix" 9934 9935 if test "X$x" = "X$element"; then 9936 haveit=yes 9937 break 9938 fi 9939 done 9940 if test -z "$haveit"; then 9941 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 9942 fi 9943 done 9944 9945 9946 9947 9948 HAVE_LIBPTH=yes 9949 9950 9951 9952 gl_have_pth= 9953 gl_save_LIBS="$LIBS" 9954 LIBS="$LIBS -lpth" 9955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9956/* end confdefs.h. */ 9957#include <pth.h> 9958int 9959main () 9960{ 9961pth_self(); 9962 ; 9963 return 0; 9964} 9965_ACEOF 9966if ac_fn_c_try_link "$LINENO"; then : 9967 gl_have_pth=yes 9968fi 9969rm -f core conftest.err conftest.$ac_objext \ 9970 conftest$ac_exeext conftest.$ac_ext 9971 LIBS="$gl_save_LIBS" 9972 if test -n "$gl_have_pth"; then 9973 gl_threads_api=pth 9974 LIBTHREAD="$LIBPTH" 9975 LTLIBTHREAD="$LTLIBPTH" 9976 LIBMULTITHREAD="$LIBTHREAD" 9977 LTLIBMULTITHREAD="$LTLIBTHREAD" 9978 9979$as_echo "#define USE_PTH_THREADS 1" >>confdefs.h 9980 9981 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then 9982 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then 9983 9984$as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h 9985 9986 LIBTHREAD= 9987 LTLIBTHREAD= 9988 fi 9989 fi 9990 else 9991 CPPFLAGS="$gl_save_CPPFLAGS" 9992 fi 9993 fi 9994 if test -z "$gl_have_pthread"; then 9995 if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then 9996 if { case "$host_os" in 9997 mingw*) true;; 9998 *) false;; 9999 esac 10000 }; then 10001 gl_threads_api=win32 10002 10003$as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h 10004 10005 fi 10006 fi 10007 fi 10008 fi 10009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5 10010$as_echo_n "checking for multithread API to use... " >&6; } 10011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5 10012$as_echo "$gl_threads_api" >&6; } 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 if test "$gl_threads_api" = posix; then 10025 # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the 10026 # pthread_rwlock_* functions. 10027 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h> 10028" 10029if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then : 10030 10031$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h 10032 10033fi 10034 10035 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro. 10036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10037/* end confdefs.h. */ 10038#include <pthread.h> 10039int 10040main () 10041{ 10042#if __FreeBSD__ == 4 10043error "No, in FreeBSD 4.0 recursive mutexes actually don't work." 10044#else 10045int x = (int)PTHREAD_MUTEX_RECURSIVE; 10046return !x; 10047#endif 10048 ; 10049 return 0; 10050} 10051_ACEOF 10052if ac_fn_c_try_compile "$LINENO"; then : 10053 10054$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h 10055 10056fi 10057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10058 fi 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 use_additional=yes 10075 10076 acl_save_prefix="$prefix" 10077 prefix="$acl_final_prefix" 10078 acl_save_exec_prefix="$exec_prefix" 10079 exec_prefix="$acl_final_exec_prefix" 10080 10081 eval additional_includedir=\"$includedir\" 10082 eval additional_libdir=\"$libdir\" 10083 10084 exec_prefix="$acl_save_exec_prefix" 10085 prefix="$acl_save_prefix" 10086 10087 10088# Check whether --with-libiconv-prefix was given. 10089if test "${with_libiconv_prefix+set}" = set; then : 10090 withval=$with_libiconv_prefix; 10091 if test "X$withval" = "Xno"; then 10092 use_additional=no 10093 else 10094 if test "X$withval" = "X"; then 10095 10096 acl_save_prefix="$prefix" 10097 prefix="$acl_final_prefix" 10098 acl_save_exec_prefix="$exec_prefix" 10099 exec_prefix="$acl_final_exec_prefix" 10100 10101 eval additional_includedir=\"$includedir\" 10102 eval additional_libdir=\"$libdir\" 10103 10104 exec_prefix="$acl_save_exec_prefix" 10105 prefix="$acl_save_prefix" 10106 10107 else 10108 additional_includedir="$withval/include" 10109 additional_libdir="$withval/$acl_libdirstem" 10110 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 10111 && ! test -d "$withval/$acl_libdirstem"; then 10112 additional_libdir="$withval/$acl_libdirstem2" 10113 fi 10114 fi 10115 fi 10116 10117fi 10118 10119 LIBICONV= 10120 LTLIBICONV= 10121 INCICONV= 10122 LIBICONV_PREFIX= 10123 HAVE_LIBICONV= 10124 rpathdirs= 10125 ltrpathdirs= 10126 names_already_handled= 10127 names_next_round='iconv ' 10128 while test -n "$names_next_round"; do 10129 names_this_round="$names_next_round" 10130 names_next_round= 10131 for name in $names_this_round; do 10132 already_handled= 10133 for n in $names_already_handled; do 10134 if test "$n" = "$name"; then 10135 already_handled=yes 10136 break 10137 fi 10138 done 10139 if test -z "$already_handled"; then 10140 names_already_handled="$names_already_handled $name" 10141 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 10142 eval value=\"\$HAVE_LIB$uppername\" 10143 if test -n "$value"; then 10144 if test "$value" = yes; then 10145 eval value=\"\$LIB$uppername\" 10146 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 10147 eval value=\"\$LTLIB$uppername\" 10148 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 10149 else 10150 : 10151 fi 10152 else 10153 found_dir= 10154 found_la= 10155 found_so= 10156 found_a= 10157 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 10158 if test -n "$acl_shlibext"; then 10159 shrext=".$acl_shlibext" # typically: shrext=.so 10160 else 10161 shrext= 10162 fi 10163 if test $use_additional = yes; then 10164 dir="$additional_libdir" 10165 if test -n "$acl_shlibext"; then 10166 if test -f "$dir/$libname$shrext"; then 10167 found_dir="$dir" 10168 found_so="$dir/$libname$shrext" 10169 else 10170 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 10171 ver=`(cd "$dir" && \ 10172 for f in "$libname$shrext".*; do echo "$f"; done \ 10173 | sed -e "s,^$libname$shrext\\\\.,," \ 10174 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 10175 | sed 1q ) 2>/dev/null` 10176 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 10177 found_dir="$dir" 10178 found_so="$dir/$libname$shrext.$ver" 10179 fi 10180 else 10181 eval library_names=\"$acl_library_names_spec\" 10182 for f in $library_names; do 10183 if test -f "$dir/$f"; then 10184 found_dir="$dir" 10185 found_so="$dir/$f" 10186 break 10187 fi 10188 done 10189 fi 10190 fi 10191 fi 10192 if test "X$found_dir" = "X"; then 10193 if test -f "$dir/$libname.$acl_libext"; then 10194 found_dir="$dir" 10195 found_a="$dir/$libname.$acl_libext" 10196 fi 10197 fi 10198 if test "X$found_dir" != "X"; then 10199 if test -f "$dir/$libname.la"; then 10200 found_la="$dir/$libname.la" 10201 fi 10202 fi 10203 fi 10204 if test "X$found_dir" = "X"; then 10205 for x in $LDFLAGS $LTLIBICONV; do 10206 10207 acl_save_prefix="$prefix" 10208 prefix="$acl_final_prefix" 10209 acl_save_exec_prefix="$exec_prefix" 10210 exec_prefix="$acl_final_exec_prefix" 10211 eval x=\"$x\" 10212 exec_prefix="$acl_save_exec_prefix" 10213 prefix="$acl_save_prefix" 10214 10215 case "$x" in 10216 -L*) 10217 dir=`echo "X$x" | sed -e 's/^X-L//'` 10218 if test -n "$acl_shlibext"; then 10219 if test -f "$dir/$libname$shrext"; then 10220 found_dir="$dir" 10221 found_so="$dir/$libname$shrext" 10222 else 10223 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 10224 ver=`(cd "$dir" && \ 10225 for f in "$libname$shrext".*; do echo "$f"; done \ 10226 | sed -e "s,^$libname$shrext\\\\.,," \ 10227 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 10228 | sed 1q ) 2>/dev/null` 10229 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 10230 found_dir="$dir" 10231 found_so="$dir/$libname$shrext.$ver" 10232 fi 10233 else 10234 eval library_names=\"$acl_library_names_spec\" 10235 for f in $library_names; do 10236 if test -f "$dir/$f"; then 10237 found_dir="$dir" 10238 found_so="$dir/$f" 10239 break 10240 fi 10241 done 10242 fi 10243 fi 10244 fi 10245 if test "X$found_dir" = "X"; then 10246 if test -f "$dir/$libname.$acl_libext"; then 10247 found_dir="$dir" 10248 found_a="$dir/$libname.$acl_libext" 10249 fi 10250 fi 10251 if test "X$found_dir" != "X"; then 10252 if test -f "$dir/$libname.la"; then 10253 found_la="$dir/$libname.la" 10254 fi 10255 fi 10256 ;; 10257 esac 10258 if test "X$found_dir" != "X"; then 10259 break 10260 fi 10261 done 10262 fi 10263 if test "X$found_dir" != "X"; then 10264 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 10265 if test "X$found_so" != "X"; then 10266 if test "$enable_rpath" = no \ 10267 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 10268 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 10269 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 10270 else 10271 haveit= 10272 for x in $ltrpathdirs; do 10273 if test "X$x" = "X$found_dir"; then 10274 haveit=yes 10275 break 10276 fi 10277 done 10278 if test -z "$haveit"; then 10279 ltrpathdirs="$ltrpathdirs $found_dir" 10280 fi 10281 if test "$acl_hardcode_direct" = yes; then 10282 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 10283 else 10284 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 10285 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 10286 haveit= 10287 for x in $rpathdirs; do 10288 if test "X$x" = "X$found_dir"; then 10289 haveit=yes 10290 break 10291 fi 10292 done 10293 if test -z "$haveit"; then 10294 rpathdirs="$rpathdirs $found_dir" 10295 fi 10296 else 10297 haveit= 10298 for x in $LDFLAGS $LIBICONV; do 10299 10300 acl_save_prefix="$prefix" 10301 prefix="$acl_final_prefix" 10302 acl_save_exec_prefix="$exec_prefix" 10303 exec_prefix="$acl_final_exec_prefix" 10304 eval x=\"$x\" 10305 exec_prefix="$acl_save_exec_prefix" 10306 prefix="$acl_save_prefix" 10307 10308 if test "X$x" = "X-L$found_dir"; then 10309 haveit=yes 10310 break 10311 fi 10312 done 10313 if test -z "$haveit"; then 10314 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 10315 fi 10316 if test "$acl_hardcode_minus_L" != no; then 10317 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 10318 else 10319 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 10320 fi 10321 fi 10322 fi 10323 fi 10324 else 10325 if test "X$found_a" != "X"; then 10326 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 10327 else 10328 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 10329 fi 10330 fi 10331 additional_includedir= 10332 case "$found_dir" in 10333 */$acl_libdirstem | */$acl_libdirstem/) 10334 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 10335 if test "$name" = 'iconv'; then 10336 LIBICONV_PREFIX="$basedir" 10337 fi 10338 additional_includedir="$basedir/include" 10339 ;; 10340 */$acl_libdirstem2 | */$acl_libdirstem2/) 10341 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 10342 if test "$name" = 'iconv'; then 10343 LIBICONV_PREFIX="$basedir" 10344 fi 10345 additional_includedir="$basedir/include" 10346 ;; 10347 esac 10348 if test "X$additional_includedir" != "X"; then 10349 if test "X$additional_includedir" != "X/usr/include"; then 10350 haveit= 10351 if test "X$additional_includedir" = "X/usr/local/include"; then 10352 if test -n "$GCC"; then 10353 case $host_os in 10354 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 10355 esac 10356 fi 10357 fi 10358 if test -z "$haveit"; then 10359 for x in $CPPFLAGS $INCICONV; do 10360 10361 acl_save_prefix="$prefix" 10362 prefix="$acl_final_prefix" 10363 acl_save_exec_prefix="$exec_prefix" 10364 exec_prefix="$acl_final_exec_prefix" 10365 eval x=\"$x\" 10366 exec_prefix="$acl_save_exec_prefix" 10367 prefix="$acl_save_prefix" 10368 10369 if test "X$x" = "X-I$additional_includedir"; then 10370 haveit=yes 10371 break 10372 fi 10373 done 10374 if test -z "$haveit"; then 10375 if test -d "$additional_includedir"; then 10376 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 10377 fi 10378 fi 10379 fi 10380 fi 10381 fi 10382 if test -n "$found_la"; then 10383 save_libdir="$libdir" 10384 case "$found_la" in 10385 */* | *\\*) . "$found_la" ;; 10386 *) . "./$found_la" ;; 10387 esac 10388 libdir="$save_libdir" 10389 for dep in $dependency_libs; do 10390 case "$dep" in 10391 -L*) 10392 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 10393 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 10394 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 10395 haveit= 10396 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 10397 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 10398 if test -n "$GCC"; then 10399 case $host_os in 10400 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 10401 esac 10402 fi 10403 fi 10404 if test -z "$haveit"; then 10405 haveit= 10406 for x in $LDFLAGS $LIBICONV; do 10407 10408 acl_save_prefix="$prefix" 10409 prefix="$acl_final_prefix" 10410 acl_save_exec_prefix="$exec_prefix" 10411 exec_prefix="$acl_final_exec_prefix" 10412 eval x=\"$x\" 10413 exec_prefix="$acl_save_exec_prefix" 10414 prefix="$acl_save_prefix" 10415 10416 if test "X$x" = "X-L$additional_libdir"; then 10417 haveit=yes 10418 break 10419 fi 10420 done 10421 if test -z "$haveit"; then 10422 if test -d "$additional_libdir"; then 10423 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 10424 fi 10425 fi 10426 haveit= 10427 for x in $LDFLAGS $LTLIBICONV; do 10428 10429 acl_save_prefix="$prefix" 10430 prefix="$acl_final_prefix" 10431 acl_save_exec_prefix="$exec_prefix" 10432 exec_prefix="$acl_final_exec_prefix" 10433 eval x=\"$x\" 10434 exec_prefix="$acl_save_exec_prefix" 10435 prefix="$acl_save_prefix" 10436 10437 if test "X$x" = "X-L$additional_libdir"; then 10438 haveit=yes 10439 break 10440 fi 10441 done 10442 if test -z "$haveit"; then 10443 if test -d "$additional_libdir"; then 10444 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 10445 fi 10446 fi 10447 fi 10448 fi 10449 ;; 10450 -R*) 10451 dir=`echo "X$dep" | sed -e 's/^X-R//'` 10452 if test "$enable_rpath" != no; then 10453 haveit= 10454 for x in $rpathdirs; do 10455 if test "X$x" = "X$dir"; then 10456 haveit=yes 10457 break 10458 fi 10459 done 10460 if test -z "$haveit"; then 10461 rpathdirs="$rpathdirs $dir" 10462 fi 10463 haveit= 10464 for x in $ltrpathdirs; do 10465 if test "X$x" = "X$dir"; then 10466 haveit=yes 10467 break 10468 fi 10469 done 10470 if test -z "$haveit"; then 10471 ltrpathdirs="$ltrpathdirs $dir" 10472 fi 10473 fi 10474 ;; 10475 -l*) 10476 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 10477 ;; 10478 *.la) 10479 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 10480 ;; 10481 *) 10482 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 10483 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 10484 ;; 10485 esac 10486 done 10487 fi 10488 else 10489 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 10490 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 10491 fi 10492 fi 10493 fi 10494 done 10495 done 10496 if test "X$rpathdirs" != "X"; then 10497 if test -n "$acl_hardcode_libdir_separator"; then 10498 alldirs= 10499 for found_dir in $rpathdirs; do 10500 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 10501 done 10502 acl_save_libdir="$libdir" 10503 libdir="$alldirs" 10504 eval flag=\"$acl_hardcode_libdir_flag_spec\" 10505 libdir="$acl_save_libdir" 10506 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 10507 else 10508 for found_dir in $rpathdirs; do 10509 acl_save_libdir="$libdir" 10510 libdir="$found_dir" 10511 eval flag=\"$acl_hardcode_libdir_flag_spec\" 10512 libdir="$acl_save_libdir" 10513 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 10514 done 10515 fi 10516 fi 10517 if test "X$ltrpathdirs" != "X"; then 10518 for found_dir in $ltrpathdirs; do 10519 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 10520 done 10521 fi 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 am_save_CPPFLAGS="$CPPFLAGS" 10535 10536 for element in $INCICONV; do 10537 haveit= 10538 for x in $CPPFLAGS; do 10539 10540 acl_save_prefix="$prefix" 10541 prefix="$acl_final_prefix" 10542 acl_save_exec_prefix="$exec_prefix" 10543 exec_prefix="$acl_final_exec_prefix" 10544 eval x=\"$x\" 10545 exec_prefix="$acl_save_exec_prefix" 10546 prefix="$acl_save_prefix" 10547 10548 if test "X$x" = "X$element"; then 10549 haveit=yes 10550 break 10551 fi 10552 done 10553 if test -z "$haveit"; then 10554 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 10555 fi 10556 done 10557 10558 10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 10560$as_echo_n "checking for iconv... " >&6; } 10561if test "${am_cv_func_iconv+set}" = set; then : 10562 $as_echo_n "(cached) " >&6 10563else 10564 10565 am_cv_func_iconv="no, consider installing GNU libiconv" 10566 am_cv_lib_iconv=no 10567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10568/* end confdefs.h. */ 10569#include <stdlib.h> 10570#include <iconv.h> 10571int 10572main () 10573{ 10574iconv_t cd = iconv_open("",""); 10575 iconv(cd,NULL,NULL,NULL,NULL); 10576 iconv_close(cd); 10577 ; 10578 return 0; 10579} 10580_ACEOF 10581if ac_fn_c_try_link "$LINENO"; then : 10582 am_cv_func_iconv=yes 10583fi 10584rm -f core conftest.err conftest.$ac_objext \ 10585 conftest$ac_exeext conftest.$ac_ext 10586 if test "$am_cv_func_iconv" != yes; then 10587 am_save_LIBS="$LIBS" 10588 LIBS="$LIBS $LIBICONV" 10589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10590/* end confdefs.h. */ 10591#include <stdlib.h> 10592#include <iconv.h> 10593int 10594main () 10595{ 10596iconv_t cd = iconv_open("",""); 10597 iconv(cd,NULL,NULL,NULL,NULL); 10598 iconv_close(cd); 10599 ; 10600 return 0; 10601} 10602_ACEOF 10603if ac_fn_c_try_link "$LINENO"; then : 10604 am_cv_lib_iconv=yes 10605 am_cv_func_iconv=yes 10606fi 10607rm -f core conftest.err conftest.$ac_objext \ 10608 conftest$ac_exeext conftest.$ac_ext 10609 LIBS="$am_save_LIBS" 10610 fi 10611 10612fi 10613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 10614$as_echo "$am_cv_func_iconv" >&6; } 10615 if test "$am_cv_func_iconv" = yes; then 10616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 10617$as_echo_n "checking for working iconv... " >&6; } 10618if test "${am_cv_func_iconv_works+set}" = set; then : 10619 $as_echo_n "(cached) " >&6 10620else 10621 10622 am_save_LIBS="$LIBS" 10623 if test $am_cv_lib_iconv = yes; then 10624 LIBS="$LIBS $LIBICONV" 10625 fi 10626 if test "$cross_compiling" = yes; then : 10627 case "$host_os" in 10628 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 10629 *) am_cv_func_iconv_works="guessing yes" ;; 10630 esac 10631else 10632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10633/* end confdefs.h. */ 10634 10635#include <iconv.h> 10636#include <string.h> 10637int main () 10638{ 10639 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful 10640 returns. */ 10641 { 10642 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 10643 if (cd_utf8_to_88591 != (iconv_t)(-1)) 10644 { 10645 static const char input[] = "\342\202\254"; /* EURO SIGN */ 10646 char buf[10]; 10647 const char *inptr = input; 10648 size_t inbytesleft = strlen (input); 10649 char *outptr = buf; 10650 size_t outbytesleft = sizeof (buf); 10651 size_t res = iconv (cd_utf8_to_88591, 10652 (char **) &inptr, &inbytesleft, 10653 &outptr, &outbytesleft); 10654 if (res == 0) 10655 return 1; 10656 } 10657 } 10658 /* Test against Solaris 10 bug: Failures are not distinguishable from 10659 successful returns. */ 10660 { 10661 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 10662 if (cd_ascii_to_88591 != (iconv_t)(-1)) 10663 { 10664 static const char input[] = "\263"; 10665 char buf[10]; 10666 const char *inptr = input; 10667 size_t inbytesleft = strlen (input); 10668 char *outptr = buf; 10669 size_t outbytesleft = sizeof (buf); 10670 size_t res = iconv (cd_ascii_to_88591, 10671 (char **) &inptr, &inbytesleft, 10672 &outptr, &outbytesleft); 10673 if (res == 0) 10674 return 1; 10675 } 10676 } 10677#if 0 /* This bug could be worked around by the caller. */ 10678 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 10679 { 10680 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 10681 if (cd_88591_to_utf8 != (iconv_t)(-1)) 10682 { 10683 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 10684 char buf[50]; 10685 const char *inptr = input; 10686 size_t inbytesleft = strlen (input); 10687 char *outptr = buf; 10688 size_t outbytesleft = sizeof (buf); 10689 size_t res = iconv (cd_88591_to_utf8, 10690 (char **) &inptr, &inbytesleft, 10691 &outptr, &outbytesleft); 10692 if ((int)res > 0) 10693 return 1; 10694 } 10695 } 10696#endif 10697 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 10698 provided. */ 10699 if (/* Try standardized names. */ 10700 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) 10701 /* Try IRIX, OSF/1 names. */ 10702 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) 10703 /* Try AIX names. */ 10704 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) 10705 /* Try HP-UX names. */ 10706 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) 10707 return 1; 10708 return 0; 10709} 10710_ACEOF 10711if ac_fn_c_try_run "$LINENO"; then : 10712 am_cv_func_iconv_works=yes 10713else 10714 am_cv_func_iconv_works=no 10715fi 10716rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10717 conftest.$ac_objext conftest.beam conftest.$ac_ext 10718fi 10719 10720 LIBS="$am_save_LIBS" 10721 10722fi 10723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 10724$as_echo "$am_cv_func_iconv_works" >&6; } 10725 case "$am_cv_func_iconv_works" in 10726 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 10727 *) am_func_iconv=yes ;; 10728 esac 10729 else 10730 am_func_iconv=no am_cv_lib_iconv=no 10731 fi 10732 if test "$am_func_iconv" = yes; then 10733 10734$as_echo "#define HAVE_ICONV 1" >>confdefs.h 10735 10736 fi 10737 if test "$am_cv_lib_iconv" = yes; then 10738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 10739$as_echo_n "checking how to link with libiconv... " >&6; } 10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 10741$as_echo "$LIBICONV" >&6; } 10742 else 10743 CPPFLAGS="$am_save_CPPFLAGS" 10744 LIBICONV= 10745 LTLIBICONV= 10746 fi 10747 10748 10749 10750 if test "$am_cv_func_iconv" = yes; then 10751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 10752$as_echo_n "checking for iconv declaration... " >&6; } 10753 if test "${am_cv_proto_iconv+set}" = set; then : 10754 $as_echo_n "(cached) " >&6 10755else 10756 10757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10758/* end confdefs.h. */ 10759 10760#include <stdlib.h> 10761#include <iconv.h> 10762extern 10763#ifdef __cplusplus 10764"C" 10765#endif 10766#if defined(__STDC__) || defined(__cplusplus) 10767size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 10768#else 10769size_t iconv(); 10770#endif 10771 10772int 10773main () 10774{ 10775 10776 ; 10777 return 0; 10778} 10779_ACEOF 10780if ac_fn_c_try_compile "$LINENO"; then : 10781 am_cv_proto_iconv_arg1="" 10782else 10783 am_cv_proto_iconv_arg1="const" 10784fi 10785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10786 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" 10787fi 10788 10789 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 10791 $am_cv_proto_iconv" >&5 10792$as_echo " 10793 $am_cv_proto_iconv" >&6; } 10794 10795cat >>confdefs.h <<_ACEOF 10796#define ICONV_CONST $am_cv_proto_iconv_arg1 10797_ACEOF 10798 10799 fi 10800 10801 10802 10803 10804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10805/* end confdefs.h. */ 10806int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; } 10807int 10808main () 10809{ 10810 10811 ; 10812 return 0; 10813} 10814_ACEOF 10815if ac_fn_c_try_link "$LINENO"; then : 10816 10817$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h 10818 10819fi 10820rm -f core conftest.err conftest.$ac_objext \ 10821 conftest$ac_exeext conftest.$ac_ext 10822 10823 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h 10824do : 10825 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10826ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10827if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10828 cat >>confdefs.h <<_ACEOF 10829#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10830_ACEOF 10831 10832fi 10833 10834done 10835 10836 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \ 10837 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \ 10838 argz_stringify argz_next __fsetlocking 10839do : 10840 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10841ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 10842if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 10843 cat >>confdefs.h <<_ACEOF 10844#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10845_ACEOF 10846 10847fi 10848done 10849 10850 10851 10852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5 10853$as_echo_n "checking whether feof_unlocked is declared... " >&6; } 10854if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then : 10855 $as_echo_n "(cached) " >&6 10856else 10857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10858/* end confdefs.h. */ 10859#include <stdio.h> 10860int 10861main () 10862{ 10863 10864#ifndef feof_unlocked 10865 char *p = (char *) feof_unlocked; 10866#endif 10867 10868 ; 10869 return 0; 10870} 10871_ACEOF 10872if ac_fn_c_try_compile "$LINENO"; then : 10873 ac_cv_have_decl_feof_unlocked=yes 10874else 10875 ac_cv_have_decl_feof_unlocked=no 10876fi 10877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10878fi 10879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5 10880$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; } 10881 if test $ac_cv_have_decl_feof_unlocked = yes; then 10882 gt_value=1 10883 else 10884 gt_value=0 10885 fi 10886 10887cat >>confdefs.h <<_ACEOF 10888#define HAVE_DECL_FEOF_UNLOCKED $gt_value 10889_ACEOF 10890 10891 10892 10893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5 10894$as_echo_n "checking whether fgets_unlocked is declared... " >&6; } 10895if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then : 10896 $as_echo_n "(cached) " >&6 10897else 10898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10899/* end confdefs.h. */ 10900#include <stdio.h> 10901int 10902main () 10903{ 10904 10905#ifndef fgets_unlocked 10906 char *p = (char *) fgets_unlocked; 10907#endif 10908 10909 ; 10910 return 0; 10911} 10912_ACEOF 10913if ac_fn_c_try_compile "$LINENO"; then : 10914 ac_cv_have_decl_fgets_unlocked=yes 10915else 10916 ac_cv_have_decl_fgets_unlocked=no 10917fi 10918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10919fi 10920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5 10921$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; } 10922 if test $ac_cv_have_decl_fgets_unlocked = yes; then 10923 gt_value=1 10924 else 10925 gt_value=0 10926 fi 10927 10928cat >>confdefs.h <<_ACEOF 10929#define HAVE_DECL_FGETS_UNLOCKED $gt_value 10930_ACEOF 10931 10932 10933 10934 10935 10936 for ac_prog in bison 10937do 10938 # Extract the first word of "$ac_prog", so it can be a program name with args. 10939set dummy $ac_prog; ac_word=$2 10940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10941$as_echo_n "checking for $ac_word... " >&6; } 10942if test "${ac_cv_prog_INTLBISON+set}" = set; then : 10943 $as_echo_n "(cached) " >&6 10944else 10945 if test -n "$INTLBISON"; then 10946 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. 10947else 10948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10949for as_dir in $PATH 10950do 10951 IFS=$as_save_IFS 10952 test -z "$as_dir" && as_dir=. 10953 for ac_exec_ext in '' $ac_executable_extensions; do 10954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10955 ac_cv_prog_INTLBISON="$ac_prog" 10956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10957 break 2 10958 fi 10959done 10960 done 10961IFS=$as_save_IFS 10962 10963fi 10964fi 10965INTLBISON=$ac_cv_prog_INTLBISON 10966if test -n "$INTLBISON"; then 10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5 10968$as_echo "$INTLBISON" >&6; } 10969else 10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10971$as_echo "no" >&6; } 10972fi 10973 10974 10975 test -n "$INTLBISON" && break 10976done 10977 10978 if test -z "$INTLBISON"; then 10979 ac_verc_fail=yes 10980 else 10981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5 10982$as_echo_n "checking version of bison... " >&6; } 10983 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` 10984 case $ac_prog_version in 10985 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; 10986 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) 10987 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; 10988 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; 10989 esac 10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 10991$as_echo "$ac_prog_version" >&6; } 10992 fi 10993 if test $ac_verc_fail = yes; then 10994 INTLBISON=: 10995 fi 10996 10997 10998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 10999$as_echo_n "checking for long long int... " >&6; } 11000if test "${ac_cv_type_long_long_int+set}" = set; then : 11001 $as_echo_n "(cached) " >&6 11002else 11003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11004/* end confdefs.h. */ 11005 11006 /* For now, do not test the preprocessor; as of 2007 there are too many 11007 implementations with broken preprocessors. Perhaps this can 11008 be revisited in 2012. In the meantime, code should not expect 11009 #if to work with literals wider than 32 bits. */ 11010 /* Test literals. */ 11011 long long int ll = 9223372036854775807ll; 11012 long long int nll = -9223372036854775807LL; 11013 unsigned long long int ull = 18446744073709551615ULL; 11014 /* Test constant expressions. */ 11015 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 11016 ? 1 : -1)]; 11017 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 11018 ? 1 : -1)]; 11019 int i = 63; 11020int 11021main () 11022{ 11023/* Test availability of runtime routines for shift and division. */ 11024 long long int llmax = 9223372036854775807ll; 11025 unsigned long long int ullmax = 18446744073709551615ull; 11026 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 11027 | (llmax / ll) | (llmax % ll) 11028 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 11029 | (ullmax / ull) | (ullmax % ull)); 11030 ; 11031 return 0; 11032} 11033 11034_ACEOF 11035if ac_fn_c_try_link "$LINENO"; then : 11036 if test "$cross_compiling" = yes; then : 11037 ac_cv_type_long_long_int=yes 11038else 11039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11040/* end confdefs.h. */ 11041#include <limits.h> 11042 #ifndef LLONG_MAX 11043 # define HALF \ 11044 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 11045 # define LLONG_MAX (HALF - 1 + HALF) 11046 #endif 11047int 11048main () 11049{ 11050long long int n = 1; 11051 int i; 11052 for (i = 0; ; i++) 11053 { 11054 long long int m = n << i; 11055 if (m >> i != n) 11056 return 1; 11057 if (LLONG_MAX / 2 < m) 11058 break; 11059 } 11060 return 0; 11061 ; 11062 return 0; 11063} 11064_ACEOF 11065if ac_fn_c_try_run "$LINENO"; then : 11066 ac_cv_type_long_long_int=yes 11067else 11068 ac_cv_type_long_long_int=no 11069fi 11070rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11071 conftest.$ac_objext conftest.beam conftest.$ac_ext 11072fi 11073 11074else 11075 ac_cv_type_long_long_int=no 11076fi 11077rm -f core conftest.err conftest.$ac_objext \ 11078 conftest$ac_exeext conftest.$ac_ext 11079fi 11080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 11081$as_echo "$ac_cv_type_long_long_int" >&6; } 11082 if test $ac_cv_type_long_long_int = yes; then 11083 11084$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 11085 11086 fi 11087 11088 11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 11090$as_echo_n "checking for wchar_t... " >&6; } 11091if test "${gt_cv_c_wchar_t+set}" = set; then : 11092 $as_echo_n "(cached) " >&6 11093else 11094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11095/* end confdefs.h. */ 11096#include <stddef.h> 11097 wchar_t foo = (wchar_t)'\0'; 11098int 11099main () 11100{ 11101 11102 ; 11103 return 0; 11104} 11105_ACEOF 11106if ac_fn_c_try_compile "$LINENO"; then : 11107 gt_cv_c_wchar_t=yes 11108else 11109 gt_cv_c_wchar_t=no 11110fi 11111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11112fi 11113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 11114$as_echo "$gt_cv_c_wchar_t" >&6; } 11115 if test $gt_cv_c_wchar_t = yes; then 11116 11117$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h 11118 11119 fi 11120 11121 11122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 11123$as_echo_n "checking for wint_t... " >&6; } 11124if test "${gt_cv_c_wint_t+set}" = set; then : 11125 $as_echo_n "(cached) " >&6 11126else 11127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11128/* end confdefs.h. */ 11129 11130/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 11131 <wchar.h>. 11132 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included 11133 before <wchar.h>. */ 11134#include <stddef.h> 11135#include <stdio.h> 11136#include <time.h> 11137#include <wchar.h> 11138 wint_t foo = (wchar_t)'\0'; 11139int 11140main () 11141{ 11142 11143 ; 11144 return 0; 11145} 11146_ACEOF 11147if ac_fn_c_try_compile "$LINENO"; then : 11148 gt_cv_c_wint_t=yes 11149else 11150 gt_cv_c_wint_t=no 11151fi 11152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11153fi 11154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 11155$as_echo "$gt_cv_c_wint_t" >&6; } 11156 if test $gt_cv_c_wint_t = yes; then 11157 11158$as_echo "#define HAVE_WINT_T 1" >>confdefs.h 11159 11160 fi 11161 11162 11163 11164 11165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5 11166$as_echo_n "checking for intmax_t... " >&6; } 11167if test "${gt_cv_c_intmax_t+set}" = set; then : 11168 $as_echo_n "(cached) " >&6 11169else 11170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11171/* end confdefs.h. */ 11172 11173#include <stddef.h> 11174#include <stdlib.h> 11175#if HAVE_STDINT_H_WITH_UINTMAX 11176#include <stdint.h> 11177#endif 11178#if HAVE_INTTYPES_H_WITH_UINTMAX 11179#include <inttypes.h> 11180#endif 11181 11182int 11183main () 11184{ 11185intmax_t x = -1; 11186 return !x; 11187 ; 11188 return 0; 11189} 11190_ACEOF 11191if ac_fn_c_try_compile "$LINENO"; then : 11192 gt_cv_c_intmax_t=yes 11193else 11194 gt_cv_c_intmax_t=no 11195fi 11196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11197fi 11198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5 11199$as_echo "$gt_cv_c_intmax_t" >&6; } 11200 if test $gt_cv_c_intmax_t = yes; then 11201 11202$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h 11203 11204 fi 11205 11206 11207 11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5 11209$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; } 11210if test "${gt_cv_func_printf_posix+set}" = set; then : 11211 $as_echo_n "(cached) " >&6 11212else 11213 11214 if test "$cross_compiling" = yes; then : 11215 11216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11217/* end confdefs.h. */ 11218 11219#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ 11220 notposix 11221#endif 11222 11223_ACEOF 11224if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11225 $EGREP "notposix" >/dev/null 2>&1; then : 11226 gt_cv_func_printf_posix="guessing no" 11227else 11228 gt_cv_func_printf_posix="guessing yes" 11229fi 11230rm -f conftest* 11231 11232 11233else 11234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11235/* end confdefs.h. */ 11236 11237#include <stdio.h> 11238#include <string.h> 11239/* The string "%2$d %1$d", with dollar characters protected from the shell's 11240 dollar expansion (possibly an autoconf bug). */ 11241static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; 11242static char buf[100]; 11243int main () 11244{ 11245 sprintf (buf, format, 33, 55); 11246 return (strcmp (buf, "55 33") != 0); 11247} 11248_ACEOF 11249if ac_fn_c_try_run "$LINENO"; then : 11250 gt_cv_func_printf_posix=yes 11251else 11252 gt_cv_func_printf_posix=no 11253fi 11254rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11255 conftest.$ac_objext conftest.beam conftest.$ac_ext 11256fi 11257 11258 11259fi 11260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5 11261$as_echo "$gt_cv_func_printf_posix" >&6; } 11262 case $gt_cv_func_printf_posix in 11263 *yes) 11264 11265$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h 11266 11267 ;; 11268 esac 11269 11270 11271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5 11272$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; } 11273if test "${ac_cv_gnu_library_2_1+set}" = set; then : 11274 $as_echo_n "(cached) " >&6 11275else 11276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11277/* end confdefs.h. */ 11278 11279#include <features.h> 11280#ifdef __GNU_LIBRARY__ 11281 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) 11282 Lucky GNU user 11283 #endif 11284#endif 11285 11286_ACEOF 11287if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11288 $EGREP "Lucky GNU user" >/dev/null 2>&1; then : 11289 ac_cv_gnu_library_2_1=yes 11290else 11291 ac_cv_gnu_library_2_1=no 11292fi 11293rm -f conftest* 11294 11295 11296 11297fi 11298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5 11299$as_echo "$ac_cv_gnu_library_2_1" >&6; } 11300 11301 GLIBC21="$ac_cv_gnu_library_2_1" 11302 11303 11304 11305 for ac_header in stdint.h 11306do : 11307 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 11308if test "x$ac_cv_header_stdint_h" = x""yes; then : 11309 cat >>confdefs.h <<_ACEOF 11310#define HAVE_STDINT_H 1 11311_ACEOF 11312 11313fi 11314 11315done 11316 11317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5 11318$as_echo_n "checking for SIZE_MAX... " >&6; } 11319if test "${gl_cv_size_max+set}" = set; then : 11320 $as_echo_n "(cached) " >&6 11321else 11322 11323 gl_cv_size_max= 11324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11325/* end confdefs.h. */ 11326 11327#include <limits.h> 11328#if HAVE_STDINT_H 11329#include <stdint.h> 11330#endif 11331#ifdef SIZE_MAX 11332Found it 11333#endif 11334 11335_ACEOF 11336if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11337 $EGREP "Found it" >/dev/null 2>&1; then : 11338 gl_cv_size_max=yes 11339fi 11340rm -f conftest* 11341 11342 if test -z "$gl_cv_size_max"; then 11343 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h> 11344#include <limits.h>"; then : 11345 11346else 11347 size_t_bits_minus_1= 11348fi 11349 11350 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then : 11351 11352else 11353 fits_in_uint= 11354fi 11355 11356 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then 11357 if test $fits_in_uint = 1; then 11358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11359/* end confdefs.h. */ 11360#include <stddef.h> 11361 extern size_t foo; 11362 extern unsigned long foo; 11363 11364int 11365main () 11366{ 11367 11368 ; 11369 return 0; 11370} 11371_ACEOF 11372if ac_fn_c_try_compile "$LINENO"; then : 11373 fits_in_uint=0 11374fi 11375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11376 fi 11377 if test $fits_in_uint = 1; then 11378 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" 11379 else 11380 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)" 11381 fi 11382 else 11383 gl_cv_size_max='((size_t)~(size_t)0)' 11384 fi 11385 fi 11386 11387fi 11388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5 11389$as_echo "$gl_cv_size_max" >&6; } 11390 if test "$gl_cv_size_max" != yes; then 11391 11392cat >>confdefs.h <<_ACEOF 11393#define SIZE_MAX $gl_cv_size_max 11394_ACEOF 11395 11396 fi 11397 11398 11399 11400 11401 11402 for ac_header in stdint.h 11403do : 11404 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 11405if test "x$ac_cv_header_stdint_h" = x""yes; then : 11406 cat >>confdefs.h <<_ACEOF 11407#define HAVE_STDINT_H 1 11408_ACEOF 11409 11410fi 11411 11412done 11413 11414 11415 11416 11417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5 11418$as_echo_n "checking for working fcntl.h... " >&6; } 11419if test "${gl_cv_header_working_fcntl_h+set}" = set; then : 11420 $as_echo_n "(cached) " >&6 11421else 11422 if test "$cross_compiling" = yes; then : 11423 gl_cv_header_working_fcntl_h=cross-compiling 11424else 11425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11426/* end confdefs.h. */ 11427#include <sys/types.h> 11428 #include <sys/stat.h> 11429 #include <unistd.h> 11430 #include <fcntl.h> 11431 #ifndef O_NOATIME 11432 #define O_NOATIME 0 11433 #endif 11434 #ifndef O_NOFOLLOW 11435 #define O_NOFOLLOW 0 11436 #endif 11437 static int const constants[] = 11438 { 11439 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND, 11440 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY 11441 }; 11442 11443int 11444main () 11445{ 11446 11447 int status = !constants; 11448 { 11449 static char const sym[] = "conftest.sym"; 11450 if (symlink (".", sym) != 0 11451 || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0) 11452 status |= 32; 11453 unlink (sym); 11454 } 11455 { 11456 static char const file[] = "confdefs.h"; 11457 int fd = open (file, O_RDONLY | O_NOATIME); 11458 char c; 11459 struct stat st0, st1; 11460 if (fd < 0 11461 || fstat (fd, &st0) != 0 11462 || sleep (1) != 0 11463 || read (fd, &c, 1) != 1 11464 || close (fd) != 0 11465 || stat (file, &st1) != 0 11466 || st0.st_atime != st1.st_atime) 11467 status |= 64; 11468 } 11469 return status; 11470 ; 11471 return 0; 11472} 11473_ACEOF 11474if ac_fn_c_try_run "$LINENO"; then : 11475 gl_cv_header_working_fcntl_h=yes 11476else 11477 case $? in #( 11478 32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #( 11479 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #( 11480 96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #( 11481 *) gl_cv_header_working_fcntl_h='no';; 11482 esac 11483fi 11484rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11485 conftest.$ac_objext conftest.beam conftest.$ac_ext 11486fi 11487 11488fi 11489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5 11490$as_echo "$gl_cv_header_working_fcntl_h" >&6; } 11491 11492 case $gl_cv_header_working_fcntl_h in #( 11493 *O_NOATIME* | no | cross-compiling) ac_val=0;; #( 11494 *) ac_val=1;; 11495 esac 11496 11497cat >>confdefs.h <<_ACEOF 11498#define HAVE_WORKING_O_NOATIME $ac_val 11499_ACEOF 11500 11501 11502 case $gl_cv_header_working_fcntl_h in #( 11503 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #( 11504 *) ac_val=1;; 11505 esac 11506 11507cat >>confdefs.h <<_ACEOF 11508#define HAVE_WORKING_O_NOFOLLOW $ac_val 11509_ACEOF 11510 11511 11512 11513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 11514$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } 11515if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then : 11516 $as_echo_n "(cached) " >&6 11517else 11518 gt_save_LIBS="$LIBS" 11519 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 11520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11521/* end confdefs.h. */ 11522#include <CoreFoundation/CFPreferences.h> 11523int 11524main () 11525{ 11526CFPreferencesCopyAppValue(NULL, NULL) 11527 ; 11528 return 0; 11529} 11530_ACEOF 11531if ac_fn_c_try_link "$LINENO"; then : 11532 gt_cv_func_CFPreferencesCopyAppValue=yes 11533else 11534 gt_cv_func_CFPreferencesCopyAppValue=no 11535fi 11536rm -f core conftest.err conftest.$ac_objext \ 11537 conftest$ac_exeext conftest.$ac_ext 11538 LIBS="$gt_save_LIBS" 11539fi 11540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 11541$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 11542 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 11543 11544$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h 11545 11546 fi 11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 11548$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } 11549if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then : 11550 $as_echo_n "(cached) " >&6 11551else 11552 gt_save_LIBS="$LIBS" 11553 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 11554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11555/* end confdefs.h. */ 11556#include <CoreFoundation/CFLocale.h> 11557int 11558main () 11559{ 11560CFLocaleCopyCurrent(); 11561 ; 11562 return 0; 11563} 11564_ACEOF 11565if ac_fn_c_try_link "$LINENO"; then : 11566 gt_cv_func_CFLocaleCopyCurrent=yes 11567else 11568 gt_cv_func_CFLocaleCopyCurrent=no 11569fi 11570rm -f core conftest.err conftest.$ac_objext \ 11571 conftest$ac_exeext conftest.$ac_ext 11572 LIBS="$gt_save_LIBS" 11573fi 11574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 11575$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } 11576 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then 11577 11578$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h 11579 11580 fi 11581 INTL_MACOSX_LIBS= 11582 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then 11583 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 11584 fi 11585 11586 11587 11588 11589 11590 11591 11592 case "$enable_silent_rules" in 11593 yes) INTL_DEFAULT_VERBOSITY=0;; 11594 no) INTL_DEFAULT_VERBOSITY=1;; 11595 *) INTL_DEFAULT_VERBOSITY=1;; 11596 esac 11597 11598 11599 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 11600if test "x$ac_cv_type_ptrdiff_t" = x""yes; then : 11601 11602else 11603 11604$as_echo "#define ptrdiff_t long" >>confdefs.h 11605 11606 11607fi 11608 11609 for ac_header in stddef.h stdlib.h string.h 11610do : 11611 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11612ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 11613if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 11614 cat >>confdefs.h <<_ACEOF 11615#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11616_ACEOF 11617 11618fi 11619 11620done 11621 11622 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \ 11623 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb 11624do : 11625 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11626ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11627if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 11628 cat >>confdefs.h <<_ACEOF 11629#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11630_ACEOF 11631 11632fi 11633done 11634 11635 11636 11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5 11638$as_echo_n "checking whether _snprintf is declared... " >&6; } 11639if test "${ac_cv_have_decl__snprintf+set}" = set; then : 11640 $as_echo_n "(cached) " >&6 11641else 11642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11643/* end confdefs.h. */ 11644#include <stdio.h> 11645int 11646main () 11647{ 11648 11649#ifndef _snprintf 11650 char *p = (char *) _snprintf; 11651#endif 11652 11653 ; 11654 return 0; 11655} 11656_ACEOF 11657if ac_fn_c_try_compile "$LINENO"; then : 11658 ac_cv_have_decl__snprintf=yes 11659else 11660 ac_cv_have_decl__snprintf=no 11661fi 11662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11663fi 11664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5 11665$as_echo "$ac_cv_have_decl__snprintf" >&6; } 11666 if test $ac_cv_have_decl__snprintf = yes; then 11667 gt_value=1 11668 else 11669 gt_value=0 11670 fi 11671 11672cat >>confdefs.h <<_ACEOF 11673#define HAVE_DECL__SNPRINTF $gt_value 11674_ACEOF 11675 11676 11677 11678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5 11679$as_echo_n "checking whether _snwprintf is declared... " >&6; } 11680if test "${ac_cv_have_decl__snwprintf+set}" = set; then : 11681 $as_echo_n "(cached) " >&6 11682else 11683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11684/* end confdefs.h. */ 11685#include <stdio.h> 11686int 11687main () 11688{ 11689 11690#ifndef _snwprintf 11691 char *p = (char *) _snwprintf; 11692#endif 11693 11694 ; 11695 return 0; 11696} 11697_ACEOF 11698if ac_fn_c_try_compile "$LINENO"; then : 11699 ac_cv_have_decl__snwprintf=yes 11700else 11701 ac_cv_have_decl__snwprintf=no 11702fi 11703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11704fi 11705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5 11706$as_echo "$ac_cv_have_decl__snwprintf" >&6; } 11707 if test $ac_cv_have_decl__snwprintf = yes; then 11708 gt_value=1 11709 else 11710 gt_value=0 11711 fi 11712 11713cat >>confdefs.h <<_ACEOF 11714#define HAVE_DECL__SNWPRINTF $gt_value 11715_ACEOF 11716 11717 11718 11719 11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5 11721$as_echo_n "checking whether getc_unlocked is declared... " >&6; } 11722if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then : 11723 $as_echo_n "(cached) " >&6 11724else 11725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11726/* end confdefs.h. */ 11727#include <stdio.h> 11728int 11729main () 11730{ 11731 11732#ifndef getc_unlocked 11733 char *p = (char *) getc_unlocked; 11734#endif 11735 11736 ; 11737 return 0; 11738} 11739_ACEOF 11740if ac_fn_c_try_compile "$LINENO"; then : 11741 ac_cv_have_decl_getc_unlocked=yes 11742else 11743 ac_cv_have_decl_getc_unlocked=no 11744fi 11745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11746fi 11747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5 11748$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; } 11749 if test $ac_cv_have_decl_getc_unlocked = yes; then 11750 gt_value=1 11751 else 11752 gt_value=0 11753 fi 11754 11755cat >>confdefs.h <<_ACEOF 11756#define HAVE_DECL_GETC_UNLOCKED $gt_value 11757_ACEOF 11758 11759 11760 11761 case $gt_cv_func_printf_posix in 11762 *yes) HAVE_POSIX_PRINTF=1 ;; 11763 *) HAVE_POSIX_PRINTF=0 ;; 11764 esac 11765 11766 if test "$ac_cv_func_asprintf" = yes; then 11767 HAVE_ASPRINTF=1 11768 else 11769 HAVE_ASPRINTF=0 11770 fi 11771 11772 if test "$ac_cv_func_snprintf" = yes; then 11773 HAVE_SNPRINTF=1 11774 else 11775 HAVE_SNPRINTF=0 11776 fi 11777 11778 if test "$ac_cv_func_newlocale" = yes; then 11779 HAVE_NEWLOCALE=1 11780 else 11781 HAVE_NEWLOCALE=0 11782 fi 11783 11784 if test "$ac_cv_func_wprintf" = yes; then 11785 HAVE_WPRINTF=1 11786 else 11787 HAVE_WPRINTF=0 11788 fi 11789 11790 11791 11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 11793$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 11794if test "${am_cv_langinfo_codeset+set}" = set; then : 11795 $as_echo_n "(cached) " >&6 11796else 11797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11798/* end confdefs.h. */ 11799#include <langinfo.h> 11800int 11801main () 11802{ 11803char* cs = nl_langinfo(CODESET); return !cs; 11804 ; 11805 return 0; 11806} 11807_ACEOF 11808if ac_fn_c_try_link "$LINENO"; then : 11809 am_cv_langinfo_codeset=yes 11810else 11811 am_cv_langinfo_codeset=no 11812fi 11813rm -f core conftest.err conftest.$ac_objext \ 11814 conftest$ac_exeext conftest.$ac_ext 11815 11816fi 11817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 11818$as_echo "$am_cv_langinfo_codeset" >&6; } 11819 if test $am_cv_langinfo_codeset = yes; then 11820 11821$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 11822 11823 fi 11824 11825 11826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 11827$as_echo_n "checking for LC_MESSAGES... " >&6; } 11828if test "${gt_cv_val_LC_MESSAGES+set}" = set; then : 11829 $as_echo_n "(cached) " >&6 11830else 11831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11832/* end confdefs.h. */ 11833#include <locale.h> 11834int 11835main () 11836{ 11837return LC_MESSAGES 11838 ; 11839 return 0; 11840} 11841_ACEOF 11842if ac_fn_c_try_link "$LINENO"; then : 11843 gt_cv_val_LC_MESSAGES=yes 11844else 11845 gt_cv_val_LC_MESSAGES=no 11846fi 11847rm -f core conftest.err conftest.$ac_objext \ 11848 conftest$ac_exeext conftest.$ac_ext 11849fi 11850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5 11851$as_echo "$gt_cv_val_LC_MESSAGES" >&6; } 11852 if test $gt_cv_val_LC_MESSAGES = yes; then 11853 11854$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h 11855 11856 fi 11857 11858 11859 if test "$enable_shared" = yes; then 11860 case "$host_os" in 11861 mingw* | cygwin*) is_woe32dll=yes ;; 11862 *) is_woe32dll=no ;; 11863 esac 11864 else 11865 is_woe32dll=no 11866 fi 11867 WOE32DLL=$is_woe32dll 11868 11869 11870 case "$host_os" in 11871 mingw* | cygwin*) is_woe32=yes ;; 11872 *) is_woe32=no ;; 11873 esac 11874 WOE32=$is_woe32 11875 11876 if test $WOE32 = yes; then 11877 if test -n "$ac_tool_prefix"; then 11878 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 11879set dummy ${ac_tool_prefix}windres; ac_word=$2 11880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11881$as_echo_n "checking for $ac_word... " >&6; } 11882if test "${ac_cv_prog_WINDRES+set}" = set; then : 11883 $as_echo_n "(cached) " >&6 11884else 11885 if test -n "$WINDRES"; then 11886 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 11887else 11888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11889for as_dir in $PATH 11890do 11891 IFS=$as_save_IFS 11892 test -z "$as_dir" && as_dir=. 11893 for ac_exec_ext in '' $ac_executable_extensions; do 11894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11895 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" 11896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11897 break 2 11898 fi 11899done 11900 done 11901IFS=$as_save_IFS 11902 11903fi 11904fi 11905WINDRES=$ac_cv_prog_WINDRES 11906if test -n "$WINDRES"; then 11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 11908$as_echo "$WINDRES" >&6; } 11909else 11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11911$as_echo "no" >&6; } 11912fi 11913 11914 11915fi 11916if test -z "$ac_cv_prog_WINDRES"; then 11917 ac_ct_WINDRES=$WINDRES 11918 # Extract the first word of "windres", so it can be a program name with args. 11919set dummy windres; ac_word=$2 11920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11921$as_echo_n "checking for $ac_word... " >&6; } 11922if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then : 11923 $as_echo_n "(cached) " >&6 11924else 11925 if test -n "$ac_ct_WINDRES"; then 11926 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. 11927else 11928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11929for as_dir in $PATH 11930do 11931 IFS=$as_save_IFS 11932 test -z "$as_dir" && as_dir=. 11933 for ac_exec_ext in '' $ac_executable_extensions; do 11934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11935 ac_cv_prog_ac_ct_WINDRES="windres" 11936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11937 break 2 11938 fi 11939done 11940 done 11941IFS=$as_save_IFS 11942 11943fi 11944fi 11945ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES 11946if test -n "$ac_ct_WINDRES"; then 11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 11948$as_echo "$ac_ct_WINDRES" >&6; } 11949else 11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11951$as_echo "no" >&6; } 11952fi 11953 11954 if test "x$ac_ct_WINDRES" = x; then 11955 WINDRES="" 11956 else 11957 case $cross_compiling:$ac_tool_warned in 11958yes:) 11959{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11960$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11961ac_tool_warned=yes ;; 11962esac 11963 WINDRES=$ac_ct_WINDRES 11964 fi 11965else 11966 WINDRES="$ac_cv_prog_WINDRES" 11967fi 11968 11969 fi 11970 11971 case "$host_os" in 11972 hpux*) LTLIBC="" ;; 11973 *) LTLIBC="-lc" ;; 11974 esac 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 12003$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } 12004if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then : 12005 $as_echo_n "(cached) " >&6 12006else 12007 gt_save_LIBS="$LIBS" 12008 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 12009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12010/* end confdefs.h. */ 12011#include <CoreFoundation/CFPreferences.h> 12012int 12013main () 12014{ 12015CFPreferencesCopyAppValue(NULL, NULL) 12016 ; 12017 return 0; 12018} 12019_ACEOF 12020if ac_fn_c_try_link "$LINENO"; then : 12021 gt_cv_func_CFPreferencesCopyAppValue=yes 12022else 12023 gt_cv_func_CFPreferencesCopyAppValue=no 12024fi 12025rm -f core conftest.err conftest.$ac_objext \ 12026 conftest$ac_exeext conftest.$ac_ext 12027 LIBS="$gt_save_LIBS" 12028fi 12029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 12030$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 12031 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 12032 12033$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h 12034 12035 fi 12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 12037$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } 12038if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then : 12039 $as_echo_n "(cached) " >&6 12040else 12041 gt_save_LIBS="$LIBS" 12042 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 12043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12044/* end confdefs.h. */ 12045#include <CoreFoundation/CFLocale.h> 12046int 12047main () 12048{ 12049CFLocaleCopyCurrent(); 12050 ; 12051 return 0; 12052} 12053_ACEOF 12054if ac_fn_c_try_link "$LINENO"; then : 12055 gt_cv_func_CFLocaleCopyCurrent=yes 12056else 12057 gt_cv_func_CFLocaleCopyCurrent=no 12058fi 12059rm -f core conftest.err conftest.$ac_objext \ 12060 conftest$ac_exeext conftest.$ac_ext 12061 LIBS="$gt_save_LIBS" 12062fi 12063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 12064$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } 12065 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then 12066 12067$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h 12068 12069 fi 12070 INTL_MACOSX_LIBS= 12071 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then 12072 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 12073 fi 12074 12075 12076 12077 12078 12079 12080 BUILD_INCLUDED_LIBINTL=no 12081 USE_INCLUDED_LIBINTL=no 12082 12083 LIBINTL= 12084 LTLIBINTL= 12085 POSUB= 12086 12087 case " $gt_needs " in 12088 *" need-formatstring-macros "*) gt_api_version=3 ;; 12089 *" need-ngettext "*) gt_api_version=2 ;; 12090 *) gt_api_version=1 ;; 12091 esac 12092 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" 12093 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" 12094 12095 if test "$USE_NLS" = "yes"; then 12096 gt_use_preinstalled_gnugettext=no 12097 12098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5 12099$as_echo_n "checking whether included gettext is requested... " >&6; } 12100 12101# Check whether --with-included-gettext was given. 12102if test "${with_included_gettext+set}" = set; then : 12103 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval 12104else 12105 nls_cv_force_use_gnu_gettext=no 12106fi 12107 12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5 12109$as_echo "$nls_cv_force_use_gnu_gettext" >&6; } 12110 12111 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 12112 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 12113 12114 12115 if test $gt_api_version -ge 3; then 12116 gt_revision_test_code=' 12117#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 12118#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 12119#endif 12120typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 12121' 12122 else 12123 gt_revision_test_code= 12124 fi 12125 if test $gt_api_version -ge 2; then 12126 gt_expression_test_code=' + * ngettext ("", "", 0)' 12127 else 12128 gt_expression_test_code= 12129 fi 12130 12131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 12132$as_echo_n "checking for GNU gettext in libc... " >&6; } 12133if eval "test \"\${$gt_func_gnugettext_libc+set}\"" = set; then : 12134 $as_echo_n "(cached) " >&6 12135else 12136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12137/* end confdefs.h. */ 12138#include <libintl.h> 12139$gt_revision_test_code 12140extern int _nl_msg_cat_cntr; 12141extern int *_nl_domain_bindings; 12142int 12143main () 12144{ 12145bindtextdomain ("", ""); 12146return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings 12147 ; 12148 return 0; 12149} 12150_ACEOF 12151if ac_fn_c_try_link "$LINENO"; then : 12152 eval "$gt_func_gnugettext_libc=yes" 12153else 12154 eval "$gt_func_gnugettext_libc=no" 12155fi 12156rm -f core conftest.err conftest.$ac_objext \ 12157 conftest$ac_exeext conftest.$ac_ext 12158fi 12159eval ac_res=\$$gt_func_gnugettext_libc 12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 12161$as_echo "$ac_res" >&6; } 12162 12163 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 12164 12165 12166 12167 12168 12169 12170 12171 12172 use_additional=yes 12173 12174 acl_save_prefix="$prefix" 12175 prefix="$acl_final_prefix" 12176 acl_save_exec_prefix="$exec_prefix" 12177 exec_prefix="$acl_final_exec_prefix" 12178 12179 eval additional_includedir=\"$includedir\" 12180 eval additional_libdir=\"$libdir\" 12181 12182 exec_prefix="$acl_save_exec_prefix" 12183 prefix="$acl_save_prefix" 12184 12185 12186# Check whether --with-libintl-prefix was given. 12187if test "${with_libintl_prefix+set}" = set; then : 12188 withval=$with_libintl_prefix; 12189 if test "X$withval" = "Xno"; then 12190 use_additional=no 12191 else 12192 if test "X$withval" = "X"; then 12193 12194 acl_save_prefix="$prefix" 12195 prefix="$acl_final_prefix" 12196 acl_save_exec_prefix="$exec_prefix" 12197 exec_prefix="$acl_final_exec_prefix" 12198 12199 eval additional_includedir=\"$includedir\" 12200 eval additional_libdir=\"$libdir\" 12201 12202 exec_prefix="$acl_save_exec_prefix" 12203 prefix="$acl_save_prefix" 12204 12205 else 12206 additional_includedir="$withval/include" 12207 additional_libdir="$withval/$acl_libdirstem" 12208 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 12209 && ! test -d "$withval/$acl_libdirstem"; then 12210 additional_libdir="$withval/$acl_libdirstem2" 12211 fi 12212 fi 12213 fi 12214 12215fi 12216 12217 LIBINTL= 12218 LTLIBINTL= 12219 INCINTL= 12220 LIBINTL_PREFIX= 12221 HAVE_LIBINTL= 12222 rpathdirs= 12223 ltrpathdirs= 12224 names_already_handled= 12225 names_next_round='intl ' 12226 while test -n "$names_next_round"; do 12227 names_this_round="$names_next_round" 12228 names_next_round= 12229 for name in $names_this_round; do 12230 already_handled= 12231 for n in $names_already_handled; do 12232 if test "$n" = "$name"; then 12233 already_handled=yes 12234 break 12235 fi 12236 done 12237 if test -z "$already_handled"; then 12238 names_already_handled="$names_already_handled $name" 12239 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 12240 eval value=\"\$HAVE_LIB$uppername\" 12241 if test -n "$value"; then 12242 if test "$value" = yes; then 12243 eval value=\"\$LIB$uppername\" 12244 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 12245 eval value=\"\$LTLIB$uppername\" 12246 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 12247 else 12248 : 12249 fi 12250 else 12251 found_dir= 12252 found_la= 12253 found_so= 12254 found_a= 12255 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 12256 if test -n "$acl_shlibext"; then 12257 shrext=".$acl_shlibext" # typically: shrext=.so 12258 else 12259 shrext= 12260 fi 12261 if test $use_additional = yes; then 12262 dir="$additional_libdir" 12263 if test -n "$acl_shlibext"; then 12264 if test -f "$dir/$libname$shrext"; then 12265 found_dir="$dir" 12266 found_so="$dir/$libname$shrext" 12267 else 12268 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 12269 ver=`(cd "$dir" && \ 12270 for f in "$libname$shrext".*; do echo "$f"; done \ 12271 | sed -e "s,^$libname$shrext\\\\.,," \ 12272 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 12273 | sed 1q ) 2>/dev/null` 12274 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 12275 found_dir="$dir" 12276 found_so="$dir/$libname$shrext.$ver" 12277 fi 12278 else 12279 eval library_names=\"$acl_library_names_spec\" 12280 for f in $library_names; do 12281 if test -f "$dir/$f"; then 12282 found_dir="$dir" 12283 found_so="$dir/$f" 12284 break 12285 fi 12286 done 12287 fi 12288 fi 12289 fi 12290 if test "X$found_dir" = "X"; then 12291 if test -f "$dir/$libname.$acl_libext"; then 12292 found_dir="$dir" 12293 found_a="$dir/$libname.$acl_libext" 12294 fi 12295 fi 12296 if test "X$found_dir" != "X"; then 12297 if test -f "$dir/$libname.la"; then 12298 found_la="$dir/$libname.la" 12299 fi 12300 fi 12301 fi 12302 if test "X$found_dir" = "X"; then 12303 for x in $LDFLAGS $LTLIBINTL; do 12304 12305 acl_save_prefix="$prefix" 12306 prefix="$acl_final_prefix" 12307 acl_save_exec_prefix="$exec_prefix" 12308 exec_prefix="$acl_final_exec_prefix" 12309 eval x=\"$x\" 12310 exec_prefix="$acl_save_exec_prefix" 12311 prefix="$acl_save_prefix" 12312 12313 case "$x" in 12314 -L*) 12315 dir=`echo "X$x" | sed -e 's/^X-L//'` 12316 if test -n "$acl_shlibext"; then 12317 if test -f "$dir/$libname$shrext"; then 12318 found_dir="$dir" 12319 found_so="$dir/$libname$shrext" 12320 else 12321 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 12322 ver=`(cd "$dir" && \ 12323 for f in "$libname$shrext".*; do echo "$f"; done \ 12324 | sed -e "s,^$libname$shrext\\\\.,," \ 12325 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 12326 | sed 1q ) 2>/dev/null` 12327 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 12328 found_dir="$dir" 12329 found_so="$dir/$libname$shrext.$ver" 12330 fi 12331 else 12332 eval library_names=\"$acl_library_names_spec\" 12333 for f in $library_names; do 12334 if test -f "$dir/$f"; then 12335 found_dir="$dir" 12336 found_so="$dir/$f" 12337 break 12338 fi 12339 done 12340 fi 12341 fi 12342 fi 12343 if test "X$found_dir" = "X"; then 12344 if test -f "$dir/$libname.$acl_libext"; then 12345 found_dir="$dir" 12346 found_a="$dir/$libname.$acl_libext" 12347 fi 12348 fi 12349 if test "X$found_dir" != "X"; then 12350 if test -f "$dir/$libname.la"; then 12351 found_la="$dir/$libname.la" 12352 fi 12353 fi 12354 ;; 12355 esac 12356 if test "X$found_dir" != "X"; then 12357 break 12358 fi 12359 done 12360 fi 12361 if test "X$found_dir" != "X"; then 12362 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 12363 if test "X$found_so" != "X"; then 12364 if test "$enable_rpath" = no \ 12365 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 12366 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 12367 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 12368 else 12369 haveit= 12370 for x in $ltrpathdirs; do 12371 if test "X$x" = "X$found_dir"; then 12372 haveit=yes 12373 break 12374 fi 12375 done 12376 if test -z "$haveit"; then 12377 ltrpathdirs="$ltrpathdirs $found_dir" 12378 fi 12379 if test "$acl_hardcode_direct" = yes; then 12380 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 12381 else 12382 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 12383 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 12384 haveit= 12385 for x in $rpathdirs; do 12386 if test "X$x" = "X$found_dir"; then 12387 haveit=yes 12388 break 12389 fi 12390 done 12391 if test -z "$haveit"; then 12392 rpathdirs="$rpathdirs $found_dir" 12393 fi 12394 else 12395 haveit= 12396 for x in $LDFLAGS $LIBINTL; do 12397 12398 acl_save_prefix="$prefix" 12399 prefix="$acl_final_prefix" 12400 acl_save_exec_prefix="$exec_prefix" 12401 exec_prefix="$acl_final_exec_prefix" 12402 eval x=\"$x\" 12403 exec_prefix="$acl_save_exec_prefix" 12404 prefix="$acl_save_prefix" 12405 12406 if test "X$x" = "X-L$found_dir"; then 12407 haveit=yes 12408 break 12409 fi 12410 done 12411 if test -z "$haveit"; then 12412 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 12413 fi 12414 if test "$acl_hardcode_minus_L" != no; then 12415 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 12416 else 12417 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 12418 fi 12419 fi 12420 fi 12421 fi 12422 else 12423 if test "X$found_a" != "X"; then 12424 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 12425 else 12426 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 12427 fi 12428 fi 12429 additional_includedir= 12430 case "$found_dir" in 12431 */$acl_libdirstem | */$acl_libdirstem/) 12432 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 12433 if test "$name" = 'intl'; then 12434 LIBINTL_PREFIX="$basedir" 12435 fi 12436 additional_includedir="$basedir/include" 12437 ;; 12438 */$acl_libdirstem2 | */$acl_libdirstem2/) 12439 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 12440 if test "$name" = 'intl'; then 12441 LIBINTL_PREFIX="$basedir" 12442 fi 12443 additional_includedir="$basedir/include" 12444 ;; 12445 esac 12446 if test "X$additional_includedir" != "X"; then 12447 if test "X$additional_includedir" != "X/usr/include"; then 12448 haveit= 12449 if test "X$additional_includedir" = "X/usr/local/include"; then 12450 if test -n "$GCC"; then 12451 case $host_os in 12452 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 12453 esac 12454 fi 12455 fi 12456 if test -z "$haveit"; then 12457 for x in $CPPFLAGS $INCINTL; do 12458 12459 acl_save_prefix="$prefix" 12460 prefix="$acl_final_prefix" 12461 acl_save_exec_prefix="$exec_prefix" 12462 exec_prefix="$acl_final_exec_prefix" 12463 eval x=\"$x\" 12464 exec_prefix="$acl_save_exec_prefix" 12465 prefix="$acl_save_prefix" 12466 12467 if test "X$x" = "X-I$additional_includedir"; then 12468 haveit=yes 12469 break 12470 fi 12471 done 12472 if test -z "$haveit"; then 12473 if test -d "$additional_includedir"; then 12474 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 12475 fi 12476 fi 12477 fi 12478 fi 12479 fi 12480 if test -n "$found_la"; then 12481 save_libdir="$libdir" 12482 case "$found_la" in 12483 */* | *\\*) . "$found_la" ;; 12484 *) . "./$found_la" ;; 12485 esac 12486 libdir="$save_libdir" 12487 for dep in $dependency_libs; do 12488 case "$dep" in 12489 -L*) 12490 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 12491 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 12492 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 12493 haveit= 12494 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 12495 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 12496 if test -n "$GCC"; then 12497 case $host_os in 12498 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 12499 esac 12500 fi 12501 fi 12502 if test -z "$haveit"; then 12503 haveit= 12504 for x in $LDFLAGS $LIBINTL; do 12505 12506 acl_save_prefix="$prefix" 12507 prefix="$acl_final_prefix" 12508 acl_save_exec_prefix="$exec_prefix" 12509 exec_prefix="$acl_final_exec_prefix" 12510 eval x=\"$x\" 12511 exec_prefix="$acl_save_exec_prefix" 12512 prefix="$acl_save_prefix" 12513 12514 if test "X$x" = "X-L$additional_libdir"; then 12515 haveit=yes 12516 break 12517 fi 12518 done 12519 if test -z "$haveit"; then 12520 if test -d "$additional_libdir"; then 12521 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 12522 fi 12523 fi 12524 haveit= 12525 for x in $LDFLAGS $LTLIBINTL; do 12526 12527 acl_save_prefix="$prefix" 12528 prefix="$acl_final_prefix" 12529 acl_save_exec_prefix="$exec_prefix" 12530 exec_prefix="$acl_final_exec_prefix" 12531 eval x=\"$x\" 12532 exec_prefix="$acl_save_exec_prefix" 12533 prefix="$acl_save_prefix" 12534 12535 if test "X$x" = "X-L$additional_libdir"; then 12536 haveit=yes 12537 break 12538 fi 12539 done 12540 if test -z "$haveit"; then 12541 if test -d "$additional_libdir"; then 12542 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 12543 fi 12544 fi 12545 fi 12546 fi 12547 ;; 12548 -R*) 12549 dir=`echo "X$dep" | sed -e 's/^X-R//'` 12550 if test "$enable_rpath" != no; then 12551 haveit= 12552 for x in $rpathdirs; do 12553 if test "X$x" = "X$dir"; then 12554 haveit=yes 12555 break 12556 fi 12557 done 12558 if test -z "$haveit"; then 12559 rpathdirs="$rpathdirs $dir" 12560 fi 12561 haveit= 12562 for x in $ltrpathdirs; do 12563 if test "X$x" = "X$dir"; then 12564 haveit=yes 12565 break 12566 fi 12567 done 12568 if test -z "$haveit"; then 12569 ltrpathdirs="$ltrpathdirs $dir" 12570 fi 12571 fi 12572 ;; 12573 -l*) 12574 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 12575 ;; 12576 *.la) 12577 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 12578 ;; 12579 *) 12580 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 12581 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 12582 ;; 12583 esac 12584 done 12585 fi 12586 else 12587 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 12588 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 12589 fi 12590 fi 12591 fi 12592 done 12593 done 12594 if test "X$rpathdirs" != "X"; then 12595 if test -n "$acl_hardcode_libdir_separator"; then 12596 alldirs= 12597 for found_dir in $rpathdirs; do 12598 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 12599 done 12600 acl_save_libdir="$libdir" 12601 libdir="$alldirs" 12602 eval flag=\"$acl_hardcode_libdir_flag_spec\" 12603 libdir="$acl_save_libdir" 12604 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 12605 else 12606 for found_dir in $rpathdirs; do 12607 acl_save_libdir="$libdir" 12608 libdir="$found_dir" 12609 eval flag=\"$acl_hardcode_libdir_flag_spec\" 12610 libdir="$acl_save_libdir" 12611 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 12612 done 12613 fi 12614 fi 12615 if test "X$ltrpathdirs" != "X"; then 12616 for found_dir in $ltrpathdirs; do 12617 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 12618 done 12619 fi 12620 12621 12622 12623 12624 12625 12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 12627$as_echo_n "checking for GNU gettext in libintl... " >&6; } 12628if eval "test \"\${$gt_func_gnugettext_libintl+set}\"" = set; then : 12629 $as_echo_n "(cached) " >&6 12630else 12631 gt_save_CPPFLAGS="$CPPFLAGS" 12632 CPPFLAGS="$CPPFLAGS $INCINTL" 12633 gt_save_LIBS="$LIBS" 12634 LIBS="$LIBS $LIBINTL" 12635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12636/* end confdefs.h. */ 12637#include <libintl.h> 12638$gt_revision_test_code 12639extern int _nl_msg_cat_cntr; 12640extern 12641#ifdef __cplusplus 12642"C" 12643#endif 12644const char *_nl_expand_alias (const char *); 12645int 12646main () 12647{ 12648bindtextdomain ("", ""); 12649return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 12650 ; 12651 return 0; 12652} 12653_ACEOF 12654if ac_fn_c_try_link "$LINENO"; then : 12655 eval "$gt_func_gnugettext_libintl=yes" 12656else 12657 eval "$gt_func_gnugettext_libintl=no" 12658fi 12659rm -f core conftest.err conftest.$ac_objext \ 12660 conftest$ac_exeext conftest.$ac_ext 12661 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then 12662 LIBS="$LIBS $LIBICONV" 12663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12664/* end confdefs.h. */ 12665#include <libintl.h> 12666$gt_revision_test_code 12667extern int _nl_msg_cat_cntr; 12668extern 12669#ifdef __cplusplus 12670"C" 12671#endif 12672const char *_nl_expand_alias (const char *); 12673int 12674main () 12675{ 12676bindtextdomain ("", ""); 12677return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 12678 ; 12679 return 0; 12680} 12681_ACEOF 12682if ac_fn_c_try_link "$LINENO"; then : 12683 LIBINTL="$LIBINTL $LIBICONV" 12684 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 12685 eval "$gt_func_gnugettext_libintl=yes" 12686 12687fi 12688rm -f core conftest.err conftest.$ac_objext \ 12689 conftest$ac_exeext conftest.$ac_ext 12690 fi 12691 CPPFLAGS="$gt_save_CPPFLAGS" 12692 LIBS="$gt_save_LIBS" 12693fi 12694eval ac_res=\$$gt_func_gnugettext_libintl 12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 12696$as_echo "$ac_res" >&6; } 12697 fi 12698 12699 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ 12700 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ 12701 && test "$PACKAGE" != gettext-runtime \ 12702 && test "$PACKAGE" != gettext-tools; }; then 12703 gt_use_preinstalled_gnugettext=yes 12704 else 12705 LIBINTL= 12706 LTLIBINTL= 12707 INCINTL= 12708 fi 12709 12710 12711 if test "$gt_use_preinstalled_gnugettext" != "yes"; then 12712 nls_cv_use_gnu_gettext=yes 12713 fi 12714 fi 12715 12716 if test "$nls_cv_use_gnu_gettext" = "yes"; then 12717 BUILD_INCLUDED_LIBINTL=yes 12718 USE_INCLUDED_LIBINTL=yes 12719 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD" 12720 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD" 12721 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` 12722 fi 12723 12724 CATOBJEXT= 12725 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 12726 || test "$nls_cv_use_gnu_gettext" = "yes"; then 12727 CATOBJEXT=.gmo 12728 fi 12729 12730 12731 if test -n "$INTL_MACOSX_LIBS"; then 12732 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 12733 || test "$nls_cv_use_gnu_gettext" = "yes"; then 12734 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 12735 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 12736 fi 12737 fi 12738 12739 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 12740 || test "$nls_cv_use_gnu_gettext" = "yes"; then 12741 12742$as_echo "#define ENABLE_NLS 1" >>confdefs.h 12743 12744 else 12745 USE_NLS=no 12746 fi 12747 fi 12748 12749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 12750$as_echo_n "checking whether to use NLS... " >&6; } 12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 12752$as_echo "$USE_NLS" >&6; } 12753 if test "$USE_NLS" = "yes"; then 12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 12755$as_echo_n "checking where the gettext function comes from... " >&6; } 12756 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 12757 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 12758 gt_source="external libintl" 12759 else 12760 gt_source="libc" 12761 fi 12762 else 12763 gt_source="included intl directory" 12764 fi 12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 12766$as_echo "$gt_source" >&6; } 12767 fi 12768 12769 if test "$USE_NLS" = "yes"; then 12770 12771 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 12772 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 12773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 12774$as_echo_n "checking how to link with libintl... " >&6; } 12775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 12776$as_echo "$LIBINTL" >&6; } 12777 12778 for element in $INCINTL; do 12779 haveit= 12780 for x in $CPPFLAGS; do 12781 12782 acl_save_prefix="$prefix" 12783 prefix="$acl_final_prefix" 12784 acl_save_exec_prefix="$exec_prefix" 12785 exec_prefix="$acl_final_exec_prefix" 12786 eval x=\"$x\" 12787 exec_prefix="$acl_save_exec_prefix" 12788 prefix="$acl_save_prefix" 12789 12790 if test "X$x" = "X$element"; then 12791 haveit=yes 12792 break 12793 fi 12794 done 12795 if test -z "$haveit"; then 12796 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 12797 fi 12798 done 12799 12800 fi 12801 12802 12803$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 12804 12805 12806$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h 12807 12808 fi 12809 12810 POSUB=po 12811 fi 12812 12813 12814 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then 12815 BUILD_INCLUDED_LIBINTL=yes 12816 fi 12817 12818 12819 12820 12821 12822 nls_cv_header_intl= 12823 nls_cv_header_libgt= 12824 12825 DATADIRNAME=share 12826 12827 12828 INSTOBJEXT=.mo 12829 12830 12831 GENCAT=gencat 12832 12833 12834 INTLOBJS= 12835 if test "$USE_INCLUDED_LIBINTL" = yes; then 12836 INTLOBJS="\$(GETTOBJS)" 12837 fi 12838 12839 12840 INTL_LIBTOOL_SUFFIX_PREFIX= 12841 12842 12843 12844 INTLLIBS="$LIBINTL" 12845 12846 12847 12848 12849 12850 12851CFLAGS="$CFLAGS -I../${srcdir}/intl" 12852LIBS="$LIBS $LIBINTL" 12853 12854 12855ac_config_files="$ac_config_files intl/Makefile Makefile lib/Makefile po/Makefile.in tools/Makefile tools/glade/Makefile tools/glade/actions/Makefile tools/glade/image_nr/Makefile tools/glade/options/Makefile man/Makefile man/cs/Makefile man/de/Makefile man/en/Makefile man/fr/Makefile man/ru/Makefile src/Makefile gliv.spec" 12856 12857 12858cat >confcache <<\_ACEOF 12859# This file is a shell script that caches the results of configure 12860# tests run on this system so they can be shared between configure 12861# scripts and configure runs, see configure's option --config-cache. 12862# It is not useful on other systems. If it contains results you don't 12863# want to keep, you may remove or edit it. 12864# 12865# config.status only pays attention to the cache file if you give it 12866# the --recheck option to rerun configure. 12867# 12868# `ac_cv_env_foo' variables (set or unset) will be overridden when 12869# loading this file, other *unset* `ac_cv_foo' will be assigned the 12870# following values. 12871 12872_ACEOF 12873 12874# The following way of writing the cache mishandles newlines in values, 12875# but we know of no workaround that is simple, portable, and efficient. 12876# So, we kill variables containing newlines. 12877# Ultrix sh set writes to stderr and can't be redirected directly, 12878# and sets the high bit in the cache file unless we assign to the vars. 12879( 12880 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12881 eval ac_val=\$$ac_var 12882 case $ac_val in #( 12883 *${as_nl}*) 12884 case $ac_var in #( 12885 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12886$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12887 esac 12888 case $ac_var in #( 12889 _ | IFS | as_nl) ;; #( 12890 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12891 *) { eval $ac_var=; unset $ac_var;} ;; 12892 esac ;; 12893 esac 12894 done 12895 12896 (set) 2>&1 | 12897 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12898 *${as_nl}ac_space=\ *) 12899 # `set' does not quote correctly, so add quotes: double-quote 12900 # substitution turns \\\\ into \\, and sed turns \\ into \. 12901 sed -n \ 12902 "s/'/'\\\\''/g; 12903 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12904 ;; #( 12905 *) 12906 # `set' quotes correctly as required by POSIX, so do not add quotes. 12907 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12908 ;; 12909 esac | 12910 sort 12911) | 12912 sed ' 12913 /^ac_cv_env_/b end 12914 t clear 12915 :clear 12916 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12917 t end 12918 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12919 :end' >>confcache 12920if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12921 if test -w "$cache_file"; then 12922 test "x$cache_file" != "x/dev/null" && 12923 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12924$as_echo "$as_me: updating cache $cache_file" >&6;} 12925 cat confcache >$cache_file 12926 else 12927 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12928$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12929 fi 12930fi 12931rm -f confcache 12932 12933test "x$prefix" = xNONE && prefix=$ac_default_prefix 12934# Let make expand exec_prefix. 12935test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12936 12937DEFS=-DHAVE_CONFIG_H 12938 12939ac_libobjs= 12940ac_ltlibobjs= 12941U= 12942for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12943 # 1. Remove the extension, and $U if already installed. 12944 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12945 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 12946 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12947 # will be set to the directory where LIBOBJS objects are built. 12948 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12949 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12950done 12951LIBOBJS=$ac_libobjs 12952 12953LTLIBOBJS=$ac_ltlibobjs 12954 12955 12956 if test -n "$EXEEXT"; then 12957 am__EXEEXT_TRUE= 12958 am__EXEEXT_FALSE='#' 12959else 12960 am__EXEEXT_TRUE='#' 12961 am__EXEEXT_FALSE= 12962fi 12963 12964if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12965 as_fn_error $? "conditional \"AMDEP\" was never defined. 12966Usually this means the macro was only invoked conditionally." "$LINENO" 5 12967fi 12968if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12969 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12970Usually this means the macro was only invoked conditionally." "$LINENO" 5 12971fi 12972if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12973 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12974Usually this means the macro was only invoked conditionally." "$LINENO" 5 12975fi 12976if test -z "${GETDELIM_TRUE}" && test -z "${GETDELIM_FALSE}"; then 12977 as_fn_error $? "conditional \"GETDELIM\" was never defined. 12978Usually this means the macro was only invoked conditionally." "$LINENO" 5 12979fi 12980if test -z "${GETOPT_LONG_TRUE}" && test -z "${GETOPT_LONG_FALSE}"; then 12981 as_fn_error $? "conditional \"GETOPT_LONG\" was never defined. 12982Usually this means the macro was only invoked conditionally." "$LINENO" 5 12983fi 12984if test -z "${NEED_REPLACEMENTS_TRUE}" && test -z "${NEED_REPLACEMENTS_FALSE}"; then 12985 as_fn_error $? "conditional \"NEED_REPLACEMENTS\" was never defined. 12986Usually this means the macro was only invoked conditionally." "$LINENO" 5 12987fi 12988if test -z "${NEED_REPLACEMENTS_TRUE}" && test -z "${NEED_REPLACEMENTS_FALSE}"; then 12989 as_fn_error $? "conditional \"NEED_REPLACEMENTS\" was never defined. 12990Usually this means the macro was only invoked conditionally." "$LINENO" 5 12991fi 12992 12993: ${CONFIG_STATUS=./config.status} 12994ac_write_fail=0 12995ac_clean_files_save=$ac_clean_files 12996ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12997{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12998$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 12999as_write_fail=0 13000cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13001#! $SHELL 13002# Generated by $as_me. 13003# Run this file to recreate the current configuration. 13004# Compiler output produced by configure, useful for debugging 13005# configure, is in config.log if it exists. 13006 13007debug=false 13008ac_cs_recheck=false 13009ac_cs_silent=false 13010 13011SHELL=\${CONFIG_SHELL-$SHELL} 13012export SHELL 13013_ASEOF 13014cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13015## -------------------- ## 13016## M4sh Initialization. ## 13017## -------------------- ## 13018 13019# Be more Bourne compatible 13020DUALCASE=1; export DUALCASE # for MKS sh 13021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13022 emulate sh 13023 NULLCMD=: 13024 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13025 # is contrary to our usage. Disable this feature. 13026 alias -g '${1+"$@"}'='"$@"' 13027 setopt NO_GLOB_SUBST 13028else 13029 case `(set -o) 2>/dev/null` in #( 13030 *posix*) : 13031 set -o posix ;; #( 13032 *) : 13033 ;; 13034esac 13035fi 13036 13037 13038as_nl=' 13039' 13040export as_nl 13041# Printing a long string crashes Solaris 7 /usr/bin/printf. 13042as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13043as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13044as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13045# Prefer a ksh shell builtin over an external printf program on Solaris, 13046# but without wasting forks for bash or zsh. 13047if test -z "$BASH_VERSION$ZSH_VERSION" \ 13048 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13049 as_echo='print -r --' 13050 as_echo_n='print -rn --' 13051elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13052 as_echo='printf %s\n' 13053 as_echo_n='printf %s' 13054else 13055 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13056 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13057 as_echo_n='/usr/ucb/echo -n' 13058 else 13059 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13060 as_echo_n_body='eval 13061 arg=$1; 13062 case $arg in #( 13063 *"$as_nl"*) 13064 expr "X$arg" : "X\\(.*\\)$as_nl"; 13065 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13066 esac; 13067 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13068 ' 13069 export as_echo_n_body 13070 as_echo_n='sh -c $as_echo_n_body as_echo' 13071 fi 13072 export as_echo_body 13073 as_echo='sh -c $as_echo_body as_echo' 13074fi 13075 13076# The user is always right. 13077if test "${PATH_SEPARATOR+set}" != set; then 13078 PATH_SEPARATOR=: 13079 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13080 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13081 PATH_SEPARATOR=';' 13082 } 13083fi 13084 13085 13086# IFS 13087# We need space, tab and new line, in precisely that order. Quoting is 13088# there to prevent editors from complaining about space-tab. 13089# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13090# splitting by setting IFS to empty value.) 13091IFS=" "" $as_nl" 13092 13093# Find who we are. Look in the path if we contain no directory separator. 13094case $0 in #(( 13095 *[\\/]* ) as_myself=$0 ;; 13096 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13097for as_dir in $PATH 13098do 13099 IFS=$as_save_IFS 13100 test -z "$as_dir" && as_dir=. 13101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13102 done 13103IFS=$as_save_IFS 13104 13105 ;; 13106esac 13107# We did not find ourselves, most probably we were run as `sh COMMAND' 13108# in which case we are not to be found in the path. 13109if test "x$as_myself" = x; then 13110 as_myself=$0 13111fi 13112if test ! -f "$as_myself"; then 13113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13114 exit 1 13115fi 13116 13117# Unset variables that we do not need and which cause bugs (e.g. in 13118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13119# suppresses any "Segmentation fault" message there. '((' could 13120# trigger a bug in pdksh 5.2.14. 13121for as_var in BASH_ENV ENV MAIL MAILPATH 13122do eval test x\${$as_var+set} = xset \ 13123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13124done 13125PS1='$ ' 13126PS2='> ' 13127PS4='+ ' 13128 13129# NLS nuisances. 13130LC_ALL=C 13131export LC_ALL 13132LANGUAGE=C 13133export LANGUAGE 13134 13135# CDPATH. 13136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13137 13138 13139# as_fn_error STATUS ERROR [LINENO LOG_FD] 13140# ---------------------------------------- 13141# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13142# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13143# script with STATUS, using 1 if that was 0. 13144as_fn_error () 13145{ 13146 as_status=$1; test $as_status -eq 0 && as_status=1 13147 if test "$4"; then 13148 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13149 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13150 fi 13151 $as_echo "$as_me: error: $2" >&2 13152 as_fn_exit $as_status 13153} # as_fn_error 13154 13155 13156# as_fn_set_status STATUS 13157# ----------------------- 13158# Set $? to STATUS, without forking. 13159as_fn_set_status () 13160{ 13161 return $1 13162} # as_fn_set_status 13163 13164# as_fn_exit STATUS 13165# ----------------- 13166# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13167as_fn_exit () 13168{ 13169 set +e 13170 as_fn_set_status $1 13171 exit $1 13172} # as_fn_exit 13173 13174# as_fn_unset VAR 13175# --------------- 13176# Portably unset VAR. 13177as_fn_unset () 13178{ 13179 { eval $1=; unset $1;} 13180} 13181as_unset=as_fn_unset 13182# as_fn_append VAR VALUE 13183# ---------------------- 13184# Append the text in VALUE to the end of the definition contained in VAR. Take 13185# advantage of any shell optimizations that allow amortized linear growth over 13186# repeated appends, instead of the typical quadratic growth present in naive 13187# implementations. 13188if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13189 eval 'as_fn_append () 13190 { 13191 eval $1+=\$2 13192 }' 13193else 13194 as_fn_append () 13195 { 13196 eval $1=\$$1\$2 13197 } 13198fi # as_fn_append 13199 13200# as_fn_arith ARG... 13201# ------------------ 13202# Perform arithmetic evaluation on the ARGs, and store the result in the 13203# global $as_val. Take advantage of shells that can avoid forks. The arguments 13204# must be portable across $(()) and expr. 13205if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13206 eval 'as_fn_arith () 13207 { 13208 as_val=$(( $* )) 13209 }' 13210else 13211 as_fn_arith () 13212 { 13213 as_val=`expr "$@" || test $? -eq 1` 13214 } 13215fi # as_fn_arith 13216 13217 13218if expr a : '\(a\)' >/dev/null 2>&1 && 13219 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13220 as_expr=expr 13221else 13222 as_expr=false 13223fi 13224 13225if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13226 as_basename=basename 13227else 13228 as_basename=false 13229fi 13230 13231if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13232 as_dirname=dirname 13233else 13234 as_dirname=false 13235fi 13236 13237as_me=`$as_basename -- "$0" || 13238$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13239 X"$0" : 'X\(//\)$' \| \ 13240 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13241$as_echo X/"$0" | 13242 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13243 s//\1/ 13244 q 13245 } 13246 /^X\/\(\/\/\)$/{ 13247 s//\1/ 13248 q 13249 } 13250 /^X\/\(\/\).*/{ 13251 s//\1/ 13252 q 13253 } 13254 s/.*/./; q'` 13255 13256# Avoid depending upon Character Ranges. 13257as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13258as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13259as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13260as_cr_digits='0123456789' 13261as_cr_alnum=$as_cr_Letters$as_cr_digits 13262 13263ECHO_C= ECHO_N= ECHO_T= 13264case `echo -n x` in #((((( 13265-n*) 13266 case `echo 'xy\c'` in 13267 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13268 xy) ECHO_C='\c';; 13269 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13270 ECHO_T=' ';; 13271 esac;; 13272*) 13273 ECHO_N='-n';; 13274esac 13275 13276rm -f conf$$ conf$$.exe conf$$.file 13277if test -d conf$$.dir; then 13278 rm -f conf$$.dir/conf$$.file 13279else 13280 rm -f conf$$.dir 13281 mkdir conf$$.dir 2>/dev/null 13282fi 13283if (echo >conf$$.file) 2>/dev/null; then 13284 if ln -s conf$$.file conf$$ 2>/dev/null; then 13285 as_ln_s='ln -s' 13286 # ... but there are two gotchas: 13287 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13288 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13289 # In both cases, we have to default to `cp -p'. 13290 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13291 as_ln_s='cp -p' 13292 elif ln conf$$.file conf$$ 2>/dev/null; then 13293 as_ln_s=ln 13294 else 13295 as_ln_s='cp -p' 13296 fi 13297else 13298 as_ln_s='cp -p' 13299fi 13300rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13301rmdir conf$$.dir 2>/dev/null 13302 13303 13304# as_fn_mkdir_p 13305# ------------- 13306# Create "$as_dir" as a directory, including parents if necessary. 13307as_fn_mkdir_p () 13308{ 13309 13310 case $as_dir in #( 13311 -*) as_dir=./$as_dir;; 13312 esac 13313 test -d "$as_dir" || eval $as_mkdir_p || { 13314 as_dirs= 13315 while :; do 13316 case $as_dir in #( 13317 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13318 *) as_qdir=$as_dir;; 13319 esac 13320 as_dirs="'$as_qdir' $as_dirs" 13321 as_dir=`$as_dirname -- "$as_dir" || 13322$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13323 X"$as_dir" : 'X\(//\)[^/]' \| \ 13324 X"$as_dir" : 'X\(//\)$' \| \ 13325 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13326$as_echo X"$as_dir" | 13327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13328 s//\1/ 13329 q 13330 } 13331 /^X\(\/\/\)[^/].*/{ 13332 s//\1/ 13333 q 13334 } 13335 /^X\(\/\/\)$/{ 13336 s//\1/ 13337 q 13338 } 13339 /^X\(\/\).*/{ 13340 s//\1/ 13341 q 13342 } 13343 s/.*/./; q'` 13344 test -d "$as_dir" && break 13345 done 13346 test -z "$as_dirs" || eval "mkdir $as_dirs" 13347 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 13348 13349 13350} # as_fn_mkdir_p 13351if mkdir -p . 2>/dev/null; then 13352 as_mkdir_p='mkdir -p "$as_dir"' 13353else 13354 test -d ./-p && rmdir ./-p 13355 as_mkdir_p=false 13356fi 13357 13358if test -x / >/dev/null 2>&1; then 13359 as_test_x='test -x' 13360else 13361 if ls -dL / >/dev/null 2>&1; then 13362 as_ls_L_option=L 13363 else 13364 as_ls_L_option= 13365 fi 13366 as_test_x=' 13367 eval sh -c '\'' 13368 if test -d "$1"; then 13369 test -d "$1/."; 13370 else 13371 case $1 in #( 13372 -*)set "./$1";; 13373 esac; 13374 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 13375 ???[sx]*):;;*)false;;esac;fi 13376 '\'' sh 13377 ' 13378fi 13379as_executable_p=$as_test_x 13380 13381# Sed expression to map a string onto a valid CPP name. 13382as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13383 13384# Sed expression to map a string onto a valid variable name. 13385as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13386 13387 13388exec 6>&1 13389## ----------------------------------- ## 13390## Main body of $CONFIG_STATUS script. ## 13391## ----------------------------------- ## 13392_ASEOF 13393test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13394 13395cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13396# Save the log message, to keep $0 and so on meaningful, and to 13397# report actual input values of CONFIG_FILES etc. instead of their 13398# values after options handling. 13399ac_log=" 13400This file was extended by gliv $as_me 1.9.7, which was 13401generated by GNU Autoconf 2.67. Invocation command line was 13402 13403 CONFIG_FILES = $CONFIG_FILES 13404 CONFIG_HEADERS = $CONFIG_HEADERS 13405 CONFIG_LINKS = $CONFIG_LINKS 13406 CONFIG_COMMANDS = $CONFIG_COMMANDS 13407 $ $0 $@ 13408 13409on `(hostname || uname -n) 2>/dev/null | sed 1q` 13410" 13411 13412_ACEOF 13413 13414case $ac_config_files in *" 13415"*) set x $ac_config_files; shift; ac_config_files=$*;; 13416esac 13417 13418case $ac_config_headers in *" 13419"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13420esac 13421 13422 13423cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13424# Files that config.status was made for. 13425config_files="$ac_config_files" 13426config_headers="$ac_config_headers" 13427config_commands="$ac_config_commands" 13428 13429_ACEOF 13430 13431cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13432ac_cs_usage="\ 13433\`$as_me' instantiates files and other configuration actions 13434from templates according to the current configuration. Unless the files 13435and actions are specified as TAGs, all are instantiated by default. 13436 13437Usage: $0 [OPTION]... [TAG]... 13438 13439 -h, --help print this help, then exit 13440 -V, --version print version number and configuration settings, then exit 13441 --config print configuration, then exit 13442 -q, --quiet, --silent 13443 do not print progress messages 13444 -d, --debug don't remove temporary files 13445 --recheck update $as_me by reconfiguring in the same conditions 13446 --file=FILE[:TEMPLATE] 13447 instantiate the configuration file FILE 13448 --header=FILE[:TEMPLATE] 13449 instantiate the configuration header FILE 13450 13451Configuration files: 13452$config_files 13453 13454Configuration headers: 13455$config_headers 13456 13457Configuration commands: 13458$config_commands 13459 13460Report bugs to <guichaz@gmail.com>." 13461 13462_ACEOF 13463cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13464ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 13465ac_cs_version="\\ 13466gliv config.status 1.9.7 13467configured by $0, generated by GNU Autoconf 2.67, 13468 with options \\"\$ac_cs_config\\" 13469 13470Copyright (C) 2010 Free Software Foundation, Inc. 13471This config.status script is free software; the Free Software Foundation 13472gives unlimited permission to copy, distribute and modify it." 13473 13474ac_pwd='$ac_pwd' 13475srcdir='$srcdir' 13476INSTALL='$INSTALL' 13477MKDIR_P='$MKDIR_P' 13478AWK='$AWK' 13479test -n "\$AWK" || AWK=awk 13480_ACEOF 13481 13482cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13483# The default lists apply if the user does not specify any file. 13484ac_need_defaults=: 13485while test $# != 0 13486do 13487 case $1 in 13488 --*=?*) 13489 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13490 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13491 ac_shift=: 13492 ;; 13493 --*=) 13494 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13495 ac_optarg= 13496 ac_shift=: 13497 ;; 13498 *) 13499 ac_option=$1 13500 ac_optarg=$2 13501 ac_shift=shift 13502 ;; 13503 esac 13504 13505 case $ac_option in 13506 # Handling of the options. 13507 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13508 ac_cs_recheck=: ;; 13509 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13510 $as_echo "$ac_cs_version"; exit ;; 13511 --config | --confi | --conf | --con | --co | --c ) 13512 $as_echo "$ac_cs_config"; exit ;; 13513 --debug | --debu | --deb | --de | --d | -d ) 13514 debug=: ;; 13515 --file | --fil | --fi | --f ) 13516 $ac_shift 13517 case $ac_optarg in 13518 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13519 '') as_fn_error $? "missing file argument" ;; 13520 esac 13521 as_fn_append CONFIG_FILES " '$ac_optarg'" 13522 ac_need_defaults=false;; 13523 --header | --heade | --head | --hea ) 13524 $ac_shift 13525 case $ac_optarg in 13526 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13527 esac 13528 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13529 ac_need_defaults=false;; 13530 --he | --h) 13531 # Conflict between --help and --header 13532 as_fn_error $? "ambiguous option: \`$1' 13533Try \`$0 --help' for more information.";; 13534 --help | --hel | -h ) 13535 $as_echo "$ac_cs_usage"; exit ;; 13536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13537 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13538 ac_cs_silent=: ;; 13539 13540 # This is an error. 13541 -*) as_fn_error $? "unrecognized option: \`$1' 13542Try \`$0 --help' for more information." ;; 13543 13544 *) as_fn_append ac_config_targets " $1" 13545 ac_need_defaults=false ;; 13546 13547 esac 13548 shift 13549done 13550 13551ac_configure_extra_args= 13552 13553if $ac_cs_silent; then 13554 exec 6>/dev/null 13555 ac_configure_extra_args="$ac_configure_extra_args --silent" 13556fi 13557 13558_ACEOF 13559cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13560if \$ac_cs_recheck; then 13561 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13562 shift 13563 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13564 CONFIG_SHELL='$SHELL' 13565 export CONFIG_SHELL 13566 exec "\$@" 13567fi 13568 13569_ACEOF 13570cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13571exec 5>>config.log 13572{ 13573 echo 13574 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13575## Running $as_me. ## 13576_ASBOX 13577 $as_echo "$ac_log" 13578} >&5 13579 13580_ACEOF 13581cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13582# 13583# INIT-COMMANDS 13584# 13585AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 13586# Capture the value of obsolete ALL_LINGUAS because we need it to compute 13587 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 13588 # from automake < 1.5. 13589 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 13590 # Capture the value of LINGUAS because we need it to compute CATALOGS. 13591 LINGUAS="${LINGUAS-%UNSET%}" 13592 13593 13594_ACEOF 13595 13596cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13597 13598# Handling of arguments. 13599for ac_config_target in $ac_config_targets 13600do 13601 case $ac_config_target in 13602 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 13603 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13604 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; 13605 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;; 13606 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13607 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 13608 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 13609 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 13610 "tools/glade/Makefile") CONFIG_FILES="$CONFIG_FILES tools/glade/Makefile" ;; 13611 "tools/glade/actions/Makefile") CONFIG_FILES="$CONFIG_FILES tools/glade/actions/Makefile" ;; 13612 "tools/glade/image_nr/Makefile") CONFIG_FILES="$CONFIG_FILES tools/glade/image_nr/Makefile" ;; 13613 "tools/glade/options/Makefile") CONFIG_FILES="$CONFIG_FILES tools/glade/options/Makefile" ;; 13614 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 13615 "man/cs/Makefile") CONFIG_FILES="$CONFIG_FILES man/cs/Makefile" ;; 13616 "man/de/Makefile") CONFIG_FILES="$CONFIG_FILES man/de/Makefile" ;; 13617 "man/en/Makefile") CONFIG_FILES="$CONFIG_FILES man/en/Makefile" ;; 13618 "man/fr/Makefile") CONFIG_FILES="$CONFIG_FILES man/fr/Makefile" ;; 13619 "man/ru/Makefile") CONFIG_FILES="$CONFIG_FILES man/ru/Makefile" ;; 13620 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 13621 "gliv.spec") CONFIG_FILES="$CONFIG_FILES gliv.spec" ;; 13622 13623 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; 13624 esac 13625done 13626 13627 13628# If the user did not use the arguments to specify the items to instantiate, 13629# then the envvar interface is used. Set only those that are not. 13630# We use the long form for the default assignment because of an extremely 13631# bizarre bug on SunOS 4.1.3. 13632if $ac_need_defaults; then 13633 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13634 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 13635 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13636fi 13637 13638# Have a temporary directory for convenience. Make it in the build tree 13639# simply because there is no reason against having it here, and in addition, 13640# creating and moving files from /tmp can sometimes cause problems. 13641# Hook for its removal unless debugging. 13642# Note that there is a small window in which the directory will not be cleaned: 13643# after its creation but before its name has been assigned to `$tmp'. 13644$debug || 13645{ 13646 tmp= 13647 trap 'exit_status=$? 13648 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 13649' 0 13650 trap 'as_fn_exit 1' 1 2 13 15 13651} 13652# Create a (secure) tmp directory for tmp files. 13653 13654{ 13655 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13656 test -n "$tmp" && test -d "$tmp" 13657} || 13658{ 13659 tmp=./conf$$-$RANDOM 13660 (umask 077 && mkdir "$tmp") 13661} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 13662 13663# Set up the scripts for CONFIG_FILES section. 13664# No need to generate them if there are no CONFIG_FILES. 13665# This happens for instance with `./config.status config.h'. 13666if test -n "$CONFIG_FILES"; then 13667 13668 13669ac_cr=`echo X | tr X '\015'` 13670# On cygwin, bash can eat \r inside `` if the user requested igncr. 13671# But we know of no other shell where ac_cr would be empty at this 13672# point, so we can use a bashism as a fallback. 13673if test "x$ac_cr" = x; then 13674 eval ac_cr=\$\'\\r\' 13675fi 13676ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13677if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13678 ac_cs_awk_cr='\\r' 13679else 13680 ac_cs_awk_cr=$ac_cr 13681fi 13682 13683echo 'BEGIN {' >"$tmp/subs1.awk" && 13684_ACEOF 13685 13686 13687{ 13688 echo "cat >conf$$subs.awk <<_ACEOF" && 13689 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13690 echo "_ACEOF" 13691} >conf$$subs.sh || 13692 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13693ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 13694ac_delim='%!_!# ' 13695for ac_last_try in false false false false false :; do 13696 . ./conf$$subs.sh || 13697 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13698 13699 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13700 if test $ac_delim_n = $ac_delim_num; then 13701 break 13702 elif $ac_last_try; then 13703 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13704 else 13705 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13706 fi 13707done 13708rm -f conf$$subs.sh 13709 13710cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13711cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 13712_ACEOF 13713sed -n ' 13714h 13715s/^/S["/; s/!.*/"]=/ 13716p 13717g 13718s/^[^!]*!// 13719:repl 13720t repl 13721s/'"$ac_delim"'$// 13722t delim 13723:nl 13724h 13725s/\(.\{148\}\)..*/\1/ 13726t more1 13727s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13728p 13729n 13730b repl 13731:more1 13732s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13733p 13734g 13735s/.\{148\}// 13736t nl 13737:delim 13738h 13739s/\(.\{148\}\)..*/\1/ 13740t more2 13741s/["\\]/\\&/g; s/^/"/; s/$/"/ 13742p 13743b 13744:more2 13745s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13746p 13747g 13748s/.\{148\}// 13749t delim 13750' <conf$$subs.awk | sed ' 13751/^[^""]/{ 13752 N 13753 s/\n// 13754} 13755' >>$CONFIG_STATUS || ac_write_fail=1 13756rm -f conf$$subs.awk 13757cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13758_ACAWK 13759cat >>"\$tmp/subs1.awk" <<_ACAWK && 13760 for (key in S) S_is_set[key] = 1 13761 FS = "" 13762 13763} 13764{ 13765 line = $ 0 13766 nfields = split(line, field, "@") 13767 substed = 0 13768 len = length(field[1]) 13769 for (i = 2; i < nfields; i++) { 13770 key = field[i] 13771 keylen = length(key) 13772 if (S_is_set[key]) { 13773 value = S[key] 13774 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13775 len += length(value) + length(field[++i]) 13776 substed = 1 13777 } else 13778 len += 1 + keylen 13779 } 13780 13781 print line 13782} 13783 13784_ACAWK 13785_ACEOF 13786cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13787if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13788 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13789else 13790 cat 13791fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 13792 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 13793_ACEOF 13794 13795# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 13796# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 13797# trailing colons and then remove the whole line if VPATH becomes empty 13798# (actually we leave an empty line to preserve line numbers). 13799if test "x$srcdir" = x.; then 13800 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 13801h 13802s/// 13803s/^/:/ 13804s/[ ]*$/:/ 13805s/:\$(srcdir):/:/g 13806s/:\${srcdir}:/:/g 13807s/:@srcdir@:/:/g 13808s/^:*// 13809s/:*$// 13810x 13811s/\(=[ ]*\).*/\1/ 13812G 13813s/\n// 13814s/^[^=]*=[ ]*$// 13815}' 13816fi 13817 13818cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13819fi # test -n "$CONFIG_FILES" 13820 13821# Set up the scripts for CONFIG_HEADERS section. 13822# No need to generate them if there are no CONFIG_HEADERS. 13823# This happens for instance with `./config.status Makefile'. 13824if test -n "$CONFIG_HEADERS"; then 13825cat >"$tmp/defines.awk" <<\_ACAWK || 13826BEGIN { 13827_ACEOF 13828 13829# Transform confdefs.h into an awk script `defines.awk', embedded as 13830# here-document in config.status, that substitutes the proper values into 13831# config.h.in to produce config.h. 13832 13833# Create a delimiter string that does not exist in confdefs.h, to ease 13834# handling of long lines. 13835ac_delim='%!_!# ' 13836for ac_last_try in false false :; do 13837 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 13838 if test -z "$ac_t"; then 13839 break 13840 elif $ac_last_try; then 13841 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 13842 else 13843 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13844 fi 13845done 13846 13847# For the awk script, D is an array of macro values keyed by name, 13848# likewise P contains macro parameters if any. Preserve backslash 13849# newline sequences. 13850 13851ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13852sed -n ' 13853s/.\{148\}/&'"$ac_delim"'/g 13854t rset 13855:rset 13856s/^[ ]*#[ ]*define[ ][ ]*/ / 13857t def 13858d 13859:def 13860s/\\$// 13861t bsnl 13862s/["\\]/\\&/g 13863s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13864D["\1"]=" \3"/p 13865s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13866d 13867:bsnl 13868s/["\\]/\\&/g 13869s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13870D["\1"]=" \3\\\\\\n"\\/p 13871t cont 13872s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13873t cont 13874d 13875:cont 13876n 13877s/.\{148\}/&'"$ac_delim"'/g 13878t clear 13879:clear 13880s/\\$// 13881t bsnlc 13882s/["\\]/\\&/g; s/^/"/; s/$/"/p 13883d 13884:bsnlc 13885s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13886b cont 13887' <confdefs.h | sed ' 13888s/'"$ac_delim"'/"\\\ 13889"/g' >>$CONFIG_STATUS || ac_write_fail=1 13890 13891cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13892 for (key in D) D_is_set[key] = 1 13893 FS = "" 13894} 13895/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13896 line = \$ 0 13897 split(line, arg, " ") 13898 if (arg[1] == "#") { 13899 defundef = arg[2] 13900 mac1 = arg[3] 13901 } else { 13902 defundef = substr(arg[1], 2) 13903 mac1 = arg[2] 13904 } 13905 split(mac1, mac2, "(") #) 13906 macro = mac2[1] 13907 prefix = substr(line, 1, index(line, defundef) - 1) 13908 if (D_is_set[macro]) { 13909 # Preserve the white space surrounding the "#". 13910 print prefix "define", macro P[macro] D[macro] 13911 next 13912 } else { 13913 # Replace #undef with comments. This is necessary, for example, 13914 # in the case of _POSIX_SOURCE, which is predefined and required 13915 # on some systems where configure will not decide to define it. 13916 if (defundef == "undef") { 13917 print "/*", prefix defundef, macro, "*/" 13918 next 13919 } 13920 } 13921} 13922{ print } 13923_ACAWK 13924_ACEOF 13925cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13926 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13927fi # test -n "$CONFIG_HEADERS" 13928 13929 13930eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13931shift 13932for ac_tag 13933do 13934 case $ac_tag in 13935 :[FHLC]) ac_mode=$ac_tag; continue;; 13936 esac 13937 case $ac_mode$ac_tag in 13938 :[FHL]*:*);; 13939 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; 13940 :[FH]-) ac_tag=-:-;; 13941 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13942 esac 13943 ac_save_IFS=$IFS 13944 IFS=: 13945 set x $ac_tag 13946 IFS=$ac_save_IFS 13947 shift 13948 ac_file=$1 13949 shift 13950 13951 case $ac_mode in 13952 :L) ac_source=$1;; 13953 :[FH]) 13954 ac_file_inputs= 13955 for ac_f 13956 do 13957 case $ac_f in 13958 -) ac_f="$tmp/stdin";; 13959 *) # Look for the file first in the build tree, then in the source tree 13960 # (if the path is not absolute). The absolute path cannot be DOS-style, 13961 # because $ac_f cannot contain `:'. 13962 test -f "$ac_f" || 13963 case $ac_f in 13964 [\\/$]*) false;; 13965 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13966 esac || 13967 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; 13968 esac 13969 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13970 as_fn_append ac_file_inputs " '$ac_f'" 13971 done 13972 13973 # Let's still pretend it is `configure' which instantiates (i.e., don't 13974 # use $as_me), people would be surprised to read: 13975 # /* config.h. Generated by config.status. */ 13976 configure_input='Generated from '` 13977 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13978 `' by configure.' 13979 if test x"$ac_file" != x-; then 13980 configure_input="$ac_file. $configure_input" 13981 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13982$as_echo "$as_me: creating $ac_file" >&6;} 13983 fi 13984 # Neutralize special characters interpreted by sed in replacement strings. 13985 case $configure_input in #( 13986 *\&* | *\|* | *\\* ) 13987 ac_sed_conf_input=`$as_echo "$configure_input" | 13988 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13989 *) ac_sed_conf_input=$configure_input;; 13990 esac 13991 13992 case $ac_tag in 13993 *:-:* | *:-) cat >"$tmp/stdin" \ 13994 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13995 esac 13996 ;; 13997 esac 13998 13999 ac_dir=`$as_dirname -- "$ac_file" || 14000$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14001 X"$ac_file" : 'X\(//\)[^/]' \| \ 14002 X"$ac_file" : 'X\(//\)$' \| \ 14003 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14004$as_echo X"$ac_file" | 14005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14006 s//\1/ 14007 q 14008 } 14009 /^X\(\/\/\)[^/].*/{ 14010 s//\1/ 14011 q 14012 } 14013 /^X\(\/\/\)$/{ 14014 s//\1/ 14015 q 14016 } 14017 /^X\(\/\).*/{ 14018 s//\1/ 14019 q 14020 } 14021 s/.*/./; q'` 14022 as_dir="$ac_dir"; as_fn_mkdir_p 14023 ac_builddir=. 14024 14025case "$ac_dir" in 14026.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14027*) 14028 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14029 # A ".." for each directory in $ac_dir_suffix. 14030 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14031 case $ac_top_builddir_sub in 14032 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14033 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14034 esac ;; 14035esac 14036ac_abs_top_builddir=$ac_pwd 14037ac_abs_builddir=$ac_pwd$ac_dir_suffix 14038# for backward compatibility: 14039ac_top_builddir=$ac_top_build_prefix 14040 14041case $srcdir in 14042 .) # We are building in place. 14043 ac_srcdir=. 14044 ac_top_srcdir=$ac_top_builddir_sub 14045 ac_abs_top_srcdir=$ac_pwd ;; 14046 [\\/]* | ?:[\\/]* ) # Absolute name. 14047 ac_srcdir=$srcdir$ac_dir_suffix; 14048 ac_top_srcdir=$srcdir 14049 ac_abs_top_srcdir=$srcdir ;; 14050 *) # Relative name. 14051 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14052 ac_top_srcdir=$ac_top_build_prefix$srcdir 14053 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14054esac 14055ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14056 14057 14058 case $ac_mode in 14059 :F) 14060 # 14061 # CONFIG_FILE 14062 # 14063 14064 case $INSTALL in 14065 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14066 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14067 esac 14068 ac_MKDIR_P=$MKDIR_P 14069 case $MKDIR_P in 14070 [\\/$]* | ?:[\\/]* ) ;; 14071 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14072 esac 14073_ACEOF 14074 14075cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14076# If the template does not know about datarootdir, expand it. 14077# FIXME: This hack should be removed a few years after 2.60. 14078ac_datarootdir_hack=; ac_datarootdir_seen= 14079ac_sed_dataroot=' 14080/datarootdir/ { 14081 p 14082 q 14083} 14084/@datadir@/p 14085/@docdir@/p 14086/@infodir@/p 14087/@localedir@/p 14088/@mandir@/p' 14089case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14090*datarootdir*) ac_datarootdir_seen=yes;; 14091*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14093$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14094_ACEOF 14095cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14096 ac_datarootdir_hack=' 14097 s&@datadir@&$datadir&g 14098 s&@docdir@&$docdir&g 14099 s&@infodir@&$infodir&g 14100 s&@localedir@&$localedir&g 14101 s&@mandir@&$mandir&g 14102 s&\\\${datarootdir}&$datarootdir&g' ;; 14103esac 14104_ACEOF 14105 14106# Neutralize VPATH when `$srcdir' = `.'. 14107# Shell code in configure.ac might set extrasub. 14108# FIXME: do we really want to maintain this feature? 14109cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14110ac_sed_extra="$ac_vpsub 14111$extrasub 14112_ACEOF 14113cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14114:t 14115/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14116s|@configure_input@|$ac_sed_conf_input|;t t 14117s&@top_builddir@&$ac_top_builddir_sub&;t t 14118s&@top_build_prefix@&$ac_top_build_prefix&;t t 14119s&@srcdir@&$ac_srcdir&;t t 14120s&@abs_srcdir@&$ac_abs_srcdir&;t t 14121s&@top_srcdir@&$ac_top_srcdir&;t t 14122s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14123s&@builddir@&$ac_builddir&;t t 14124s&@abs_builddir@&$ac_abs_builddir&;t t 14125s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14126s&@INSTALL@&$ac_INSTALL&;t t 14127s&@MKDIR_P@&$ac_MKDIR_P&;t t 14128$ac_datarootdir_hack 14129" 14130eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 14131 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14132 14133test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14134 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 14135 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 14136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14137which seems to be undefined. Please make sure it is defined" >&5 14138$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14139which seems to be undefined. Please make sure it is defined" >&2;} 14140 14141 rm -f "$tmp/stdin" 14142 case $ac_file in 14143 -) cat "$tmp/out" && rm -f "$tmp/out";; 14144 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 14145 esac \ 14146 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14147 ;; 14148 :H) 14149 # 14150 # CONFIG_HEADER 14151 # 14152 if test x"$ac_file" != x-; then 14153 { 14154 $as_echo "/* $configure_input */" \ 14155 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 14156 } >"$tmp/config.h" \ 14157 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14158 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 14159 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 14160$as_echo "$as_me: $ac_file is unchanged" >&6;} 14161 else 14162 rm -f "$ac_file" 14163 mv "$tmp/config.h" "$ac_file" \ 14164 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14165 fi 14166 else 14167 $as_echo "/* $configure_input */" \ 14168 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 14169 || as_fn_error $? "could not create -" "$LINENO" 5 14170 fi 14171# Compute "$ac_file"'s index in $config_headers. 14172_am_arg="$ac_file" 14173_am_stamp_count=1 14174for _am_header in $config_headers :; do 14175 case $_am_header in 14176 $_am_arg | $_am_arg:* ) 14177 break ;; 14178 * ) 14179 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14180 esac 14181done 14182echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14183$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14184 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14185 X"$_am_arg" : 'X\(//\)$' \| \ 14186 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14187$as_echo X"$_am_arg" | 14188 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14189 s//\1/ 14190 q 14191 } 14192 /^X\(\/\/\)[^/].*/{ 14193 s//\1/ 14194 q 14195 } 14196 /^X\(\/\/\)$/{ 14197 s//\1/ 14198 q 14199 } 14200 /^X\(\/\).*/{ 14201 s//\1/ 14202 q 14203 } 14204 s/.*/./; q'`/stamp-h$_am_stamp_count 14205 ;; 14206 14207 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14208$as_echo "$as_me: executing $ac_file commands" >&6;} 14209 ;; 14210 esac 14211 14212 14213 case $ac_file$ac_mode in 14214 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14215 # Autoconf 2.62 quotes --file arguments for eval, but not when files 14216 # are listed without --file. Let's play safe and only enable the eval 14217 # if we detect the quoting. 14218 case $CONFIG_FILES in 14219 *\'*) eval set x "$CONFIG_FILES" ;; 14220 *) set x $CONFIG_FILES ;; 14221 esac 14222 shift 14223 for mf 14224 do 14225 # Strip MF so we end up with the name of the file. 14226 mf=`echo "$mf" | sed -e 's/:.*$//'` 14227 # Check whether this is an Automake generated Makefile or not. 14228 # We used to match only the files named `Makefile.in', but 14229 # some people rename them; so instead we look at the file content. 14230 # Grep'ing the first line is not enough: some people post-process 14231 # each Makefile.in and add a new line on top of each file to say so. 14232 # Grep'ing the whole file is not good either: AIX grep has a line 14233 # limit of 2048, but all sed's we know have understand at least 4000. 14234 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 14235 dirpart=`$as_dirname -- "$mf" || 14236$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14237 X"$mf" : 'X\(//\)[^/]' \| \ 14238 X"$mf" : 'X\(//\)$' \| \ 14239 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 14240$as_echo X"$mf" | 14241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14242 s//\1/ 14243 q 14244 } 14245 /^X\(\/\/\)[^/].*/{ 14246 s//\1/ 14247 q 14248 } 14249 /^X\(\/\/\)$/{ 14250 s//\1/ 14251 q 14252 } 14253 /^X\(\/\).*/{ 14254 s//\1/ 14255 q 14256 } 14257 s/.*/./; q'` 14258 else 14259 continue 14260 fi 14261 # Extract the definition of DEPDIR, am__include, and am__quote 14262 # from the Makefile without running `make'. 14263 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 14264 test -z "$DEPDIR" && continue 14265 am__include=`sed -n 's/^am__include = //p' < "$mf"` 14266 test -z "am__include" && continue 14267 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 14268 # When using ansi2knr, U may be empty or an underscore; expand it 14269 U=`sed -n 's/^U = //p' < "$mf"` 14270 # Find all dependency output files, they are included files with 14271 # $(DEPDIR) in their names. We invoke sed twice because it is the 14272 # simplest approach to changing $(DEPDIR) to its actual value in the 14273 # expansion. 14274 for file in `sed -n " 14275 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 14276 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 14277 # Make sure the directory exists. 14278 test -f "$dirpart/$file" && continue 14279 fdir=`$as_dirname -- "$file" || 14280$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14281 X"$file" : 'X\(//\)[^/]' \| \ 14282 X"$file" : 'X\(//\)$' \| \ 14283 X"$file" : 'X\(/\)' \| . 2>/dev/null || 14284$as_echo X"$file" | 14285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14286 s//\1/ 14287 q 14288 } 14289 /^X\(\/\/\)[^/].*/{ 14290 s//\1/ 14291 q 14292 } 14293 /^X\(\/\/\)$/{ 14294 s//\1/ 14295 q 14296 } 14297 /^X\(\/\).*/{ 14298 s//\1/ 14299 q 14300 } 14301 s/.*/./; q'` 14302 as_dir=$dirpart/$fdir; as_fn_mkdir_p 14303 # echo "creating $dirpart/$file" 14304 echo '# dummy' > "$dirpart/$file" 14305 done 14306 done 14307} 14308 ;; 14309 "po-directories":C) 14310 for ac_file in $CONFIG_FILES; do 14311 # Support "outfile[:infile[:infile...]]" 14312 case "$ac_file" in 14313 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 14314 esac 14315 # PO directories have a Makefile.in generated from Makefile.in.in. 14316 case "$ac_file" in */Makefile.in) 14317 # Adjust a relative srcdir. 14318 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 14319 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 14320 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 14321 # In autoconf-2.13 it is called $ac_given_srcdir. 14322 # In autoconf-2.50 it is called $srcdir. 14323 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 14324 case "$ac_given_srcdir" in 14325 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 14326 /*) top_srcdir="$ac_given_srcdir" ;; 14327 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 14328 esac 14329 # Treat a directory as a PO directory if and only if it has a 14330 # POTFILES.in file. This allows packages to have multiple PO 14331 # directories under different names or in different locations. 14332 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 14333 rm -f "$ac_dir/POTFILES" 14334 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 14335 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 14336 POMAKEFILEDEPS="POTFILES.in" 14337 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 14338 # on $ac_dir but don't depend on user-specified configuration 14339 # parameters. 14340 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 14341 # The LINGUAS file contains the set of available languages. 14342 if test -n "$OBSOLETE_ALL_LINGUAS"; then 14343 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 14344 fi 14345 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` 14346 # Hide the ALL_LINGUAS assigment from automake < 1.5. 14347 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 14348 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 14349 else 14350 # The set of available languages was given in configure.in. 14351 # Hide the ALL_LINGUAS assigment from automake < 1.5. 14352 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 14353 fi 14354 # Compute POFILES 14355 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 14356 # Compute UPDATEPOFILES 14357 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 14358 # Compute DUMMYPOFILES 14359 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 14360 # Compute GMOFILES 14361 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 14362 case "$ac_given_srcdir" in 14363 .) srcdirpre= ;; 14364 *) srcdirpre='$(srcdir)/' ;; 14365 esac 14366 POFILES= 14367 UPDATEPOFILES= 14368 DUMMYPOFILES= 14369 GMOFILES= 14370 for lang in $ALL_LINGUAS; do 14371 POFILES="$POFILES $srcdirpre$lang.po" 14372 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 14373 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 14374 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 14375 done 14376 # CATALOGS depends on both $ac_dir and the user's LINGUAS 14377 # environment variable. 14378 INST_LINGUAS= 14379 if test -n "$ALL_LINGUAS"; then 14380 for presentlang in $ALL_LINGUAS; do 14381 useit=no 14382 if test "%UNSET%" != "$LINGUAS"; then 14383 desiredlanguages="$LINGUAS" 14384 else 14385 desiredlanguages="$ALL_LINGUAS" 14386 fi 14387 for desiredlang in $desiredlanguages; do 14388 # Use the presentlang catalog if desiredlang is 14389 # a. equal to presentlang, or 14390 # b. a variant of presentlang (because in this case, 14391 # presentlang can be used as a fallback for messages 14392 # which are not translated in the desiredlang catalog). 14393 case "$desiredlang" in 14394 "$presentlang"*) useit=yes;; 14395 esac 14396 done 14397 if test $useit = yes; then 14398 INST_LINGUAS="$INST_LINGUAS $presentlang" 14399 fi 14400 done 14401 fi 14402 CATALOGS= 14403 if test -n "$INST_LINGUAS"; then 14404 for lang in $INST_LINGUAS; do 14405 CATALOGS="$CATALOGS $lang.gmo" 14406 done 14407 fi 14408 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 14409 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" 14410 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 14411 if test -f "$f"; then 14412 case "$f" in 14413 *.orig | *.bak | *~) ;; 14414 *) cat "$f" >> "$ac_dir/Makefile" ;; 14415 esac 14416 fi 14417 done 14418 fi 14419 ;; 14420 esac 14421 done ;; 14422 14423 esac 14424done # for ac_tag 14425 14426 14427as_fn_exit 0 14428_ACEOF 14429ac_clean_files=$ac_clean_files_save 14430 14431test $ac_write_fail = 0 || 14432 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 14433 14434 14435# configure is writing to config.log, and then calls config.status. 14436# config.status does its own redirection, appending to config.log. 14437# Unfortunately, on DOS this fails, as config.log is still kept open 14438# by configure, so config.status won't be able to write to it; its 14439# output is simply discarded. So we exec the FD to /dev/null, 14440# effectively closing config.log, so it can be properly (re)opened and 14441# appended to by config.status. When coming back to configure, we 14442# need to make the FD available again. 14443if test "$no_create" != yes; then 14444 ac_cs_success=: 14445 ac_config_status_args= 14446 test "$silent" = yes && 14447 ac_config_status_args="$ac_config_status_args --quiet" 14448 exec 5>/dev/null 14449 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14450 exec 5>>config.log 14451 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14452 # would make configure fail if this is the last instruction. 14453 $ac_cs_success || as_fn_exit 1 14454fi 14455if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 14457$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 14458fi 14459 14460 14461echo 14462echo "Using GTK+ $GTK_VERSION with GtkGLExt $GTKGL_VERSION" 14463echo 14464