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