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