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