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