configure revision 313a12fd
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for libXau 1.0.8. 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, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177test \$(( 1 + 1 )) = 2 || exit 1 178 179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 183 PATH=/empty FPATH=/empty; export PATH FPATH 184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 186 if (eval "$as_required") 2>/dev/null; then : 187 as_have_required=yes 188else 189 as_have_required=no 190fi 191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 192 193else 194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 195as_found=false 196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 197do 198 IFS=$as_save_IFS 199 test -z "$as_dir" && as_dir=. 200 as_found=: 201 case $as_dir in #( 202 /*) 203 for as_base in sh bash ksh sh5; do 204 # Try only shells that exist, to save several forks. 205 as_shell=$as_dir/$as_base 206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 208 CONFIG_SHELL=$as_shell as_have_required=yes 209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 210 break 2 211fi 212fi 213 done;; 214 esac 215 as_found=false 216done 217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 219 CONFIG_SHELL=$SHELL as_have_required=yes 220fi; } 221IFS=$as_save_IFS 222 223 224 if test "x$CONFIG_SHELL" != x; then : 225 # We cannot yet assume a decent shell, so we have to provide a 226 # neutralization value for shells without unset; and this also 227 # works around shells that cannot unset nonexistent variables. 228 # Preserve -v and -x to the replacement shell. 229 BASH_ENV=/dev/null 230 ENV=/dev/null 231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 232 export CONFIG_SHELL 233 case $- in # (((( 234 *v*x* | *x*v* ) as_opts=-vx ;; 235 *v* ) as_opts=-v ;; 236 *x* ) as_opts=-x ;; 237 * ) as_opts= ;; 238 esac 239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 240fi 241 242 if test x$as_have_required = xno; then : 243 $as_echo "$0: This script requires a shell more modern than all" 244 $as_echo "$0: the shells that I found on your system." 245 if test x${ZSH_VERSION+set} = xset ; then 246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 247 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 248 else 249 $as_echo "$0: Please tell bug-autoconf@gnu.org and 250$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 251$0: about your system, including any error possibly output 252$0: before this message. Then install a modern shell, or 253$0: manually run the script under such a shell if you do 254$0: have one." 255 fi 256 exit 1 257fi 258fi 259fi 260SHELL=${CONFIG_SHELL-/bin/sh} 261export SHELL 262# Unset more variables known to interfere with behavior of common tools. 263CLICOLOR_FORCE= GREP_OPTIONS= 264unset CLICOLOR_FORCE GREP_OPTIONS 265 266## --------------------- ## 267## M4sh Shell Functions. ## 268## --------------------- ## 269# as_fn_unset VAR 270# --------------- 271# Portably unset VAR. 272as_fn_unset () 273{ 274 { eval $1=; unset $1;} 275} 276as_unset=as_fn_unset 277 278# as_fn_set_status STATUS 279# ----------------------- 280# Set $? to STATUS, without forking. 281as_fn_set_status () 282{ 283 return $1 284} # as_fn_set_status 285 286# as_fn_exit STATUS 287# ----------------- 288# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 289as_fn_exit () 290{ 291 set +e 292 as_fn_set_status $1 293 exit $1 294} # as_fn_exit 295 296# as_fn_mkdir_p 297# ------------- 298# Create "$as_dir" as a directory, including parents if necessary. 299as_fn_mkdir_p () 300{ 301 302 case $as_dir in #( 303 -*) as_dir=./$as_dir;; 304 esac 305 test -d "$as_dir" || eval $as_mkdir_p || { 306 as_dirs= 307 while :; do 308 case $as_dir in #( 309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 310 *) as_qdir=$as_dir;; 311 esac 312 as_dirs="'$as_qdir' $as_dirs" 313 as_dir=`$as_dirname -- "$as_dir" || 314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 315 X"$as_dir" : 'X\(//\)[^/]' \| \ 316 X"$as_dir" : 'X\(//\)$' \| \ 317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 318$as_echo X"$as_dir" | 319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 320 s//\1/ 321 q 322 } 323 /^X\(\/\/\)[^/].*/{ 324 s//\1/ 325 q 326 } 327 /^X\(\/\/\)$/{ 328 s//\1/ 329 q 330 } 331 /^X\(\/\).*/{ 332 s//\1/ 333 q 334 } 335 s/.*/./; q'` 336 test -d "$as_dir" && break 337 done 338 test -z "$as_dirs" || eval "mkdir $as_dirs" 339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 340 341 342} # as_fn_mkdir_p 343# as_fn_append VAR VALUE 344# ---------------------- 345# Append the text in VALUE to the end of the definition contained in VAR. Take 346# advantage of any shell optimizations that allow amortized linear growth over 347# repeated appends, instead of the typical quadratic growth present in naive 348# implementations. 349if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 350 eval 'as_fn_append () 351 { 352 eval $1+=\$2 353 }' 354else 355 as_fn_append () 356 { 357 eval $1=\$$1\$2 358 } 359fi # as_fn_append 360 361# as_fn_arith ARG... 362# ------------------ 363# Perform arithmetic evaluation on the ARGs, and store the result in the 364# global $as_val. Take advantage of shells that can avoid forks. The arguments 365# must be portable across $(()) and expr. 366if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 367 eval 'as_fn_arith () 368 { 369 as_val=$(( $* )) 370 }' 371else 372 as_fn_arith () 373 { 374 as_val=`expr "$@" || test $? -eq 1` 375 } 376fi # as_fn_arith 377 378 379# as_fn_error STATUS ERROR [LINENO LOG_FD] 380# ---------------------------------------- 381# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 382# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 383# script with STATUS, using 1 if that was 0. 384as_fn_error () 385{ 386 as_status=$1; test $as_status -eq 0 && as_status=1 387 if test "$4"; then 388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 390 fi 391 $as_echo "$as_me: error: $2" >&2 392 as_fn_exit $as_status 393} # as_fn_error 394 395if expr a : '\(a\)' >/dev/null 2>&1 && 396 test "X`expr 00001 : '.*\(...\)'`" = X001; then 397 as_expr=expr 398else 399 as_expr=false 400fi 401 402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 403 as_basename=basename 404else 405 as_basename=false 406fi 407 408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 409 as_dirname=dirname 410else 411 as_dirname=false 412fi 413 414as_me=`$as_basename -- "$0" || 415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 416 X"$0" : 'X\(//\)$' \| \ 417 X"$0" : 'X\(/\)' \| . 2>/dev/null || 418$as_echo X/"$0" | 419 sed '/^.*\/\([^/][^/]*\)\/*$/{ 420 s//\1/ 421 q 422 } 423 /^X\/\(\/\/\)$/{ 424 s//\1/ 425 q 426 } 427 /^X\/\(\/\).*/{ 428 s//\1/ 429 q 430 } 431 s/.*/./; q'` 432 433# Avoid depending upon Character Ranges. 434as_cr_letters='abcdefghijklmnopqrstuvwxyz' 435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 436as_cr_Letters=$as_cr_letters$as_cr_LETTERS 437as_cr_digits='0123456789' 438as_cr_alnum=$as_cr_Letters$as_cr_digits 439 440 441 as_lineno_1=$LINENO as_lineno_1a=$LINENO 442 as_lineno_2=$LINENO as_lineno_2a=$LINENO 443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 446 sed -n ' 447 p 448 /[$]LINENO/= 449 ' <$as_myself | 450 sed ' 451 s/[$]LINENO.*/&-/ 452 t lineno 453 b 454 :lineno 455 N 456 :loop 457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 458 t loop 459 s/-\n.*// 460 ' >$as_me.lineno && 461 chmod +x "$as_me.lineno" || 462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 463 464 # Don't try to exec as it changes $[0], causing all sort of problems 465 # (the dirname of $[0] is not the place where we might find the 466 # original and so on. Autoconf is especially sensitive to this). 467 . "./$as_me.lineno" 468 # Exit status is that of the last command. 469 exit 470} 471 472ECHO_C= ECHO_N= ECHO_T= 473case `echo -n x` in #((((( 474-n*) 475 case `echo 'xy\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 xy) ECHO_C='\c';; 478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 479 ECHO_T=' ';; 480 esac;; 481*) 482 ECHO_N='-n';; 483esac 484 485rm -f conf$$ conf$$.exe conf$$.file 486if test -d conf$$.dir; then 487 rm -f conf$$.dir/conf$$.file 488else 489 rm -f conf$$.dir 490 mkdir conf$$.dir 2>/dev/null 491fi 492if (echo >conf$$.file) 2>/dev/null; then 493 if ln -s conf$$.file conf$$ 2>/dev/null; then 494 as_ln_s='ln -s' 495 # ... but there are two gotchas: 496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 498 # In both cases, we have to default to `cp -p'. 499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 500 as_ln_s='cp -p' 501 elif ln conf$$.file conf$$ 2>/dev/null; then 502 as_ln_s=ln 503 else 504 as_ln_s='cp -p' 505 fi 506else 507 as_ln_s='cp -p' 508fi 509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 510rmdir conf$$.dir 2>/dev/null 511 512if mkdir -p . 2>/dev/null; then 513 as_mkdir_p='mkdir -p "$as_dir"' 514else 515 test -d ./-p && rmdir ./-p 516 as_mkdir_p=false 517fi 518 519if test -x / >/dev/null 2>&1; then 520 as_test_x='test -x' 521else 522 if ls -dL / >/dev/null 2>&1; then 523 as_ls_L_option=L 524 else 525 as_ls_L_option= 526 fi 527 as_test_x=' 528 eval sh -c '\'' 529 if test -d "$1"; then 530 test -d "$1/."; 531 else 532 case $1 in #( 533 -*)set "./$1";; 534 esac; 535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 536 ???[sx]*):;;*)false;;esac;fi 537 '\'' sh 538 ' 539fi 540as_executable_p=$as_test_x 541 542# Sed expression to map a string onto a valid CPP name. 543as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 544 545# Sed expression to map a string onto a valid variable name. 546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 547 548SHELL=${CONFIG_SHELL-/bin/sh} 549 550 551test -n "$DJDIR" || exec 7<&0 </dev/null 552exec 6>&1 553 554# Name of the host. 555# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 556# so uname gets run too. 557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 558 559# 560# Initializations. 561# 562ac_default_prefix=/usr/local 563ac_clean_files= 564ac_config_libobj_dir=. 565LIBOBJS= 566cross_compiling=no 567subdirs= 568MFLAGS= 569MAKEFLAGS= 570 571# Identity of this package. 572PACKAGE_NAME='libXau' 573PACKAGE_TARNAME='libXau' 574PACKAGE_VERSION='1.0.8' 575PACKAGE_STRING='libXau 1.0.8' 576PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 577PACKAGE_URL='' 578 579ac_unique_file="Makefile.am" 580# Factoring default headers for most tests. 581ac_includes_default="\ 582#include <stdio.h> 583#ifdef HAVE_SYS_TYPES_H 584# include <sys/types.h> 585#endif 586#ifdef HAVE_SYS_STAT_H 587# include <sys/stat.h> 588#endif 589#ifdef STDC_HEADERS 590# include <stdlib.h> 591# include <stddef.h> 592#else 593# ifdef HAVE_STDLIB_H 594# include <stdlib.h> 595# endif 596#endif 597#ifdef HAVE_STRING_H 598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 599# include <memory.h> 600# endif 601# include <string.h> 602#endif 603#ifdef HAVE_STRINGS_H 604# include <strings.h> 605#endif 606#ifdef HAVE_INTTYPES_H 607# include <inttypes.h> 608#endif 609#ifdef HAVE_STDINT_H 610# include <stdint.h> 611#endif 612#ifdef HAVE_UNISTD_H 613# include <unistd.h> 614#endif" 615 616ac_subst_vars='am__EXEEXT_FALSE 617am__EXEEXT_TRUE 618LTLIBOBJS 619LIBOBJS 620MAKE_LINT_LIB_FALSE 621MAKE_LINT_LIB_TRUE 622LINTLIB 623LINT_FALSE 624LINT_TRUE 625LINT_FLAGS 626LINT 627XAU_LIBS 628XAU_CFLAGS 629MAN_SUBSTS 630XORG_MAN_PAGE 631ADMIN_MAN_DIR 632DRIVER_MAN_DIR 633MISC_MAN_DIR 634FILE_MAN_DIR 635LIB_MAN_DIR 636APP_MAN_DIR 637ADMIN_MAN_SUFFIX 638DRIVER_MAN_SUFFIX 639MISC_MAN_SUFFIX 640FILE_MAN_SUFFIX 641LIB_MAN_SUFFIX 642APP_MAN_SUFFIX 643INSTALL_CMD 644PKG_CONFIG 645CHANGELOG_CMD 646STRICT_CFLAGS 647CWARNFLAGS 648BASE_CFLAGS 649OTOOL64 650OTOOL 651LIPO 652NMEDIT 653DSYMUTIL 654MANIFEST_TOOL 655RANLIB 656ac_ct_AR 657AR 658LN_S 659NM 660ac_ct_DUMPBIN 661DUMPBIN 662LD 663FGREP 664SED 665LIBTOOL 666OBJDUMP 667DLLTOOL 668AS 669host_os 670host_vendor 671host_cpu 672host 673build_os 674build_vendor 675build_cpu 676build 677AM_BACKSLASH 678AM_DEFAULT_VERBOSITY 679AM_DEFAULT_V 680AM_V 681am__fastdepCC_FALSE 682am__fastdepCC_TRUE 683CCDEPMODE 684am__nodep 685AMDEPBACKSLASH 686AMDEP_FALSE 687AMDEP_TRUE 688am__quote 689am__include 690DEPDIR 691am__untar 692am__tar 693AMTAR 694am__leading_dot 695SET_MAKE 696AWK 697mkdir_p 698MKDIR_P 699INSTALL_STRIP_PROGRAM 700STRIP 701install_sh 702MAKEINFO 703AUTOHEADER 704AUTOMAKE 705AUTOCONF 706ACLOCAL 707VERSION 708PACKAGE 709CYGPATH_W 710am__isrc 711INSTALL_DATA 712INSTALL_SCRIPT 713INSTALL_PROGRAM 714EGREP 715GREP 716CPP 717OBJEXT 718EXEEXT 719ac_ct_CC 720CPPFLAGS 721LDFLAGS 722CFLAGS 723CC 724target_alias 725host_alias 726build_alias 727LIBS 728ECHO_T 729ECHO_N 730ECHO_C 731DEFS 732mandir 733localedir 734libdir 735psdir 736pdfdir 737dvidir 738htmldir 739infodir 740docdir 741oldincludedir 742includedir 743localstatedir 744sharedstatedir 745sysconfdir 746datadir 747datarootdir 748libexecdir 749sbindir 750bindir 751program_transform_name 752prefix 753exec_prefix 754PACKAGE_URL 755PACKAGE_BUGREPORT 756PACKAGE_STRING 757PACKAGE_VERSION 758PACKAGE_TARNAME 759PACKAGE_NAME 760PATH_SEPARATOR 761SHELL' 762ac_subst_files='' 763ac_user_opts=' 764enable_option_checking 765enable_dependency_tracking 766enable_silent_rules 767enable_shared 768enable_static 769with_pic 770enable_fast_install 771with_gnu_ld 772with_sysroot 773enable_libtool_lock 774enable_selective_werror 775enable_strict_compilation 776enable_xthreads 777with_lint 778enable_lint_library 779' 780 ac_precious_vars='build_alias 781host_alias 782target_alias 783CC 784CFLAGS 785LDFLAGS 786LIBS 787CPPFLAGS 788CPP 789PKG_CONFIG 790XAU_CFLAGS 791XAU_LIBS 792LINT 793LINT_FLAGS' 794 795 796# Initialize some variables set by options. 797ac_init_help= 798ac_init_version=false 799ac_unrecognized_opts= 800ac_unrecognized_sep= 801# The variables have the same names as the options, with 802# dashes changed to underlines. 803cache_file=/dev/null 804exec_prefix=NONE 805no_create= 806no_recursion= 807prefix=NONE 808program_prefix=NONE 809program_suffix=NONE 810program_transform_name=s,x,x, 811silent= 812site= 813srcdir= 814verbose= 815x_includes=NONE 816x_libraries=NONE 817 818# Installation directory options. 819# These are left unexpanded so users can "make install exec_prefix=/foo" 820# and all the variables that are supposed to be based on exec_prefix 821# by default will actually change. 822# Use braces instead of parens because sh, perl, etc. also accept them. 823# (The list follows the same order as the GNU Coding Standards.) 824bindir='${exec_prefix}/bin' 825sbindir='${exec_prefix}/sbin' 826libexecdir='${exec_prefix}/libexec' 827datarootdir='${prefix}/share' 828datadir='${datarootdir}' 829sysconfdir='${prefix}/etc' 830sharedstatedir='${prefix}/com' 831localstatedir='${prefix}/var' 832includedir='${prefix}/include' 833oldincludedir='/usr/include' 834docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 835infodir='${datarootdir}/info' 836htmldir='${docdir}' 837dvidir='${docdir}' 838pdfdir='${docdir}' 839psdir='${docdir}' 840libdir='${exec_prefix}/lib' 841localedir='${datarootdir}/locale' 842mandir='${datarootdir}/man' 843 844ac_prev= 845ac_dashdash= 846for ac_option 847do 848 # If the previous option needs an argument, assign it. 849 if test -n "$ac_prev"; then 850 eval $ac_prev=\$ac_option 851 ac_prev= 852 continue 853 fi 854 855 case $ac_option in 856 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 857 *=) ac_optarg= ;; 858 *) ac_optarg=yes ;; 859 esac 860 861 # Accept the important Cygnus configure options, so we can diagnose typos. 862 863 case $ac_dashdash$ac_option in 864 --) 865 ac_dashdash=yes ;; 866 867 -bindir | --bindir | --bindi | --bind | --bin | --bi) 868 ac_prev=bindir ;; 869 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 870 bindir=$ac_optarg ;; 871 872 -build | --build | --buil | --bui | --bu) 873 ac_prev=build_alias ;; 874 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 875 build_alias=$ac_optarg ;; 876 877 -cache-file | --cache-file | --cache-fil | --cache-fi \ 878 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 879 ac_prev=cache_file ;; 880 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 881 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 882 cache_file=$ac_optarg ;; 883 884 --config-cache | -C) 885 cache_file=config.cache ;; 886 887 -datadir | --datadir | --datadi | --datad) 888 ac_prev=datadir ;; 889 -datadir=* | --datadir=* | --datadi=* | --datad=*) 890 datadir=$ac_optarg ;; 891 892 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 893 | --dataroo | --dataro | --datar) 894 ac_prev=datarootdir ;; 895 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 896 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 897 datarootdir=$ac_optarg ;; 898 899 -disable-* | --disable-*) 900 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 901 # Reject names that are not valid shell variable names. 902 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 903 as_fn_error $? "invalid feature name: $ac_useropt" 904 ac_useropt_orig=$ac_useropt 905 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 906 case $ac_user_opts in 907 *" 908"enable_$ac_useropt" 909"*) ;; 910 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 911 ac_unrecognized_sep=', ';; 912 esac 913 eval enable_$ac_useropt=no ;; 914 915 -docdir | --docdir | --docdi | --doc | --do) 916 ac_prev=docdir ;; 917 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 918 docdir=$ac_optarg ;; 919 920 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 921 ac_prev=dvidir ;; 922 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 923 dvidir=$ac_optarg ;; 924 925 -enable-* | --enable-*) 926 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 927 # Reject names that are not valid shell variable names. 928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 929 as_fn_error $? "invalid feature name: $ac_useropt" 930 ac_useropt_orig=$ac_useropt 931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 932 case $ac_user_opts in 933 *" 934"enable_$ac_useropt" 935"*) ;; 936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 937 ac_unrecognized_sep=', ';; 938 esac 939 eval enable_$ac_useropt=\$ac_optarg ;; 940 941 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 942 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 943 | --exec | --exe | --ex) 944 ac_prev=exec_prefix ;; 945 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 946 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 947 | --exec=* | --exe=* | --ex=*) 948 exec_prefix=$ac_optarg ;; 949 950 -gas | --gas | --ga | --g) 951 # Obsolete; use --with-gas. 952 with_gas=yes ;; 953 954 -help | --help | --hel | --he | -h) 955 ac_init_help=long ;; 956 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 957 ac_init_help=recursive ;; 958 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 959 ac_init_help=short ;; 960 961 -host | --host | --hos | --ho) 962 ac_prev=host_alias ;; 963 -host=* | --host=* | --hos=* | --ho=*) 964 host_alias=$ac_optarg ;; 965 966 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 967 ac_prev=htmldir ;; 968 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 969 | --ht=*) 970 htmldir=$ac_optarg ;; 971 972 -includedir | --includedir | --includedi | --included | --include \ 973 | --includ | --inclu | --incl | --inc) 974 ac_prev=includedir ;; 975 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 976 | --includ=* | --inclu=* | --incl=* | --inc=*) 977 includedir=$ac_optarg ;; 978 979 -infodir | --infodir | --infodi | --infod | --info | --inf) 980 ac_prev=infodir ;; 981 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 982 infodir=$ac_optarg ;; 983 984 -libdir | --libdir | --libdi | --libd) 985 ac_prev=libdir ;; 986 -libdir=* | --libdir=* | --libdi=* | --libd=*) 987 libdir=$ac_optarg ;; 988 989 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 990 | --libexe | --libex | --libe) 991 ac_prev=libexecdir ;; 992 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 993 | --libexe=* | --libex=* | --libe=*) 994 libexecdir=$ac_optarg ;; 995 996 -localedir | --localedir | --localedi | --localed | --locale) 997 ac_prev=localedir ;; 998 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 999 localedir=$ac_optarg ;; 1000 1001 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1002 | --localstate | --localstat | --localsta | --localst | --locals) 1003 ac_prev=localstatedir ;; 1004 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1005 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1006 localstatedir=$ac_optarg ;; 1007 1008 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1009 ac_prev=mandir ;; 1010 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1011 mandir=$ac_optarg ;; 1012 1013 -nfp | --nfp | --nf) 1014 # Obsolete; use --without-fp. 1015 with_fp=no ;; 1016 1017 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1018 | --no-cr | --no-c | -n) 1019 no_create=yes ;; 1020 1021 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1022 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1023 no_recursion=yes ;; 1024 1025 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1026 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1027 | --oldin | --oldi | --old | --ol | --o) 1028 ac_prev=oldincludedir ;; 1029 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1030 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1031 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1032 oldincludedir=$ac_optarg ;; 1033 1034 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1035 ac_prev=prefix ;; 1036 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1037 prefix=$ac_optarg ;; 1038 1039 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1040 | --program-pre | --program-pr | --program-p) 1041 ac_prev=program_prefix ;; 1042 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1043 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1044 program_prefix=$ac_optarg ;; 1045 1046 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1047 | --program-suf | --program-su | --program-s) 1048 ac_prev=program_suffix ;; 1049 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1050 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1051 program_suffix=$ac_optarg ;; 1052 1053 -program-transform-name | --program-transform-name \ 1054 | --program-transform-nam | --program-transform-na \ 1055 | --program-transform-n | --program-transform- \ 1056 | --program-transform | --program-transfor \ 1057 | --program-transfo | --program-transf \ 1058 | --program-trans | --program-tran \ 1059 | --progr-tra | --program-tr | --program-t) 1060 ac_prev=program_transform_name ;; 1061 -program-transform-name=* | --program-transform-name=* \ 1062 | --program-transform-nam=* | --program-transform-na=* \ 1063 | --program-transform-n=* | --program-transform-=* \ 1064 | --program-transform=* | --program-transfor=* \ 1065 | --program-transfo=* | --program-transf=* \ 1066 | --program-trans=* | --program-tran=* \ 1067 | --progr-tra=* | --program-tr=* | --program-t=*) 1068 program_transform_name=$ac_optarg ;; 1069 1070 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1071 ac_prev=pdfdir ;; 1072 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1073 pdfdir=$ac_optarg ;; 1074 1075 -psdir | --psdir | --psdi | --psd | --ps) 1076 ac_prev=psdir ;; 1077 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1078 psdir=$ac_optarg ;; 1079 1080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1081 | -silent | --silent | --silen | --sile | --sil) 1082 silent=yes ;; 1083 1084 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1085 ac_prev=sbindir ;; 1086 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1087 | --sbi=* | --sb=*) 1088 sbindir=$ac_optarg ;; 1089 1090 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1091 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1092 | --sharedst | --shareds | --shared | --share | --shar \ 1093 | --sha | --sh) 1094 ac_prev=sharedstatedir ;; 1095 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1096 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1097 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1098 | --sha=* | --sh=*) 1099 sharedstatedir=$ac_optarg ;; 1100 1101 -site | --site | --sit) 1102 ac_prev=site ;; 1103 -site=* | --site=* | --sit=*) 1104 site=$ac_optarg ;; 1105 1106 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1107 ac_prev=srcdir ;; 1108 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1109 srcdir=$ac_optarg ;; 1110 1111 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1112 | --syscon | --sysco | --sysc | --sys | --sy) 1113 ac_prev=sysconfdir ;; 1114 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1115 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1116 sysconfdir=$ac_optarg ;; 1117 1118 -target | --target | --targe | --targ | --tar | --ta | --t) 1119 ac_prev=target_alias ;; 1120 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1121 target_alias=$ac_optarg ;; 1122 1123 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1124 verbose=yes ;; 1125 1126 -version | --version | --versio | --versi | --vers | -V) 1127 ac_init_version=: ;; 1128 1129 -with-* | --with-*) 1130 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1131 # Reject names that are not valid shell variable names. 1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1133 as_fn_error $? "invalid package name: $ac_useropt" 1134 ac_useropt_orig=$ac_useropt 1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1136 case $ac_user_opts in 1137 *" 1138"with_$ac_useropt" 1139"*) ;; 1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1141 ac_unrecognized_sep=', ';; 1142 esac 1143 eval with_$ac_useropt=\$ac_optarg ;; 1144 1145 -without-* | --without-*) 1146 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1147 # Reject names that are not valid shell variable names. 1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1149 as_fn_error $? "invalid package name: $ac_useropt" 1150 ac_useropt_orig=$ac_useropt 1151 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1152 case $ac_user_opts in 1153 *" 1154"with_$ac_useropt" 1155"*) ;; 1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1157 ac_unrecognized_sep=', ';; 1158 esac 1159 eval with_$ac_useropt=no ;; 1160 1161 --x) 1162 # Obsolete; use --with-x. 1163 with_x=yes ;; 1164 1165 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1166 | --x-incl | --x-inc | --x-in | --x-i) 1167 ac_prev=x_includes ;; 1168 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1169 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1170 x_includes=$ac_optarg ;; 1171 1172 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1173 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1174 ac_prev=x_libraries ;; 1175 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1176 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1177 x_libraries=$ac_optarg ;; 1178 1179 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1180Try \`$0 --help' for more information" 1181 ;; 1182 1183 *=*) 1184 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1185 # Reject names that are not valid shell variable names. 1186 case $ac_envvar in #( 1187 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1188 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1189 esac 1190 eval $ac_envvar=\$ac_optarg 1191 export $ac_envvar ;; 1192 1193 *) 1194 # FIXME: should be removed in autoconf 3.0. 1195 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1196 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1197 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1198 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1199 ;; 1200 1201 esac 1202done 1203 1204if test -n "$ac_prev"; then 1205 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1206 as_fn_error $? "missing argument to $ac_option" 1207fi 1208 1209if test -n "$ac_unrecognized_opts"; then 1210 case $enable_option_checking in 1211 no) ;; 1212 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1213 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1214 esac 1215fi 1216 1217# Check all directory arguments for consistency. 1218for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1219 datadir sysconfdir sharedstatedir localstatedir includedir \ 1220 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1221 libdir localedir mandir 1222do 1223 eval ac_val=\$$ac_var 1224 # Remove trailing slashes. 1225 case $ac_val in 1226 */ ) 1227 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1228 eval $ac_var=\$ac_val;; 1229 esac 1230 # Be sure to have absolute directory names. 1231 case $ac_val in 1232 [\\/$]* | ?:[\\/]* ) continue;; 1233 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1234 esac 1235 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1236done 1237 1238# There might be people who depend on the old broken behavior: `$host' 1239# used to hold the argument of --host etc. 1240# FIXME: To remove some day. 1241build=$build_alias 1242host=$host_alias 1243target=$target_alias 1244 1245# FIXME: To remove some day. 1246if test "x$host_alias" != x; then 1247 if test "x$build_alias" = x; then 1248 cross_compiling=maybe 1249 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1250 If a cross compiler is detected then cross compile mode will be used" >&2 1251 elif test "x$build_alias" != "x$host_alias"; then 1252 cross_compiling=yes 1253 fi 1254fi 1255 1256ac_tool_prefix= 1257test -n "$host_alias" && ac_tool_prefix=$host_alias- 1258 1259test "$silent" = yes && exec 6>/dev/null 1260 1261 1262ac_pwd=`pwd` && test -n "$ac_pwd" && 1263ac_ls_di=`ls -di .` && 1264ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1265 as_fn_error $? "working directory cannot be determined" 1266test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1267 as_fn_error $? "pwd does not report name of working directory" 1268 1269 1270# Find the source files, if location was not specified. 1271if test -z "$srcdir"; then 1272 ac_srcdir_defaulted=yes 1273 # Try the directory containing this script, then the parent directory. 1274 ac_confdir=`$as_dirname -- "$as_myself" || 1275$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1276 X"$as_myself" : 'X\(//\)[^/]' \| \ 1277 X"$as_myself" : 'X\(//\)$' \| \ 1278 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1279$as_echo X"$as_myself" | 1280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1281 s//\1/ 1282 q 1283 } 1284 /^X\(\/\/\)[^/].*/{ 1285 s//\1/ 1286 q 1287 } 1288 /^X\(\/\/\)$/{ 1289 s//\1/ 1290 q 1291 } 1292 /^X\(\/\).*/{ 1293 s//\1/ 1294 q 1295 } 1296 s/.*/./; q'` 1297 srcdir=$ac_confdir 1298 if test ! -r "$srcdir/$ac_unique_file"; then 1299 srcdir=.. 1300 fi 1301else 1302 ac_srcdir_defaulted=no 1303fi 1304if test ! -r "$srcdir/$ac_unique_file"; then 1305 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1306 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1307fi 1308ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1309ac_abs_confdir=`( 1310 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1311 pwd)` 1312# When building in place, set srcdir=. 1313if test "$ac_abs_confdir" = "$ac_pwd"; then 1314 srcdir=. 1315fi 1316# Remove unnecessary trailing slashes from srcdir. 1317# Double slashes in file names in object file debugging info 1318# mess up M-x gdb in Emacs. 1319case $srcdir in 1320*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1321esac 1322for ac_var in $ac_precious_vars; do 1323 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1324 eval ac_env_${ac_var}_value=\$${ac_var} 1325 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1326 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1327done 1328 1329# 1330# Report the --help message. 1331# 1332if test "$ac_init_help" = "long"; then 1333 # Omit some internal or obsolete options to make the list less imposing. 1334 # This message is too long to be a string in the A/UX 3.1 sh. 1335 cat <<_ACEOF 1336\`configure' configures libXau 1.0.8 to adapt to many kinds of systems. 1337 1338Usage: $0 [OPTION]... [VAR=VALUE]... 1339 1340To assign environment variables (e.g., CC, CFLAGS...), specify them as 1341VAR=VALUE. See below for descriptions of some of the useful variables. 1342 1343Defaults for the options are specified in brackets. 1344 1345Configuration: 1346 -h, --help display this help and exit 1347 --help=short display options specific to this package 1348 --help=recursive display the short help of all the included packages 1349 -V, --version display version information and exit 1350 -q, --quiet, --silent do not print \`checking ...' messages 1351 --cache-file=FILE cache test results in FILE [disabled] 1352 -C, --config-cache alias for \`--cache-file=config.cache' 1353 -n, --no-create do not create output files 1354 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1355 1356Installation directories: 1357 --prefix=PREFIX install architecture-independent files in PREFIX 1358 [$ac_default_prefix] 1359 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1360 [PREFIX] 1361 1362By default, \`make install' will install all the files in 1363\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1364an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1365for instance \`--prefix=\$HOME'. 1366 1367For better control, use the options below. 1368 1369Fine tuning of the installation directories: 1370 --bindir=DIR user executables [EPREFIX/bin] 1371 --sbindir=DIR system admin executables [EPREFIX/sbin] 1372 --libexecdir=DIR program executables [EPREFIX/libexec] 1373 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1374 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1375 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1376 --libdir=DIR object code libraries [EPREFIX/lib] 1377 --includedir=DIR C header files [PREFIX/include] 1378 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1379 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1380 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1381 --infodir=DIR info documentation [DATAROOTDIR/info] 1382 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1383 --mandir=DIR man documentation [DATAROOTDIR/man] 1384 --docdir=DIR documentation root [DATAROOTDIR/doc/libXau] 1385 --htmldir=DIR html documentation [DOCDIR] 1386 --dvidir=DIR dvi documentation [DOCDIR] 1387 --pdfdir=DIR pdf documentation [DOCDIR] 1388 --psdir=DIR ps documentation [DOCDIR] 1389_ACEOF 1390 1391 cat <<\_ACEOF 1392 1393Program names: 1394 --program-prefix=PREFIX prepend PREFIX to installed program names 1395 --program-suffix=SUFFIX append SUFFIX to installed program names 1396 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1397 1398System types: 1399 --build=BUILD configure for building on BUILD [guessed] 1400 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1401_ACEOF 1402fi 1403 1404if test -n "$ac_init_help"; then 1405 case $ac_init_help in 1406 short | recursive ) echo "Configuration of libXau 1.0.8:";; 1407 esac 1408 cat <<\_ACEOF 1409 1410Optional Features: 1411 --disable-option-checking ignore unrecognized --enable/--with options 1412 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1413 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1414 --enable-dependency-tracking 1415 do not reject slow dependency extractors 1416 --disable-dependency-tracking 1417 speeds up one-time build 1418 --enable-silent-rules less verbose build output (undo: "make V=1") 1419 --disable-silent-rules verbose build output (undo: "make V=0") 1420 --enable-shared[=PKGS] build shared libraries [default=yes] 1421 --enable-static[=PKGS] build static libraries [default=yes] 1422 --enable-fast-install[=PKGS] 1423 optimize for fast installation [default=yes] 1424 --disable-libtool-lock avoid locking (might break parallel builds) 1425 --disable-selective-werror 1426 Turn off selective compiler errors. (default: 1427 enabled) 1428 --enable-strict-compilation 1429 Enable all warnings from compiler and make them 1430 errors (default: disabled) 1431 --disable-xthreads Disable libXau support for Multithreading 1432 --enable-lint-library Create lint library (default: disabled) 1433 1434Optional Packages: 1435 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1436 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1437 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1438 both] 1439 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1440 --with-sysroot=DIR Search for dependent libraries within DIR 1441 (or the compiler's sysroot if not specified). 1442 --with-lint Use a lint-style source code checker (default: 1443 disabled) 1444 1445Some influential environment variables: 1446 CC C compiler command 1447 CFLAGS C compiler flags 1448 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1449 nonstandard directory <lib dir> 1450 LIBS libraries to pass to the linker, e.g. -l<library> 1451 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1452 you have headers in a nonstandard directory <include dir> 1453 CPP C preprocessor 1454 PKG_CONFIG path to pkg-config utility 1455 XAU_CFLAGS C compiler flags for XAU, overriding pkg-config 1456 XAU_LIBS linker flags for XAU, overriding pkg-config 1457 LINT Path to a lint-style command 1458 LINT_FLAGS Flags for the lint-style command 1459 1460Use these variables to override the choices made by `configure' or to help 1461it to find libraries and programs with nonstandard names/locations. 1462 1463Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1464_ACEOF 1465ac_status=$? 1466fi 1467 1468if test "$ac_init_help" = "recursive"; then 1469 # If there are subdirs, report their specific --help. 1470 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1471 test -d "$ac_dir" || 1472 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1473 continue 1474 ac_builddir=. 1475 1476case "$ac_dir" in 1477.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1478*) 1479 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1480 # A ".." for each directory in $ac_dir_suffix. 1481 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1482 case $ac_top_builddir_sub in 1483 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1484 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1485 esac ;; 1486esac 1487ac_abs_top_builddir=$ac_pwd 1488ac_abs_builddir=$ac_pwd$ac_dir_suffix 1489# for backward compatibility: 1490ac_top_builddir=$ac_top_build_prefix 1491 1492case $srcdir in 1493 .) # We are building in place. 1494 ac_srcdir=. 1495 ac_top_srcdir=$ac_top_builddir_sub 1496 ac_abs_top_srcdir=$ac_pwd ;; 1497 [\\/]* | ?:[\\/]* ) # Absolute name. 1498 ac_srcdir=$srcdir$ac_dir_suffix; 1499 ac_top_srcdir=$srcdir 1500 ac_abs_top_srcdir=$srcdir ;; 1501 *) # Relative name. 1502 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1503 ac_top_srcdir=$ac_top_build_prefix$srcdir 1504 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1505esac 1506ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1507 1508 cd "$ac_dir" || { ac_status=$?; continue; } 1509 # Check for guested configure. 1510 if test -f "$ac_srcdir/configure.gnu"; then 1511 echo && 1512 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1513 elif test -f "$ac_srcdir/configure"; then 1514 echo && 1515 $SHELL "$ac_srcdir/configure" --help=recursive 1516 else 1517 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1518 fi || ac_status=$? 1519 cd "$ac_pwd" || { ac_status=$?; break; } 1520 done 1521fi 1522 1523test -n "$ac_init_help" && exit $ac_status 1524if $ac_init_version; then 1525 cat <<\_ACEOF 1526libXau configure 1.0.8 1527generated by GNU Autoconf 2.68 1528 1529Copyright (C) 2010 Free Software Foundation, Inc. 1530This configure script is free software; the Free Software Foundation 1531gives unlimited permission to copy, distribute and modify it. 1532_ACEOF 1533 exit 1534fi 1535 1536## ------------------------ ## 1537## Autoconf initialization. ## 1538## ------------------------ ## 1539 1540# ac_fn_c_try_compile LINENO 1541# -------------------------- 1542# Try to compile conftest.$ac_ext, and return whether this succeeded. 1543ac_fn_c_try_compile () 1544{ 1545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1546 rm -f conftest.$ac_objext 1547 if { { ac_try="$ac_compile" 1548case "(($ac_try" in 1549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1550 *) ac_try_echo=$ac_try;; 1551esac 1552eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1553$as_echo "$ac_try_echo"; } >&5 1554 (eval "$ac_compile") 2>conftest.err 1555 ac_status=$? 1556 if test -s conftest.err; then 1557 grep -v '^ *+' conftest.err >conftest.er1 1558 cat conftest.er1 >&5 1559 mv -f conftest.er1 conftest.err 1560 fi 1561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1562 test $ac_status = 0; } && { 1563 test -z "$ac_c_werror_flag" || 1564 test ! -s conftest.err 1565 } && test -s conftest.$ac_objext; then : 1566 ac_retval=0 1567else 1568 $as_echo "$as_me: failed program was:" >&5 1569sed 's/^/| /' conftest.$ac_ext >&5 1570 1571 ac_retval=1 1572fi 1573 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1574 as_fn_set_status $ac_retval 1575 1576} # ac_fn_c_try_compile 1577 1578# ac_fn_c_try_cpp LINENO 1579# ---------------------- 1580# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1581ac_fn_c_try_cpp () 1582{ 1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1584 if { { ac_try="$ac_cpp conftest.$ac_ext" 1585case "(($ac_try" in 1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1587 *) ac_try_echo=$ac_try;; 1588esac 1589eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1590$as_echo "$ac_try_echo"; } >&5 1591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1592 ac_status=$? 1593 if test -s conftest.err; then 1594 grep -v '^ *+' conftest.err >conftest.er1 1595 cat conftest.er1 >&5 1596 mv -f conftest.er1 conftest.err 1597 fi 1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1599 test $ac_status = 0; } > conftest.i && { 1600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1601 test ! -s conftest.err 1602 }; then : 1603 ac_retval=0 1604else 1605 $as_echo "$as_me: failed program was:" >&5 1606sed 's/^/| /' conftest.$ac_ext >&5 1607 1608 ac_retval=1 1609fi 1610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1611 as_fn_set_status $ac_retval 1612 1613} # ac_fn_c_try_cpp 1614 1615# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1616# ------------------------------------------------------- 1617# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1618# the include files in INCLUDES and setting the cache variable VAR 1619# accordingly. 1620ac_fn_c_check_header_mongrel () 1621{ 1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1623 if eval \${$3+:} false; then : 1624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1625$as_echo_n "checking for $2... " >&6; } 1626if eval \${$3+:} false; then : 1627 $as_echo_n "(cached) " >&6 1628fi 1629eval ac_res=\$$3 1630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1631$as_echo "$ac_res" >&6; } 1632else 1633 # Is the header compilable? 1634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1635$as_echo_n "checking $2 usability... " >&6; } 1636cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1637/* end confdefs.h. */ 1638$4 1639#include <$2> 1640_ACEOF 1641if ac_fn_c_try_compile "$LINENO"; then : 1642 ac_header_compiler=yes 1643else 1644 ac_header_compiler=no 1645fi 1646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1648$as_echo "$ac_header_compiler" >&6; } 1649 1650# Is the header present? 1651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1652$as_echo_n "checking $2 presence... " >&6; } 1653cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1654/* end confdefs.h. */ 1655#include <$2> 1656_ACEOF 1657if ac_fn_c_try_cpp "$LINENO"; then : 1658 ac_header_preproc=yes 1659else 1660 ac_header_preproc=no 1661fi 1662rm -f conftest.err conftest.i conftest.$ac_ext 1663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1664$as_echo "$ac_header_preproc" >&6; } 1665 1666# So? What about this header? 1667case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1668 yes:no: ) 1669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1670$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1672$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1673 ;; 1674 no:yes:* ) 1675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1676$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1678$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1680$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1682$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1684$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1685( $as_echo "## ---------------------------------------------------------------------- ## 1686## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 1687## ---------------------------------------------------------------------- ##" 1688 ) | sed "s/^/$as_me: WARNING: /" >&2 1689 ;; 1690esac 1691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1692$as_echo_n "checking for $2... " >&6; } 1693if eval \${$3+:} false; then : 1694 $as_echo_n "(cached) " >&6 1695else 1696 eval "$3=\$ac_header_compiler" 1697fi 1698eval ac_res=\$$3 1699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1700$as_echo "$ac_res" >&6; } 1701fi 1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1703 1704} # ac_fn_c_check_header_mongrel 1705 1706# ac_fn_c_try_run LINENO 1707# ---------------------- 1708# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1709# that executables *can* be run. 1710ac_fn_c_try_run () 1711{ 1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1713 if { { ac_try="$ac_link" 1714case "(($ac_try" in 1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1716 *) ac_try_echo=$ac_try;; 1717esac 1718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1719$as_echo "$ac_try_echo"; } >&5 1720 (eval "$ac_link") 2>&5 1721 ac_status=$? 1722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1723 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1724 { { case "(($ac_try" in 1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1726 *) ac_try_echo=$ac_try;; 1727esac 1728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1729$as_echo "$ac_try_echo"; } >&5 1730 (eval "$ac_try") 2>&5 1731 ac_status=$? 1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1733 test $ac_status = 0; }; }; then : 1734 ac_retval=0 1735else 1736 $as_echo "$as_me: program exited with status $ac_status" >&5 1737 $as_echo "$as_me: failed program was:" >&5 1738sed 's/^/| /' conftest.$ac_ext >&5 1739 1740 ac_retval=$ac_status 1741fi 1742 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1744 as_fn_set_status $ac_retval 1745 1746} # ac_fn_c_try_run 1747 1748# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1749# ------------------------------------------------------- 1750# Tests whether HEADER exists and can be compiled using the include files in 1751# INCLUDES, setting the cache variable VAR accordingly. 1752ac_fn_c_check_header_compile () 1753{ 1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1756$as_echo_n "checking for $2... " >&6; } 1757if eval \${$3+:} false; then : 1758 $as_echo_n "(cached) " >&6 1759else 1760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1761/* end confdefs.h. */ 1762$4 1763#include <$2> 1764_ACEOF 1765if ac_fn_c_try_compile "$LINENO"; then : 1766 eval "$3=yes" 1767else 1768 eval "$3=no" 1769fi 1770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1771fi 1772eval ac_res=\$$3 1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1774$as_echo "$ac_res" >&6; } 1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1776 1777} # ac_fn_c_check_header_compile 1778 1779# ac_fn_c_try_link LINENO 1780# ----------------------- 1781# Try to link conftest.$ac_ext, and return whether this succeeded. 1782ac_fn_c_try_link () 1783{ 1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1785 rm -f conftest.$ac_objext conftest$ac_exeext 1786 if { { ac_try="$ac_link" 1787case "(($ac_try" in 1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1789 *) ac_try_echo=$ac_try;; 1790esac 1791eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1792$as_echo "$ac_try_echo"; } >&5 1793 (eval "$ac_link") 2>conftest.err 1794 ac_status=$? 1795 if test -s conftest.err; then 1796 grep -v '^ *+' conftest.err >conftest.er1 1797 cat conftest.er1 >&5 1798 mv -f conftest.er1 conftest.err 1799 fi 1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1801 test $ac_status = 0; } && { 1802 test -z "$ac_c_werror_flag" || 1803 test ! -s conftest.err 1804 } && test -s conftest$ac_exeext && { 1805 test "$cross_compiling" = yes || 1806 $as_test_x conftest$ac_exeext 1807 }; then : 1808 ac_retval=0 1809else 1810 $as_echo "$as_me: failed program was:" >&5 1811sed 's/^/| /' conftest.$ac_ext >&5 1812 1813 ac_retval=1 1814fi 1815 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1816 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1817 # interfere with the next link command; also delete a directory that is 1818 # left behind by Apple's compiler. We do this before executing the actions. 1819 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1821 as_fn_set_status $ac_retval 1822 1823} # ac_fn_c_try_link 1824 1825# ac_fn_c_check_func LINENO FUNC VAR 1826# ---------------------------------- 1827# Tests whether FUNC exists, setting the cache variable VAR accordingly 1828ac_fn_c_check_func () 1829{ 1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1832$as_echo_n "checking for $2... " >&6; } 1833if eval \${$3+:} false; then : 1834 $as_echo_n "(cached) " >&6 1835else 1836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1837/* end confdefs.h. */ 1838/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1839 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1840#define $2 innocuous_$2 1841 1842/* System header to define __stub macros and hopefully few prototypes, 1843 which can conflict with char $2 (); below. 1844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1845 <limits.h> exists even on freestanding compilers. */ 1846 1847#ifdef __STDC__ 1848# include <limits.h> 1849#else 1850# include <assert.h> 1851#endif 1852 1853#undef $2 1854 1855/* Override any GCC internal prototype to avoid an error. 1856 Use char because int might match the return type of a GCC 1857 builtin and then its argument prototype would still apply. */ 1858#ifdef __cplusplus 1859extern "C" 1860#endif 1861char $2 (); 1862/* The GNU C library defines this for functions which it implements 1863 to always fail with ENOSYS. Some functions are actually named 1864 something starting with __ and the normal name is an alias. */ 1865#if defined __stub_$2 || defined __stub___$2 1866choke me 1867#endif 1868 1869int 1870main () 1871{ 1872return $2 (); 1873 ; 1874 return 0; 1875} 1876_ACEOF 1877if ac_fn_c_try_link "$LINENO"; then : 1878 eval "$3=yes" 1879else 1880 eval "$3=no" 1881fi 1882rm -f core conftest.err conftest.$ac_objext \ 1883 conftest$ac_exeext conftest.$ac_ext 1884fi 1885eval ac_res=\$$3 1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1887$as_echo "$ac_res" >&6; } 1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1889 1890} # ac_fn_c_check_func 1891 1892# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1893# --------------------------------------------- 1894# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1895# accordingly. 1896ac_fn_c_check_decl () 1897{ 1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1899 as_decl_name=`echo $2|sed 's/ *(.*//'` 1900 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1902$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1903if eval \${$3+:} false; then : 1904 $as_echo_n "(cached) " >&6 1905else 1906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1907/* end confdefs.h. */ 1908$4 1909int 1910main () 1911{ 1912#ifndef $as_decl_name 1913#ifdef __cplusplus 1914 (void) $as_decl_use; 1915#else 1916 (void) $as_decl_name; 1917#endif 1918#endif 1919 1920 ; 1921 return 0; 1922} 1923_ACEOF 1924if ac_fn_c_try_compile "$LINENO"; then : 1925 eval "$3=yes" 1926else 1927 eval "$3=no" 1928fi 1929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1930fi 1931eval ac_res=\$$3 1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1933$as_echo "$ac_res" >&6; } 1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1935 1936} # ac_fn_c_check_decl 1937cat >config.log <<_ACEOF 1938This file contains any messages produced by compilers while 1939running configure, to aid debugging if configure makes a mistake. 1940 1941It was created by libXau $as_me 1.0.8, which was 1942generated by GNU Autoconf 2.68. Invocation command line was 1943 1944 $ $0 $@ 1945 1946_ACEOF 1947exec 5>>config.log 1948{ 1949cat <<_ASUNAME 1950## --------- ## 1951## Platform. ## 1952## --------- ## 1953 1954hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1955uname -m = `(uname -m) 2>/dev/null || echo unknown` 1956uname -r = `(uname -r) 2>/dev/null || echo unknown` 1957uname -s = `(uname -s) 2>/dev/null || echo unknown` 1958uname -v = `(uname -v) 2>/dev/null || echo unknown` 1959 1960/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1961/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1962 1963/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1964/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1965/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1966/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1967/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1968/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1969/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1970 1971_ASUNAME 1972 1973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1974for as_dir in $PATH 1975do 1976 IFS=$as_save_IFS 1977 test -z "$as_dir" && as_dir=. 1978 $as_echo "PATH: $as_dir" 1979 done 1980IFS=$as_save_IFS 1981 1982} >&5 1983 1984cat >&5 <<_ACEOF 1985 1986 1987## ----------- ## 1988## Core tests. ## 1989## ----------- ## 1990 1991_ACEOF 1992 1993 1994# Keep a trace of the command line. 1995# Strip out --no-create and --no-recursion so they do not pile up. 1996# Strip out --silent because we don't want to record it for future runs. 1997# Also quote any args containing shell meta-characters. 1998# Make two passes to allow for proper duplicate-argument suppression. 1999ac_configure_args= 2000ac_configure_args0= 2001ac_configure_args1= 2002ac_must_keep_next=false 2003for ac_pass in 1 2 2004do 2005 for ac_arg 2006 do 2007 case $ac_arg in 2008 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2009 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2010 | -silent | --silent | --silen | --sile | --sil) 2011 continue ;; 2012 *\'*) 2013 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2014 esac 2015 case $ac_pass in 2016 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2017 2) 2018 as_fn_append ac_configure_args1 " '$ac_arg'" 2019 if test $ac_must_keep_next = true; then 2020 ac_must_keep_next=false # Got value, back to normal. 2021 else 2022 case $ac_arg in 2023 *=* | --config-cache | -C | -disable-* | --disable-* \ 2024 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2025 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2026 | -with-* | --with-* | -without-* | --without-* | --x) 2027 case "$ac_configure_args0 " in 2028 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2029 esac 2030 ;; 2031 -* ) ac_must_keep_next=true ;; 2032 esac 2033 fi 2034 as_fn_append ac_configure_args " '$ac_arg'" 2035 ;; 2036 esac 2037 done 2038done 2039{ ac_configure_args0=; unset ac_configure_args0;} 2040{ ac_configure_args1=; unset ac_configure_args1;} 2041 2042# When interrupted or exit'd, cleanup temporary files, and complete 2043# config.log. We remove comments because anyway the quotes in there 2044# would cause problems or look ugly. 2045# WARNING: Use '\'' to represent an apostrophe within the trap. 2046# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2047trap 'exit_status=$? 2048 # Save into config.log some information that might help in debugging. 2049 { 2050 echo 2051 2052 $as_echo "## ---------------- ## 2053## Cache variables. ## 2054## ---------------- ##" 2055 echo 2056 # The following way of writing the cache mishandles newlines in values, 2057( 2058 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2059 eval ac_val=\$$ac_var 2060 case $ac_val in #( 2061 *${as_nl}*) 2062 case $ac_var in #( 2063 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2064$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2065 esac 2066 case $ac_var in #( 2067 _ | IFS | as_nl) ;; #( 2068 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2069 *) { eval $ac_var=; unset $ac_var;} ;; 2070 esac ;; 2071 esac 2072 done 2073 (set) 2>&1 | 2074 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2075 *${as_nl}ac_space=\ *) 2076 sed -n \ 2077 "s/'\''/'\''\\\\'\'''\''/g; 2078 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2079 ;; #( 2080 *) 2081 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2082 ;; 2083 esac | 2084 sort 2085) 2086 echo 2087 2088 $as_echo "## ----------------- ## 2089## Output variables. ## 2090## ----------------- ##" 2091 echo 2092 for ac_var in $ac_subst_vars 2093 do 2094 eval ac_val=\$$ac_var 2095 case $ac_val in 2096 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2097 esac 2098 $as_echo "$ac_var='\''$ac_val'\''" 2099 done | sort 2100 echo 2101 2102 if test -n "$ac_subst_files"; then 2103 $as_echo "## ------------------- ## 2104## File substitutions. ## 2105## ------------------- ##" 2106 echo 2107 for ac_var in $ac_subst_files 2108 do 2109 eval ac_val=\$$ac_var 2110 case $ac_val in 2111 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2112 esac 2113 $as_echo "$ac_var='\''$ac_val'\''" 2114 done | sort 2115 echo 2116 fi 2117 2118 if test -s confdefs.h; then 2119 $as_echo "## ----------- ## 2120## confdefs.h. ## 2121## ----------- ##" 2122 echo 2123 cat confdefs.h 2124 echo 2125 fi 2126 test "$ac_signal" != 0 && 2127 $as_echo "$as_me: caught signal $ac_signal" 2128 $as_echo "$as_me: exit $exit_status" 2129 } >&5 2130 rm -f core *.core core.conftest.* && 2131 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2132 exit $exit_status 2133' 0 2134for ac_signal in 1 2 13 15; do 2135 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2136done 2137ac_signal=0 2138 2139# confdefs.h avoids OS command line length limits that DEFS can exceed. 2140rm -f -r conftest* confdefs.h 2141 2142$as_echo "/* confdefs.h */" > confdefs.h 2143 2144# Predefined preprocessor variables. 2145 2146cat >>confdefs.h <<_ACEOF 2147#define PACKAGE_NAME "$PACKAGE_NAME" 2148_ACEOF 2149 2150cat >>confdefs.h <<_ACEOF 2151#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2152_ACEOF 2153 2154cat >>confdefs.h <<_ACEOF 2155#define PACKAGE_VERSION "$PACKAGE_VERSION" 2156_ACEOF 2157 2158cat >>confdefs.h <<_ACEOF 2159#define PACKAGE_STRING "$PACKAGE_STRING" 2160_ACEOF 2161 2162cat >>confdefs.h <<_ACEOF 2163#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2164_ACEOF 2165 2166cat >>confdefs.h <<_ACEOF 2167#define PACKAGE_URL "$PACKAGE_URL" 2168_ACEOF 2169 2170 2171# Let the site file select an alternate cache file if it wants to. 2172# Prefer an explicitly selected file to automatically selected ones. 2173ac_site_file1=NONE 2174ac_site_file2=NONE 2175if test -n "$CONFIG_SITE"; then 2176 # We do not want a PATH search for config.site. 2177 case $CONFIG_SITE in #(( 2178 -*) ac_site_file1=./$CONFIG_SITE;; 2179 */*) ac_site_file1=$CONFIG_SITE;; 2180 *) ac_site_file1=./$CONFIG_SITE;; 2181 esac 2182elif test "x$prefix" != xNONE; then 2183 ac_site_file1=$prefix/share/config.site 2184 ac_site_file2=$prefix/etc/config.site 2185else 2186 ac_site_file1=$ac_default_prefix/share/config.site 2187 ac_site_file2=$ac_default_prefix/etc/config.site 2188fi 2189for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2190do 2191 test "x$ac_site_file" = xNONE && continue 2192 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2193 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2194$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2195 sed 's/^/| /' "$ac_site_file" >&5 2196 . "$ac_site_file" \ 2197 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2198$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2199as_fn_error $? "failed to load site script $ac_site_file 2200See \`config.log' for more details" "$LINENO" 5; } 2201 fi 2202done 2203 2204if test -r "$cache_file"; then 2205 # Some versions of bash will fail to source /dev/null (special files 2206 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2207 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2208 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2209$as_echo "$as_me: loading cache $cache_file" >&6;} 2210 case $cache_file in 2211 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2212 *) . "./$cache_file";; 2213 esac 2214 fi 2215else 2216 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2217$as_echo "$as_me: creating cache $cache_file" >&6;} 2218 >$cache_file 2219fi 2220 2221# Check that the precious variables saved in the cache have kept the same 2222# value. 2223ac_cache_corrupted=false 2224for ac_var in $ac_precious_vars; do 2225 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2226 eval ac_new_set=\$ac_env_${ac_var}_set 2227 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2228 eval ac_new_val=\$ac_env_${ac_var}_value 2229 case $ac_old_set,$ac_new_set in 2230 set,) 2231 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2232$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2233 ac_cache_corrupted=: ;; 2234 ,set) 2235 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2236$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2237 ac_cache_corrupted=: ;; 2238 ,);; 2239 *) 2240 if test "x$ac_old_val" != "x$ac_new_val"; then 2241 # differences in whitespace do not lead to failure. 2242 ac_old_val_w=`echo x $ac_old_val` 2243 ac_new_val_w=`echo x $ac_new_val` 2244 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2245 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2246$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2247 ac_cache_corrupted=: 2248 else 2249 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2250$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2251 eval $ac_var=\$ac_old_val 2252 fi 2253 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2254$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2255 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2256$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2257 fi;; 2258 esac 2259 # Pass precious variables to config.status. 2260 if test "$ac_new_set" = set; then 2261 case $ac_new_val in 2262 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2263 *) ac_arg=$ac_var=$ac_new_val ;; 2264 esac 2265 case " $ac_configure_args " in 2266 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2267 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2268 esac 2269 fi 2270done 2271if $ac_cache_corrupted; then 2272 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2273$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2275$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2276 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2277fi 2278## -------------------- ## 2279## Main body of script. ## 2280## -------------------- ## 2281 2282ac_ext=c 2283ac_cpp='$CPP $CPPFLAGS' 2284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2286ac_compiler_gnu=$ac_cv_c_compiler_gnu 2287 2288 2289 2290ac_config_headers="$ac_config_headers config.h" 2291 2292ac_ext=c 2293ac_cpp='$CPP $CPPFLAGS' 2294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2296ac_compiler_gnu=$ac_cv_c_compiler_gnu 2297if test -n "$ac_tool_prefix"; then 2298 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2299set dummy ${ac_tool_prefix}gcc; ac_word=$2 2300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2301$as_echo_n "checking for $ac_word... " >&6; } 2302if ${ac_cv_prog_CC+:} false; then : 2303 $as_echo_n "(cached) " >&6 2304else 2305 if test -n "$CC"; then 2306 ac_cv_prog_CC="$CC" # Let the user override the test. 2307else 2308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2309for as_dir in $PATH 2310do 2311 IFS=$as_save_IFS 2312 test -z "$as_dir" && as_dir=. 2313 for ac_exec_ext in '' $ac_executable_extensions; do 2314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2315 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2317 break 2 2318 fi 2319done 2320 done 2321IFS=$as_save_IFS 2322 2323fi 2324fi 2325CC=$ac_cv_prog_CC 2326if test -n "$CC"; then 2327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2328$as_echo "$CC" >&6; } 2329else 2330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2331$as_echo "no" >&6; } 2332fi 2333 2334 2335fi 2336if test -z "$ac_cv_prog_CC"; then 2337 ac_ct_CC=$CC 2338 # Extract the first word of "gcc", so it can be a program name with args. 2339set dummy gcc; ac_word=$2 2340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2341$as_echo_n "checking for $ac_word... " >&6; } 2342if ${ac_cv_prog_ac_ct_CC+:} false; then : 2343 $as_echo_n "(cached) " >&6 2344else 2345 if test -n "$ac_ct_CC"; then 2346 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2347else 2348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2349for as_dir in $PATH 2350do 2351 IFS=$as_save_IFS 2352 test -z "$as_dir" && as_dir=. 2353 for ac_exec_ext in '' $ac_executable_extensions; do 2354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2355 ac_cv_prog_ac_ct_CC="gcc" 2356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2357 break 2 2358 fi 2359done 2360 done 2361IFS=$as_save_IFS 2362 2363fi 2364fi 2365ac_ct_CC=$ac_cv_prog_ac_ct_CC 2366if test -n "$ac_ct_CC"; then 2367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2368$as_echo "$ac_ct_CC" >&6; } 2369else 2370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2371$as_echo "no" >&6; } 2372fi 2373 2374 if test "x$ac_ct_CC" = x; then 2375 CC="" 2376 else 2377 case $cross_compiling:$ac_tool_warned in 2378yes:) 2379{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2380$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2381ac_tool_warned=yes ;; 2382esac 2383 CC=$ac_ct_CC 2384 fi 2385else 2386 CC="$ac_cv_prog_CC" 2387fi 2388 2389if test -z "$CC"; then 2390 if test -n "$ac_tool_prefix"; then 2391 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2392set dummy ${ac_tool_prefix}cc; ac_word=$2 2393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2394$as_echo_n "checking for $ac_word... " >&6; } 2395if ${ac_cv_prog_CC+:} false; then : 2396 $as_echo_n "(cached) " >&6 2397else 2398 if test -n "$CC"; then 2399 ac_cv_prog_CC="$CC" # Let the user override the test. 2400else 2401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2402for as_dir in $PATH 2403do 2404 IFS=$as_save_IFS 2405 test -z "$as_dir" && as_dir=. 2406 for ac_exec_ext in '' $ac_executable_extensions; do 2407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2408 ac_cv_prog_CC="${ac_tool_prefix}cc" 2409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2410 break 2 2411 fi 2412done 2413 done 2414IFS=$as_save_IFS 2415 2416fi 2417fi 2418CC=$ac_cv_prog_CC 2419if test -n "$CC"; then 2420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2421$as_echo "$CC" >&6; } 2422else 2423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2424$as_echo "no" >&6; } 2425fi 2426 2427 2428 fi 2429fi 2430if test -z "$CC"; then 2431 # Extract the first word of "cc", so it can be a program name with args. 2432set dummy cc; ac_word=$2 2433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2434$as_echo_n "checking for $ac_word... " >&6; } 2435if ${ac_cv_prog_CC+:} false; then : 2436 $as_echo_n "(cached) " >&6 2437else 2438 if test -n "$CC"; then 2439 ac_cv_prog_CC="$CC" # Let the user override the test. 2440else 2441 ac_prog_rejected=no 2442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2443for as_dir in $PATH 2444do 2445 IFS=$as_save_IFS 2446 test -z "$as_dir" && as_dir=. 2447 for ac_exec_ext in '' $ac_executable_extensions; do 2448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2449 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2450 ac_prog_rejected=yes 2451 continue 2452 fi 2453 ac_cv_prog_CC="cc" 2454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2455 break 2 2456 fi 2457done 2458 done 2459IFS=$as_save_IFS 2460 2461if test $ac_prog_rejected = yes; then 2462 # We found a bogon in the path, so make sure we never use it. 2463 set dummy $ac_cv_prog_CC 2464 shift 2465 if test $# != 0; then 2466 # We chose a different compiler from the bogus one. 2467 # However, it has the same basename, so the bogon will be chosen 2468 # first if we set CC to just the basename; use the full file name. 2469 shift 2470 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2471 fi 2472fi 2473fi 2474fi 2475CC=$ac_cv_prog_CC 2476if test -n "$CC"; then 2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2478$as_echo "$CC" >&6; } 2479else 2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2481$as_echo "no" >&6; } 2482fi 2483 2484 2485fi 2486if test -z "$CC"; then 2487 if test -n "$ac_tool_prefix"; then 2488 for ac_prog in cl.exe 2489 do 2490 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2491set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2493$as_echo_n "checking for $ac_word... " >&6; } 2494if ${ac_cv_prog_CC+:} false; then : 2495 $as_echo_n "(cached) " >&6 2496else 2497 if test -n "$CC"; then 2498 ac_cv_prog_CC="$CC" # Let the user override the test. 2499else 2500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2501for as_dir in $PATH 2502do 2503 IFS=$as_save_IFS 2504 test -z "$as_dir" && as_dir=. 2505 for ac_exec_ext in '' $ac_executable_extensions; do 2506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2507 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2509 break 2 2510 fi 2511done 2512 done 2513IFS=$as_save_IFS 2514 2515fi 2516fi 2517CC=$ac_cv_prog_CC 2518if test -n "$CC"; then 2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2520$as_echo "$CC" >&6; } 2521else 2522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2523$as_echo "no" >&6; } 2524fi 2525 2526 2527 test -n "$CC" && break 2528 done 2529fi 2530if test -z "$CC"; then 2531 ac_ct_CC=$CC 2532 for ac_prog in cl.exe 2533do 2534 # Extract the first word of "$ac_prog", so it can be a program name with args. 2535set dummy $ac_prog; ac_word=$2 2536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2537$as_echo_n "checking for $ac_word... " >&6; } 2538if ${ac_cv_prog_ac_ct_CC+:} false; then : 2539 $as_echo_n "(cached) " >&6 2540else 2541 if test -n "$ac_ct_CC"; then 2542 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2543else 2544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2545for as_dir in $PATH 2546do 2547 IFS=$as_save_IFS 2548 test -z "$as_dir" && as_dir=. 2549 for ac_exec_ext in '' $ac_executable_extensions; do 2550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2551 ac_cv_prog_ac_ct_CC="$ac_prog" 2552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2553 break 2 2554 fi 2555done 2556 done 2557IFS=$as_save_IFS 2558 2559fi 2560fi 2561ac_ct_CC=$ac_cv_prog_ac_ct_CC 2562if test -n "$ac_ct_CC"; then 2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2564$as_echo "$ac_ct_CC" >&6; } 2565else 2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2567$as_echo "no" >&6; } 2568fi 2569 2570 2571 test -n "$ac_ct_CC" && break 2572done 2573 2574 if test "x$ac_ct_CC" = x; then 2575 CC="" 2576 else 2577 case $cross_compiling:$ac_tool_warned in 2578yes:) 2579{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2580$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2581ac_tool_warned=yes ;; 2582esac 2583 CC=$ac_ct_CC 2584 fi 2585fi 2586 2587fi 2588 2589 2590test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2591$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2592as_fn_error $? "no acceptable C compiler found in \$PATH 2593See \`config.log' for more details" "$LINENO" 5; } 2594 2595# Provide some information about the compiler. 2596$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2597set X $ac_compile 2598ac_compiler=$2 2599for ac_option in --version -v -V -qversion; do 2600 { { ac_try="$ac_compiler $ac_option >&5" 2601case "(($ac_try" in 2602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2603 *) ac_try_echo=$ac_try;; 2604esac 2605eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2606$as_echo "$ac_try_echo"; } >&5 2607 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2608 ac_status=$? 2609 if test -s conftest.err; then 2610 sed '10a\ 2611... rest of stderr output deleted ... 2612 10q' conftest.err >conftest.er1 2613 cat conftest.er1 >&5 2614 fi 2615 rm -f conftest.er1 conftest.err 2616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2617 test $ac_status = 0; } 2618done 2619 2620cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2621/* end confdefs.h. */ 2622 2623int 2624main () 2625{ 2626 2627 ; 2628 return 0; 2629} 2630_ACEOF 2631ac_clean_files_save=$ac_clean_files 2632ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2633# Try to create an executable without -o first, disregard a.out. 2634# It will help us diagnose broken compilers, and finding out an intuition 2635# of exeext. 2636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2637$as_echo_n "checking whether the C compiler works... " >&6; } 2638ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2639 2640# The possible output files: 2641ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2642 2643ac_rmfiles= 2644for ac_file in $ac_files 2645do 2646 case $ac_file in 2647 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2648 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2649 esac 2650done 2651rm -f $ac_rmfiles 2652 2653if { { ac_try="$ac_link_default" 2654case "(($ac_try" in 2655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2656 *) ac_try_echo=$ac_try;; 2657esac 2658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2659$as_echo "$ac_try_echo"; } >&5 2660 (eval "$ac_link_default") 2>&5 2661 ac_status=$? 2662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2663 test $ac_status = 0; }; then : 2664 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2665# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2666# in a Makefile. We should not override ac_cv_exeext if it was cached, 2667# so that the user can short-circuit this test for compilers unknown to 2668# Autoconf. 2669for ac_file in $ac_files '' 2670do 2671 test -f "$ac_file" || continue 2672 case $ac_file in 2673 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2674 ;; 2675 [ab].out ) 2676 # We found the default executable, but exeext='' is most 2677 # certainly right. 2678 break;; 2679 *.* ) 2680 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2681 then :; else 2682 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2683 fi 2684 # We set ac_cv_exeext here because the later test for it is not 2685 # safe: cross compilers may not add the suffix if given an `-o' 2686 # argument, so we may need to know it at that point already. 2687 # Even if this section looks crufty: it has the advantage of 2688 # actually working. 2689 break;; 2690 * ) 2691 break;; 2692 esac 2693done 2694test "$ac_cv_exeext" = no && ac_cv_exeext= 2695 2696else 2697 ac_file='' 2698fi 2699if test -z "$ac_file"; then : 2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2701$as_echo "no" >&6; } 2702$as_echo "$as_me: failed program was:" >&5 2703sed 's/^/| /' conftest.$ac_ext >&5 2704 2705{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2706$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2707as_fn_error 77 "C compiler cannot create executables 2708See \`config.log' for more details" "$LINENO" 5; } 2709else 2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2711$as_echo "yes" >&6; } 2712fi 2713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2714$as_echo_n "checking for C compiler default output file name... " >&6; } 2715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2716$as_echo "$ac_file" >&6; } 2717ac_exeext=$ac_cv_exeext 2718 2719rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2720ac_clean_files=$ac_clean_files_save 2721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2722$as_echo_n "checking for suffix of executables... " >&6; } 2723if { { ac_try="$ac_link" 2724case "(($ac_try" in 2725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2726 *) ac_try_echo=$ac_try;; 2727esac 2728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2729$as_echo "$ac_try_echo"; } >&5 2730 (eval "$ac_link") 2>&5 2731 ac_status=$? 2732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2733 test $ac_status = 0; }; then : 2734 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2735# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2736# work properly (i.e., refer to `conftest.exe'), while it won't with 2737# `rm'. 2738for ac_file in conftest.exe conftest conftest.*; do 2739 test -f "$ac_file" || continue 2740 case $ac_file in 2741 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2742 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2743 break;; 2744 * ) break;; 2745 esac 2746done 2747else 2748 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2749$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2750as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2751See \`config.log' for more details" "$LINENO" 5; } 2752fi 2753rm -f conftest conftest$ac_cv_exeext 2754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2755$as_echo "$ac_cv_exeext" >&6; } 2756 2757rm -f conftest.$ac_ext 2758EXEEXT=$ac_cv_exeext 2759ac_exeext=$EXEEXT 2760cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2761/* end confdefs.h. */ 2762#include <stdio.h> 2763int 2764main () 2765{ 2766FILE *f = fopen ("conftest.out", "w"); 2767 return ferror (f) || fclose (f) != 0; 2768 2769 ; 2770 return 0; 2771} 2772_ACEOF 2773ac_clean_files="$ac_clean_files conftest.out" 2774# Check that the compiler produces executables we can run. If not, either 2775# the compiler is broken, or we cross compile. 2776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2777$as_echo_n "checking whether we are cross compiling... " >&6; } 2778if test "$cross_compiling" != yes; then 2779 { { ac_try="$ac_link" 2780case "(($ac_try" in 2781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2782 *) ac_try_echo=$ac_try;; 2783esac 2784eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2785$as_echo "$ac_try_echo"; } >&5 2786 (eval "$ac_link") 2>&5 2787 ac_status=$? 2788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2789 test $ac_status = 0; } 2790 if { ac_try='./conftest$ac_cv_exeext' 2791 { { case "(($ac_try" in 2792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2793 *) ac_try_echo=$ac_try;; 2794esac 2795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2796$as_echo "$ac_try_echo"; } >&5 2797 (eval "$ac_try") 2>&5 2798 ac_status=$? 2799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2800 test $ac_status = 0; }; }; then 2801 cross_compiling=no 2802 else 2803 if test "$cross_compiling" = maybe; then 2804 cross_compiling=yes 2805 else 2806 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2807$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2808as_fn_error $? "cannot run C compiled programs. 2809If you meant to cross compile, use \`--host'. 2810See \`config.log' for more details" "$LINENO" 5; } 2811 fi 2812 fi 2813fi 2814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2815$as_echo "$cross_compiling" >&6; } 2816 2817rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2818ac_clean_files=$ac_clean_files_save 2819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2820$as_echo_n "checking for suffix of object files... " >&6; } 2821if ${ac_cv_objext+:} false; then : 2822 $as_echo_n "(cached) " >&6 2823else 2824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2825/* end confdefs.h. */ 2826 2827int 2828main () 2829{ 2830 2831 ; 2832 return 0; 2833} 2834_ACEOF 2835rm -f conftest.o conftest.obj 2836if { { ac_try="$ac_compile" 2837case "(($ac_try" in 2838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2839 *) ac_try_echo=$ac_try;; 2840esac 2841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2842$as_echo "$ac_try_echo"; } >&5 2843 (eval "$ac_compile") 2>&5 2844 ac_status=$? 2845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2846 test $ac_status = 0; }; then : 2847 for ac_file in conftest.o conftest.obj conftest.*; do 2848 test -f "$ac_file" || continue; 2849 case $ac_file in 2850 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2851 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2852 break;; 2853 esac 2854done 2855else 2856 $as_echo "$as_me: failed program was:" >&5 2857sed 's/^/| /' conftest.$ac_ext >&5 2858 2859{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2860$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2861as_fn_error $? "cannot compute suffix of object files: cannot compile 2862See \`config.log' for more details" "$LINENO" 5; } 2863fi 2864rm -f conftest.$ac_cv_objext conftest.$ac_ext 2865fi 2866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2867$as_echo "$ac_cv_objext" >&6; } 2868OBJEXT=$ac_cv_objext 2869ac_objext=$OBJEXT 2870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2871$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2872if ${ac_cv_c_compiler_gnu+:} false; then : 2873 $as_echo_n "(cached) " >&6 2874else 2875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2876/* end confdefs.h. */ 2877 2878int 2879main () 2880{ 2881#ifndef __GNUC__ 2882 choke me 2883#endif 2884 2885 ; 2886 return 0; 2887} 2888_ACEOF 2889if ac_fn_c_try_compile "$LINENO"; then : 2890 ac_compiler_gnu=yes 2891else 2892 ac_compiler_gnu=no 2893fi 2894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2895ac_cv_c_compiler_gnu=$ac_compiler_gnu 2896 2897fi 2898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2899$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2900if test $ac_compiler_gnu = yes; then 2901 GCC=yes 2902else 2903 GCC= 2904fi 2905ac_test_CFLAGS=${CFLAGS+set} 2906ac_save_CFLAGS=$CFLAGS 2907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2908$as_echo_n "checking whether $CC accepts -g... " >&6; } 2909if ${ac_cv_prog_cc_g+:} false; then : 2910 $as_echo_n "(cached) " >&6 2911else 2912 ac_save_c_werror_flag=$ac_c_werror_flag 2913 ac_c_werror_flag=yes 2914 ac_cv_prog_cc_g=no 2915 CFLAGS="-g" 2916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2917/* end confdefs.h. */ 2918 2919int 2920main () 2921{ 2922 2923 ; 2924 return 0; 2925} 2926_ACEOF 2927if ac_fn_c_try_compile "$LINENO"; then : 2928 ac_cv_prog_cc_g=yes 2929else 2930 CFLAGS="" 2931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2932/* end confdefs.h. */ 2933 2934int 2935main () 2936{ 2937 2938 ; 2939 return 0; 2940} 2941_ACEOF 2942if ac_fn_c_try_compile "$LINENO"; then : 2943 2944else 2945 ac_c_werror_flag=$ac_save_c_werror_flag 2946 CFLAGS="-g" 2947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2948/* end confdefs.h. */ 2949 2950int 2951main () 2952{ 2953 2954 ; 2955 return 0; 2956} 2957_ACEOF 2958if ac_fn_c_try_compile "$LINENO"; then : 2959 ac_cv_prog_cc_g=yes 2960fi 2961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2962fi 2963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2964fi 2965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2966 ac_c_werror_flag=$ac_save_c_werror_flag 2967fi 2968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 2969$as_echo "$ac_cv_prog_cc_g" >&6; } 2970if test "$ac_test_CFLAGS" = set; then 2971 CFLAGS=$ac_save_CFLAGS 2972elif test $ac_cv_prog_cc_g = yes; then 2973 if test "$GCC" = yes; then 2974 CFLAGS="-g -O2" 2975 else 2976 CFLAGS="-g" 2977 fi 2978else 2979 if test "$GCC" = yes; then 2980 CFLAGS="-O2" 2981 else 2982 CFLAGS= 2983 fi 2984fi 2985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 2986$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 2987if ${ac_cv_prog_cc_c89+:} false; then : 2988 $as_echo_n "(cached) " >&6 2989else 2990 ac_cv_prog_cc_c89=no 2991ac_save_CC=$CC 2992cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2993/* end confdefs.h. */ 2994#include <stdarg.h> 2995#include <stdio.h> 2996#include <sys/types.h> 2997#include <sys/stat.h> 2998/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2999struct buf { int x; }; 3000FILE * (*rcsopen) (struct buf *, struct stat *, int); 3001static char *e (p, i) 3002 char **p; 3003 int i; 3004{ 3005 return p[i]; 3006} 3007static char *f (char * (*g) (char **, int), char **p, ...) 3008{ 3009 char *s; 3010 va_list v; 3011 va_start (v,p); 3012 s = g (p, va_arg (v,int)); 3013 va_end (v); 3014 return s; 3015} 3016 3017/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3018 function prototypes and stuff, but not '\xHH' hex character constants. 3019 These don't provoke an error unfortunately, instead are silently treated 3020 as 'x'. The following induces an error, until -std is added to get 3021 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3022 array size at least. It's necessary to write '\x00'==0 to get something 3023 that's true only with -std. */ 3024int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3025 3026/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3027 inside strings and character constants. */ 3028#define FOO(x) 'x' 3029int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3030 3031int test (int i, double x); 3032struct s1 {int (*f) (int a);}; 3033struct s2 {int (*f) (double a);}; 3034int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3035int argc; 3036char **argv; 3037int 3038main () 3039{ 3040return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3041 ; 3042 return 0; 3043} 3044_ACEOF 3045for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3046 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3047do 3048 CC="$ac_save_CC $ac_arg" 3049 if ac_fn_c_try_compile "$LINENO"; then : 3050 ac_cv_prog_cc_c89=$ac_arg 3051fi 3052rm -f core conftest.err conftest.$ac_objext 3053 test "x$ac_cv_prog_cc_c89" != "xno" && break 3054done 3055rm -f conftest.$ac_ext 3056CC=$ac_save_CC 3057 3058fi 3059# AC_CACHE_VAL 3060case "x$ac_cv_prog_cc_c89" in 3061 x) 3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3063$as_echo "none needed" >&6; } ;; 3064 xno) 3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3066$as_echo "unsupported" >&6; } ;; 3067 *) 3068 CC="$CC $ac_cv_prog_cc_c89" 3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3070$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3071esac 3072if test "x$ac_cv_prog_cc_c89" != xno; then : 3073 3074fi 3075 3076ac_ext=c 3077ac_cpp='$CPP $CPPFLAGS' 3078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3080ac_compiler_gnu=$ac_cv_c_compiler_gnu 3081 3082 3083ac_ext=c 3084ac_cpp='$CPP $CPPFLAGS' 3085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3087ac_compiler_gnu=$ac_cv_c_compiler_gnu 3088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3089$as_echo_n "checking how to run the C preprocessor... " >&6; } 3090# On Suns, sometimes $CPP names a directory. 3091if test -n "$CPP" && test -d "$CPP"; then 3092 CPP= 3093fi 3094if test -z "$CPP"; then 3095 if ${ac_cv_prog_CPP+:} false; then : 3096 $as_echo_n "(cached) " >&6 3097else 3098 # Double quotes because CPP needs to be expanded 3099 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3100 do 3101 ac_preproc_ok=false 3102for ac_c_preproc_warn_flag in '' yes 3103do 3104 # Use a header file that comes with gcc, so configuring glibc 3105 # with a fresh cross-compiler works. 3106 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3107 # <limits.h> exists even on freestanding compilers. 3108 # On the NeXT, cc -E runs the code through the compiler's parser, 3109 # not just through cpp. "Syntax error" is here to catch this case. 3110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3111/* end confdefs.h. */ 3112#ifdef __STDC__ 3113# include <limits.h> 3114#else 3115# include <assert.h> 3116#endif 3117 Syntax error 3118_ACEOF 3119if ac_fn_c_try_cpp "$LINENO"; then : 3120 3121else 3122 # Broken: fails on valid input. 3123continue 3124fi 3125rm -f conftest.err conftest.i conftest.$ac_ext 3126 3127 # OK, works on sane cases. Now check whether nonexistent headers 3128 # can be detected and how. 3129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3130/* end confdefs.h. */ 3131#include <ac_nonexistent.h> 3132_ACEOF 3133if ac_fn_c_try_cpp "$LINENO"; then : 3134 # Broken: success on invalid input. 3135continue 3136else 3137 # Passes both tests. 3138ac_preproc_ok=: 3139break 3140fi 3141rm -f conftest.err conftest.i conftest.$ac_ext 3142 3143done 3144# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3145rm -f conftest.i conftest.err conftest.$ac_ext 3146if $ac_preproc_ok; then : 3147 break 3148fi 3149 3150 done 3151 ac_cv_prog_CPP=$CPP 3152 3153fi 3154 CPP=$ac_cv_prog_CPP 3155else 3156 ac_cv_prog_CPP=$CPP 3157fi 3158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3159$as_echo "$CPP" >&6; } 3160ac_preproc_ok=false 3161for ac_c_preproc_warn_flag in '' yes 3162do 3163 # Use a header file that comes with gcc, so configuring glibc 3164 # with a fresh cross-compiler works. 3165 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3166 # <limits.h> exists even on freestanding compilers. 3167 # On the NeXT, cc -E runs the code through the compiler's parser, 3168 # not just through cpp. "Syntax error" is here to catch this case. 3169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3170/* end confdefs.h. */ 3171#ifdef __STDC__ 3172# include <limits.h> 3173#else 3174# include <assert.h> 3175#endif 3176 Syntax error 3177_ACEOF 3178if ac_fn_c_try_cpp "$LINENO"; then : 3179 3180else 3181 # Broken: fails on valid input. 3182continue 3183fi 3184rm -f conftest.err conftest.i conftest.$ac_ext 3185 3186 # OK, works on sane cases. Now check whether nonexistent headers 3187 # can be detected and how. 3188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3189/* end confdefs.h. */ 3190#include <ac_nonexistent.h> 3191_ACEOF 3192if ac_fn_c_try_cpp "$LINENO"; then : 3193 # Broken: success on invalid input. 3194continue 3195else 3196 # Passes both tests. 3197ac_preproc_ok=: 3198break 3199fi 3200rm -f conftest.err conftest.i conftest.$ac_ext 3201 3202done 3203# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3204rm -f conftest.i conftest.err conftest.$ac_ext 3205if $ac_preproc_ok; then : 3206 3207else 3208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3209$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3210as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3211See \`config.log' for more details" "$LINENO" 5; } 3212fi 3213 3214ac_ext=c 3215ac_cpp='$CPP $CPPFLAGS' 3216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3218ac_compiler_gnu=$ac_cv_c_compiler_gnu 3219 3220 3221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3222$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3223if ${ac_cv_path_GREP+:} false; then : 3224 $as_echo_n "(cached) " >&6 3225else 3226 if test -z "$GREP"; then 3227 ac_path_GREP_found=false 3228 # Loop through the user's path and test for each of PROGNAME-LIST 3229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3230for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3231do 3232 IFS=$as_save_IFS 3233 test -z "$as_dir" && as_dir=. 3234 for ac_prog in grep ggrep; do 3235 for ac_exec_ext in '' $ac_executable_extensions; do 3236 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3237 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3238# Check for GNU ac_path_GREP and select it if it is found. 3239 # Check for GNU $ac_path_GREP 3240case `"$ac_path_GREP" --version 2>&1` in 3241*GNU*) 3242 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3243*) 3244 ac_count=0 3245 $as_echo_n 0123456789 >"conftest.in" 3246 while : 3247 do 3248 cat "conftest.in" "conftest.in" >"conftest.tmp" 3249 mv "conftest.tmp" "conftest.in" 3250 cp "conftest.in" "conftest.nl" 3251 $as_echo 'GREP' >> "conftest.nl" 3252 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3253 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3254 as_fn_arith $ac_count + 1 && ac_count=$as_val 3255 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3256 # Best one so far, save it but keep looking for a better one 3257 ac_cv_path_GREP="$ac_path_GREP" 3258 ac_path_GREP_max=$ac_count 3259 fi 3260 # 10*(2^10) chars as input seems more than enough 3261 test $ac_count -gt 10 && break 3262 done 3263 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3264esac 3265 3266 $ac_path_GREP_found && break 3 3267 done 3268 done 3269 done 3270IFS=$as_save_IFS 3271 if test -z "$ac_cv_path_GREP"; then 3272 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3273 fi 3274else 3275 ac_cv_path_GREP=$GREP 3276fi 3277 3278fi 3279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3280$as_echo "$ac_cv_path_GREP" >&6; } 3281 GREP="$ac_cv_path_GREP" 3282 3283 3284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3285$as_echo_n "checking for egrep... " >&6; } 3286if ${ac_cv_path_EGREP+:} false; then : 3287 $as_echo_n "(cached) " >&6 3288else 3289 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3290 then ac_cv_path_EGREP="$GREP -E" 3291 else 3292 if test -z "$EGREP"; then 3293 ac_path_EGREP_found=false 3294 # Loop through the user's path and test for each of PROGNAME-LIST 3295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3296for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3297do 3298 IFS=$as_save_IFS 3299 test -z "$as_dir" && as_dir=. 3300 for ac_prog in egrep; do 3301 for ac_exec_ext in '' $ac_executable_extensions; do 3302 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3303 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3304# Check for GNU ac_path_EGREP and select it if it is found. 3305 # Check for GNU $ac_path_EGREP 3306case `"$ac_path_EGREP" --version 2>&1` in 3307*GNU*) 3308 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3309*) 3310 ac_count=0 3311 $as_echo_n 0123456789 >"conftest.in" 3312 while : 3313 do 3314 cat "conftest.in" "conftest.in" >"conftest.tmp" 3315 mv "conftest.tmp" "conftest.in" 3316 cp "conftest.in" "conftest.nl" 3317 $as_echo 'EGREP' >> "conftest.nl" 3318 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3319 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3320 as_fn_arith $ac_count + 1 && ac_count=$as_val 3321 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3322 # Best one so far, save it but keep looking for a better one 3323 ac_cv_path_EGREP="$ac_path_EGREP" 3324 ac_path_EGREP_max=$ac_count 3325 fi 3326 # 10*(2^10) chars as input seems more than enough 3327 test $ac_count -gt 10 && break 3328 done 3329 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3330esac 3331 3332 $ac_path_EGREP_found && break 3 3333 done 3334 done 3335 done 3336IFS=$as_save_IFS 3337 if test -z "$ac_cv_path_EGREP"; then 3338 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3339 fi 3340else 3341 ac_cv_path_EGREP=$EGREP 3342fi 3343 3344 fi 3345fi 3346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3347$as_echo "$ac_cv_path_EGREP" >&6; } 3348 EGREP="$ac_cv_path_EGREP" 3349 3350 3351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3352$as_echo_n "checking for ANSI C header files... " >&6; } 3353if ${ac_cv_header_stdc+:} false; then : 3354 $as_echo_n "(cached) " >&6 3355else 3356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3357/* end confdefs.h. */ 3358#include <stdlib.h> 3359#include <stdarg.h> 3360#include <string.h> 3361#include <float.h> 3362 3363int 3364main () 3365{ 3366 3367 ; 3368 return 0; 3369} 3370_ACEOF 3371if ac_fn_c_try_compile "$LINENO"; then : 3372 ac_cv_header_stdc=yes 3373else 3374 ac_cv_header_stdc=no 3375fi 3376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3377 3378if test $ac_cv_header_stdc = yes; then 3379 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3381/* end confdefs.h. */ 3382#include <string.h> 3383 3384_ACEOF 3385if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3386 $EGREP "memchr" >/dev/null 2>&1; then : 3387 3388else 3389 ac_cv_header_stdc=no 3390fi 3391rm -f conftest* 3392 3393fi 3394 3395if test $ac_cv_header_stdc = yes; then 3396 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3398/* end confdefs.h. */ 3399#include <stdlib.h> 3400 3401_ACEOF 3402if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3403 $EGREP "free" >/dev/null 2>&1; then : 3404 3405else 3406 ac_cv_header_stdc=no 3407fi 3408rm -f conftest* 3409 3410fi 3411 3412if test $ac_cv_header_stdc = yes; then 3413 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3414 if test "$cross_compiling" = yes; then : 3415 : 3416else 3417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3418/* end confdefs.h. */ 3419#include <ctype.h> 3420#include <stdlib.h> 3421#if ((' ' & 0x0FF) == 0x020) 3422# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3423# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3424#else 3425# define ISLOWER(c) \ 3426 (('a' <= (c) && (c) <= 'i') \ 3427 || ('j' <= (c) && (c) <= 'r') \ 3428 || ('s' <= (c) && (c) <= 'z')) 3429# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3430#endif 3431 3432#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3433int 3434main () 3435{ 3436 int i; 3437 for (i = 0; i < 256; i++) 3438 if (XOR (islower (i), ISLOWER (i)) 3439 || toupper (i) != TOUPPER (i)) 3440 return 2; 3441 return 0; 3442} 3443_ACEOF 3444if ac_fn_c_try_run "$LINENO"; then : 3445 3446else 3447 ac_cv_header_stdc=no 3448fi 3449rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3450 conftest.$ac_objext conftest.beam conftest.$ac_ext 3451fi 3452 3453fi 3454fi 3455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3456$as_echo "$ac_cv_header_stdc" >&6; } 3457if test $ac_cv_header_stdc = yes; then 3458 3459$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3460 3461fi 3462 3463# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3464for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3465 inttypes.h stdint.h unistd.h 3466do : 3467 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3468ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3469" 3470if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3471 cat >>confdefs.h <<_ACEOF 3472#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3473_ACEOF 3474 3475fi 3476 3477done 3478 3479 3480 3481 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3482if test "x$ac_cv_header_minix_config_h" = xyes; then : 3483 MINIX=yes 3484else 3485 MINIX= 3486fi 3487 3488 3489 if test "$MINIX" = yes; then 3490 3491$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3492 3493 3494$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3495 3496 3497$as_echo "#define _MINIX 1" >>confdefs.h 3498 3499 fi 3500 3501 3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3503$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3504if ${ac_cv_safe_to_define___extensions__+:} false; then : 3505 $as_echo_n "(cached) " >&6 3506else 3507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3508/* end confdefs.h. */ 3509 3510# define __EXTENSIONS__ 1 3511 $ac_includes_default 3512int 3513main () 3514{ 3515 3516 ; 3517 return 0; 3518} 3519_ACEOF 3520if ac_fn_c_try_compile "$LINENO"; then : 3521 ac_cv_safe_to_define___extensions__=yes 3522else 3523 ac_cv_safe_to_define___extensions__=no 3524fi 3525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3526fi 3527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3528$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3529 test $ac_cv_safe_to_define___extensions__ = yes && 3530 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3531 3532 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3533 3534 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3535 3536 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3537 3538 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3539 3540 3541 3542# Initialize Automake 3543am__api_version='1.13' 3544 3545ac_aux_dir= 3546for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3547 if test -f "$ac_dir/install-sh"; then 3548 ac_aux_dir=$ac_dir 3549 ac_install_sh="$ac_aux_dir/install-sh -c" 3550 break 3551 elif test -f "$ac_dir/install.sh"; then 3552 ac_aux_dir=$ac_dir 3553 ac_install_sh="$ac_aux_dir/install.sh -c" 3554 break 3555 elif test -f "$ac_dir/shtool"; then 3556 ac_aux_dir=$ac_dir 3557 ac_install_sh="$ac_aux_dir/shtool install -c" 3558 break 3559 fi 3560done 3561if test -z "$ac_aux_dir"; then 3562 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 3563fi 3564 3565# These three variables are undocumented and unsupported, 3566# and are intended to be withdrawn in a future Autoconf release. 3567# They can cause serious problems if a builder's source tree is in a directory 3568# whose full name contains unusual characters. 3569ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3570ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3571ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3572 3573 3574# Find a good install program. We prefer a C program (faster), 3575# so one script is as good as another. But avoid the broken or 3576# incompatible versions: 3577# SysV /etc/install, /usr/sbin/install 3578# SunOS /usr/etc/install 3579# IRIX /sbin/install 3580# AIX /bin/install 3581# AmigaOS /C/install, which installs bootblocks on floppy discs 3582# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3583# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3584# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3585# OS/2's system install, which has a completely different semantic 3586# ./install, which can be erroneously created by make from ./install.sh. 3587# Reject install programs that cannot install multiple files. 3588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3589$as_echo_n "checking for a BSD-compatible install... " >&6; } 3590if test -z "$INSTALL"; then 3591if ${ac_cv_path_install+:} false; then : 3592 $as_echo_n "(cached) " >&6 3593else 3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3595for as_dir in $PATH 3596do 3597 IFS=$as_save_IFS 3598 test -z "$as_dir" && as_dir=. 3599 # Account for people who put trailing slashes in PATH elements. 3600case $as_dir/ in #(( 3601 ./ | .// | /[cC]/* | \ 3602 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3603 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3604 /usr/ucb/* ) ;; 3605 *) 3606 # OSF1 and SCO ODT 3.0 have their own names for install. 3607 # Don't use installbsd from OSF since it installs stuff as root 3608 # by default. 3609 for ac_prog in ginstall scoinst install; do 3610 for ac_exec_ext in '' $ac_executable_extensions; do 3611 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3612 if test $ac_prog = install && 3613 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3614 # AIX install. It has an incompatible calling convention. 3615 : 3616 elif test $ac_prog = install && 3617 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3618 # program-specific install script used by HP pwplus--don't use. 3619 : 3620 else 3621 rm -rf conftest.one conftest.two conftest.dir 3622 echo one > conftest.one 3623 echo two > conftest.two 3624 mkdir conftest.dir 3625 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3626 test -s conftest.one && test -s conftest.two && 3627 test -s conftest.dir/conftest.one && 3628 test -s conftest.dir/conftest.two 3629 then 3630 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3631 break 3 3632 fi 3633 fi 3634 fi 3635 done 3636 done 3637 ;; 3638esac 3639 3640 done 3641IFS=$as_save_IFS 3642 3643rm -rf conftest.one conftest.two conftest.dir 3644 3645fi 3646 if test "${ac_cv_path_install+set}" = set; then 3647 INSTALL=$ac_cv_path_install 3648 else 3649 # As a last resort, use the slow shell script. Don't cache a 3650 # value for INSTALL within a source directory, because that will 3651 # break other packages using the cache if that directory is 3652 # removed, or if the value is a relative name. 3653 INSTALL=$ac_install_sh 3654 fi 3655fi 3656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3657$as_echo "$INSTALL" >&6; } 3658 3659# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3660# It thinks the first close brace ends the variable substitution. 3661test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3662 3663test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3664 3665test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3666 3667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3668$as_echo_n "checking whether build environment is sane... " >&6; } 3669# Reject unsafe characters in $srcdir or the absolute working directory 3670# name. Accept space and tab only in the latter. 3671am_lf=' 3672' 3673case `pwd` in 3674 *[\\\"\#\$\&\'\`$am_lf]*) 3675 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3676esac 3677case $srcdir in 3678 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3679 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3680esac 3681 3682# Do 'set' in a subshell so we don't clobber the current shell's 3683# arguments. Must try -L first in case configure is actually a 3684# symlink; some systems play weird games with the mod time of symlinks 3685# (eg FreeBSD returns the mod time of the symlink's containing 3686# directory). 3687if ( 3688 am_has_slept=no 3689 for am_try in 1 2; do 3690 echo "timestamp, slept: $am_has_slept" > conftest.file 3691 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3692 if test "$*" = "X"; then 3693 # -L didn't work. 3694 set X `ls -t "$srcdir/configure" conftest.file` 3695 fi 3696 if test "$*" != "X $srcdir/configure conftest.file" \ 3697 && test "$*" != "X conftest.file $srcdir/configure"; then 3698 3699 # If neither matched, then we have a broken ls. This can happen 3700 # if, for instance, CONFIG_SHELL is bash and it inherits a 3701 # broken ls alias from the environment. This has actually 3702 # happened. Such a system could not be considered "sane". 3703 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3704 alias in your environment" "$LINENO" 5 3705 fi 3706 if test "$2" = conftest.file || test $am_try -eq 2; then 3707 break 3708 fi 3709 # Just in case. 3710 sleep 1 3711 am_has_slept=yes 3712 done 3713 test "$2" = conftest.file 3714 ) 3715then 3716 # Ok. 3717 : 3718else 3719 as_fn_error $? "newly created file is older than distributed files! 3720Check your system clock" "$LINENO" 5 3721fi 3722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3723$as_echo "yes" >&6; } 3724# If we didn't sleep, we still need to ensure time stamps of config.status and 3725# generated files are strictly newer. 3726am_sleep_pid= 3727if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3728 ( sleep 1 ) & 3729 am_sleep_pid=$! 3730fi 3731 3732rm -f conftest.file 3733 3734test "$program_prefix" != NONE && 3735 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3736# Use a double $ so make ignores it. 3737test "$program_suffix" != NONE && 3738 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3739# Double any \ or $. 3740# By default was `s,x,x', remove it if useless. 3741ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3742program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3743 3744# expand $ac_aux_dir to an absolute path 3745am_aux_dir=`cd $ac_aux_dir && pwd` 3746 3747if test x"${MISSING+set}" != xset; then 3748 case $am_aux_dir in 3749 *\ * | *\ *) 3750 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3751 *) 3752 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3753 esac 3754fi 3755# Use eval to expand $SHELL 3756if eval "$MISSING --is-lightweight"; then 3757 am_missing_run="$MISSING " 3758else 3759 am_missing_run= 3760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3761$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3762fi 3763 3764if test x"${install_sh}" != xset; then 3765 case $am_aux_dir in 3766 *\ * | *\ *) 3767 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3768 *) 3769 install_sh="\${SHELL} $am_aux_dir/install-sh" 3770 esac 3771fi 3772 3773# Installed binaries are usually stripped using 'strip' when the user 3774# run "make install-strip". However 'strip' might not be the right 3775# tool to use in cross-compilation environments, therefore Automake 3776# will honor the 'STRIP' environment variable to overrule this program. 3777if test "$cross_compiling" != no; then 3778 if test -n "$ac_tool_prefix"; then 3779 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3780set dummy ${ac_tool_prefix}strip; ac_word=$2 3781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3782$as_echo_n "checking for $ac_word... " >&6; } 3783if ${ac_cv_prog_STRIP+:} false; then : 3784 $as_echo_n "(cached) " >&6 3785else 3786 if test -n "$STRIP"; then 3787 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3788else 3789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3790for as_dir in $PATH 3791do 3792 IFS=$as_save_IFS 3793 test -z "$as_dir" && as_dir=. 3794 for ac_exec_ext in '' $ac_executable_extensions; do 3795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3796 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3798 break 2 3799 fi 3800done 3801 done 3802IFS=$as_save_IFS 3803 3804fi 3805fi 3806STRIP=$ac_cv_prog_STRIP 3807if test -n "$STRIP"; then 3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3809$as_echo "$STRIP" >&6; } 3810else 3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3812$as_echo "no" >&6; } 3813fi 3814 3815 3816fi 3817if test -z "$ac_cv_prog_STRIP"; then 3818 ac_ct_STRIP=$STRIP 3819 # Extract the first word of "strip", so it can be a program name with args. 3820set dummy strip; ac_word=$2 3821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3822$as_echo_n "checking for $ac_word... " >&6; } 3823if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3824 $as_echo_n "(cached) " >&6 3825else 3826 if test -n "$ac_ct_STRIP"; then 3827 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3828else 3829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3830for as_dir in $PATH 3831do 3832 IFS=$as_save_IFS 3833 test -z "$as_dir" && as_dir=. 3834 for ac_exec_ext in '' $ac_executable_extensions; do 3835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3836 ac_cv_prog_ac_ct_STRIP="strip" 3837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3838 break 2 3839 fi 3840done 3841 done 3842IFS=$as_save_IFS 3843 3844fi 3845fi 3846ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3847if test -n "$ac_ct_STRIP"; then 3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3849$as_echo "$ac_ct_STRIP" >&6; } 3850else 3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3852$as_echo "no" >&6; } 3853fi 3854 3855 if test "x$ac_ct_STRIP" = x; then 3856 STRIP=":" 3857 else 3858 case $cross_compiling:$ac_tool_warned in 3859yes:) 3860{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3861$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3862ac_tool_warned=yes ;; 3863esac 3864 STRIP=$ac_ct_STRIP 3865 fi 3866else 3867 STRIP="$ac_cv_prog_STRIP" 3868fi 3869 3870fi 3871INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3872 3873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3874$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3875if test -z "$MKDIR_P"; then 3876 if ${ac_cv_path_mkdir+:} false; then : 3877 $as_echo_n "(cached) " >&6 3878else 3879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3880for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3881do 3882 IFS=$as_save_IFS 3883 test -z "$as_dir" && as_dir=. 3884 for ac_prog in mkdir gmkdir; do 3885 for ac_exec_ext in '' $ac_executable_extensions; do 3886 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 3887 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3888 'mkdir (GNU coreutils) '* | \ 3889 'mkdir (coreutils) '* | \ 3890 'mkdir (fileutils) '4.1*) 3891 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3892 break 3;; 3893 esac 3894 done 3895 done 3896 done 3897IFS=$as_save_IFS 3898 3899fi 3900 3901 test -d ./--version && rmdir ./--version 3902 if test "${ac_cv_path_mkdir+set}" = set; then 3903 MKDIR_P="$ac_cv_path_mkdir -p" 3904 else 3905 # As a last resort, use the slow shell script. Don't cache a 3906 # value for MKDIR_P within a source directory, because that will 3907 # break other packages using the cache if that directory is 3908 # removed, or if the value is a relative name. 3909 MKDIR_P="$ac_install_sh -d" 3910 fi 3911fi 3912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3913$as_echo "$MKDIR_P" >&6; } 3914 3915for ac_prog in gawk mawk nawk awk 3916do 3917 # Extract the first word of "$ac_prog", so it can be a program name with args. 3918set dummy $ac_prog; ac_word=$2 3919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3920$as_echo_n "checking for $ac_word... " >&6; } 3921if ${ac_cv_prog_AWK+:} false; then : 3922 $as_echo_n "(cached) " >&6 3923else 3924 if test -n "$AWK"; then 3925 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3926else 3927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3928for as_dir in $PATH 3929do 3930 IFS=$as_save_IFS 3931 test -z "$as_dir" && as_dir=. 3932 for ac_exec_ext in '' $ac_executable_extensions; do 3933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3934 ac_cv_prog_AWK="$ac_prog" 3935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3936 break 2 3937 fi 3938done 3939 done 3940IFS=$as_save_IFS 3941 3942fi 3943fi 3944AWK=$ac_cv_prog_AWK 3945if test -n "$AWK"; then 3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3947$as_echo "$AWK" >&6; } 3948else 3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3950$as_echo "no" >&6; } 3951fi 3952 3953 3954 test -n "$AWK" && break 3955done 3956 3957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3958$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3959set x ${MAKE-make} 3960ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3961if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3962 $as_echo_n "(cached) " >&6 3963else 3964 cat >conftest.make <<\_ACEOF 3965SHELL = /bin/sh 3966all: 3967 @echo '@@@%%%=$(MAKE)=@@@%%%' 3968_ACEOF 3969# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3970case `${MAKE-make} -f conftest.make 2>/dev/null` in 3971 *@@@%%%=?*=@@@%%%*) 3972 eval ac_cv_prog_make_${ac_make}_set=yes;; 3973 *) 3974 eval ac_cv_prog_make_${ac_make}_set=no;; 3975esac 3976rm -f conftest.make 3977fi 3978if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3980$as_echo "yes" >&6; } 3981 SET_MAKE= 3982else 3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3984$as_echo "no" >&6; } 3985 SET_MAKE="MAKE=${MAKE-make}" 3986fi 3987 3988rm -rf .tst 2>/dev/null 3989mkdir .tst 2>/dev/null 3990if test -d .tst; then 3991 am__leading_dot=. 3992else 3993 am__leading_dot=_ 3994fi 3995rmdir .tst 2>/dev/null 3996 3997DEPDIR="${am__leading_dot}deps" 3998 3999ac_config_commands="$ac_config_commands depfiles" 4000 4001 4002am_make=${MAKE-make} 4003cat > confinc << 'END' 4004am__doit: 4005 @echo this is the am__doit target 4006.PHONY: am__doit 4007END 4008# If we don't find an include directive, just comment out the code. 4009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4010$as_echo_n "checking for style of include used by $am_make... " >&6; } 4011am__include="#" 4012am__quote= 4013_am_result=none 4014# First try GNU make style include. 4015echo "include confinc" > confmf 4016# Ignore all kinds of additional output from 'make'. 4017case `$am_make -s -f confmf 2> /dev/null` in #( 4018*the\ am__doit\ target*) 4019 am__include=include 4020 am__quote= 4021 _am_result=GNU 4022 ;; 4023esac 4024# Now try BSD make style include. 4025if test "$am__include" = "#"; then 4026 echo '.include "confinc"' > confmf 4027 case `$am_make -s -f confmf 2> /dev/null` in #( 4028 *the\ am__doit\ target*) 4029 am__include=.include 4030 am__quote="\"" 4031 _am_result=BSD 4032 ;; 4033 esac 4034fi 4035 4036 4037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4038$as_echo "$_am_result" >&6; } 4039rm -f confinc confmf 4040 4041# Check whether --enable-dependency-tracking was given. 4042if test "${enable_dependency_tracking+set}" = set; then : 4043 enableval=$enable_dependency_tracking; 4044fi 4045 4046if test "x$enable_dependency_tracking" != xno; then 4047 am_depcomp="$ac_aux_dir/depcomp" 4048 AMDEPBACKSLASH='\' 4049 am__nodep='_no' 4050fi 4051 if test "x$enable_dependency_tracking" != xno; then 4052 AMDEP_TRUE= 4053 AMDEP_FALSE='#' 4054else 4055 AMDEP_TRUE='#' 4056 AMDEP_FALSE= 4057fi 4058 4059 4060# Check whether --enable-silent-rules was given. 4061if test "${enable_silent_rules+set}" = set; then : 4062 enableval=$enable_silent_rules; 4063fi 4064 4065case $enable_silent_rules in # ((( 4066 yes) AM_DEFAULT_VERBOSITY=0;; 4067 no) AM_DEFAULT_VERBOSITY=1;; 4068 *) AM_DEFAULT_VERBOSITY=1;; 4069esac 4070am_make=${MAKE-make} 4071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4072$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4073if ${am_cv_make_support_nested_variables+:} false; then : 4074 $as_echo_n "(cached) " >&6 4075else 4076 if $as_echo 'TRUE=$(BAR$(V)) 4077BAR0=false 4078BAR1=true 4079V=1 4080am__doit: 4081 @$(TRUE) 4082.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4083 am_cv_make_support_nested_variables=yes 4084else 4085 am_cv_make_support_nested_variables=no 4086fi 4087fi 4088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4089$as_echo "$am_cv_make_support_nested_variables" >&6; } 4090if test $am_cv_make_support_nested_variables = yes; then 4091 AM_V='$(V)' 4092 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4093else 4094 AM_V=$AM_DEFAULT_VERBOSITY 4095 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4096fi 4097AM_BACKSLASH='\' 4098 4099if test "`cd $srcdir && pwd`" != "`pwd`"; then 4100 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4101 # is not polluted with repeated "-I." 4102 am__isrc=' -I$(srcdir)' 4103 # test to see if srcdir already configured 4104 if test -f $srcdir/config.status; then 4105 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4106 fi 4107fi 4108 4109# test whether we have cygpath 4110if test -z "$CYGPATH_W"; then 4111 if (cygpath --version) >/dev/null 2>/dev/null; then 4112 CYGPATH_W='cygpath -w' 4113 else 4114 CYGPATH_W=echo 4115 fi 4116fi 4117 4118 4119# Define the identity of the package. 4120 PACKAGE='libXau' 4121 VERSION='1.0.8' 4122 4123 4124cat >>confdefs.h <<_ACEOF 4125#define PACKAGE "$PACKAGE" 4126_ACEOF 4127 4128 4129cat >>confdefs.h <<_ACEOF 4130#define VERSION "$VERSION" 4131_ACEOF 4132 4133# Some tools Automake needs. 4134 4135ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4136 4137 4138AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4139 4140 4141AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4142 4143 4144AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4145 4146 4147MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4148 4149# For better backward compatibility. To be removed once Automake 1.9.x 4150# dies out for good. For more background, see: 4151# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4152# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4153mkdir_p='$(MKDIR_P)' 4154 4155# We need awk for the "check" target. The system "awk" is bad on 4156# some platforms. 4157# Always define AMTAR for backward compatibility. Yes, it's still used 4158# in the wild :-( We should find a proper way to deprecate it ... 4159AMTAR='$${TAR-tar}' 4160 4161 4162# We'll loop over all known methods to create a tar archive until one works. 4163_am_tools='gnutar pax cpio none' 4164 4165am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4166 4167 4168 4169 4170 4171depcc="$CC" am_compiler_list= 4172 4173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4174$as_echo_n "checking dependency style of $depcc... " >&6; } 4175if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4176 $as_echo_n "(cached) " >&6 4177else 4178 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4179 # We make a subdir and do the tests there. Otherwise we can end up 4180 # making bogus files that we don't know about and never remove. For 4181 # instance it was reported that on HP-UX the gcc test will end up 4182 # making a dummy file named 'D' -- because '-MD' means "put the output 4183 # in D". 4184 rm -rf conftest.dir 4185 mkdir conftest.dir 4186 # Copy depcomp to subdir because otherwise we won't find it if we're 4187 # using a relative directory. 4188 cp "$am_depcomp" conftest.dir 4189 cd conftest.dir 4190 # We will build objects and dependencies in a subdirectory because 4191 # it helps to detect inapplicable dependency modes. For instance 4192 # both Tru64's cc and ICC support -MD to output dependencies as a 4193 # side effect of compilation, but ICC will put the dependencies in 4194 # the current directory while Tru64 will put them in the object 4195 # directory. 4196 mkdir sub 4197 4198 am_cv_CC_dependencies_compiler_type=none 4199 if test "$am_compiler_list" = ""; then 4200 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4201 fi 4202 am__universal=false 4203 case " $depcc " in #( 4204 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4205 esac 4206 4207 for depmode in $am_compiler_list; do 4208 # Setup a source with many dependencies, because some compilers 4209 # like to wrap large dependency lists on column 80 (with \), and 4210 # we should not choose a depcomp mode which is confused by this. 4211 # 4212 # We need to recreate these files for each test, as the compiler may 4213 # overwrite some of them when testing with obscure command lines. 4214 # This happens at least with the AIX C compiler. 4215 : > sub/conftest.c 4216 for i in 1 2 3 4 5 6; do 4217 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4218 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4219 # Solaris 10 /bin/sh. 4220 echo '/* dummy */' > sub/conftst$i.h 4221 done 4222 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4223 4224 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4225 # mode. It turns out that the SunPro C++ compiler does not properly 4226 # handle '-M -o', and we need to detect this. Also, some Intel 4227 # versions had trouble with output in subdirs. 4228 am__obj=sub/conftest.${OBJEXT-o} 4229 am__minus_obj="-o $am__obj" 4230 case $depmode in 4231 gcc) 4232 # This depmode causes a compiler race in universal mode. 4233 test "$am__universal" = false || continue 4234 ;; 4235 nosideeffect) 4236 # After this tag, mechanisms are not by side-effect, so they'll 4237 # only be used when explicitly requested. 4238 if test "x$enable_dependency_tracking" = xyes; then 4239 continue 4240 else 4241 break 4242 fi 4243 ;; 4244 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4245 # This compiler won't grok '-c -o', but also, the minuso test has 4246 # not run yet. These depmodes are late enough in the game, and 4247 # so weak that their functioning should not be impacted. 4248 am__obj=conftest.${OBJEXT-o} 4249 am__minus_obj= 4250 ;; 4251 none) break ;; 4252 esac 4253 if depmode=$depmode \ 4254 source=sub/conftest.c object=$am__obj \ 4255 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4256 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4257 >/dev/null 2>conftest.err && 4258 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4259 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4260 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4261 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4262 # icc doesn't choke on unknown options, it will just issue warnings 4263 # or remarks (even with -Werror). So we grep stderr for any message 4264 # that says an option was ignored or not supported. 4265 # When given -MP, icc 7.0 and 7.1 complain thusly: 4266 # icc: Command line warning: ignoring option '-M'; no argument required 4267 # The diagnosis changed in icc 8.0: 4268 # icc: Command line remark: option '-MP' not supported 4269 if (grep 'ignoring option' conftest.err || 4270 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4271 am_cv_CC_dependencies_compiler_type=$depmode 4272 break 4273 fi 4274 fi 4275 done 4276 4277 cd .. 4278 rm -rf conftest.dir 4279else 4280 am_cv_CC_dependencies_compiler_type=none 4281fi 4282 4283fi 4284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4285$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4286CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4287 4288 if 4289 test "x$enable_dependency_tracking" != xno \ 4290 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4291 am__fastdepCC_TRUE= 4292 am__fastdepCC_FALSE='#' 4293else 4294 am__fastdepCC_TRUE='#' 4295 am__fastdepCC_FALSE= 4296fi 4297 4298 4299 4300 4301# Initialize libtool 4302# Make sure we can run config.sub. 4303$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4304 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4305 4306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4307$as_echo_n "checking build system type... " >&6; } 4308if ${ac_cv_build+:} false; then : 4309 $as_echo_n "(cached) " >&6 4310else 4311 ac_build_alias=$build_alias 4312test "x$ac_build_alias" = x && 4313 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4314test "x$ac_build_alias" = x && 4315 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4316ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4317 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4318 4319fi 4320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4321$as_echo "$ac_cv_build" >&6; } 4322case $ac_cv_build in 4323*-*-*) ;; 4324*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4325esac 4326build=$ac_cv_build 4327ac_save_IFS=$IFS; IFS='-' 4328set x $ac_cv_build 4329shift 4330build_cpu=$1 4331build_vendor=$2 4332shift; shift 4333# Remember, the first character of IFS is used to create $*, 4334# except with old shells: 4335build_os=$* 4336IFS=$ac_save_IFS 4337case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4338 4339 4340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4341$as_echo_n "checking host system type... " >&6; } 4342if ${ac_cv_host+:} false; then : 4343 $as_echo_n "(cached) " >&6 4344else 4345 if test "x$host_alias" = x; then 4346 ac_cv_host=$ac_cv_build 4347else 4348 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4349 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4350fi 4351 4352fi 4353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4354$as_echo "$ac_cv_host" >&6; } 4355case $ac_cv_host in 4356*-*-*) ;; 4357*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4358esac 4359host=$ac_cv_host 4360ac_save_IFS=$IFS; IFS='-' 4361set x $ac_cv_host 4362shift 4363host_cpu=$1 4364host_vendor=$2 4365shift; shift 4366# Remember, the first character of IFS is used to create $*, 4367# except with old shells: 4368host_os=$* 4369IFS=$ac_save_IFS 4370case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4371 4372 4373enable_win32_dll=yes 4374 4375case $host in 4376*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 4377 if test -n "$ac_tool_prefix"; then 4378 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 4379set dummy ${ac_tool_prefix}as; ac_word=$2 4380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4381$as_echo_n "checking for $ac_word... " >&6; } 4382if ${ac_cv_prog_AS+:} false; then : 4383 $as_echo_n "(cached) " >&6 4384else 4385 if test -n "$AS"; then 4386 ac_cv_prog_AS="$AS" # Let the user override the test. 4387else 4388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4389for as_dir in $PATH 4390do 4391 IFS=$as_save_IFS 4392 test -z "$as_dir" && as_dir=. 4393 for ac_exec_ext in '' $ac_executable_extensions; do 4394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4395 ac_cv_prog_AS="${ac_tool_prefix}as" 4396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4397 break 2 4398 fi 4399done 4400 done 4401IFS=$as_save_IFS 4402 4403fi 4404fi 4405AS=$ac_cv_prog_AS 4406if test -n "$AS"; then 4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 4408$as_echo "$AS" >&6; } 4409else 4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4411$as_echo "no" >&6; } 4412fi 4413 4414 4415fi 4416if test -z "$ac_cv_prog_AS"; then 4417 ac_ct_AS=$AS 4418 # Extract the first word of "as", so it can be a program name with args. 4419set dummy as; ac_word=$2 4420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4421$as_echo_n "checking for $ac_word... " >&6; } 4422if ${ac_cv_prog_ac_ct_AS+:} false; then : 4423 $as_echo_n "(cached) " >&6 4424else 4425 if test -n "$ac_ct_AS"; then 4426 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 4427else 4428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4429for as_dir in $PATH 4430do 4431 IFS=$as_save_IFS 4432 test -z "$as_dir" && as_dir=. 4433 for ac_exec_ext in '' $ac_executable_extensions; do 4434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4435 ac_cv_prog_ac_ct_AS="as" 4436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4437 break 2 4438 fi 4439done 4440 done 4441IFS=$as_save_IFS 4442 4443fi 4444fi 4445ac_ct_AS=$ac_cv_prog_ac_ct_AS 4446if test -n "$ac_ct_AS"; then 4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 4448$as_echo "$ac_ct_AS" >&6; } 4449else 4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4451$as_echo "no" >&6; } 4452fi 4453 4454 if test "x$ac_ct_AS" = x; then 4455 AS="false" 4456 else 4457 case $cross_compiling:$ac_tool_warned in 4458yes:) 4459{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4460$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4461ac_tool_warned=yes ;; 4462esac 4463 AS=$ac_ct_AS 4464 fi 4465else 4466 AS="$ac_cv_prog_AS" 4467fi 4468 4469 if test -n "$ac_tool_prefix"; then 4470 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 4471set dummy ${ac_tool_prefix}dlltool; ac_word=$2 4472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4473$as_echo_n "checking for $ac_word... " >&6; } 4474if ${ac_cv_prog_DLLTOOL+:} false; then : 4475 $as_echo_n "(cached) " >&6 4476else 4477 if test -n "$DLLTOOL"; then 4478 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 4479else 4480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4481for as_dir in $PATH 4482do 4483 IFS=$as_save_IFS 4484 test -z "$as_dir" && as_dir=. 4485 for ac_exec_ext in '' $ac_executable_extensions; do 4486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4487 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 4488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4489 break 2 4490 fi 4491done 4492 done 4493IFS=$as_save_IFS 4494 4495fi 4496fi 4497DLLTOOL=$ac_cv_prog_DLLTOOL 4498if test -n "$DLLTOOL"; then 4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 4500$as_echo "$DLLTOOL" >&6; } 4501else 4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4503$as_echo "no" >&6; } 4504fi 4505 4506 4507fi 4508if test -z "$ac_cv_prog_DLLTOOL"; then 4509 ac_ct_DLLTOOL=$DLLTOOL 4510 # Extract the first word of "dlltool", so it can be a program name with args. 4511set dummy dlltool; ac_word=$2 4512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4513$as_echo_n "checking for $ac_word... " >&6; } 4514if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 4515 $as_echo_n "(cached) " >&6 4516else 4517 if test -n "$ac_ct_DLLTOOL"; then 4518 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 4519else 4520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4521for as_dir in $PATH 4522do 4523 IFS=$as_save_IFS 4524 test -z "$as_dir" && as_dir=. 4525 for ac_exec_ext in '' $ac_executable_extensions; do 4526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4527 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 4528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4529 break 2 4530 fi 4531done 4532 done 4533IFS=$as_save_IFS 4534 4535fi 4536fi 4537ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 4538if test -n "$ac_ct_DLLTOOL"; then 4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 4540$as_echo "$ac_ct_DLLTOOL" >&6; } 4541else 4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4543$as_echo "no" >&6; } 4544fi 4545 4546 if test "x$ac_ct_DLLTOOL" = x; then 4547 DLLTOOL="false" 4548 else 4549 case $cross_compiling:$ac_tool_warned in 4550yes:) 4551{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4552$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4553ac_tool_warned=yes ;; 4554esac 4555 DLLTOOL=$ac_ct_DLLTOOL 4556 fi 4557else 4558 DLLTOOL="$ac_cv_prog_DLLTOOL" 4559fi 4560 4561 if test -n "$ac_tool_prefix"; then 4562 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4563set dummy ${ac_tool_prefix}objdump; ac_word=$2 4564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4565$as_echo_n "checking for $ac_word... " >&6; } 4566if ${ac_cv_prog_OBJDUMP+:} false; then : 4567 $as_echo_n "(cached) " >&6 4568else 4569 if test -n "$OBJDUMP"; then 4570 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4571else 4572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4573for as_dir in $PATH 4574do 4575 IFS=$as_save_IFS 4576 test -z "$as_dir" && as_dir=. 4577 for ac_exec_ext in '' $ac_executable_extensions; do 4578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4579 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4581 break 2 4582 fi 4583done 4584 done 4585IFS=$as_save_IFS 4586 4587fi 4588fi 4589OBJDUMP=$ac_cv_prog_OBJDUMP 4590if test -n "$OBJDUMP"; then 4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4592$as_echo "$OBJDUMP" >&6; } 4593else 4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4595$as_echo "no" >&6; } 4596fi 4597 4598 4599fi 4600if test -z "$ac_cv_prog_OBJDUMP"; then 4601 ac_ct_OBJDUMP=$OBJDUMP 4602 # Extract the first word of "objdump", so it can be a program name with args. 4603set dummy objdump; ac_word=$2 4604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4605$as_echo_n "checking for $ac_word... " >&6; } 4606if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 4607 $as_echo_n "(cached) " >&6 4608else 4609 if test -n "$ac_ct_OBJDUMP"; then 4610 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4611else 4612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4613for as_dir in $PATH 4614do 4615 IFS=$as_save_IFS 4616 test -z "$as_dir" && as_dir=. 4617 for ac_exec_ext in '' $ac_executable_extensions; do 4618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4619 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4621 break 2 4622 fi 4623done 4624 done 4625IFS=$as_save_IFS 4626 4627fi 4628fi 4629ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4630if test -n "$ac_ct_OBJDUMP"; then 4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4632$as_echo "$ac_ct_OBJDUMP" >&6; } 4633else 4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4635$as_echo "no" >&6; } 4636fi 4637 4638 if test "x$ac_ct_OBJDUMP" = x; then 4639 OBJDUMP="false" 4640 else 4641 case $cross_compiling:$ac_tool_warned in 4642yes:) 4643{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4644$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4645ac_tool_warned=yes ;; 4646esac 4647 OBJDUMP=$ac_ct_OBJDUMP 4648 fi 4649else 4650 OBJDUMP="$ac_cv_prog_OBJDUMP" 4651fi 4652 4653 ;; 4654esac 4655 4656test -z "$AS" && AS=as 4657 4658 4659 4660 4661 4662test -z "$DLLTOOL" && DLLTOOL=dlltool 4663 4664 4665 4666 4667 4668test -z "$OBJDUMP" && OBJDUMP=objdump 4669 4670 4671 4672 4673 4674 4675 4676case `pwd` in 4677 *\ * | *\ *) 4678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4679$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4680esac 4681 4682 4683 4684macro_version='2.4.2' 4685macro_revision='1.3337' 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699ltmain="$ac_aux_dir/ltmain.sh" 4700 4701# Backslashify metacharacters that are still active within 4702# double-quoted strings. 4703sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4704 4705# Same as above, but do not quote variable references. 4706double_quote_subst='s/\(["`\\]\)/\\\1/g' 4707 4708# Sed substitution to delay expansion of an escaped shell variable in a 4709# double_quote_subst'ed string. 4710delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4711 4712# Sed substitution to delay expansion of an escaped single quote. 4713delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4714 4715# Sed substitution to avoid accidental globbing in evaled expressions 4716no_glob_subst='s/\*/\\\*/g' 4717 4718ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4719ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4720ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4721 4722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4723$as_echo_n "checking how to print strings... " >&6; } 4724# Test print first, because it will be a builtin if present. 4725if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4726 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4727 ECHO='print -r --' 4728elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4729 ECHO='printf %s\n' 4730else 4731 # Use this function as a fallback that always works. 4732 func_fallback_echo () 4733 { 4734 eval 'cat <<_LTECHO_EOF 4735$1 4736_LTECHO_EOF' 4737 } 4738 ECHO='func_fallback_echo' 4739fi 4740 4741# func_echo_all arg... 4742# Invoke $ECHO with all args, space-separated. 4743func_echo_all () 4744{ 4745 $ECHO "" 4746} 4747 4748case "$ECHO" in 4749 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4750$as_echo "printf" >&6; } ;; 4751 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4752$as_echo "print -r" >&6; } ;; 4753 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4754$as_echo "cat" >&6; } ;; 4755esac 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4771$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4772if ${ac_cv_path_SED+:} false; then : 4773 $as_echo_n "(cached) " >&6 4774else 4775 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4776 for ac_i in 1 2 3 4 5 6 7; do 4777 ac_script="$ac_script$as_nl$ac_script" 4778 done 4779 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4780 { ac_script=; unset ac_script;} 4781 if test -z "$SED"; then 4782 ac_path_SED_found=false 4783 # Loop through the user's path and test for each of PROGNAME-LIST 4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4785for as_dir in $PATH 4786do 4787 IFS=$as_save_IFS 4788 test -z "$as_dir" && as_dir=. 4789 for ac_prog in sed gsed; do 4790 for ac_exec_ext in '' $ac_executable_extensions; do 4791 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4792 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4793# Check for GNU ac_path_SED and select it if it is found. 4794 # Check for GNU $ac_path_SED 4795case `"$ac_path_SED" --version 2>&1` in 4796*GNU*) 4797 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4798*) 4799 ac_count=0 4800 $as_echo_n 0123456789 >"conftest.in" 4801 while : 4802 do 4803 cat "conftest.in" "conftest.in" >"conftest.tmp" 4804 mv "conftest.tmp" "conftest.in" 4805 cp "conftest.in" "conftest.nl" 4806 $as_echo '' >> "conftest.nl" 4807 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4808 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4809 as_fn_arith $ac_count + 1 && ac_count=$as_val 4810 if test $ac_count -gt ${ac_path_SED_max-0}; then 4811 # Best one so far, save it but keep looking for a better one 4812 ac_cv_path_SED="$ac_path_SED" 4813 ac_path_SED_max=$ac_count 4814 fi 4815 # 10*(2^10) chars as input seems more than enough 4816 test $ac_count -gt 10 && break 4817 done 4818 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4819esac 4820 4821 $ac_path_SED_found && break 3 4822 done 4823 done 4824 done 4825IFS=$as_save_IFS 4826 if test -z "$ac_cv_path_SED"; then 4827 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4828 fi 4829else 4830 ac_cv_path_SED=$SED 4831fi 4832 4833fi 4834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4835$as_echo "$ac_cv_path_SED" >&6; } 4836 SED="$ac_cv_path_SED" 4837 rm -f conftest.sed 4838 4839test -z "$SED" && SED=sed 4840Xsed="$SED -e 1s/^X//" 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4853$as_echo_n "checking for fgrep... " >&6; } 4854if ${ac_cv_path_FGREP+:} false; then : 4855 $as_echo_n "(cached) " >&6 4856else 4857 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4858 then ac_cv_path_FGREP="$GREP -F" 4859 else 4860 if test -z "$FGREP"; then 4861 ac_path_FGREP_found=false 4862 # Loop through the user's path and test for each of PROGNAME-LIST 4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4864for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4865do 4866 IFS=$as_save_IFS 4867 test -z "$as_dir" && as_dir=. 4868 for ac_prog in fgrep; do 4869 for ac_exec_ext in '' $ac_executable_extensions; do 4870 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4871 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4872# Check for GNU ac_path_FGREP and select it if it is found. 4873 # Check for GNU $ac_path_FGREP 4874case `"$ac_path_FGREP" --version 2>&1` in 4875*GNU*) 4876 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4877*) 4878 ac_count=0 4879 $as_echo_n 0123456789 >"conftest.in" 4880 while : 4881 do 4882 cat "conftest.in" "conftest.in" >"conftest.tmp" 4883 mv "conftest.tmp" "conftest.in" 4884 cp "conftest.in" "conftest.nl" 4885 $as_echo 'FGREP' >> "conftest.nl" 4886 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4887 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4888 as_fn_arith $ac_count + 1 && ac_count=$as_val 4889 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4890 # Best one so far, save it but keep looking for a better one 4891 ac_cv_path_FGREP="$ac_path_FGREP" 4892 ac_path_FGREP_max=$ac_count 4893 fi 4894 # 10*(2^10) chars as input seems more than enough 4895 test $ac_count -gt 10 && break 4896 done 4897 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4898esac 4899 4900 $ac_path_FGREP_found && break 3 4901 done 4902 done 4903 done 4904IFS=$as_save_IFS 4905 if test -z "$ac_cv_path_FGREP"; then 4906 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4907 fi 4908else 4909 ac_cv_path_FGREP=$FGREP 4910fi 4911 4912 fi 4913fi 4914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4915$as_echo "$ac_cv_path_FGREP" >&6; } 4916 FGREP="$ac_cv_path_FGREP" 4917 4918 4919test -z "$GREP" && GREP=grep 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939# Check whether --with-gnu-ld was given. 4940if test "${with_gnu_ld+set}" = set; then : 4941 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4942else 4943 with_gnu_ld=no 4944fi 4945 4946ac_prog=ld 4947if test "$GCC" = yes; then 4948 # Check if gcc -print-prog-name=ld gives a path. 4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4950$as_echo_n "checking for ld used by $CC... " >&6; } 4951 case $host in 4952 *-*-mingw*) 4953 # gcc leaves a trailing carriage return which upsets mingw 4954 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4955 *) 4956 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4957 esac 4958 case $ac_prog in 4959 # Accept absolute paths. 4960 [\\/]* | ?:[\\/]*) 4961 re_direlt='/[^/][^/]*/\.\./' 4962 # Canonicalize the pathname of ld 4963 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4964 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4965 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4966 done 4967 test -z "$LD" && LD="$ac_prog" 4968 ;; 4969 "") 4970 # If it fails, then pretend we aren't using GCC. 4971 ac_prog=ld 4972 ;; 4973 *) 4974 # If it is relative, then search for the first ld in PATH. 4975 with_gnu_ld=unknown 4976 ;; 4977 esac 4978elif test "$with_gnu_ld" = yes; then 4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4980$as_echo_n "checking for GNU ld... " >&6; } 4981else 4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4983$as_echo_n "checking for non-GNU ld... " >&6; } 4984fi 4985if ${lt_cv_path_LD+:} false; then : 4986 $as_echo_n "(cached) " >&6 4987else 4988 if test -z "$LD"; then 4989 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4990 for ac_dir in $PATH; do 4991 IFS="$lt_save_ifs" 4992 test -z "$ac_dir" && ac_dir=. 4993 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4994 lt_cv_path_LD="$ac_dir/$ac_prog" 4995 # Check to see if the program is GNU ld. I'd rather use --version, 4996 # but apparently some variants of GNU ld only accept -v. 4997 # Break only if it was the GNU/non-GNU ld that we prefer. 4998 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4999 *GNU* | *'with BFD'*) 5000 test "$with_gnu_ld" != no && break 5001 ;; 5002 *) 5003 test "$with_gnu_ld" != yes && break 5004 ;; 5005 esac 5006 fi 5007 done 5008 IFS="$lt_save_ifs" 5009else 5010 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5011fi 5012fi 5013 5014LD="$lt_cv_path_LD" 5015if test -n "$LD"; then 5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5017$as_echo "$LD" >&6; } 5018else 5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5020$as_echo "no" >&6; } 5021fi 5022test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5024$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5025if ${lt_cv_prog_gnu_ld+:} false; then : 5026 $as_echo_n "(cached) " >&6 5027else 5028 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5029case `$LD -v 2>&1 </dev/null` in 5030*GNU* | *'with BFD'*) 5031 lt_cv_prog_gnu_ld=yes 5032 ;; 5033*) 5034 lt_cv_prog_gnu_ld=no 5035 ;; 5036esac 5037fi 5038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5039$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5040with_gnu_ld=$lt_cv_prog_gnu_ld 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5051$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5052if ${lt_cv_path_NM+:} false; then : 5053 $as_echo_n "(cached) " >&6 5054else 5055 if test -n "$NM"; then 5056 # Let the user override the test. 5057 lt_cv_path_NM="$NM" 5058else 5059 lt_nm_to_check="${ac_tool_prefix}nm" 5060 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5061 lt_nm_to_check="$lt_nm_to_check nm" 5062 fi 5063 for lt_tmp_nm in $lt_nm_to_check; do 5064 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5065 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5066 IFS="$lt_save_ifs" 5067 test -z "$ac_dir" && ac_dir=. 5068 tmp_nm="$ac_dir/$lt_tmp_nm" 5069 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5070 # Check to see if the nm accepts a BSD-compat flag. 5071 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5072 # nm: unknown option "B" ignored 5073 # Tru64's nm complains that /dev/null is an invalid object file 5074 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5075 */dev/null* | *'Invalid file or object type'*) 5076 lt_cv_path_NM="$tmp_nm -B" 5077 break 5078 ;; 5079 *) 5080 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5081 */dev/null*) 5082 lt_cv_path_NM="$tmp_nm -p" 5083 break 5084 ;; 5085 *) 5086 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5087 continue # so that we can try to find one that supports BSD flags 5088 ;; 5089 esac 5090 ;; 5091 esac 5092 fi 5093 done 5094 IFS="$lt_save_ifs" 5095 done 5096 : ${lt_cv_path_NM=no} 5097fi 5098fi 5099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5100$as_echo "$lt_cv_path_NM" >&6; } 5101if test "$lt_cv_path_NM" != "no"; then 5102 NM="$lt_cv_path_NM" 5103else 5104 # Didn't find any BSD compatible name lister, look for dumpbin. 5105 if test -n "$DUMPBIN"; then : 5106 # Let the user override the test. 5107 else 5108 if test -n "$ac_tool_prefix"; then 5109 for ac_prog in dumpbin "link -dump" 5110 do 5111 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5112set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5114$as_echo_n "checking for $ac_word... " >&6; } 5115if ${ac_cv_prog_DUMPBIN+:} false; then : 5116 $as_echo_n "(cached) " >&6 5117else 5118 if test -n "$DUMPBIN"; then 5119 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5120else 5121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5122for as_dir in $PATH 5123do 5124 IFS=$as_save_IFS 5125 test -z "$as_dir" && as_dir=. 5126 for ac_exec_ext in '' $ac_executable_extensions; do 5127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5128 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5130 break 2 5131 fi 5132done 5133 done 5134IFS=$as_save_IFS 5135 5136fi 5137fi 5138DUMPBIN=$ac_cv_prog_DUMPBIN 5139if test -n "$DUMPBIN"; then 5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5141$as_echo "$DUMPBIN" >&6; } 5142else 5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5144$as_echo "no" >&6; } 5145fi 5146 5147 5148 test -n "$DUMPBIN" && break 5149 done 5150fi 5151if test -z "$DUMPBIN"; then 5152 ac_ct_DUMPBIN=$DUMPBIN 5153 for ac_prog in dumpbin "link -dump" 5154do 5155 # Extract the first word of "$ac_prog", so it can be a program name with args. 5156set dummy $ac_prog; ac_word=$2 5157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5158$as_echo_n "checking for $ac_word... " >&6; } 5159if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5160 $as_echo_n "(cached) " >&6 5161else 5162 if test -n "$ac_ct_DUMPBIN"; then 5163 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5164else 5165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5166for as_dir in $PATH 5167do 5168 IFS=$as_save_IFS 5169 test -z "$as_dir" && as_dir=. 5170 for ac_exec_ext in '' $ac_executable_extensions; do 5171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5172 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5174 break 2 5175 fi 5176done 5177 done 5178IFS=$as_save_IFS 5179 5180fi 5181fi 5182ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5183if test -n "$ac_ct_DUMPBIN"; then 5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5185$as_echo "$ac_ct_DUMPBIN" >&6; } 5186else 5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5188$as_echo "no" >&6; } 5189fi 5190 5191 5192 test -n "$ac_ct_DUMPBIN" && break 5193done 5194 5195 if test "x$ac_ct_DUMPBIN" = x; then 5196 DUMPBIN=":" 5197 else 5198 case $cross_compiling:$ac_tool_warned in 5199yes:) 5200{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5201$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5202ac_tool_warned=yes ;; 5203esac 5204 DUMPBIN=$ac_ct_DUMPBIN 5205 fi 5206fi 5207 5208 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5209 *COFF*) 5210 DUMPBIN="$DUMPBIN -symbols" 5211 ;; 5212 *) 5213 DUMPBIN=: 5214 ;; 5215 esac 5216 fi 5217 5218 if test "$DUMPBIN" != ":"; then 5219 NM="$DUMPBIN" 5220 fi 5221fi 5222test -z "$NM" && NM=nm 5223 5224 5225 5226 5227 5228 5229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5230$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5231if ${lt_cv_nm_interface+:} false; then : 5232 $as_echo_n "(cached) " >&6 5233else 5234 lt_cv_nm_interface="BSD nm" 5235 echo "int some_variable = 0;" > conftest.$ac_ext 5236 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5237 (eval "$ac_compile" 2>conftest.err) 5238 cat conftest.err >&5 5239 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5240 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5241 cat conftest.err >&5 5242 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5243 cat conftest.out >&5 5244 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5245 lt_cv_nm_interface="MS dumpbin" 5246 fi 5247 rm -f conftest* 5248fi 5249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5250$as_echo "$lt_cv_nm_interface" >&6; } 5251 5252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5253$as_echo_n "checking whether ln -s works... " >&6; } 5254LN_S=$as_ln_s 5255if test "$LN_S" = "ln -s"; then 5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5257$as_echo "yes" >&6; } 5258else 5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5260$as_echo "no, using $LN_S" >&6; } 5261fi 5262 5263# find the maximum length of command line arguments 5264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5265$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5266if ${lt_cv_sys_max_cmd_len+:} false; then : 5267 $as_echo_n "(cached) " >&6 5268else 5269 i=0 5270 teststring="ABCD" 5271 5272 case $build_os in 5273 msdosdjgpp*) 5274 # On DJGPP, this test can blow up pretty badly due to problems in libc 5275 # (any single argument exceeding 2000 bytes causes a buffer overrun 5276 # during glob expansion). Even if it were fixed, the result of this 5277 # check would be larger than it should be. 5278 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5279 ;; 5280 5281 gnu*) 5282 # Under GNU Hurd, this test is not required because there is 5283 # no limit to the length of command line arguments. 5284 # Libtool will interpret -1 as no limit whatsoever 5285 lt_cv_sys_max_cmd_len=-1; 5286 ;; 5287 5288 cygwin* | mingw* | cegcc*) 5289 # On Win9x/ME, this test blows up -- it succeeds, but takes 5290 # about 5 minutes as the teststring grows exponentially. 5291 # Worse, since 9x/ME are not pre-emptively multitasking, 5292 # you end up with a "frozen" computer, even though with patience 5293 # the test eventually succeeds (with a max line length of 256k). 5294 # Instead, let's just punt: use the minimum linelength reported by 5295 # all of the supported platforms: 8192 (on NT/2K/XP). 5296 lt_cv_sys_max_cmd_len=8192; 5297 ;; 5298 5299 mint*) 5300 # On MiNT this can take a long time and run out of memory. 5301 lt_cv_sys_max_cmd_len=8192; 5302 ;; 5303 5304 amigaos*) 5305 # On AmigaOS with pdksh, this test takes hours, literally. 5306 # So we just punt and use a minimum line length of 8192. 5307 lt_cv_sys_max_cmd_len=8192; 5308 ;; 5309 5310 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5311 # This has been around since 386BSD, at least. Likely further. 5312 if test -x /sbin/sysctl; then 5313 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5314 elif test -x /usr/sbin/sysctl; then 5315 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5316 else 5317 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5318 fi 5319 # And add a safety zone 5320 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5321 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5322 ;; 5323 5324 interix*) 5325 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5326 lt_cv_sys_max_cmd_len=196608 5327 ;; 5328 5329 os2*) 5330 # The test takes a long time on OS/2. 5331 lt_cv_sys_max_cmd_len=8192 5332 ;; 5333 5334 osf*) 5335 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5336 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5337 # nice to cause kernel panics so lets avoid the loop below. 5338 # First set a reasonable default. 5339 lt_cv_sys_max_cmd_len=16384 5340 # 5341 if test -x /sbin/sysconfig; then 5342 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5343 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5344 esac 5345 fi 5346 ;; 5347 sco3.2v5*) 5348 lt_cv_sys_max_cmd_len=102400 5349 ;; 5350 sysv5* | sco5v6* | sysv4.2uw2*) 5351 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5352 if test -n "$kargmax"; then 5353 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5354 else 5355 lt_cv_sys_max_cmd_len=32768 5356 fi 5357 ;; 5358 *) 5359 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5360 if test -n "$lt_cv_sys_max_cmd_len"; then 5361 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5362 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5363 else 5364 # Make teststring a little bigger before we do anything with it. 5365 # a 1K string should be a reasonable start. 5366 for i in 1 2 3 4 5 6 7 8 ; do 5367 teststring=$teststring$teststring 5368 done 5369 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5370 # If test is not a shell built-in, we'll probably end up computing a 5371 # maximum length that is only half of the actual maximum length, but 5372 # we can't tell. 5373 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 5374 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5375 test $i != 17 # 1/2 MB should be enough 5376 do 5377 i=`expr $i + 1` 5378 teststring=$teststring$teststring 5379 done 5380 # Only check the string length outside the loop. 5381 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5382 teststring= 5383 # Add a significant safety factor because C++ compilers can tack on 5384 # massive amounts of additional arguments before passing them to the 5385 # linker. It appears as though 1/2 is a usable value. 5386 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5387 fi 5388 ;; 5389 esac 5390 5391fi 5392 5393if test -n $lt_cv_sys_max_cmd_len ; then 5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5395$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5396else 5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5398$as_echo "none" >&6; } 5399fi 5400max_cmd_len=$lt_cv_sys_max_cmd_len 5401 5402 5403 5404 5405 5406 5407: ${CP="cp -f"} 5408: ${MV="mv -f"} 5409: ${RM="rm -f"} 5410 5411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5412$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5413# Try some XSI features 5414xsi_shell=no 5415( _lt_dummy="a/b/c" 5416 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5417 = c,a/b,b/c, \ 5418 && eval 'test $(( 1 + 1 )) -eq 2 \ 5419 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5420 && xsi_shell=yes 5421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5422$as_echo "$xsi_shell" >&6; } 5423 5424 5425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5426$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5427lt_shell_append=no 5428( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5429 >/dev/null 2>&1 \ 5430 && lt_shell_append=yes 5431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5432$as_echo "$lt_shell_append" >&6; } 5433 5434 5435if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5436 lt_unset=unset 5437else 5438 lt_unset=false 5439fi 5440 5441 5442 5443 5444 5445# test EBCDIC or ASCII 5446case `echo X|tr X '\101'` in 5447 A) # ASCII based system 5448 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5449 lt_SP2NL='tr \040 \012' 5450 lt_NL2SP='tr \015\012 \040\040' 5451 ;; 5452 *) # EBCDIC based system 5453 lt_SP2NL='tr \100 \n' 5454 lt_NL2SP='tr \r\n \100\100' 5455 ;; 5456esac 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5467$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5468if ${lt_cv_to_host_file_cmd+:} false; then : 5469 $as_echo_n "(cached) " >&6 5470else 5471 case $host in 5472 *-*-mingw* ) 5473 case $build in 5474 *-*-mingw* ) # actually msys 5475 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5476 ;; 5477 *-*-cygwin* ) 5478 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5479 ;; 5480 * ) # otherwise, assume *nix 5481 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5482 ;; 5483 esac 5484 ;; 5485 *-*-cygwin* ) 5486 case $build in 5487 *-*-mingw* ) # actually msys 5488 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5489 ;; 5490 *-*-cygwin* ) 5491 lt_cv_to_host_file_cmd=func_convert_file_noop 5492 ;; 5493 * ) # otherwise, assume *nix 5494 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5495 ;; 5496 esac 5497 ;; 5498 * ) # unhandled hosts (and "normal" native builds) 5499 lt_cv_to_host_file_cmd=func_convert_file_noop 5500 ;; 5501esac 5502 5503fi 5504 5505to_host_file_cmd=$lt_cv_to_host_file_cmd 5506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5507$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5508 5509 5510 5511 5512 5513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5514$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5515if ${lt_cv_to_tool_file_cmd+:} false; then : 5516 $as_echo_n "(cached) " >&6 5517else 5518 #assume ordinary cross tools, or native build. 5519lt_cv_to_tool_file_cmd=func_convert_file_noop 5520case $host in 5521 *-*-mingw* ) 5522 case $build in 5523 *-*-mingw* ) # actually msys 5524 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5525 ;; 5526 esac 5527 ;; 5528esac 5529 5530fi 5531 5532to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5534$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5535 5536 5537 5538 5539 5540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5541$as_echo_n "checking for $LD option to reload object files... " >&6; } 5542if ${lt_cv_ld_reload_flag+:} false; then : 5543 $as_echo_n "(cached) " >&6 5544else 5545 lt_cv_ld_reload_flag='-r' 5546fi 5547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5548$as_echo "$lt_cv_ld_reload_flag" >&6; } 5549reload_flag=$lt_cv_ld_reload_flag 5550case $reload_flag in 5551"" | " "*) ;; 5552*) reload_flag=" $reload_flag" ;; 5553esac 5554reload_cmds='$LD$reload_flag -o $output$reload_objs' 5555case $host_os in 5556 cygwin* | mingw* | pw32* | cegcc*) 5557 if test "$GCC" != yes; then 5558 reload_cmds=false 5559 fi 5560 ;; 5561 darwin*) 5562 if test "$GCC" = yes; then 5563 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5564 else 5565 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5566 fi 5567 ;; 5568esac 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578if test -n "$ac_tool_prefix"; then 5579 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5580set dummy ${ac_tool_prefix}objdump; ac_word=$2 5581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5582$as_echo_n "checking for $ac_word... " >&6; } 5583if ${ac_cv_prog_OBJDUMP+:} false; then : 5584 $as_echo_n "(cached) " >&6 5585else 5586 if test -n "$OBJDUMP"; then 5587 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5588else 5589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5590for as_dir in $PATH 5591do 5592 IFS=$as_save_IFS 5593 test -z "$as_dir" && as_dir=. 5594 for ac_exec_ext in '' $ac_executable_extensions; do 5595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5596 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5598 break 2 5599 fi 5600done 5601 done 5602IFS=$as_save_IFS 5603 5604fi 5605fi 5606OBJDUMP=$ac_cv_prog_OBJDUMP 5607if test -n "$OBJDUMP"; then 5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5609$as_echo "$OBJDUMP" >&6; } 5610else 5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5612$as_echo "no" >&6; } 5613fi 5614 5615 5616fi 5617if test -z "$ac_cv_prog_OBJDUMP"; then 5618 ac_ct_OBJDUMP=$OBJDUMP 5619 # Extract the first word of "objdump", so it can be a program name with args. 5620set dummy objdump; ac_word=$2 5621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5622$as_echo_n "checking for $ac_word... " >&6; } 5623if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5624 $as_echo_n "(cached) " >&6 5625else 5626 if test -n "$ac_ct_OBJDUMP"; then 5627 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5628else 5629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5630for as_dir in $PATH 5631do 5632 IFS=$as_save_IFS 5633 test -z "$as_dir" && as_dir=. 5634 for ac_exec_ext in '' $ac_executable_extensions; do 5635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5636 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5638 break 2 5639 fi 5640done 5641 done 5642IFS=$as_save_IFS 5643 5644fi 5645fi 5646ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5647if test -n "$ac_ct_OBJDUMP"; then 5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5649$as_echo "$ac_ct_OBJDUMP" >&6; } 5650else 5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5652$as_echo "no" >&6; } 5653fi 5654 5655 if test "x$ac_ct_OBJDUMP" = x; then 5656 OBJDUMP="false" 5657 else 5658 case $cross_compiling:$ac_tool_warned in 5659yes:) 5660{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5661$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5662ac_tool_warned=yes ;; 5663esac 5664 OBJDUMP=$ac_ct_OBJDUMP 5665 fi 5666else 5667 OBJDUMP="$ac_cv_prog_OBJDUMP" 5668fi 5669 5670test -z "$OBJDUMP" && OBJDUMP=objdump 5671 5672 5673 5674 5675 5676 5677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5678$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5679if ${lt_cv_deplibs_check_method+:} false; then : 5680 $as_echo_n "(cached) " >&6 5681else 5682 lt_cv_file_magic_cmd='$MAGIC_CMD' 5683lt_cv_file_magic_test_file= 5684lt_cv_deplibs_check_method='unknown' 5685# Need to set the preceding variable on all platforms that support 5686# interlibrary dependencies. 5687# 'none' -- dependencies not supported. 5688# `unknown' -- same as none, but documents that we really don't know. 5689# 'pass_all' -- all dependencies passed with no checks. 5690# 'test_compile' -- check by making test program. 5691# 'file_magic [[regex]]' -- check by looking for files in library path 5692# which responds to the $file_magic_cmd with a given extended regex. 5693# If you have `file' or equivalent on your system and you're not sure 5694# whether `pass_all' will *always* work, you probably want this one. 5695 5696case $host_os in 5697aix[4-9]*) 5698 lt_cv_deplibs_check_method=pass_all 5699 ;; 5700 5701beos*) 5702 lt_cv_deplibs_check_method=pass_all 5703 ;; 5704 5705bsdi[45]*) 5706 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5707 lt_cv_file_magic_cmd='/usr/bin/file -L' 5708 lt_cv_file_magic_test_file=/shlib/libc.so 5709 ;; 5710 5711cygwin*) 5712 # func_win32_libid is a shell function defined in ltmain.sh 5713 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5714 lt_cv_file_magic_cmd='func_win32_libid' 5715 ;; 5716 5717mingw* | pw32*) 5718 # Base MSYS/MinGW do not provide the 'file' command needed by 5719 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5720 # unless we find 'file', for example because we are cross-compiling. 5721 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5722 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5723 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5724 lt_cv_file_magic_cmd='func_win32_libid' 5725 else 5726 # Keep this pattern in sync with the one in func_win32_libid. 5727 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5728 lt_cv_file_magic_cmd='$OBJDUMP -f' 5729 fi 5730 ;; 5731 5732cegcc*) 5733 # use the weaker test based on 'objdump'. See mingw*. 5734 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5735 lt_cv_file_magic_cmd='$OBJDUMP -f' 5736 ;; 5737 5738darwin* | rhapsody*) 5739 lt_cv_deplibs_check_method=pass_all 5740 ;; 5741 5742freebsd* | dragonfly*) 5743 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5744 case $host_cpu in 5745 i*86 ) 5746 # Not sure whether the presence of OpenBSD here was a mistake. 5747 # Let's accept both of them until this is cleared up. 5748 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5749 lt_cv_file_magic_cmd=/usr/bin/file 5750 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5751 ;; 5752 esac 5753 else 5754 lt_cv_deplibs_check_method=pass_all 5755 fi 5756 ;; 5757 5758gnu*) 5759 lt_cv_deplibs_check_method=pass_all 5760 ;; 5761 5762haiku*) 5763 lt_cv_deplibs_check_method=pass_all 5764 ;; 5765 5766hpux10.20* | hpux11*) 5767 lt_cv_file_magic_cmd=/usr/bin/file 5768 case $host_cpu in 5769 ia64*) 5770 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5771 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5772 ;; 5773 hppa*64*) 5774 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 5775 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5776 ;; 5777 *) 5778 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5779 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5780 ;; 5781 esac 5782 ;; 5783 5784interix[3-9]*) 5785 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5786 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5787 ;; 5788 5789irix5* | irix6* | nonstopux*) 5790 case $LD in 5791 *-32|*"-32 ") libmagic=32-bit;; 5792 *-n32|*"-n32 ") libmagic=N32;; 5793 *-64|*"-64 ") libmagic=64-bit;; 5794 *) libmagic=never-match;; 5795 esac 5796 lt_cv_deplibs_check_method=pass_all 5797 ;; 5798 5799# This must be glibc/ELF. 5800linux* | k*bsd*-gnu | kopensolaris*-gnu) 5801 lt_cv_deplibs_check_method=pass_all 5802 ;; 5803 5804netbsd*) 5805 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5806 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5807 else 5808 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5809 fi 5810 ;; 5811 5812newos6*) 5813 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5814 lt_cv_file_magic_cmd=/usr/bin/file 5815 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5816 ;; 5817 5818*nto* | *qnx*) 5819 lt_cv_deplibs_check_method=pass_all 5820 ;; 5821 5822openbsd*) 5823 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5824 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5825 else 5826 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5827 fi 5828 ;; 5829 5830osf3* | osf4* | osf5*) 5831 lt_cv_deplibs_check_method=pass_all 5832 ;; 5833 5834rdos*) 5835 lt_cv_deplibs_check_method=pass_all 5836 ;; 5837 5838solaris*) 5839 lt_cv_deplibs_check_method=pass_all 5840 ;; 5841 5842sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5843 lt_cv_deplibs_check_method=pass_all 5844 ;; 5845 5846sysv4 | sysv4.3*) 5847 case $host_vendor in 5848 motorola) 5849 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' 5850 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5851 ;; 5852 ncr) 5853 lt_cv_deplibs_check_method=pass_all 5854 ;; 5855 sequent) 5856 lt_cv_file_magic_cmd='/bin/file' 5857 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5858 ;; 5859 sni) 5860 lt_cv_file_magic_cmd='/bin/file' 5861 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5862 lt_cv_file_magic_test_file=/lib/libc.so 5863 ;; 5864 siemens) 5865 lt_cv_deplibs_check_method=pass_all 5866 ;; 5867 pc) 5868 lt_cv_deplibs_check_method=pass_all 5869 ;; 5870 esac 5871 ;; 5872 5873tpf*) 5874 lt_cv_deplibs_check_method=pass_all 5875 ;; 5876esac 5877 5878fi 5879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5880$as_echo "$lt_cv_deplibs_check_method" >&6; } 5881 5882file_magic_glob= 5883want_nocaseglob=no 5884if test "$build" = "$host"; then 5885 case $host_os in 5886 mingw* | pw32*) 5887 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5888 want_nocaseglob=yes 5889 else 5890 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5891 fi 5892 ;; 5893 esac 5894fi 5895 5896file_magic_cmd=$lt_cv_file_magic_cmd 5897deplibs_check_method=$lt_cv_deplibs_check_method 5898test -z "$deplibs_check_method" && deplibs_check_method=unknown 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921if test -n "$ac_tool_prefix"; then 5922 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5923set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5925$as_echo_n "checking for $ac_word... " >&6; } 5926if ${ac_cv_prog_DLLTOOL+:} false; then : 5927 $as_echo_n "(cached) " >&6 5928else 5929 if test -n "$DLLTOOL"; then 5930 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5931else 5932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5933for as_dir in $PATH 5934do 5935 IFS=$as_save_IFS 5936 test -z "$as_dir" && as_dir=. 5937 for ac_exec_ext in '' $ac_executable_extensions; do 5938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5939 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5941 break 2 5942 fi 5943done 5944 done 5945IFS=$as_save_IFS 5946 5947fi 5948fi 5949DLLTOOL=$ac_cv_prog_DLLTOOL 5950if test -n "$DLLTOOL"; then 5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5952$as_echo "$DLLTOOL" >&6; } 5953else 5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5955$as_echo "no" >&6; } 5956fi 5957 5958 5959fi 5960if test -z "$ac_cv_prog_DLLTOOL"; then 5961 ac_ct_DLLTOOL=$DLLTOOL 5962 # Extract the first word of "dlltool", so it can be a program name with args. 5963set dummy dlltool; ac_word=$2 5964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5965$as_echo_n "checking for $ac_word... " >&6; } 5966if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5967 $as_echo_n "(cached) " >&6 5968else 5969 if test -n "$ac_ct_DLLTOOL"; then 5970 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5971else 5972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5973for as_dir in $PATH 5974do 5975 IFS=$as_save_IFS 5976 test -z "$as_dir" && as_dir=. 5977 for ac_exec_ext in '' $ac_executable_extensions; do 5978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5979 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5981 break 2 5982 fi 5983done 5984 done 5985IFS=$as_save_IFS 5986 5987fi 5988fi 5989ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5990if test -n "$ac_ct_DLLTOOL"; then 5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5992$as_echo "$ac_ct_DLLTOOL" >&6; } 5993else 5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5995$as_echo "no" >&6; } 5996fi 5997 5998 if test "x$ac_ct_DLLTOOL" = x; then 5999 DLLTOOL="false" 6000 else 6001 case $cross_compiling:$ac_tool_warned in 6002yes:) 6003{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6004$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6005ac_tool_warned=yes ;; 6006esac 6007 DLLTOOL=$ac_ct_DLLTOOL 6008 fi 6009else 6010 DLLTOOL="$ac_cv_prog_DLLTOOL" 6011fi 6012 6013test -z "$DLLTOOL" && DLLTOOL=dlltool 6014 6015 6016 6017 6018 6019 6020 6021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6022$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6023if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6024 $as_echo_n "(cached) " >&6 6025else 6026 lt_cv_sharedlib_from_linklib_cmd='unknown' 6027 6028case $host_os in 6029cygwin* | mingw* | pw32* | cegcc*) 6030 # two different shell functions defined in ltmain.sh 6031 # decide which to use based on capabilities of $DLLTOOL 6032 case `$DLLTOOL --help 2>&1` in 6033 *--identify-strict*) 6034 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6035 ;; 6036 *) 6037 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6038 ;; 6039 esac 6040 ;; 6041*) 6042 # fallback: assume linklib IS sharedlib 6043 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 6044 ;; 6045esac 6046 6047fi 6048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6049$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6050sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6051test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6052 6053 6054 6055 6056 6057 6058 6059if test -n "$ac_tool_prefix"; then 6060 for ac_prog in ar 6061 do 6062 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6063set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6065$as_echo_n "checking for $ac_word... " >&6; } 6066if ${ac_cv_prog_AR+:} false; then : 6067 $as_echo_n "(cached) " >&6 6068else 6069 if test -n "$AR"; then 6070 ac_cv_prog_AR="$AR" # Let the user override the test. 6071else 6072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6073for as_dir in $PATH 6074do 6075 IFS=$as_save_IFS 6076 test -z "$as_dir" && as_dir=. 6077 for ac_exec_ext in '' $ac_executable_extensions; do 6078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6079 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6081 break 2 6082 fi 6083done 6084 done 6085IFS=$as_save_IFS 6086 6087fi 6088fi 6089AR=$ac_cv_prog_AR 6090if test -n "$AR"; then 6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6092$as_echo "$AR" >&6; } 6093else 6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6095$as_echo "no" >&6; } 6096fi 6097 6098 6099 test -n "$AR" && break 6100 done 6101fi 6102if test -z "$AR"; then 6103 ac_ct_AR=$AR 6104 for ac_prog in ar 6105do 6106 # Extract the first word of "$ac_prog", so it can be a program name with args. 6107set dummy $ac_prog; ac_word=$2 6108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6109$as_echo_n "checking for $ac_word... " >&6; } 6110if ${ac_cv_prog_ac_ct_AR+:} false; then : 6111 $as_echo_n "(cached) " >&6 6112else 6113 if test -n "$ac_ct_AR"; then 6114 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6115else 6116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6117for as_dir in $PATH 6118do 6119 IFS=$as_save_IFS 6120 test -z "$as_dir" && as_dir=. 6121 for ac_exec_ext in '' $ac_executable_extensions; do 6122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6123 ac_cv_prog_ac_ct_AR="$ac_prog" 6124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6125 break 2 6126 fi 6127done 6128 done 6129IFS=$as_save_IFS 6130 6131fi 6132fi 6133ac_ct_AR=$ac_cv_prog_ac_ct_AR 6134if test -n "$ac_ct_AR"; then 6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6136$as_echo "$ac_ct_AR" >&6; } 6137else 6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6139$as_echo "no" >&6; } 6140fi 6141 6142 6143 test -n "$ac_ct_AR" && break 6144done 6145 6146 if test "x$ac_ct_AR" = x; then 6147 AR="false" 6148 else 6149 case $cross_compiling:$ac_tool_warned in 6150yes:) 6151{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6152$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6153ac_tool_warned=yes ;; 6154esac 6155 AR=$ac_ct_AR 6156 fi 6157fi 6158 6159: ${AR=ar} 6160: ${AR_FLAGS=cru} 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6173$as_echo_n "checking for archiver @FILE support... " >&6; } 6174if ${lt_cv_ar_at_file+:} false; then : 6175 $as_echo_n "(cached) " >&6 6176else 6177 lt_cv_ar_at_file=no 6178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6179/* end confdefs.h. */ 6180 6181int 6182main () 6183{ 6184 6185 ; 6186 return 0; 6187} 6188_ACEOF 6189if ac_fn_c_try_compile "$LINENO"; then : 6190 echo conftest.$ac_objext > conftest.lst 6191 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6192 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6193 (eval $lt_ar_try) 2>&5 6194 ac_status=$? 6195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6196 test $ac_status = 0; } 6197 if test "$ac_status" -eq 0; then 6198 # Ensure the archiver fails upon bogus file names. 6199 rm -f conftest.$ac_objext libconftest.a 6200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6201 (eval $lt_ar_try) 2>&5 6202 ac_status=$? 6203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6204 test $ac_status = 0; } 6205 if test "$ac_status" -ne 0; then 6206 lt_cv_ar_at_file=@ 6207 fi 6208 fi 6209 rm -f conftest.* libconftest.a 6210 6211fi 6212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6213 6214fi 6215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6216$as_echo "$lt_cv_ar_at_file" >&6; } 6217 6218if test "x$lt_cv_ar_at_file" = xno; then 6219 archiver_list_spec= 6220else 6221 archiver_list_spec=$lt_cv_ar_at_file 6222fi 6223 6224 6225 6226 6227 6228 6229 6230if test -n "$ac_tool_prefix"; then 6231 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6232set dummy ${ac_tool_prefix}strip; ac_word=$2 6233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6234$as_echo_n "checking for $ac_word... " >&6; } 6235if ${ac_cv_prog_STRIP+:} false; then : 6236 $as_echo_n "(cached) " >&6 6237else 6238 if test -n "$STRIP"; then 6239 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6240else 6241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6242for as_dir in $PATH 6243do 6244 IFS=$as_save_IFS 6245 test -z "$as_dir" && as_dir=. 6246 for ac_exec_ext in '' $ac_executable_extensions; do 6247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6248 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6250 break 2 6251 fi 6252done 6253 done 6254IFS=$as_save_IFS 6255 6256fi 6257fi 6258STRIP=$ac_cv_prog_STRIP 6259if test -n "$STRIP"; then 6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6261$as_echo "$STRIP" >&6; } 6262else 6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6264$as_echo "no" >&6; } 6265fi 6266 6267 6268fi 6269if test -z "$ac_cv_prog_STRIP"; then 6270 ac_ct_STRIP=$STRIP 6271 # Extract the first word of "strip", so it can be a program name with args. 6272set dummy strip; ac_word=$2 6273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6274$as_echo_n "checking for $ac_word... " >&6; } 6275if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6276 $as_echo_n "(cached) " >&6 6277else 6278 if test -n "$ac_ct_STRIP"; then 6279 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6280else 6281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6282for as_dir in $PATH 6283do 6284 IFS=$as_save_IFS 6285 test -z "$as_dir" && as_dir=. 6286 for ac_exec_ext in '' $ac_executable_extensions; do 6287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6288 ac_cv_prog_ac_ct_STRIP="strip" 6289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6290 break 2 6291 fi 6292done 6293 done 6294IFS=$as_save_IFS 6295 6296fi 6297fi 6298ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6299if test -n "$ac_ct_STRIP"; then 6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6301$as_echo "$ac_ct_STRIP" >&6; } 6302else 6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6304$as_echo "no" >&6; } 6305fi 6306 6307 if test "x$ac_ct_STRIP" = x; then 6308 STRIP=":" 6309 else 6310 case $cross_compiling:$ac_tool_warned in 6311yes:) 6312{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6313$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6314ac_tool_warned=yes ;; 6315esac 6316 STRIP=$ac_ct_STRIP 6317 fi 6318else 6319 STRIP="$ac_cv_prog_STRIP" 6320fi 6321 6322test -z "$STRIP" && STRIP=: 6323 6324 6325 6326 6327 6328 6329if test -n "$ac_tool_prefix"; then 6330 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6331set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6333$as_echo_n "checking for $ac_word... " >&6; } 6334if ${ac_cv_prog_RANLIB+:} false; then : 6335 $as_echo_n "(cached) " >&6 6336else 6337 if test -n "$RANLIB"; then 6338 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6339else 6340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6341for as_dir in $PATH 6342do 6343 IFS=$as_save_IFS 6344 test -z "$as_dir" && as_dir=. 6345 for ac_exec_ext in '' $ac_executable_extensions; do 6346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6347 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6349 break 2 6350 fi 6351done 6352 done 6353IFS=$as_save_IFS 6354 6355fi 6356fi 6357RANLIB=$ac_cv_prog_RANLIB 6358if test -n "$RANLIB"; then 6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6360$as_echo "$RANLIB" >&6; } 6361else 6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6363$as_echo "no" >&6; } 6364fi 6365 6366 6367fi 6368if test -z "$ac_cv_prog_RANLIB"; then 6369 ac_ct_RANLIB=$RANLIB 6370 # Extract the first word of "ranlib", so it can be a program name with args. 6371set dummy ranlib; ac_word=$2 6372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6373$as_echo_n "checking for $ac_word... " >&6; } 6374if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6375 $as_echo_n "(cached) " >&6 6376else 6377 if test -n "$ac_ct_RANLIB"; then 6378 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6379else 6380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6381for as_dir in $PATH 6382do 6383 IFS=$as_save_IFS 6384 test -z "$as_dir" && as_dir=. 6385 for ac_exec_ext in '' $ac_executable_extensions; do 6386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6387 ac_cv_prog_ac_ct_RANLIB="ranlib" 6388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6389 break 2 6390 fi 6391done 6392 done 6393IFS=$as_save_IFS 6394 6395fi 6396fi 6397ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6398if test -n "$ac_ct_RANLIB"; then 6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6400$as_echo "$ac_ct_RANLIB" >&6; } 6401else 6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6403$as_echo "no" >&6; } 6404fi 6405 6406 if test "x$ac_ct_RANLIB" = x; then 6407 RANLIB=":" 6408 else 6409 case $cross_compiling:$ac_tool_warned in 6410yes:) 6411{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6412$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6413ac_tool_warned=yes ;; 6414esac 6415 RANLIB=$ac_ct_RANLIB 6416 fi 6417else 6418 RANLIB="$ac_cv_prog_RANLIB" 6419fi 6420 6421test -z "$RANLIB" && RANLIB=: 6422 6423 6424 6425 6426 6427 6428# Determine commands to create old-style static archives. 6429old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6430old_postinstall_cmds='chmod 644 $oldlib' 6431old_postuninstall_cmds= 6432 6433if test -n "$RANLIB"; then 6434 case $host_os in 6435 openbsd*) 6436 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6437 ;; 6438 *) 6439 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6440 ;; 6441 esac 6442 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6443fi 6444 6445case $host_os in 6446 darwin*) 6447 lock_old_archive_extraction=yes ;; 6448 *) 6449 lock_old_archive_extraction=no ;; 6450esac 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490# If no C compiler was specified, use CC. 6491LTCC=${LTCC-"$CC"} 6492 6493# If no C compiler flags were specified, use CFLAGS. 6494LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6495 6496# Allow CC to be a program name with arguments. 6497compiler=$CC 6498 6499 6500# Check for command to grab the raw symbol name followed by C symbol from nm. 6501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6502$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6503if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6504 $as_echo_n "(cached) " >&6 6505else 6506 6507# These are sane defaults that work on at least a few old systems. 6508# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6509 6510# Character class describing NM global symbol codes. 6511symcode='[BCDEGRST]' 6512 6513# Regexp to match symbols that can be accessed directly from C. 6514sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6515 6516# Define system-specific variables. 6517case $host_os in 6518aix*) 6519 symcode='[BCDT]' 6520 ;; 6521cygwin* | mingw* | pw32* | cegcc*) 6522 symcode='[ABCDGISTW]' 6523 ;; 6524hpux*) 6525 if test "$host_cpu" = ia64; then 6526 symcode='[ABCDEGRST]' 6527 fi 6528 ;; 6529irix* | nonstopux*) 6530 symcode='[BCDEGRST]' 6531 ;; 6532osf*) 6533 symcode='[BCDEGQRST]' 6534 ;; 6535solaris*) 6536 symcode='[BDRT]' 6537 ;; 6538sco3.2v5*) 6539 symcode='[DT]' 6540 ;; 6541sysv4.2uw2*) 6542 symcode='[DT]' 6543 ;; 6544sysv5* | sco5v6* | unixware* | OpenUNIX*) 6545 symcode='[ABDT]' 6546 ;; 6547sysv4) 6548 symcode='[DFNSTU]' 6549 ;; 6550esac 6551 6552# If we're using GNU nm, then use its standard symbol codes. 6553case `$NM -V 2>&1` in 6554*GNU* | *'with BFD'*) 6555 symcode='[ABCDGIRSTW]' ;; 6556esac 6557 6558# Transform an extracted symbol line into a proper C declaration. 6559# Some systems (esp. on ia64) link data and code symbols differently, 6560# so use this general approach. 6561lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6562 6563# Transform an extracted symbol line into symbol name and symbol address 6564lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6565lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 6566 6567# Handle CRLF in mingw tool chain 6568opt_cr= 6569case $build_os in 6570mingw*) 6571 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6572 ;; 6573esac 6574 6575# Try without a prefix underscore, then with it. 6576for ac_symprfx in "" "_"; do 6577 6578 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6579 symxfrm="\\1 $ac_symprfx\\2 \\2" 6580 6581 # Write the raw and C identifiers. 6582 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6583 # Fake it for dumpbin and say T for any non-static function 6584 # and D for any global variable. 6585 # Also find C++ and __fastcall symbols from MSVC++, 6586 # which start with @ or ?. 6587 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6588" {last_section=section; section=\$ 3};"\ 6589" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6590" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6591" \$ 0!~/External *\|/{next};"\ 6592" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6593" {if(hide[section]) next};"\ 6594" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6595" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6596" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6597" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6598" ' prfx=^$ac_symprfx" 6599 else 6600 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6601 fi 6602 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6603 6604 # Check to see that the pipe works correctly. 6605 pipe_works=no 6606 6607 rm -f conftest* 6608 cat > conftest.$ac_ext <<_LT_EOF 6609#ifdef __cplusplus 6610extern "C" { 6611#endif 6612char nm_test_var; 6613void nm_test_func(void); 6614void nm_test_func(void){} 6615#ifdef __cplusplus 6616} 6617#endif 6618int main(){nm_test_var='a';nm_test_func();return(0);} 6619_LT_EOF 6620 6621 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6622 (eval $ac_compile) 2>&5 6623 ac_status=$? 6624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6625 test $ac_status = 0; }; then 6626 # Now try to grab the symbols. 6627 nlist=conftest.nm 6628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6629 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6630 ac_status=$? 6631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6632 test $ac_status = 0; } && test -s "$nlist"; then 6633 # Try sorting and uniquifying the output. 6634 if sort "$nlist" | uniq > "$nlist"T; then 6635 mv -f "$nlist"T "$nlist" 6636 else 6637 rm -f "$nlist"T 6638 fi 6639 6640 # Make sure that we snagged all the symbols we need. 6641 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6642 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6643 cat <<_LT_EOF > conftest.$ac_ext 6644/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6645#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6646/* DATA imports from DLLs on WIN32 con't be const, because runtime 6647 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6648# define LT_DLSYM_CONST 6649#elif defined(__osf__) 6650/* This system does not cope well with relocations in const data. */ 6651# define LT_DLSYM_CONST 6652#else 6653# define LT_DLSYM_CONST const 6654#endif 6655 6656#ifdef __cplusplus 6657extern "C" { 6658#endif 6659 6660_LT_EOF 6661 # Now generate the symbol file. 6662 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6663 6664 cat <<_LT_EOF >> conftest.$ac_ext 6665 6666/* The mapping between symbol names and symbols. */ 6667LT_DLSYM_CONST struct { 6668 const char *name; 6669 void *address; 6670} 6671lt__PROGRAM__LTX_preloaded_symbols[] = 6672{ 6673 { "@PROGRAM@", (void *) 0 }, 6674_LT_EOF 6675 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6676 cat <<\_LT_EOF >> conftest.$ac_ext 6677 {0, (void *) 0} 6678}; 6679 6680/* This works around a problem in FreeBSD linker */ 6681#ifdef FREEBSD_WORKAROUND 6682static const void *lt_preloaded_setup() { 6683 return lt__PROGRAM__LTX_preloaded_symbols; 6684} 6685#endif 6686 6687#ifdef __cplusplus 6688} 6689#endif 6690_LT_EOF 6691 # Now try linking the two files. 6692 mv conftest.$ac_objext conftstm.$ac_objext 6693 lt_globsym_save_LIBS=$LIBS 6694 lt_globsym_save_CFLAGS=$CFLAGS 6695 LIBS="conftstm.$ac_objext" 6696 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6698 (eval $ac_link) 2>&5 6699 ac_status=$? 6700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6701 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6702 pipe_works=yes 6703 fi 6704 LIBS=$lt_globsym_save_LIBS 6705 CFLAGS=$lt_globsym_save_CFLAGS 6706 else 6707 echo "cannot find nm_test_func in $nlist" >&5 6708 fi 6709 else 6710 echo "cannot find nm_test_var in $nlist" >&5 6711 fi 6712 else 6713 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6714 fi 6715 else 6716 echo "$progname: failed program was:" >&5 6717 cat conftest.$ac_ext >&5 6718 fi 6719 rm -rf conftest* conftst* 6720 6721 # Do not use the global_symbol_pipe unless it works. 6722 if test "$pipe_works" = yes; then 6723 break 6724 else 6725 lt_cv_sys_global_symbol_pipe= 6726 fi 6727done 6728 6729fi 6730 6731if test -z "$lt_cv_sys_global_symbol_pipe"; then 6732 lt_cv_sys_global_symbol_to_cdecl= 6733fi 6734if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6736$as_echo "failed" >&6; } 6737else 6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6739$as_echo "ok" >&6; } 6740fi 6741 6742# Response file support. 6743if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6744 nm_file_list_spec='@' 6745elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6746 nm_file_list_spec='@' 6747fi 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6776$as_echo_n "checking for sysroot... " >&6; } 6777 6778# Check whether --with-sysroot was given. 6779if test "${with_sysroot+set}" = set; then : 6780 withval=$with_sysroot; 6781else 6782 with_sysroot=no 6783fi 6784 6785 6786lt_sysroot= 6787case ${with_sysroot} in #( 6788 yes) 6789 if test "$GCC" = yes; then 6790 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6791 fi 6792 ;; #( 6793 /*) 6794 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6795 ;; #( 6796 no|'') 6797 ;; #( 6798 *) 6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6800$as_echo "${with_sysroot}" >&6; } 6801 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6802 ;; 6803esac 6804 6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6806$as_echo "${lt_sysroot:-no}" >&6; } 6807 6808 6809 6810 6811 6812# Check whether --enable-libtool-lock was given. 6813if test "${enable_libtool_lock+set}" = set; then : 6814 enableval=$enable_libtool_lock; 6815fi 6816 6817test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6818 6819# Some flags need to be propagated to the compiler or linker for good 6820# libtool support. 6821case $host in 6822ia64-*-hpux*) 6823 # Find out which ABI we are using. 6824 echo 'int i;' > conftest.$ac_ext 6825 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6826 (eval $ac_compile) 2>&5 6827 ac_status=$? 6828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6829 test $ac_status = 0; }; then 6830 case `/usr/bin/file conftest.$ac_objext` in 6831 *ELF-32*) 6832 HPUX_IA64_MODE="32" 6833 ;; 6834 *ELF-64*) 6835 HPUX_IA64_MODE="64" 6836 ;; 6837 esac 6838 fi 6839 rm -rf conftest* 6840 ;; 6841*-*-irix6*) 6842 # Find out which ABI we are using. 6843 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6844 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6845 (eval $ac_compile) 2>&5 6846 ac_status=$? 6847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6848 test $ac_status = 0; }; then 6849 if test "$lt_cv_prog_gnu_ld" = yes; then 6850 case `/usr/bin/file conftest.$ac_objext` in 6851 *32-bit*) 6852 LD="${LD-ld} -melf32bsmip" 6853 ;; 6854 *N32*) 6855 LD="${LD-ld} -melf32bmipn32" 6856 ;; 6857 *64-bit*) 6858 LD="${LD-ld} -melf64bmip" 6859 ;; 6860 esac 6861 else 6862 case `/usr/bin/file conftest.$ac_objext` in 6863 *32-bit*) 6864 LD="${LD-ld} -32" 6865 ;; 6866 *N32*) 6867 LD="${LD-ld} -n32" 6868 ;; 6869 *64-bit*) 6870 LD="${LD-ld} -64" 6871 ;; 6872 esac 6873 fi 6874 fi 6875 rm -rf conftest* 6876 ;; 6877 6878x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6879s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6880 # Find out which ABI we are using. 6881 echo 'int i;' > conftest.$ac_ext 6882 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6883 (eval $ac_compile) 2>&5 6884 ac_status=$? 6885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6886 test $ac_status = 0; }; then 6887 case `/usr/bin/file conftest.o` in 6888 *32-bit*) 6889 case $host in 6890 x86_64-*kfreebsd*-gnu) 6891 LD="${LD-ld} -m elf_i386_fbsd" 6892 ;; 6893 x86_64-*linux*) 6894 LD="${LD-ld} -m elf_i386" 6895 ;; 6896 ppc64-*linux*|powerpc64-*linux*) 6897 LD="${LD-ld} -m elf32ppclinux" 6898 ;; 6899 s390x-*linux*) 6900 LD="${LD-ld} -m elf_s390" 6901 ;; 6902 sparc64-*linux*) 6903 LD="${LD-ld} -m elf32_sparc" 6904 ;; 6905 esac 6906 ;; 6907 *64-bit*) 6908 case $host in 6909 x86_64-*kfreebsd*-gnu) 6910 LD="${LD-ld} -m elf_x86_64_fbsd" 6911 ;; 6912 x86_64-*linux*) 6913 LD="${LD-ld} -m elf_x86_64" 6914 ;; 6915 ppc*-*linux*|powerpc*-*linux*) 6916 LD="${LD-ld} -m elf64ppc" 6917 ;; 6918 s390*-*linux*|s390*-*tpf*) 6919 LD="${LD-ld} -m elf64_s390" 6920 ;; 6921 sparc*-*linux*) 6922 LD="${LD-ld} -m elf64_sparc" 6923 ;; 6924 esac 6925 ;; 6926 esac 6927 fi 6928 rm -rf conftest* 6929 ;; 6930 6931*-*-sco3.2v5*) 6932 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6933 SAVE_CFLAGS="$CFLAGS" 6934 CFLAGS="$CFLAGS -belf" 6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6936$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6937if ${lt_cv_cc_needs_belf+:} false; then : 6938 $as_echo_n "(cached) " >&6 6939else 6940 ac_ext=c 6941ac_cpp='$CPP $CPPFLAGS' 6942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6944ac_compiler_gnu=$ac_cv_c_compiler_gnu 6945 6946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6947/* end confdefs.h. */ 6948 6949int 6950main () 6951{ 6952 6953 ; 6954 return 0; 6955} 6956_ACEOF 6957if ac_fn_c_try_link "$LINENO"; then : 6958 lt_cv_cc_needs_belf=yes 6959else 6960 lt_cv_cc_needs_belf=no 6961fi 6962rm -f core conftest.err conftest.$ac_objext \ 6963 conftest$ac_exeext conftest.$ac_ext 6964 ac_ext=c 6965ac_cpp='$CPP $CPPFLAGS' 6966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6968ac_compiler_gnu=$ac_cv_c_compiler_gnu 6969 6970fi 6971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6972$as_echo "$lt_cv_cc_needs_belf" >&6; } 6973 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6974 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6975 CFLAGS="$SAVE_CFLAGS" 6976 fi 6977 ;; 6978*-*solaris*) 6979 # Find out which ABI we are using. 6980 echo 'int i;' > conftest.$ac_ext 6981 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6982 (eval $ac_compile) 2>&5 6983 ac_status=$? 6984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6985 test $ac_status = 0; }; then 6986 case `/usr/bin/file conftest.o` in 6987 *64-bit*) 6988 case $lt_cv_prog_gnu_ld in 6989 yes*) 6990 case $host in 6991 i?86-*-solaris*) 6992 LD="${LD-ld} -m elf_x86_64" 6993 ;; 6994 sparc*-*-solaris*) 6995 LD="${LD-ld} -m elf64_sparc" 6996 ;; 6997 esac 6998 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6999 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7000 LD="${LD-ld}_sol2" 7001 fi 7002 ;; 7003 *) 7004 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7005 LD="${LD-ld} -64" 7006 fi 7007 ;; 7008 esac 7009 ;; 7010 esac 7011 fi 7012 rm -rf conftest* 7013 ;; 7014esac 7015 7016need_locks="$enable_libtool_lock" 7017 7018if test -n "$ac_tool_prefix"; then 7019 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7020set dummy ${ac_tool_prefix}mt; ac_word=$2 7021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7022$as_echo_n "checking for $ac_word... " >&6; } 7023if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7024 $as_echo_n "(cached) " >&6 7025else 7026 if test -n "$MANIFEST_TOOL"; then 7027 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7028else 7029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7030for as_dir in $PATH 7031do 7032 IFS=$as_save_IFS 7033 test -z "$as_dir" && as_dir=. 7034 for ac_exec_ext in '' $ac_executable_extensions; do 7035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7036 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7038 break 2 7039 fi 7040done 7041 done 7042IFS=$as_save_IFS 7043 7044fi 7045fi 7046MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7047if test -n "$MANIFEST_TOOL"; then 7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7049$as_echo "$MANIFEST_TOOL" >&6; } 7050else 7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7052$as_echo "no" >&6; } 7053fi 7054 7055 7056fi 7057if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7058 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7059 # Extract the first word of "mt", so it can be a program name with args. 7060set dummy mt; ac_word=$2 7061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7062$as_echo_n "checking for $ac_word... " >&6; } 7063if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7064 $as_echo_n "(cached) " >&6 7065else 7066 if test -n "$ac_ct_MANIFEST_TOOL"; then 7067 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7068else 7069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7070for as_dir in $PATH 7071do 7072 IFS=$as_save_IFS 7073 test -z "$as_dir" && as_dir=. 7074 for ac_exec_ext in '' $ac_executable_extensions; do 7075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7076 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7078 break 2 7079 fi 7080done 7081 done 7082IFS=$as_save_IFS 7083 7084fi 7085fi 7086ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7087if test -n "$ac_ct_MANIFEST_TOOL"; then 7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7089$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7090else 7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7092$as_echo "no" >&6; } 7093fi 7094 7095 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7096 MANIFEST_TOOL=":" 7097 else 7098 case $cross_compiling:$ac_tool_warned in 7099yes:) 7100{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7101$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7102ac_tool_warned=yes ;; 7103esac 7104 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7105 fi 7106else 7107 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7108fi 7109 7110test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7112$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7113if ${lt_cv_path_mainfest_tool+:} false; then : 7114 $as_echo_n "(cached) " >&6 7115else 7116 lt_cv_path_mainfest_tool=no 7117 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7118 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7119 cat conftest.err >&5 7120 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7121 lt_cv_path_mainfest_tool=yes 7122 fi 7123 rm -f conftest* 7124fi 7125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7126$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7127if test "x$lt_cv_path_mainfest_tool" != xyes; then 7128 MANIFEST_TOOL=: 7129fi 7130 7131 7132 7133 7134 7135 7136 case $host_os in 7137 rhapsody* | darwin*) 7138 if test -n "$ac_tool_prefix"; then 7139 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7140set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7142$as_echo_n "checking for $ac_word... " >&6; } 7143if ${ac_cv_prog_DSYMUTIL+:} false; then : 7144 $as_echo_n "(cached) " >&6 7145else 7146 if test -n "$DSYMUTIL"; then 7147 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7148else 7149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7150for as_dir in $PATH 7151do 7152 IFS=$as_save_IFS 7153 test -z "$as_dir" && as_dir=. 7154 for ac_exec_ext in '' $ac_executable_extensions; do 7155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7156 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7158 break 2 7159 fi 7160done 7161 done 7162IFS=$as_save_IFS 7163 7164fi 7165fi 7166DSYMUTIL=$ac_cv_prog_DSYMUTIL 7167if test -n "$DSYMUTIL"; then 7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7169$as_echo "$DSYMUTIL" >&6; } 7170else 7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7172$as_echo "no" >&6; } 7173fi 7174 7175 7176fi 7177if test -z "$ac_cv_prog_DSYMUTIL"; then 7178 ac_ct_DSYMUTIL=$DSYMUTIL 7179 # Extract the first word of "dsymutil", so it can be a program name with args. 7180set dummy dsymutil; ac_word=$2 7181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7182$as_echo_n "checking for $ac_word... " >&6; } 7183if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7184 $as_echo_n "(cached) " >&6 7185else 7186 if test -n "$ac_ct_DSYMUTIL"; then 7187 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7188else 7189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7190for as_dir in $PATH 7191do 7192 IFS=$as_save_IFS 7193 test -z "$as_dir" && as_dir=. 7194 for ac_exec_ext in '' $ac_executable_extensions; do 7195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7196 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7198 break 2 7199 fi 7200done 7201 done 7202IFS=$as_save_IFS 7203 7204fi 7205fi 7206ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7207if test -n "$ac_ct_DSYMUTIL"; then 7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7209$as_echo "$ac_ct_DSYMUTIL" >&6; } 7210else 7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7212$as_echo "no" >&6; } 7213fi 7214 7215 if test "x$ac_ct_DSYMUTIL" = x; then 7216 DSYMUTIL=":" 7217 else 7218 case $cross_compiling:$ac_tool_warned in 7219yes:) 7220{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7221$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7222ac_tool_warned=yes ;; 7223esac 7224 DSYMUTIL=$ac_ct_DSYMUTIL 7225 fi 7226else 7227 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7228fi 7229 7230 if test -n "$ac_tool_prefix"; then 7231 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7232set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7234$as_echo_n "checking for $ac_word... " >&6; } 7235if ${ac_cv_prog_NMEDIT+:} false; then : 7236 $as_echo_n "(cached) " >&6 7237else 7238 if test -n "$NMEDIT"; then 7239 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7240else 7241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7242for as_dir in $PATH 7243do 7244 IFS=$as_save_IFS 7245 test -z "$as_dir" && as_dir=. 7246 for ac_exec_ext in '' $ac_executable_extensions; do 7247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7248 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7250 break 2 7251 fi 7252done 7253 done 7254IFS=$as_save_IFS 7255 7256fi 7257fi 7258NMEDIT=$ac_cv_prog_NMEDIT 7259if test -n "$NMEDIT"; then 7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7261$as_echo "$NMEDIT" >&6; } 7262else 7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7264$as_echo "no" >&6; } 7265fi 7266 7267 7268fi 7269if test -z "$ac_cv_prog_NMEDIT"; then 7270 ac_ct_NMEDIT=$NMEDIT 7271 # Extract the first word of "nmedit", so it can be a program name with args. 7272set dummy nmedit; ac_word=$2 7273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7274$as_echo_n "checking for $ac_word... " >&6; } 7275if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7276 $as_echo_n "(cached) " >&6 7277else 7278 if test -n "$ac_ct_NMEDIT"; then 7279 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7280else 7281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7282for as_dir in $PATH 7283do 7284 IFS=$as_save_IFS 7285 test -z "$as_dir" && as_dir=. 7286 for ac_exec_ext in '' $ac_executable_extensions; do 7287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7288 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7290 break 2 7291 fi 7292done 7293 done 7294IFS=$as_save_IFS 7295 7296fi 7297fi 7298ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7299if test -n "$ac_ct_NMEDIT"; then 7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7301$as_echo "$ac_ct_NMEDIT" >&6; } 7302else 7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7304$as_echo "no" >&6; } 7305fi 7306 7307 if test "x$ac_ct_NMEDIT" = x; then 7308 NMEDIT=":" 7309 else 7310 case $cross_compiling:$ac_tool_warned in 7311yes:) 7312{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7313$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7314ac_tool_warned=yes ;; 7315esac 7316 NMEDIT=$ac_ct_NMEDIT 7317 fi 7318else 7319 NMEDIT="$ac_cv_prog_NMEDIT" 7320fi 7321 7322 if test -n "$ac_tool_prefix"; then 7323 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7324set dummy ${ac_tool_prefix}lipo; ac_word=$2 7325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7326$as_echo_n "checking for $ac_word... " >&6; } 7327if ${ac_cv_prog_LIPO+:} false; then : 7328 $as_echo_n "(cached) " >&6 7329else 7330 if test -n "$LIPO"; then 7331 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7332else 7333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7334for as_dir in $PATH 7335do 7336 IFS=$as_save_IFS 7337 test -z "$as_dir" && as_dir=. 7338 for ac_exec_ext in '' $ac_executable_extensions; do 7339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7340 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7342 break 2 7343 fi 7344done 7345 done 7346IFS=$as_save_IFS 7347 7348fi 7349fi 7350LIPO=$ac_cv_prog_LIPO 7351if test -n "$LIPO"; then 7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7353$as_echo "$LIPO" >&6; } 7354else 7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7356$as_echo "no" >&6; } 7357fi 7358 7359 7360fi 7361if test -z "$ac_cv_prog_LIPO"; then 7362 ac_ct_LIPO=$LIPO 7363 # Extract the first word of "lipo", so it can be a program name with args. 7364set dummy lipo; ac_word=$2 7365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7366$as_echo_n "checking for $ac_word... " >&6; } 7367if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7368 $as_echo_n "(cached) " >&6 7369else 7370 if test -n "$ac_ct_LIPO"; then 7371 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7372else 7373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7374for as_dir in $PATH 7375do 7376 IFS=$as_save_IFS 7377 test -z "$as_dir" && as_dir=. 7378 for ac_exec_ext in '' $ac_executable_extensions; do 7379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7380 ac_cv_prog_ac_ct_LIPO="lipo" 7381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7382 break 2 7383 fi 7384done 7385 done 7386IFS=$as_save_IFS 7387 7388fi 7389fi 7390ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7391if test -n "$ac_ct_LIPO"; then 7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7393$as_echo "$ac_ct_LIPO" >&6; } 7394else 7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7396$as_echo "no" >&6; } 7397fi 7398 7399 if test "x$ac_ct_LIPO" = x; then 7400 LIPO=":" 7401 else 7402 case $cross_compiling:$ac_tool_warned in 7403yes:) 7404{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7405$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7406ac_tool_warned=yes ;; 7407esac 7408 LIPO=$ac_ct_LIPO 7409 fi 7410else 7411 LIPO="$ac_cv_prog_LIPO" 7412fi 7413 7414 if test -n "$ac_tool_prefix"; then 7415 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7416set dummy ${ac_tool_prefix}otool; ac_word=$2 7417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7418$as_echo_n "checking for $ac_word... " >&6; } 7419if ${ac_cv_prog_OTOOL+:} false; then : 7420 $as_echo_n "(cached) " >&6 7421else 7422 if test -n "$OTOOL"; then 7423 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7424else 7425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7426for as_dir in $PATH 7427do 7428 IFS=$as_save_IFS 7429 test -z "$as_dir" && as_dir=. 7430 for ac_exec_ext in '' $ac_executable_extensions; do 7431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7432 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7434 break 2 7435 fi 7436done 7437 done 7438IFS=$as_save_IFS 7439 7440fi 7441fi 7442OTOOL=$ac_cv_prog_OTOOL 7443if test -n "$OTOOL"; then 7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7445$as_echo "$OTOOL" >&6; } 7446else 7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7448$as_echo "no" >&6; } 7449fi 7450 7451 7452fi 7453if test -z "$ac_cv_prog_OTOOL"; then 7454 ac_ct_OTOOL=$OTOOL 7455 # Extract the first word of "otool", so it can be a program name with args. 7456set dummy otool; ac_word=$2 7457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7458$as_echo_n "checking for $ac_word... " >&6; } 7459if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7460 $as_echo_n "(cached) " >&6 7461else 7462 if test -n "$ac_ct_OTOOL"; then 7463 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7464else 7465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7466for as_dir in $PATH 7467do 7468 IFS=$as_save_IFS 7469 test -z "$as_dir" && as_dir=. 7470 for ac_exec_ext in '' $ac_executable_extensions; do 7471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7472 ac_cv_prog_ac_ct_OTOOL="otool" 7473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7474 break 2 7475 fi 7476done 7477 done 7478IFS=$as_save_IFS 7479 7480fi 7481fi 7482ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7483if test -n "$ac_ct_OTOOL"; then 7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7485$as_echo "$ac_ct_OTOOL" >&6; } 7486else 7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7488$as_echo "no" >&6; } 7489fi 7490 7491 if test "x$ac_ct_OTOOL" = x; then 7492 OTOOL=":" 7493 else 7494 case $cross_compiling:$ac_tool_warned in 7495yes:) 7496{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7497$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7498ac_tool_warned=yes ;; 7499esac 7500 OTOOL=$ac_ct_OTOOL 7501 fi 7502else 7503 OTOOL="$ac_cv_prog_OTOOL" 7504fi 7505 7506 if test -n "$ac_tool_prefix"; then 7507 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7508set dummy ${ac_tool_prefix}otool64; ac_word=$2 7509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7510$as_echo_n "checking for $ac_word... " >&6; } 7511if ${ac_cv_prog_OTOOL64+:} false; then : 7512 $as_echo_n "(cached) " >&6 7513else 7514 if test -n "$OTOOL64"; then 7515 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7516else 7517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7518for as_dir in $PATH 7519do 7520 IFS=$as_save_IFS 7521 test -z "$as_dir" && as_dir=. 7522 for ac_exec_ext in '' $ac_executable_extensions; do 7523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7524 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7526 break 2 7527 fi 7528done 7529 done 7530IFS=$as_save_IFS 7531 7532fi 7533fi 7534OTOOL64=$ac_cv_prog_OTOOL64 7535if test -n "$OTOOL64"; then 7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7537$as_echo "$OTOOL64" >&6; } 7538else 7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7540$as_echo "no" >&6; } 7541fi 7542 7543 7544fi 7545if test -z "$ac_cv_prog_OTOOL64"; then 7546 ac_ct_OTOOL64=$OTOOL64 7547 # Extract the first word of "otool64", so it can be a program name with args. 7548set dummy otool64; ac_word=$2 7549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7550$as_echo_n "checking for $ac_word... " >&6; } 7551if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7552 $as_echo_n "(cached) " >&6 7553else 7554 if test -n "$ac_ct_OTOOL64"; then 7555 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7556else 7557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7558for as_dir in $PATH 7559do 7560 IFS=$as_save_IFS 7561 test -z "$as_dir" && as_dir=. 7562 for ac_exec_ext in '' $ac_executable_extensions; do 7563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7564 ac_cv_prog_ac_ct_OTOOL64="otool64" 7565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7566 break 2 7567 fi 7568done 7569 done 7570IFS=$as_save_IFS 7571 7572fi 7573fi 7574ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7575if test -n "$ac_ct_OTOOL64"; then 7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7577$as_echo "$ac_ct_OTOOL64" >&6; } 7578else 7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7580$as_echo "no" >&6; } 7581fi 7582 7583 if test "x$ac_ct_OTOOL64" = x; then 7584 OTOOL64=":" 7585 else 7586 case $cross_compiling:$ac_tool_warned in 7587yes:) 7588{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7589$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7590ac_tool_warned=yes ;; 7591esac 7592 OTOOL64=$ac_ct_OTOOL64 7593 fi 7594else 7595 OTOOL64="$ac_cv_prog_OTOOL64" 7596fi 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7625$as_echo_n "checking for -single_module linker flag... " >&6; } 7626if ${lt_cv_apple_cc_single_mod+:} false; then : 7627 $as_echo_n "(cached) " >&6 7628else 7629 lt_cv_apple_cc_single_mod=no 7630 if test -z "${LT_MULTI_MODULE}"; then 7631 # By default we will add the -single_module flag. You can override 7632 # by either setting the environment variable LT_MULTI_MODULE 7633 # non-empty at configure time, or by adding -multi_module to the 7634 # link flags. 7635 rm -rf libconftest.dylib* 7636 echo "int foo(void){return 1;}" > conftest.c 7637 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7638-dynamiclib -Wl,-single_module conftest.c" >&5 7639 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7640 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7641 _lt_result=$? 7642 # If there is a non-empty error log, and "single_module" 7643 # appears in it, assume the flag caused a linker warning 7644 if test -s conftest.err && $GREP single_module conftest.err; then 7645 cat conftest.err >&5 7646 # Otherwise, if the output was created with a 0 exit code from 7647 # the compiler, it worked. 7648 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7649 lt_cv_apple_cc_single_mod=yes 7650 else 7651 cat conftest.err >&5 7652 fi 7653 rm -rf libconftest.dylib* 7654 rm -f conftest.* 7655 fi 7656fi 7657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7658$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7659 7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7661$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7662if ${lt_cv_ld_exported_symbols_list+:} false; then : 7663 $as_echo_n "(cached) " >&6 7664else 7665 lt_cv_ld_exported_symbols_list=no 7666 save_LDFLAGS=$LDFLAGS 7667 echo "_main" > conftest.sym 7668 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7670/* end confdefs.h. */ 7671 7672int 7673main () 7674{ 7675 7676 ; 7677 return 0; 7678} 7679_ACEOF 7680if ac_fn_c_try_link "$LINENO"; then : 7681 lt_cv_ld_exported_symbols_list=yes 7682else 7683 lt_cv_ld_exported_symbols_list=no 7684fi 7685rm -f core conftest.err conftest.$ac_objext \ 7686 conftest$ac_exeext conftest.$ac_ext 7687 LDFLAGS="$save_LDFLAGS" 7688 7689fi 7690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7691$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7692 7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7694$as_echo_n "checking for -force_load linker flag... " >&6; } 7695if ${lt_cv_ld_force_load+:} false; then : 7696 $as_echo_n "(cached) " >&6 7697else 7698 lt_cv_ld_force_load=no 7699 cat > conftest.c << _LT_EOF 7700int forced_loaded() { return 2;} 7701_LT_EOF 7702 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7703 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7704 echo "$AR cru libconftest.a conftest.o" >&5 7705 $AR cru libconftest.a conftest.o 2>&5 7706 echo "$RANLIB libconftest.a" >&5 7707 $RANLIB libconftest.a 2>&5 7708 cat > conftest.c << _LT_EOF 7709int main() { return 0;} 7710_LT_EOF 7711 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7712 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7713 _lt_result=$? 7714 if test -s conftest.err && $GREP force_load conftest.err; then 7715 cat conftest.err >&5 7716 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7717 lt_cv_ld_force_load=yes 7718 else 7719 cat conftest.err >&5 7720 fi 7721 rm -f conftest.err libconftest.a conftest conftest.c 7722 rm -rf conftest.dSYM 7723 7724fi 7725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7726$as_echo "$lt_cv_ld_force_load" >&6; } 7727 case $host_os in 7728 rhapsody* | darwin1.[012]) 7729 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7730 darwin1.*) 7731 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7732 darwin*) # darwin 5.x on 7733 # if running on 10.5 or later, the deployment target defaults 7734 # to the OS version, if on x86, and 10.4, the deployment 7735 # target defaults to 10.4. Don't you love it? 7736 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7737 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7738 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7739 10.[012]*) 7740 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7741 10.*) 7742 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7743 esac 7744 ;; 7745 esac 7746 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7747 _lt_dar_single_mod='$single_module' 7748 fi 7749 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7750 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7751 else 7752 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7753 fi 7754 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7755 _lt_dsymutil='~$DSYMUTIL $lib || :' 7756 else 7757 _lt_dsymutil= 7758 fi 7759 ;; 7760 esac 7761 7762for ac_header in dlfcn.h 7763do : 7764 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7765" 7766if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7767 cat >>confdefs.h <<_ACEOF 7768#define HAVE_DLFCN_H 1 7769_ACEOF 7770 7771fi 7772 7773done 7774 7775 7776 7777 7778 7779# Set options 7780 7781 7782 7783 enable_dlopen=no 7784 7785 7786 7787 # Check whether --enable-shared was given. 7788if test "${enable_shared+set}" = set; then : 7789 enableval=$enable_shared; p=${PACKAGE-default} 7790 case $enableval in 7791 yes) enable_shared=yes ;; 7792 no) enable_shared=no ;; 7793 *) 7794 enable_shared=no 7795 # Look at the argument we got. We use all the common list separators. 7796 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7797 for pkg in $enableval; do 7798 IFS="$lt_save_ifs" 7799 if test "X$pkg" = "X$p"; then 7800 enable_shared=yes 7801 fi 7802 done 7803 IFS="$lt_save_ifs" 7804 ;; 7805 esac 7806else 7807 enable_shared=yes 7808fi 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 # Check whether --enable-static was given. 7819if test "${enable_static+set}" = set; then : 7820 enableval=$enable_static; p=${PACKAGE-default} 7821 case $enableval in 7822 yes) enable_static=yes ;; 7823 no) enable_static=no ;; 7824 *) 7825 enable_static=no 7826 # Look at the argument we got. We use all the common list separators. 7827 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7828 for pkg in $enableval; do 7829 IFS="$lt_save_ifs" 7830 if test "X$pkg" = "X$p"; then 7831 enable_static=yes 7832 fi 7833 done 7834 IFS="$lt_save_ifs" 7835 ;; 7836 esac 7837else 7838 enable_static=yes 7839fi 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850# Check whether --with-pic was given. 7851if test "${with_pic+set}" = set; then : 7852 withval=$with_pic; lt_p=${PACKAGE-default} 7853 case $withval in 7854 yes|no) pic_mode=$withval ;; 7855 *) 7856 pic_mode=default 7857 # Look at the argument we got. We use all the common list separators. 7858 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7859 for lt_pkg in $withval; do 7860 IFS="$lt_save_ifs" 7861 if test "X$lt_pkg" = "X$lt_p"; then 7862 pic_mode=yes 7863 fi 7864 done 7865 IFS="$lt_save_ifs" 7866 ;; 7867 esac 7868else 7869 pic_mode=default 7870fi 7871 7872 7873test -z "$pic_mode" && pic_mode=default 7874 7875 7876 7877 7878 7879 7880 7881 # Check whether --enable-fast-install was given. 7882if test "${enable_fast_install+set}" = set; then : 7883 enableval=$enable_fast_install; p=${PACKAGE-default} 7884 case $enableval in 7885 yes) enable_fast_install=yes ;; 7886 no) enable_fast_install=no ;; 7887 *) 7888 enable_fast_install=no 7889 # Look at the argument we got. We use all the common list separators. 7890 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7891 for pkg in $enableval; do 7892 IFS="$lt_save_ifs" 7893 if test "X$pkg" = "X$p"; then 7894 enable_fast_install=yes 7895 fi 7896 done 7897 IFS="$lt_save_ifs" 7898 ;; 7899 esac 7900else 7901 enable_fast_install=yes 7902fi 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914# This can be used to rebuild libtool when needed 7915LIBTOOL_DEPS="$ltmain" 7916 7917# Always use our own libtool. 7918LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949test -z "$LN_S" && LN_S="ln -s" 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964if test -n "${ZSH_VERSION+set}" ; then 7965 setopt NO_GLOB_SUBST 7966fi 7967 7968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7969$as_echo_n "checking for objdir... " >&6; } 7970if ${lt_cv_objdir+:} false; then : 7971 $as_echo_n "(cached) " >&6 7972else 7973 rm -f .libs 2>/dev/null 7974mkdir .libs 2>/dev/null 7975if test -d .libs; then 7976 lt_cv_objdir=.libs 7977else 7978 # MS-DOS does not allow filenames that begin with a dot. 7979 lt_cv_objdir=_libs 7980fi 7981rmdir .libs 2>/dev/null 7982fi 7983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7984$as_echo "$lt_cv_objdir" >&6; } 7985objdir=$lt_cv_objdir 7986 7987 7988 7989 7990 7991cat >>confdefs.h <<_ACEOF 7992#define LT_OBJDIR "$lt_cv_objdir/" 7993_ACEOF 7994 7995 7996 7997 7998case $host_os in 7999aix3*) 8000 # AIX sometimes has problems with the GCC collect2 program. For some 8001 # reason, if we set the COLLECT_NAMES environment variable, the problems 8002 # vanish in a puff of smoke. 8003 if test "X${COLLECT_NAMES+set}" != Xset; then 8004 COLLECT_NAMES= 8005 export COLLECT_NAMES 8006 fi 8007 ;; 8008esac 8009 8010# Global variables: 8011ofile=libtool 8012can_build_shared=yes 8013 8014# All known linkers require a `.a' archive for static linking (except MSVC, 8015# which needs '.lib'). 8016libext=a 8017 8018with_gnu_ld="$lt_cv_prog_gnu_ld" 8019 8020old_CC="$CC" 8021old_CFLAGS="$CFLAGS" 8022 8023# Set sane defaults for various variables 8024test -z "$CC" && CC=cc 8025test -z "$LTCC" && LTCC=$CC 8026test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8027test -z "$LD" && LD=ld 8028test -z "$ac_objext" && ac_objext=o 8029 8030for cc_temp in $compiler""; do 8031 case $cc_temp in 8032 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8033 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8034 \-*) ;; 8035 *) break;; 8036 esac 8037done 8038cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8039 8040 8041# Only perform the check for file, if the check method requires it 8042test -z "$MAGIC_CMD" && MAGIC_CMD=file 8043case $deplibs_check_method in 8044file_magic*) 8045 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8047$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8048if ${lt_cv_path_MAGIC_CMD+:} false; then : 8049 $as_echo_n "(cached) " >&6 8050else 8051 case $MAGIC_CMD in 8052[\\/*] | ?:[\\/]*) 8053 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8054 ;; 8055*) 8056 lt_save_MAGIC_CMD="$MAGIC_CMD" 8057 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8058 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8059 for ac_dir in $ac_dummy; do 8060 IFS="$lt_save_ifs" 8061 test -z "$ac_dir" && ac_dir=. 8062 if test -f $ac_dir/${ac_tool_prefix}file; then 8063 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8064 if test -n "$file_magic_test_file"; then 8065 case $deplibs_check_method in 8066 "file_magic "*) 8067 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8068 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8069 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8070 $EGREP "$file_magic_regex" > /dev/null; then 8071 : 8072 else 8073 cat <<_LT_EOF 1>&2 8074 8075*** Warning: the command libtool uses to detect shared libraries, 8076*** $file_magic_cmd, produces output that libtool cannot recognize. 8077*** The result is that libtool may fail to recognize shared libraries 8078*** as such. This will affect the creation of libtool libraries that 8079*** depend on shared libraries, but programs linked with such libtool 8080*** libraries will work regardless of this problem. Nevertheless, you 8081*** may want to report the problem to your system manager and/or to 8082*** bug-libtool@gnu.org 8083 8084_LT_EOF 8085 fi ;; 8086 esac 8087 fi 8088 break 8089 fi 8090 done 8091 IFS="$lt_save_ifs" 8092 MAGIC_CMD="$lt_save_MAGIC_CMD" 8093 ;; 8094esac 8095fi 8096 8097MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8098if test -n "$MAGIC_CMD"; then 8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8100$as_echo "$MAGIC_CMD" >&6; } 8101else 8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8103$as_echo "no" >&6; } 8104fi 8105 8106 8107 8108 8109 8110if test -z "$lt_cv_path_MAGIC_CMD"; then 8111 if test -n "$ac_tool_prefix"; then 8112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8113$as_echo_n "checking for file... " >&6; } 8114if ${lt_cv_path_MAGIC_CMD+:} false; then : 8115 $as_echo_n "(cached) " >&6 8116else 8117 case $MAGIC_CMD in 8118[\\/*] | ?:[\\/]*) 8119 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8120 ;; 8121*) 8122 lt_save_MAGIC_CMD="$MAGIC_CMD" 8123 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8124 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8125 for ac_dir in $ac_dummy; do 8126 IFS="$lt_save_ifs" 8127 test -z "$ac_dir" && ac_dir=. 8128 if test -f $ac_dir/file; then 8129 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8130 if test -n "$file_magic_test_file"; then 8131 case $deplibs_check_method in 8132 "file_magic "*) 8133 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8134 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8135 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8136 $EGREP "$file_magic_regex" > /dev/null; then 8137 : 8138 else 8139 cat <<_LT_EOF 1>&2 8140 8141*** Warning: the command libtool uses to detect shared libraries, 8142*** $file_magic_cmd, produces output that libtool cannot recognize. 8143*** The result is that libtool may fail to recognize shared libraries 8144*** as such. This will affect the creation of libtool libraries that 8145*** depend on shared libraries, but programs linked with such libtool 8146*** libraries will work regardless of this problem. Nevertheless, you 8147*** may want to report the problem to your system manager and/or to 8148*** bug-libtool@gnu.org 8149 8150_LT_EOF 8151 fi ;; 8152 esac 8153 fi 8154 break 8155 fi 8156 done 8157 IFS="$lt_save_ifs" 8158 MAGIC_CMD="$lt_save_MAGIC_CMD" 8159 ;; 8160esac 8161fi 8162 8163MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8164if test -n "$MAGIC_CMD"; then 8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8166$as_echo "$MAGIC_CMD" >&6; } 8167else 8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8169$as_echo "no" >&6; } 8170fi 8171 8172 8173 else 8174 MAGIC_CMD=: 8175 fi 8176fi 8177 8178 fi 8179 ;; 8180esac 8181 8182# Use C for the default configuration in the libtool script 8183 8184lt_save_CC="$CC" 8185ac_ext=c 8186ac_cpp='$CPP $CPPFLAGS' 8187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8189ac_compiler_gnu=$ac_cv_c_compiler_gnu 8190 8191 8192# Source file extension for C test sources. 8193ac_ext=c 8194 8195# Object file extension for compiled C test sources. 8196objext=o 8197objext=$objext 8198 8199# Code to be used in simple compile tests 8200lt_simple_compile_test_code="int some_variable = 0;" 8201 8202# Code to be used in simple link tests 8203lt_simple_link_test_code='int main(){return(0);}' 8204 8205 8206 8207 8208 8209 8210 8211# If no C compiler was specified, use CC. 8212LTCC=${LTCC-"$CC"} 8213 8214# If no C compiler flags were specified, use CFLAGS. 8215LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8216 8217# Allow CC to be a program name with arguments. 8218compiler=$CC 8219 8220# Save the default compiler, since it gets overwritten when the other 8221# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8222compiler_DEFAULT=$CC 8223 8224# save warnings/boilerplate of simple test code 8225ac_outfile=conftest.$ac_objext 8226echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8227eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8228_lt_compiler_boilerplate=`cat conftest.err` 8229$RM conftest* 8230 8231ac_outfile=conftest.$ac_objext 8232echo "$lt_simple_link_test_code" >conftest.$ac_ext 8233eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8234_lt_linker_boilerplate=`cat conftest.err` 8235$RM -r conftest* 8236 8237 8238if test -n "$compiler"; then 8239 8240lt_prog_compiler_no_builtin_flag= 8241 8242if test "$GCC" = yes; then 8243 case $cc_basename in 8244 nvcc*) 8245 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8246 *) 8247 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8248 esac 8249 8250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8251$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8252if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8253 $as_echo_n "(cached) " >&6 8254else 8255 lt_cv_prog_compiler_rtti_exceptions=no 8256 ac_outfile=conftest.$ac_objext 8257 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8258 lt_compiler_flag="-fno-rtti -fno-exceptions" 8259 # Insert the option either (1) after the last *FLAGS variable, or 8260 # (2) before a word containing "conftest.", or (3) at the end. 8261 # Note that $ac_compile itself does not contain backslashes and begins 8262 # with a dollar sign (not a hyphen), so the echo should work correctly. 8263 # The option is referenced via a variable to avoid confusing sed. 8264 lt_compile=`echo "$ac_compile" | $SED \ 8265 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8266 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8267 -e 's:$: $lt_compiler_flag:'` 8268 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8269 (eval "$lt_compile" 2>conftest.err) 8270 ac_status=$? 8271 cat conftest.err >&5 8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8273 if (exit $ac_status) && test -s "$ac_outfile"; then 8274 # The compiler can only warn and ignore the option if not recognized 8275 # So say no if there are warnings other than the usual output. 8276 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8277 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8278 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8279 lt_cv_prog_compiler_rtti_exceptions=yes 8280 fi 8281 fi 8282 $RM conftest* 8283 8284fi 8285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8286$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8287 8288if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8289 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8290else 8291 : 8292fi 8293 8294fi 8295 8296 8297 8298 8299 8300 8301 lt_prog_compiler_wl= 8302lt_prog_compiler_pic= 8303lt_prog_compiler_static= 8304 8305 8306 if test "$GCC" = yes; then 8307 lt_prog_compiler_wl='-Wl,' 8308 lt_prog_compiler_static='-static' 8309 8310 case $host_os in 8311 aix*) 8312 # All AIX code is PIC. 8313 if test "$host_cpu" = ia64; then 8314 # AIX 5 now supports IA64 processor 8315 lt_prog_compiler_static='-Bstatic' 8316 fi 8317 ;; 8318 8319 amigaos*) 8320 case $host_cpu in 8321 powerpc) 8322 # see comment about AmigaOS4 .so support 8323 lt_prog_compiler_pic='-fPIC' 8324 ;; 8325 m68k) 8326 # FIXME: we need at least 68020 code to build shared libraries, but 8327 # adding the `-m68020' flag to GCC prevents building anything better, 8328 # like `-m68040'. 8329 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8330 ;; 8331 esac 8332 ;; 8333 8334 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8335 # PIC is the default for these OSes. 8336 ;; 8337 8338 mingw* | cygwin* | pw32* | os2* | cegcc*) 8339 # This hack is so that the source file can tell whether it is being 8340 # built for inclusion in a dll (and should export symbols for example). 8341 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8342 # (--disable-auto-import) libraries 8343 lt_prog_compiler_pic='-DDLL_EXPORT' 8344 ;; 8345 8346 darwin* | rhapsody*) 8347 # PIC is the default on this platform 8348 # Common symbols not allowed in MH_DYLIB files 8349 lt_prog_compiler_pic='-fno-common' 8350 ;; 8351 8352 haiku*) 8353 # PIC is the default for Haiku. 8354 # The "-static" flag exists, but is broken. 8355 lt_prog_compiler_static= 8356 ;; 8357 8358 hpux*) 8359 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8360 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8361 # sets the default TLS model and affects inlining. 8362 case $host_cpu in 8363 hppa*64*) 8364 # +Z the default 8365 ;; 8366 *) 8367 lt_prog_compiler_pic='-fPIC' 8368 ;; 8369 esac 8370 ;; 8371 8372 interix[3-9]*) 8373 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8374 # Instead, we relocate shared libraries at runtime. 8375 ;; 8376 8377 msdosdjgpp*) 8378 # Just because we use GCC doesn't mean we suddenly get shared libraries 8379 # on systems that don't support them. 8380 lt_prog_compiler_can_build_shared=no 8381 enable_shared=no 8382 ;; 8383 8384 *nto* | *qnx*) 8385 # QNX uses GNU C++, but need to define -shared option too, otherwise 8386 # it will coredump. 8387 lt_prog_compiler_pic='-fPIC -shared' 8388 ;; 8389 8390 sysv4*MP*) 8391 if test -d /usr/nec; then 8392 lt_prog_compiler_pic=-Kconform_pic 8393 fi 8394 ;; 8395 8396 *) 8397 lt_prog_compiler_pic='-fPIC' 8398 ;; 8399 esac 8400 8401 case $cc_basename in 8402 nvcc*) # Cuda Compiler Driver 2.2 8403 lt_prog_compiler_wl='-Xlinker ' 8404 if test -n "$lt_prog_compiler_pic"; then 8405 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8406 fi 8407 ;; 8408 esac 8409 else 8410 # PORTME Check for flag to pass linker flags through the system compiler. 8411 case $host_os in 8412 aix*) 8413 lt_prog_compiler_wl='-Wl,' 8414 if test "$host_cpu" = ia64; then 8415 # AIX 5 now supports IA64 processor 8416 lt_prog_compiler_static='-Bstatic' 8417 else 8418 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8419 fi 8420 ;; 8421 8422 mingw* | cygwin* | pw32* | os2* | cegcc*) 8423 # This hack is so that the source file can tell whether it is being 8424 # built for inclusion in a dll (and should export symbols for example). 8425 lt_prog_compiler_pic='-DDLL_EXPORT' 8426 ;; 8427 8428 hpux9* | hpux10* | hpux11*) 8429 lt_prog_compiler_wl='-Wl,' 8430 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8431 # not for PA HP-UX. 8432 case $host_cpu in 8433 hppa*64*|ia64*) 8434 # +Z the default 8435 ;; 8436 *) 8437 lt_prog_compiler_pic='+Z' 8438 ;; 8439 esac 8440 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8441 lt_prog_compiler_static='${wl}-a ${wl}archive' 8442 ;; 8443 8444 irix5* | irix6* | nonstopux*) 8445 lt_prog_compiler_wl='-Wl,' 8446 # PIC (with -KPIC) is the default. 8447 lt_prog_compiler_static='-non_shared' 8448 ;; 8449 8450 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8451 case $cc_basename in 8452 # old Intel for x86_64 which still supported -KPIC. 8453 ecc*) 8454 lt_prog_compiler_wl='-Wl,' 8455 lt_prog_compiler_pic='-KPIC' 8456 lt_prog_compiler_static='-static' 8457 ;; 8458 # icc used to be incompatible with GCC. 8459 # ICC 10 doesn't accept -KPIC any more. 8460 icc* | ifort*) 8461 lt_prog_compiler_wl='-Wl,' 8462 lt_prog_compiler_pic='-fPIC' 8463 lt_prog_compiler_static='-static' 8464 ;; 8465 # Lahey Fortran 8.1. 8466 lf95*) 8467 lt_prog_compiler_wl='-Wl,' 8468 lt_prog_compiler_pic='--shared' 8469 lt_prog_compiler_static='--static' 8470 ;; 8471 nagfor*) 8472 # NAG Fortran compiler 8473 lt_prog_compiler_wl='-Wl,-Wl,,' 8474 lt_prog_compiler_pic='-PIC' 8475 lt_prog_compiler_static='-Bstatic' 8476 ;; 8477 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8478 # Portland Group compilers (*not* the Pentium gcc compiler, 8479 # which looks to be a dead project) 8480 lt_prog_compiler_wl='-Wl,' 8481 lt_prog_compiler_pic='-fpic' 8482 lt_prog_compiler_static='-Bstatic' 8483 ;; 8484 ccc*) 8485 lt_prog_compiler_wl='-Wl,' 8486 # All Alpha code is PIC. 8487 lt_prog_compiler_static='-non_shared' 8488 ;; 8489 xl* | bgxl* | bgf* | mpixl*) 8490 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8491 lt_prog_compiler_wl='-Wl,' 8492 lt_prog_compiler_pic='-qpic' 8493 lt_prog_compiler_static='-qstaticlink' 8494 ;; 8495 *) 8496 case `$CC -V 2>&1 | sed 5q` in 8497 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8498 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8499 lt_prog_compiler_pic='-KPIC' 8500 lt_prog_compiler_static='-Bstatic' 8501 lt_prog_compiler_wl='' 8502 ;; 8503 *Sun\ F* | *Sun*Fortran*) 8504 lt_prog_compiler_pic='-KPIC' 8505 lt_prog_compiler_static='-Bstatic' 8506 lt_prog_compiler_wl='-Qoption ld ' 8507 ;; 8508 *Sun\ C*) 8509 # Sun C 5.9 8510 lt_prog_compiler_pic='-KPIC' 8511 lt_prog_compiler_static='-Bstatic' 8512 lt_prog_compiler_wl='-Wl,' 8513 ;; 8514 *Intel*\ [CF]*Compiler*) 8515 lt_prog_compiler_wl='-Wl,' 8516 lt_prog_compiler_pic='-fPIC' 8517 lt_prog_compiler_static='-static' 8518 ;; 8519 *Portland\ Group*) 8520 lt_prog_compiler_wl='-Wl,' 8521 lt_prog_compiler_pic='-fpic' 8522 lt_prog_compiler_static='-Bstatic' 8523 ;; 8524 esac 8525 ;; 8526 esac 8527 ;; 8528 8529 newsos6) 8530 lt_prog_compiler_pic='-KPIC' 8531 lt_prog_compiler_static='-Bstatic' 8532 ;; 8533 8534 *nto* | *qnx*) 8535 # QNX uses GNU C++, but need to define -shared option too, otherwise 8536 # it will coredump. 8537 lt_prog_compiler_pic='-fPIC -shared' 8538 ;; 8539 8540 osf3* | osf4* | osf5*) 8541 lt_prog_compiler_wl='-Wl,' 8542 # All OSF/1 code is PIC. 8543 lt_prog_compiler_static='-non_shared' 8544 ;; 8545 8546 rdos*) 8547 lt_prog_compiler_static='-non_shared' 8548 ;; 8549 8550 solaris*) 8551 lt_prog_compiler_pic='-KPIC' 8552 lt_prog_compiler_static='-Bstatic' 8553 case $cc_basename in 8554 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8555 lt_prog_compiler_wl='-Qoption ld ';; 8556 *) 8557 lt_prog_compiler_wl='-Wl,';; 8558 esac 8559 ;; 8560 8561 sunos4*) 8562 lt_prog_compiler_wl='-Qoption ld ' 8563 lt_prog_compiler_pic='-PIC' 8564 lt_prog_compiler_static='-Bstatic' 8565 ;; 8566 8567 sysv4 | sysv4.2uw2* | sysv4.3*) 8568 lt_prog_compiler_wl='-Wl,' 8569 lt_prog_compiler_pic='-KPIC' 8570 lt_prog_compiler_static='-Bstatic' 8571 ;; 8572 8573 sysv4*MP*) 8574 if test -d /usr/nec ;then 8575 lt_prog_compiler_pic='-Kconform_pic' 8576 lt_prog_compiler_static='-Bstatic' 8577 fi 8578 ;; 8579 8580 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8581 lt_prog_compiler_wl='-Wl,' 8582 lt_prog_compiler_pic='-KPIC' 8583 lt_prog_compiler_static='-Bstatic' 8584 ;; 8585 8586 unicos*) 8587 lt_prog_compiler_wl='-Wl,' 8588 lt_prog_compiler_can_build_shared=no 8589 ;; 8590 8591 uts4*) 8592 lt_prog_compiler_pic='-pic' 8593 lt_prog_compiler_static='-Bstatic' 8594 ;; 8595 8596 *) 8597 lt_prog_compiler_can_build_shared=no 8598 ;; 8599 esac 8600 fi 8601 8602case $host_os in 8603 # For platforms which do not support PIC, -DPIC is meaningless: 8604 *djgpp*) 8605 lt_prog_compiler_pic= 8606 ;; 8607 *) 8608 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8609 ;; 8610esac 8611 8612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8613$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8614if ${lt_cv_prog_compiler_pic+:} false; then : 8615 $as_echo_n "(cached) " >&6 8616else 8617 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8618fi 8619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8620$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8621lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8622 8623# 8624# Check to make sure the PIC flag actually works. 8625# 8626if test -n "$lt_prog_compiler_pic"; then 8627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8628$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8629if ${lt_cv_prog_compiler_pic_works+:} false; then : 8630 $as_echo_n "(cached) " >&6 8631else 8632 lt_cv_prog_compiler_pic_works=no 8633 ac_outfile=conftest.$ac_objext 8634 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8635 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8636 # Insert the option either (1) after the last *FLAGS variable, or 8637 # (2) before a word containing "conftest.", or (3) at the end. 8638 # Note that $ac_compile itself does not contain backslashes and begins 8639 # with a dollar sign (not a hyphen), so the echo should work correctly. 8640 # The option is referenced via a variable to avoid confusing sed. 8641 lt_compile=`echo "$ac_compile" | $SED \ 8642 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8643 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8644 -e 's:$: $lt_compiler_flag:'` 8645 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8646 (eval "$lt_compile" 2>conftest.err) 8647 ac_status=$? 8648 cat conftest.err >&5 8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8650 if (exit $ac_status) && test -s "$ac_outfile"; then 8651 # The compiler can only warn and ignore the option if not recognized 8652 # So say no if there are warnings other than the usual output. 8653 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8654 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8655 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8656 lt_cv_prog_compiler_pic_works=yes 8657 fi 8658 fi 8659 $RM conftest* 8660 8661fi 8662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8663$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8664 8665if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8666 case $lt_prog_compiler_pic in 8667 "" | " "*) ;; 8668 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8669 esac 8670else 8671 lt_prog_compiler_pic= 8672 lt_prog_compiler_can_build_shared=no 8673fi 8674 8675fi 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687# 8688# Check to make sure the static flag actually works. 8689# 8690wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8692$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8693if ${lt_cv_prog_compiler_static_works+:} false; then : 8694 $as_echo_n "(cached) " >&6 8695else 8696 lt_cv_prog_compiler_static_works=no 8697 save_LDFLAGS="$LDFLAGS" 8698 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8699 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8700 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8701 # The linker can only warn and ignore the option if not recognized 8702 # So say no if there are warnings 8703 if test -s conftest.err; then 8704 # Append any errors to the config.log. 8705 cat conftest.err 1>&5 8706 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8707 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8708 if diff conftest.exp conftest.er2 >/dev/null; then 8709 lt_cv_prog_compiler_static_works=yes 8710 fi 8711 else 8712 lt_cv_prog_compiler_static_works=yes 8713 fi 8714 fi 8715 $RM -r conftest* 8716 LDFLAGS="$save_LDFLAGS" 8717 8718fi 8719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8720$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8721 8722if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8723 : 8724else 8725 lt_prog_compiler_static= 8726fi 8727 8728 8729 8730 8731 8732 8733 8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8735$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8736if ${lt_cv_prog_compiler_c_o+:} false; then : 8737 $as_echo_n "(cached) " >&6 8738else 8739 lt_cv_prog_compiler_c_o=no 8740 $RM -r conftest 2>/dev/null 8741 mkdir conftest 8742 cd conftest 8743 mkdir out 8744 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8745 8746 lt_compiler_flag="-o out/conftest2.$ac_objext" 8747 # Insert the option either (1) after the last *FLAGS variable, or 8748 # (2) before a word containing "conftest.", or (3) at the end. 8749 # Note that $ac_compile itself does not contain backslashes and begins 8750 # with a dollar sign (not a hyphen), so the echo should work correctly. 8751 lt_compile=`echo "$ac_compile" | $SED \ 8752 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8753 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8754 -e 's:$: $lt_compiler_flag:'` 8755 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8756 (eval "$lt_compile" 2>out/conftest.err) 8757 ac_status=$? 8758 cat out/conftest.err >&5 8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8760 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8761 then 8762 # The compiler can only warn and ignore the option if not recognized 8763 # So say no if there are warnings 8764 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8765 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8766 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8767 lt_cv_prog_compiler_c_o=yes 8768 fi 8769 fi 8770 chmod u+w . 2>&5 8771 $RM conftest* 8772 # SGI C++ compiler will create directory out/ii_files/ for 8773 # template instantiation 8774 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8775 $RM out/* && rmdir out 8776 cd .. 8777 $RM -r conftest 8778 $RM conftest* 8779 8780fi 8781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8782$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8783 8784 8785 8786 8787 8788 8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8790$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8791if ${lt_cv_prog_compiler_c_o+:} false; then : 8792 $as_echo_n "(cached) " >&6 8793else 8794 lt_cv_prog_compiler_c_o=no 8795 $RM -r conftest 2>/dev/null 8796 mkdir conftest 8797 cd conftest 8798 mkdir out 8799 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8800 8801 lt_compiler_flag="-o out/conftest2.$ac_objext" 8802 # Insert the option either (1) after the last *FLAGS variable, or 8803 # (2) before a word containing "conftest.", or (3) at the end. 8804 # Note that $ac_compile itself does not contain backslashes and begins 8805 # with a dollar sign (not a hyphen), so the echo should work correctly. 8806 lt_compile=`echo "$ac_compile" | $SED \ 8807 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8808 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8809 -e 's:$: $lt_compiler_flag:'` 8810 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8811 (eval "$lt_compile" 2>out/conftest.err) 8812 ac_status=$? 8813 cat out/conftest.err >&5 8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8815 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8816 then 8817 # The compiler can only warn and ignore the option if not recognized 8818 # So say no if there are warnings 8819 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8820 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8821 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8822 lt_cv_prog_compiler_c_o=yes 8823 fi 8824 fi 8825 chmod u+w . 2>&5 8826 $RM conftest* 8827 # SGI C++ compiler will create directory out/ii_files/ for 8828 # template instantiation 8829 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8830 $RM out/* && rmdir out 8831 cd .. 8832 $RM -r conftest 8833 $RM conftest* 8834 8835fi 8836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8837$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8838 8839 8840 8841 8842hard_links="nottested" 8843if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8844 # do not overwrite the value of need_locks provided by the user 8845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8846$as_echo_n "checking if we can lock with hard links... " >&6; } 8847 hard_links=yes 8848 $RM conftest* 8849 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8850 touch conftest.a 8851 ln conftest.a conftest.b 2>&5 || hard_links=no 8852 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8854$as_echo "$hard_links" >&6; } 8855 if test "$hard_links" = no; then 8856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8857$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8858 need_locks=warn 8859 fi 8860else 8861 need_locks=no 8862fi 8863 8864 8865 8866 8867 8868 8869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8870$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8871 8872 runpath_var= 8873 allow_undefined_flag= 8874 always_export_symbols=no 8875 archive_cmds= 8876 archive_expsym_cmds= 8877 compiler_needs_object=no 8878 enable_shared_with_static_runtimes=no 8879 export_dynamic_flag_spec= 8880 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8881 hardcode_automatic=no 8882 hardcode_direct=no 8883 hardcode_direct_absolute=no 8884 hardcode_libdir_flag_spec= 8885 hardcode_libdir_separator= 8886 hardcode_minus_L=no 8887 hardcode_shlibpath_var=unsupported 8888 inherit_rpath=no 8889 link_all_deplibs=unknown 8890 module_cmds= 8891 module_expsym_cmds= 8892 old_archive_from_new_cmds= 8893 old_archive_from_expsyms_cmds= 8894 thread_safe_flag_spec= 8895 whole_archive_flag_spec= 8896 # include_expsyms should be a list of space-separated symbols to be *always* 8897 # included in the symbol list 8898 include_expsyms= 8899 # exclude_expsyms can be an extended regexp of symbols to exclude 8900 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8901 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8902 # as well as any symbol that contains `d'. 8903 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8904 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8905 # platforms (ab)use it in PIC code, but their linkers get confused if 8906 # the symbol is explicitly referenced. Since portable code cannot 8907 # rely on this symbol name, it's probably fine to never include it in 8908 # preloaded symbol tables. 8909 # Exclude shared library initialization/finalization symbols. 8910 extract_expsyms_cmds= 8911 8912 case $host_os in 8913 cygwin* | mingw* | pw32* | cegcc*) 8914 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8915 # When not using gcc, we currently assume that we are using 8916 # Microsoft Visual C++. 8917 if test "$GCC" != yes; then 8918 with_gnu_ld=no 8919 fi 8920 ;; 8921 interix*) 8922 # we just hope/assume this is gcc and not c89 (= MSVC++) 8923 with_gnu_ld=yes 8924 ;; 8925 openbsd*) 8926 with_gnu_ld=no 8927 ;; 8928 esac 8929 8930 ld_shlibs=yes 8931 8932 # On some targets, GNU ld is compatible enough with the native linker 8933 # that we're better off using the native interface for both. 8934 lt_use_gnu_ld_interface=no 8935 if test "$with_gnu_ld" = yes; then 8936 case $host_os in 8937 aix*) 8938 # The AIX port of GNU ld has always aspired to compatibility 8939 # with the native linker. However, as the warning in the GNU ld 8940 # block says, versions before 2.19.5* couldn't really create working 8941 # shared libraries, regardless of the interface used. 8942 case `$LD -v 2>&1` in 8943 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8944 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8945 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8946 *) 8947 lt_use_gnu_ld_interface=yes 8948 ;; 8949 esac 8950 ;; 8951 *) 8952 lt_use_gnu_ld_interface=yes 8953 ;; 8954 esac 8955 fi 8956 8957 if test "$lt_use_gnu_ld_interface" = yes; then 8958 # If archive_cmds runs LD, not CC, wlarc should be empty 8959 wlarc='${wl}' 8960 8961 # Set some defaults for GNU ld with shared library support. These 8962 # are reset later if shared libraries are not supported. Putting them 8963 # here allows them to be overridden if necessary. 8964 runpath_var=LD_RUN_PATH 8965 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8966 export_dynamic_flag_spec='${wl}--export-dynamic' 8967 # ancient GNU ld didn't support --whole-archive et. al. 8968 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8969 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8970 else 8971 whole_archive_flag_spec= 8972 fi 8973 supports_anon_versioning=no 8974 case `$LD -v 2>&1` in 8975 *GNU\ gold*) supports_anon_versioning=yes ;; 8976 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8977 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8978 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8979 *\ 2.11.*) ;; # other 2.11 versions 8980 *) supports_anon_versioning=yes ;; 8981 esac 8982 8983 # See if GNU ld supports shared libraries. 8984 case $host_os in 8985 aix[3-9]*) 8986 # On AIX/PPC, the GNU linker is very broken 8987 if test "$host_cpu" != ia64; then 8988 ld_shlibs=no 8989 cat <<_LT_EOF 1>&2 8990 8991*** Warning: the GNU linker, at least up to release 2.19, is reported 8992*** to be unable to reliably create shared libraries on AIX. 8993*** Therefore, libtool is disabling shared libraries support. If you 8994*** really care for shared libraries, you may want to install binutils 8995*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8996*** You will then need to restart the configuration process. 8997 8998_LT_EOF 8999 fi 9000 ;; 9001 9002 amigaos*) 9003 case $host_cpu in 9004 powerpc) 9005 # see comment about AmigaOS4 .so support 9006 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9007 archive_expsym_cmds='' 9008 ;; 9009 m68k) 9010 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 9011 hardcode_libdir_flag_spec='-L$libdir' 9012 hardcode_minus_L=yes 9013 ;; 9014 esac 9015 ;; 9016 9017 beos*) 9018 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9019 allow_undefined_flag=unsupported 9020 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9021 # support --undefined. This deserves some investigation. FIXME 9022 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9023 else 9024 ld_shlibs=no 9025 fi 9026 ;; 9027 9028 cygwin* | mingw* | pw32* | cegcc*) 9029 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9030 # as there is no search path for DLLs. 9031 hardcode_libdir_flag_spec='-L$libdir' 9032 export_dynamic_flag_spec='${wl}--export-all-symbols' 9033 allow_undefined_flag=unsupported 9034 always_export_symbols=no 9035 enable_shared_with_static_runtimes=yes 9036 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 9037 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9038 9039 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9040 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9041 # If the export-symbols file already is a .def file (1st line 9042 # is EXPORTS), use it as is; otherwise, prepend... 9043 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9044 cp $export_symbols $output_objdir/$soname.def; 9045 else 9046 echo EXPORTS > $output_objdir/$soname.def; 9047 cat $export_symbols >> $output_objdir/$soname.def; 9048 fi~ 9049 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9050 else 9051 ld_shlibs=no 9052 fi 9053 ;; 9054 9055 haiku*) 9056 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9057 link_all_deplibs=yes 9058 ;; 9059 9060 interix[3-9]*) 9061 hardcode_direct=no 9062 hardcode_shlibpath_var=no 9063 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9064 export_dynamic_flag_spec='${wl}-E' 9065 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9066 # Instead, shared libraries are loaded at an image base (0x10000000 by 9067 # default) and relocated if they conflict, which is a slow very memory 9068 # consuming and fragmenting process. To avoid this, we pick a random, 9069 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9070 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9071 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9072 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9073 ;; 9074 9075 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9076 tmp_diet=no 9077 if test "$host_os" = linux-dietlibc; then 9078 case $cc_basename in 9079 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9080 esac 9081 fi 9082 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9083 && test "$tmp_diet" = no 9084 then 9085 tmp_addflag=' $pic_flag' 9086 tmp_sharedflag='-shared' 9087 case $cc_basename,$host_cpu in 9088 pgcc*) # Portland Group C compiler 9089 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 9090 tmp_addflag=' $pic_flag' 9091 ;; 9092 pgf77* | pgf90* | pgf95* | pgfortran*) 9093 # Portland Group f77 and f90 compilers 9094 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 9095 tmp_addflag=' $pic_flag -Mnomain' ;; 9096 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9097 tmp_addflag=' -i_dynamic' ;; 9098 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9099 tmp_addflag=' -i_dynamic -nofor_main' ;; 9100 ifc* | ifort*) # Intel Fortran compiler 9101 tmp_addflag=' -nofor_main' ;; 9102 lf95*) # Lahey Fortran 8.1 9103 whole_archive_flag_spec= 9104 tmp_sharedflag='--shared' ;; 9105 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9106 tmp_sharedflag='-qmkshrobj' 9107 tmp_addflag= ;; 9108 nvcc*) # Cuda Compiler Driver 2.2 9109 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 9110 compiler_needs_object=yes 9111 ;; 9112 esac 9113 case `$CC -V 2>&1 | sed 5q` in 9114 *Sun\ C*) # Sun C 5.9 9115 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 9116 compiler_needs_object=yes 9117 tmp_sharedflag='-G' ;; 9118 *Sun\ F*) # Sun Fortran 8.3 9119 tmp_sharedflag='-G' ;; 9120 esac 9121 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9122 9123 if test "x$supports_anon_versioning" = xyes; then 9124 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9125 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9126 echo "local: *; };" >> $output_objdir/$libname.ver~ 9127 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9128 fi 9129 9130 case $cc_basename in 9131 xlf* | bgf* | bgxlf* | mpixlf*) 9132 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9133 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9134 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9135 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9136 if test "x$supports_anon_versioning" = xyes; then 9137 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9138 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9139 echo "local: *; };" >> $output_objdir/$libname.ver~ 9140 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9141 fi 9142 ;; 9143 esac 9144 else 9145 ld_shlibs=no 9146 fi 9147 ;; 9148 9149 netbsd*) 9150 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9151 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9152 wlarc= 9153 else 9154 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9155 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9156 fi 9157 ;; 9158 9159 solaris*) 9160 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9161 ld_shlibs=no 9162 cat <<_LT_EOF 1>&2 9163 9164*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9165*** create shared libraries on Solaris systems. Therefore, libtool 9166*** is disabling shared libraries support. We urge you to upgrade GNU 9167*** binutils to release 2.9.1 or newer. Another option is to modify 9168*** your PATH or compiler configuration so that the native linker is 9169*** used, and then restart. 9170 9171_LT_EOF 9172 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9173 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9174 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9175 else 9176 ld_shlibs=no 9177 fi 9178 ;; 9179 9180 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9181 case `$LD -v 2>&1` in 9182 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9183 ld_shlibs=no 9184 cat <<_LT_EOF 1>&2 9185 9186*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9187*** reliably create shared libraries on SCO systems. Therefore, libtool 9188*** is disabling shared libraries support. We urge you to upgrade GNU 9189*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9190*** your PATH or compiler configuration so that the native linker is 9191*** used, and then restart. 9192 9193_LT_EOF 9194 ;; 9195 *) 9196 # For security reasons, it is highly recommended that you always 9197 # use absolute paths for naming shared libraries, and exclude the 9198 # DT_RUNPATH tag from executables and libraries. But doing so 9199 # requires that you compile everything twice, which is a pain. 9200 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9201 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9202 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9203 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9204 else 9205 ld_shlibs=no 9206 fi 9207 ;; 9208 esac 9209 ;; 9210 9211 sunos4*) 9212 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9213 wlarc= 9214 hardcode_direct=yes 9215 hardcode_shlibpath_var=no 9216 ;; 9217 9218 *) 9219 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9220 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9221 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9222 else 9223 ld_shlibs=no 9224 fi 9225 ;; 9226 esac 9227 9228 if test "$ld_shlibs" = no; then 9229 runpath_var= 9230 hardcode_libdir_flag_spec= 9231 export_dynamic_flag_spec= 9232 whole_archive_flag_spec= 9233 fi 9234 else 9235 # PORTME fill in a description of your system's linker (not GNU ld) 9236 case $host_os in 9237 aix3*) 9238 allow_undefined_flag=unsupported 9239 always_export_symbols=yes 9240 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 9241 # Note: this linker hardcodes the directories in LIBPATH if there 9242 # are no directories specified by -L. 9243 hardcode_minus_L=yes 9244 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9245 # Neither direct hardcoding nor static linking is supported with a 9246 # broken collect2. 9247 hardcode_direct=unsupported 9248 fi 9249 ;; 9250 9251 aix[4-9]*) 9252 if test "$host_cpu" = ia64; then 9253 # On IA64, the linker does run time linking by default, so we don't 9254 # have to do anything special. 9255 aix_use_runtimelinking=no 9256 exp_sym_flag='-Bexport' 9257 no_entry_flag="" 9258 else 9259 # If we're using GNU nm, then we don't want the "-C" option. 9260 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9261 # Also, AIX nm treats weak defined symbols like other global 9262 # defined symbols, whereas GNU nm marks them as "W". 9263 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9264 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9265 else 9266 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9267 fi 9268 aix_use_runtimelinking=no 9269 9270 # Test if we are trying to use run time linking or normal 9271 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9272 # need to do runtime linking. 9273 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9274 for ld_flag in $LDFLAGS; do 9275 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9276 aix_use_runtimelinking=yes 9277 break 9278 fi 9279 done 9280 ;; 9281 esac 9282 9283 exp_sym_flag='-bexport' 9284 no_entry_flag='-bnoentry' 9285 fi 9286 9287 # When large executables or shared objects are built, AIX ld can 9288 # have problems creating the table of contents. If linking a library 9289 # or program results in "error TOC overflow" add -mminimal-toc to 9290 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9291 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9292 9293 archive_cmds='' 9294 hardcode_direct=yes 9295 hardcode_direct_absolute=yes 9296 hardcode_libdir_separator=':' 9297 link_all_deplibs=yes 9298 file_list_spec='${wl}-f,' 9299 9300 if test "$GCC" = yes; then 9301 case $host_os in aix4.[012]|aix4.[012].*) 9302 # We only want to do this on AIX 4.2 and lower, the check 9303 # below for broken collect2 doesn't work under 4.3+ 9304 collect2name=`${CC} -print-prog-name=collect2` 9305 if test -f "$collect2name" && 9306 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9307 then 9308 # We have reworked collect2 9309 : 9310 else 9311 # We have old collect2 9312 hardcode_direct=unsupported 9313 # It fails to find uninstalled libraries when the uninstalled 9314 # path is not listed in the libpath. Setting hardcode_minus_L 9315 # to unsupported forces relinking 9316 hardcode_minus_L=yes 9317 hardcode_libdir_flag_spec='-L$libdir' 9318 hardcode_libdir_separator= 9319 fi 9320 ;; 9321 esac 9322 shared_flag='-shared' 9323 if test "$aix_use_runtimelinking" = yes; then 9324 shared_flag="$shared_flag "'${wl}-G' 9325 fi 9326 else 9327 # not using gcc 9328 if test "$host_cpu" = ia64; then 9329 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9330 # chokes on -Wl,-G. The following line is correct: 9331 shared_flag='-G' 9332 else 9333 if test "$aix_use_runtimelinking" = yes; then 9334 shared_flag='${wl}-G' 9335 else 9336 shared_flag='${wl}-bM:SRE' 9337 fi 9338 fi 9339 fi 9340 9341 export_dynamic_flag_spec='${wl}-bexpall' 9342 # It seems that -bexpall does not export symbols beginning with 9343 # underscore (_), so it is better to generate a list of symbols to export. 9344 always_export_symbols=yes 9345 if test "$aix_use_runtimelinking" = yes; then 9346 # Warning - without using the other runtime loading flags (-brtl), 9347 # -berok will link without error, but may produce a broken library. 9348 allow_undefined_flag='-berok' 9349 # Determine the default libpath from the value encoded in an 9350 # empty executable. 9351 if test "${lt_cv_aix_libpath+set}" = set; then 9352 aix_libpath=$lt_cv_aix_libpath 9353else 9354 if ${lt_cv_aix_libpath_+:} false; then : 9355 $as_echo_n "(cached) " >&6 9356else 9357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9358/* end confdefs.h. */ 9359 9360int 9361main () 9362{ 9363 9364 ; 9365 return 0; 9366} 9367_ACEOF 9368if ac_fn_c_try_link "$LINENO"; then : 9369 9370 lt_aix_libpath_sed=' 9371 /Import File Strings/,/^$/ { 9372 /^0/ { 9373 s/^0 *\([^ ]*\) *$/\1/ 9374 p 9375 } 9376 }' 9377 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9378 # Check for a 64-bit object if we didn't find anything. 9379 if test -z "$lt_cv_aix_libpath_"; then 9380 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9381 fi 9382fi 9383rm -f core conftest.err conftest.$ac_objext \ 9384 conftest$ac_exeext conftest.$ac_ext 9385 if test -z "$lt_cv_aix_libpath_"; then 9386 lt_cv_aix_libpath_="/usr/lib:/lib" 9387 fi 9388 9389fi 9390 9391 aix_libpath=$lt_cv_aix_libpath_ 9392fi 9393 9394 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9395 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9396 else 9397 if test "$host_cpu" = ia64; then 9398 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9399 allow_undefined_flag="-z nodefs" 9400 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 9401 else 9402 # Determine the default libpath from the value encoded in an 9403 # empty executable. 9404 if test "${lt_cv_aix_libpath+set}" = set; then 9405 aix_libpath=$lt_cv_aix_libpath 9406else 9407 if ${lt_cv_aix_libpath_+:} false; then : 9408 $as_echo_n "(cached) " >&6 9409else 9410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9411/* end confdefs.h. */ 9412 9413int 9414main () 9415{ 9416 9417 ; 9418 return 0; 9419} 9420_ACEOF 9421if ac_fn_c_try_link "$LINENO"; then : 9422 9423 lt_aix_libpath_sed=' 9424 /Import File Strings/,/^$/ { 9425 /^0/ { 9426 s/^0 *\([^ ]*\) *$/\1/ 9427 p 9428 } 9429 }' 9430 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9431 # Check for a 64-bit object if we didn't find anything. 9432 if test -z "$lt_cv_aix_libpath_"; then 9433 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9434 fi 9435fi 9436rm -f core conftest.err conftest.$ac_objext \ 9437 conftest$ac_exeext conftest.$ac_ext 9438 if test -z "$lt_cv_aix_libpath_"; then 9439 lt_cv_aix_libpath_="/usr/lib:/lib" 9440 fi 9441 9442fi 9443 9444 aix_libpath=$lt_cv_aix_libpath_ 9445fi 9446 9447 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9448 # Warning - without using the other run time loading flags, 9449 # -berok will link without error, but may produce a broken library. 9450 no_undefined_flag=' ${wl}-bernotok' 9451 allow_undefined_flag=' ${wl}-berok' 9452 if test "$with_gnu_ld" = yes; then 9453 # We only use this code for GNU lds that support --whole-archive. 9454 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9455 else 9456 # Exported symbols can be pulled into shared objects from archives 9457 whole_archive_flag_spec='$convenience' 9458 fi 9459 archive_cmds_need_lc=yes 9460 # This is similar to how AIX traditionally builds its shared libraries. 9461 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9462 fi 9463 fi 9464 ;; 9465 9466 amigaos*) 9467 case $host_cpu in 9468 powerpc) 9469 # see comment about AmigaOS4 .so support 9470 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9471 archive_expsym_cmds='' 9472 ;; 9473 m68k) 9474 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 9475 hardcode_libdir_flag_spec='-L$libdir' 9476 hardcode_minus_L=yes 9477 ;; 9478 esac 9479 ;; 9480 9481 bsdi[45]*) 9482 export_dynamic_flag_spec=-rdynamic 9483 ;; 9484 9485 cygwin* | mingw* | pw32* | cegcc*) 9486 # When not using gcc, we currently assume that we are using 9487 # Microsoft Visual C++. 9488 # hardcode_libdir_flag_spec is actually meaningless, as there is 9489 # no search path for DLLs. 9490 case $cc_basename in 9491 cl*) 9492 # Native MSVC 9493 hardcode_libdir_flag_spec=' ' 9494 allow_undefined_flag=unsupported 9495 always_export_symbols=yes 9496 file_list_spec='@' 9497 # Tell ltmain to make .lib files, not .a files. 9498 libext=lib 9499 # Tell ltmain to make .dll files, not .so files. 9500 shrext_cmds=".dll" 9501 # FIXME: Setting linknames here is a bad hack. 9502 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9503 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9504 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9505 else 9506 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9507 fi~ 9508 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9509 linknames=' 9510 # The linker will not automatically build a static lib if we build a DLL. 9511 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9512 enable_shared_with_static_runtimes=yes 9513 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9514 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9515 # Don't use ranlib 9516 old_postinstall_cmds='chmod 644 $oldlib' 9517 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9518 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9519 case $lt_outputfile in 9520 *.exe|*.EXE) ;; 9521 *) 9522 lt_outputfile="$lt_outputfile.exe" 9523 lt_tool_outputfile="$lt_tool_outputfile.exe" 9524 ;; 9525 esac~ 9526 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9527 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9528 $RM "$lt_outputfile.manifest"; 9529 fi' 9530 ;; 9531 *) 9532 # Assume MSVC wrapper 9533 hardcode_libdir_flag_spec=' ' 9534 allow_undefined_flag=unsupported 9535 # Tell ltmain to make .lib files, not .a files. 9536 libext=lib 9537 # Tell ltmain to make .dll files, not .so files. 9538 shrext_cmds=".dll" 9539 # FIXME: Setting linknames here is a bad hack. 9540 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9541 # The linker will automatically build a .lib file if we build a DLL. 9542 old_archive_from_new_cmds='true' 9543 # FIXME: Should let the user specify the lib program. 9544 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9545 enable_shared_with_static_runtimes=yes 9546 ;; 9547 esac 9548 ;; 9549 9550 darwin* | rhapsody*) 9551 9552 9553 archive_cmds_need_lc=no 9554 hardcode_direct=no 9555 hardcode_automatic=yes 9556 hardcode_shlibpath_var=unsupported 9557 if test "$lt_cv_ld_force_load" = "yes"; then 9558 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 9559 9560 else 9561 whole_archive_flag_spec='' 9562 fi 9563 link_all_deplibs=yes 9564 allow_undefined_flag="$_lt_dar_allow_undefined" 9565 case $cc_basename in 9566 ifort*) _lt_dar_can_shared=yes ;; 9567 *) _lt_dar_can_shared=$GCC ;; 9568 esac 9569 if test "$_lt_dar_can_shared" = "yes"; then 9570 output_verbose_link_cmd=func_echo_all 9571 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9572 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9573 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 9574 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 9575 9576 else 9577 ld_shlibs=no 9578 fi 9579 9580 ;; 9581 9582 dgux*) 9583 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9584 hardcode_libdir_flag_spec='-L$libdir' 9585 hardcode_shlibpath_var=no 9586 ;; 9587 9588 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9589 # support. Future versions do this automatically, but an explicit c++rt0.o 9590 # does not break anything, and helps significantly (at the cost of a little 9591 # extra space). 9592 freebsd2.2*) 9593 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9594 hardcode_libdir_flag_spec='-R$libdir' 9595 hardcode_direct=yes 9596 hardcode_shlibpath_var=no 9597 ;; 9598 9599 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9600 freebsd2.*) 9601 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9602 hardcode_direct=yes 9603 hardcode_minus_L=yes 9604 hardcode_shlibpath_var=no 9605 ;; 9606 9607 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9608 freebsd* | dragonfly*) 9609 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9610 hardcode_libdir_flag_spec='-R$libdir' 9611 hardcode_direct=yes 9612 hardcode_shlibpath_var=no 9613 ;; 9614 9615 hpux9*) 9616 if test "$GCC" = yes; then 9617 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9618 else 9619 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9620 fi 9621 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9622 hardcode_libdir_separator=: 9623 hardcode_direct=yes 9624 9625 # hardcode_minus_L: Not really in the search PATH, 9626 # but as the default location of the library. 9627 hardcode_minus_L=yes 9628 export_dynamic_flag_spec='${wl}-E' 9629 ;; 9630 9631 hpux10*) 9632 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9633 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9634 else 9635 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9636 fi 9637 if test "$with_gnu_ld" = no; then 9638 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9639 hardcode_libdir_separator=: 9640 hardcode_direct=yes 9641 hardcode_direct_absolute=yes 9642 export_dynamic_flag_spec='${wl}-E' 9643 # hardcode_minus_L: Not really in the search PATH, 9644 # but as the default location of the library. 9645 hardcode_minus_L=yes 9646 fi 9647 ;; 9648 9649 hpux11*) 9650 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9651 case $host_cpu in 9652 hppa*64*) 9653 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9654 ;; 9655 ia64*) 9656 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9657 ;; 9658 *) 9659 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9660 ;; 9661 esac 9662 else 9663 case $host_cpu in 9664 hppa*64*) 9665 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9666 ;; 9667 ia64*) 9668 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9669 ;; 9670 *) 9671 9672 # Older versions of the 11.00 compiler do not understand -b yet 9673 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9675$as_echo_n "checking if $CC understands -b... " >&6; } 9676if ${lt_cv_prog_compiler__b+:} false; then : 9677 $as_echo_n "(cached) " >&6 9678else 9679 lt_cv_prog_compiler__b=no 9680 save_LDFLAGS="$LDFLAGS" 9681 LDFLAGS="$LDFLAGS -b" 9682 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9683 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9684 # The linker can only warn and ignore the option if not recognized 9685 # So say no if there are warnings 9686 if test -s conftest.err; then 9687 # Append any errors to the config.log. 9688 cat conftest.err 1>&5 9689 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9690 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9691 if diff conftest.exp conftest.er2 >/dev/null; then 9692 lt_cv_prog_compiler__b=yes 9693 fi 9694 else 9695 lt_cv_prog_compiler__b=yes 9696 fi 9697 fi 9698 $RM -r conftest* 9699 LDFLAGS="$save_LDFLAGS" 9700 9701fi 9702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9703$as_echo "$lt_cv_prog_compiler__b" >&6; } 9704 9705if test x"$lt_cv_prog_compiler__b" = xyes; then 9706 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9707else 9708 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9709fi 9710 9711 ;; 9712 esac 9713 fi 9714 if test "$with_gnu_ld" = no; then 9715 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9716 hardcode_libdir_separator=: 9717 9718 case $host_cpu in 9719 hppa*64*|ia64*) 9720 hardcode_direct=no 9721 hardcode_shlibpath_var=no 9722 ;; 9723 *) 9724 hardcode_direct=yes 9725 hardcode_direct_absolute=yes 9726 export_dynamic_flag_spec='${wl}-E' 9727 9728 # hardcode_minus_L: Not really in the search PATH, 9729 # but as the default location of the library. 9730 hardcode_minus_L=yes 9731 ;; 9732 esac 9733 fi 9734 ;; 9735 9736 irix5* | irix6* | nonstopux*) 9737 if test "$GCC" = yes; then 9738 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9739 # Try to use the -exported_symbol ld option, if it does not 9740 # work, assume that -exports_file does not work either and 9741 # implicitly export all symbols. 9742 # This should be the same for all languages, so no per-tag cache variable. 9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9744$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9745if ${lt_cv_irix_exported_symbol+:} false; then : 9746 $as_echo_n "(cached) " >&6 9747else 9748 save_LDFLAGS="$LDFLAGS" 9749 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9751/* end confdefs.h. */ 9752int foo (void) { return 0; } 9753_ACEOF 9754if ac_fn_c_try_link "$LINENO"; then : 9755 lt_cv_irix_exported_symbol=yes 9756else 9757 lt_cv_irix_exported_symbol=no 9758fi 9759rm -f core conftest.err conftest.$ac_objext \ 9760 conftest$ac_exeext conftest.$ac_ext 9761 LDFLAGS="$save_LDFLAGS" 9762fi 9763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9764$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9765 if test "$lt_cv_irix_exported_symbol" = yes; then 9766 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 9767 fi 9768 else 9769 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 9770 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 9771 fi 9772 archive_cmds_need_lc='no' 9773 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9774 hardcode_libdir_separator=: 9775 inherit_rpath=yes 9776 link_all_deplibs=yes 9777 ;; 9778 9779 netbsd*) 9780 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9781 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9782 else 9783 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9784 fi 9785 hardcode_libdir_flag_spec='-R$libdir' 9786 hardcode_direct=yes 9787 hardcode_shlibpath_var=no 9788 ;; 9789 9790 newsos6) 9791 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9792 hardcode_direct=yes 9793 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9794 hardcode_libdir_separator=: 9795 hardcode_shlibpath_var=no 9796 ;; 9797 9798 *nto* | *qnx*) 9799 ;; 9800 9801 openbsd*) 9802 if test -f /usr/libexec/ld.so; then 9803 hardcode_direct=yes 9804 hardcode_shlibpath_var=no 9805 hardcode_direct_absolute=yes 9806 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9807 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9808 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9809 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9810 export_dynamic_flag_spec='${wl}-E' 9811 else 9812 case $host_os in 9813 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9814 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9815 hardcode_libdir_flag_spec='-R$libdir' 9816 ;; 9817 *) 9818 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9819 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9820 ;; 9821 esac 9822 fi 9823 else 9824 ld_shlibs=no 9825 fi 9826 ;; 9827 9828 os2*) 9829 hardcode_libdir_flag_spec='-L$libdir' 9830 hardcode_minus_L=yes 9831 allow_undefined_flag=unsupported 9832 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 9833 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9834 ;; 9835 9836 osf3*) 9837 if test "$GCC" = yes; then 9838 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9839 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9840 else 9841 allow_undefined_flag=' -expect_unresolved \*' 9842 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 9843 fi 9844 archive_cmds_need_lc='no' 9845 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9846 hardcode_libdir_separator=: 9847 ;; 9848 9849 osf4* | osf5*) # as osf3* with the addition of -msym flag 9850 if test "$GCC" = yes; then 9851 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9852 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9853 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9854 else 9855 allow_undefined_flag=' -expect_unresolved \*' 9856 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 9857 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 9858 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 9859 9860 # Both c and cxx compiler support -rpath directly 9861 hardcode_libdir_flag_spec='-rpath $libdir' 9862 fi 9863 archive_cmds_need_lc='no' 9864 hardcode_libdir_separator=: 9865 ;; 9866 9867 solaris*) 9868 no_undefined_flag=' -z defs' 9869 if test "$GCC" = yes; then 9870 wlarc='${wl}' 9871 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9872 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9873 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9874 else 9875 case `$CC -V 2>&1` in 9876 *"Compilers 5.0"*) 9877 wlarc='' 9878 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9879 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9880 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9881 ;; 9882 *) 9883 wlarc='${wl}' 9884 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9885 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9886 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9887 ;; 9888 esac 9889 fi 9890 hardcode_libdir_flag_spec='-R$libdir' 9891 hardcode_shlibpath_var=no 9892 case $host_os in 9893 solaris2.[0-5] | solaris2.[0-5].*) ;; 9894 *) 9895 # The compiler driver will combine and reorder linker options, 9896 # but understands `-z linker_flag'. GCC discards it without `$wl', 9897 # but is careful enough not to reorder. 9898 # Supported since Solaris 2.6 (maybe 2.5.1?) 9899 if test "$GCC" = yes; then 9900 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9901 else 9902 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9903 fi 9904 ;; 9905 esac 9906 link_all_deplibs=yes 9907 ;; 9908 9909 sunos4*) 9910 if test "x$host_vendor" = xsequent; then 9911 # Use $CC to link under sequent, because it throws in some extra .o 9912 # files that make .init and .fini sections work. 9913 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9914 else 9915 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9916 fi 9917 hardcode_libdir_flag_spec='-L$libdir' 9918 hardcode_direct=yes 9919 hardcode_minus_L=yes 9920 hardcode_shlibpath_var=no 9921 ;; 9922 9923 sysv4) 9924 case $host_vendor in 9925 sni) 9926 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9927 hardcode_direct=yes # is this really true??? 9928 ;; 9929 siemens) 9930 ## LD is ld it makes a PLAMLIB 9931 ## CC just makes a GrossModule. 9932 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9933 reload_cmds='$CC -r -o $output$reload_objs' 9934 hardcode_direct=no 9935 ;; 9936 motorola) 9937 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9938 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9939 ;; 9940 esac 9941 runpath_var='LD_RUN_PATH' 9942 hardcode_shlibpath_var=no 9943 ;; 9944 9945 sysv4.3*) 9946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9947 hardcode_shlibpath_var=no 9948 export_dynamic_flag_spec='-Bexport' 9949 ;; 9950 9951 sysv4*MP*) 9952 if test -d /usr/nec; then 9953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9954 hardcode_shlibpath_var=no 9955 runpath_var=LD_RUN_PATH 9956 hardcode_runpath_var=yes 9957 ld_shlibs=yes 9958 fi 9959 ;; 9960 9961 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9962 no_undefined_flag='${wl}-z,text' 9963 archive_cmds_need_lc=no 9964 hardcode_shlibpath_var=no 9965 runpath_var='LD_RUN_PATH' 9966 9967 if test "$GCC" = yes; then 9968 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9969 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9970 else 9971 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9972 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9973 fi 9974 ;; 9975 9976 sysv5* | sco3.2v5* | sco5v6*) 9977 # Note: We can NOT use -z defs as we might desire, because we do not 9978 # link with -lc, and that would cause any symbols used from libc to 9979 # always be unresolved, which means just about no library would 9980 # ever link correctly. If we're not using GNU ld we use -z text 9981 # though, which does catch some bad symbols but isn't as heavy-handed 9982 # as -z defs. 9983 no_undefined_flag='${wl}-z,text' 9984 allow_undefined_flag='${wl}-z,nodefs' 9985 archive_cmds_need_lc=no 9986 hardcode_shlibpath_var=no 9987 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9988 hardcode_libdir_separator=':' 9989 link_all_deplibs=yes 9990 export_dynamic_flag_spec='${wl}-Bexport' 9991 runpath_var='LD_RUN_PATH' 9992 9993 if test "$GCC" = yes; then 9994 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9995 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9996 else 9997 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9998 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9999 fi 10000 ;; 10001 10002 uts4*) 10003 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10004 hardcode_libdir_flag_spec='-L$libdir' 10005 hardcode_shlibpath_var=no 10006 ;; 10007 10008 *) 10009 ld_shlibs=no 10010 ;; 10011 esac 10012 10013 if test x$host_vendor = xsni; then 10014 case $host in 10015 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10016 export_dynamic_flag_spec='${wl}-Blargedynsym' 10017 ;; 10018 esac 10019 fi 10020 fi 10021 10022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10023$as_echo "$ld_shlibs" >&6; } 10024test "$ld_shlibs" = no && can_build_shared=no 10025 10026with_gnu_ld=$with_gnu_ld 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042# 10043# Do we need to explicitly link libc? 10044# 10045case "x$archive_cmds_need_lc" in 10046x|xyes) 10047 # Assume -lc should be added 10048 archive_cmds_need_lc=yes 10049 10050 if test "$enable_shared" = yes && test "$GCC" = yes; then 10051 case $archive_cmds in 10052 *'~'*) 10053 # FIXME: we may have to deal with multi-command sequences. 10054 ;; 10055 '$CC '*) 10056 # Test whether the compiler implicitly links with -lc since on some 10057 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10058 # to ld, don't add -lc before -lgcc. 10059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10060$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10061if ${lt_cv_archive_cmds_need_lc+:} false; then : 10062 $as_echo_n "(cached) " >&6 10063else 10064 $RM conftest* 10065 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10066 10067 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10068 (eval $ac_compile) 2>&5 10069 ac_status=$? 10070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10071 test $ac_status = 0; } 2>conftest.err; then 10072 soname=conftest 10073 lib=conftest 10074 libobjs=conftest.$ac_objext 10075 deplibs= 10076 wl=$lt_prog_compiler_wl 10077 pic_flag=$lt_prog_compiler_pic 10078 compiler_flags=-v 10079 linker_flags=-v 10080 verstring= 10081 output_objdir=. 10082 libname=conftest 10083 lt_save_allow_undefined_flag=$allow_undefined_flag 10084 allow_undefined_flag= 10085 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10086 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10087 ac_status=$? 10088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10089 test $ac_status = 0; } 10090 then 10091 lt_cv_archive_cmds_need_lc=no 10092 else 10093 lt_cv_archive_cmds_need_lc=yes 10094 fi 10095 allow_undefined_flag=$lt_save_allow_undefined_flag 10096 else 10097 cat conftest.err 1>&5 10098 fi 10099 $RM conftest* 10100 10101fi 10102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10103$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10104 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10105 ;; 10106 esac 10107 fi 10108 ;; 10109esac 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10263$as_echo_n "checking dynamic linker characteristics... " >&6; } 10264 10265if test "$GCC" = yes; then 10266 case $host_os in 10267 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10268 *) lt_awk_arg="/^libraries:/" ;; 10269 esac 10270 case $host_os in 10271 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10272 *) lt_sed_strip_eq="s,=/,/,g" ;; 10273 esac 10274 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10275 case $lt_search_path_spec in 10276 *\;*) 10277 # if the path contains ";" then we assume it to be the separator 10278 # otherwise default to the standard path separator (i.e. ":") - it is 10279 # assumed that no part of a normal pathname contains ";" but that should 10280 # okay in the real world where ";" in dirpaths is itself problematic. 10281 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10282 ;; 10283 *) 10284 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10285 ;; 10286 esac 10287 # Ok, now we have the path, separated by spaces, we can step through it 10288 # and add multilib dir if necessary. 10289 lt_tmp_lt_search_path_spec= 10290 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10291 for lt_sys_path in $lt_search_path_spec; do 10292 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10293 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10294 else 10295 test -d "$lt_sys_path" && \ 10296 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10297 fi 10298 done 10299 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10300BEGIN {RS=" "; FS="/|\n";} { 10301 lt_foo=""; 10302 lt_count=0; 10303 for (lt_i = NF; lt_i > 0; lt_i--) { 10304 if ($lt_i != "" && $lt_i != ".") { 10305 if ($lt_i == "..") { 10306 lt_count++; 10307 } else { 10308 if (lt_count == 0) { 10309 lt_foo="/" $lt_i lt_foo; 10310 } else { 10311 lt_count--; 10312 } 10313 } 10314 } 10315 } 10316 if (lt_foo != "") { lt_freq[lt_foo]++; } 10317 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10318}'` 10319 # AWK program above erroneously prepends '/' to C:/dos/paths 10320 # for these hosts. 10321 case $host_os in 10322 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10323 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10324 esac 10325 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10326else 10327 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10328fi 10329library_names_spec= 10330libname_spec='lib$name' 10331soname_spec= 10332shrext_cmds=".so" 10333postinstall_cmds= 10334postuninstall_cmds= 10335finish_cmds= 10336finish_eval= 10337shlibpath_var= 10338shlibpath_overrides_runpath=unknown 10339version_type=none 10340dynamic_linker="$host_os ld.so" 10341sys_lib_dlsearch_path_spec="/lib /usr/lib" 10342need_lib_prefix=unknown 10343hardcode_into_libs=no 10344 10345# when you set need_version to no, make sure it does not cause -set_version 10346# flags to be left without arguments 10347need_version=unknown 10348 10349case $host_os in 10350aix3*) 10351 version_type=linux # correct to gnu/linux during the next big refactor 10352 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10353 shlibpath_var=LIBPATH 10354 10355 # AIX 3 has no versioning support, so we append a major version to the name. 10356 soname_spec='${libname}${release}${shared_ext}$major' 10357 ;; 10358 10359aix[4-9]*) 10360 version_type=linux # correct to gnu/linux during the next big refactor 10361 need_lib_prefix=no 10362 need_version=no 10363 hardcode_into_libs=yes 10364 if test "$host_cpu" = ia64; then 10365 # AIX 5 supports IA64 10366 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10367 shlibpath_var=LD_LIBRARY_PATH 10368 else 10369 # With GCC up to 2.95.x, collect2 would create an import file 10370 # for dependence libraries. The import file would start with 10371 # the line `#! .'. This would cause the generated library to 10372 # depend on `.', always an invalid library. This was fixed in 10373 # development snapshots of GCC prior to 3.0. 10374 case $host_os in 10375 aix4 | aix4.[01] | aix4.[01].*) 10376 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10377 echo ' yes ' 10378 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10379 : 10380 else 10381 can_build_shared=no 10382 fi 10383 ;; 10384 esac 10385 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10386 # soname into executable. Probably we can add versioning support to 10387 # collect2, so additional links can be useful in future. 10388 if test "$aix_use_runtimelinking" = yes; then 10389 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10390 # instead of lib<name>.a to let people know that these are not 10391 # typical AIX shared libraries. 10392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10393 else 10394 # We preserve .a as extension for shared libraries through AIX4.2 10395 # and later when we are not doing run time linking. 10396 library_names_spec='${libname}${release}.a $libname.a' 10397 soname_spec='${libname}${release}${shared_ext}$major' 10398 fi 10399 shlibpath_var=LIBPATH 10400 fi 10401 ;; 10402 10403amigaos*) 10404 case $host_cpu in 10405 powerpc) 10406 # Since July 2007 AmigaOS4 officially supports .so libraries. 10407 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10409 ;; 10410 m68k) 10411 library_names_spec='$libname.ixlibrary $libname.a' 10412 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10413 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10414 ;; 10415 esac 10416 ;; 10417 10418beos*) 10419 library_names_spec='${libname}${shared_ext}' 10420 dynamic_linker="$host_os ld.so" 10421 shlibpath_var=LIBRARY_PATH 10422 ;; 10423 10424bsdi[45]*) 10425 version_type=linux # correct to gnu/linux during the next big refactor 10426 need_version=no 10427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10428 soname_spec='${libname}${release}${shared_ext}$major' 10429 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10430 shlibpath_var=LD_LIBRARY_PATH 10431 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10432 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10433 # the default ld.so.conf also contains /usr/contrib/lib and 10434 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10435 # libtool to hard-code these into programs 10436 ;; 10437 10438cygwin* | mingw* | pw32* | cegcc*) 10439 version_type=windows 10440 shrext_cmds=".dll" 10441 need_version=no 10442 need_lib_prefix=no 10443 10444 case $GCC,$cc_basename in 10445 yes,*) 10446 # gcc 10447 library_names_spec='$libname.dll.a' 10448 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10449 postinstall_cmds='base_file=`basename \${file}`~ 10450 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10451 dldir=$destdir/`dirname \$dlpath`~ 10452 test -d \$dldir || mkdir -p \$dldir~ 10453 $install_prog $dir/$dlname \$dldir/$dlname~ 10454 chmod a+x \$dldir/$dlname~ 10455 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10456 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10457 fi' 10458 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10459 dlpath=$dir/\$dldll~ 10460 $RM \$dlpath' 10461 shlibpath_overrides_runpath=yes 10462 10463 case $host_os in 10464 cygwin*) 10465 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10466 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10467 10468 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10469 ;; 10470 mingw* | cegcc*) 10471 # MinGW DLLs use traditional 'lib' prefix 10472 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10473 ;; 10474 pw32*) 10475 # pw32 DLLs use 'pw' prefix rather than 'lib' 10476 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10477 ;; 10478 esac 10479 dynamic_linker='Win32 ld.exe' 10480 ;; 10481 10482 *,cl*) 10483 # Native MSVC 10484 libname_spec='$name' 10485 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10486 library_names_spec='${libname}.dll.lib' 10487 10488 case $build_os in 10489 mingw*) 10490 sys_lib_search_path_spec= 10491 lt_save_ifs=$IFS 10492 IFS=';' 10493 for lt_path in $LIB 10494 do 10495 IFS=$lt_save_ifs 10496 # Let DOS variable expansion print the short 8.3 style file name. 10497 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10498 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10499 done 10500 IFS=$lt_save_ifs 10501 # Convert to MSYS style. 10502 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10503 ;; 10504 cygwin*) 10505 # Convert to unix form, then to dos form, then back to unix form 10506 # but this time dos style (no spaces!) so that the unix form looks 10507 # like /cygdrive/c/PROGRA~1:/cygdr... 10508 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10509 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10510 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10511 ;; 10512 *) 10513 sys_lib_search_path_spec="$LIB" 10514 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10515 # It is most probably a Windows format PATH. 10516 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10517 else 10518 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10519 fi 10520 # FIXME: find the short name or the path components, as spaces are 10521 # common. (e.g. "Program Files" -> "PROGRA~1") 10522 ;; 10523 esac 10524 10525 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10526 postinstall_cmds='base_file=`basename \${file}`~ 10527 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10528 dldir=$destdir/`dirname \$dlpath`~ 10529 test -d \$dldir || mkdir -p \$dldir~ 10530 $install_prog $dir/$dlname \$dldir/$dlname' 10531 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10532 dlpath=$dir/\$dldll~ 10533 $RM \$dlpath' 10534 shlibpath_overrides_runpath=yes 10535 dynamic_linker='Win32 link.exe' 10536 ;; 10537 10538 *) 10539 # Assume MSVC wrapper 10540 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10541 dynamic_linker='Win32 ld.exe' 10542 ;; 10543 esac 10544 # FIXME: first we should search . and the directory the executable is in 10545 shlibpath_var=PATH 10546 ;; 10547 10548darwin* | rhapsody*) 10549 dynamic_linker="$host_os dyld" 10550 version_type=darwin 10551 need_lib_prefix=no 10552 need_version=no 10553 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10554 soname_spec='${libname}${release}${major}$shared_ext' 10555 shlibpath_overrides_runpath=yes 10556 shlibpath_var=DYLD_LIBRARY_PATH 10557 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10558 10559 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10560 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10561 ;; 10562 10563dgux*) 10564 version_type=linux # correct to gnu/linux during the next big refactor 10565 need_lib_prefix=no 10566 need_version=no 10567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10568 soname_spec='${libname}${release}${shared_ext}$major' 10569 shlibpath_var=LD_LIBRARY_PATH 10570 ;; 10571 10572freebsd* | dragonfly*) 10573 # DragonFly does not have aout. When/if they implement a new 10574 # versioning mechanism, adjust this. 10575 if test -x /usr/bin/objformat; then 10576 objformat=`/usr/bin/objformat` 10577 else 10578 case $host_os in 10579 freebsd[23].*) objformat=aout ;; 10580 *) objformat=elf ;; 10581 esac 10582 fi 10583 version_type=freebsd-$objformat 10584 case $version_type in 10585 freebsd-elf*) 10586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10587 need_version=no 10588 need_lib_prefix=no 10589 ;; 10590 freebsd-*) 10591 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10592 need_version=yes 10593 ;; 10594 esac 10595 shlibpath_var=LD_LIBRARY_PATH 10596 case $host_os in 10597 freebsd2.*) 10598 shlibpath_overrides_runpath=yes 10599 ;; 10600 freebsd3.[01]* | freebsdelf3.[01]*) 10601 shlibpath_overrides_runpath=yes 10602 hardcode_into_libs=yes 10603 ;; 10604 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10605 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10606 shlibpath_overrides_runpath=no 10607 hardcode_into_libs=yes 10608 ;; 10609 *) # from 4.6 on, and DragonFly 10610 shlibpath_overrides_runpath=yes 10611 hardcode_into_libs=yes 10612 ;; 10613 esac 10614 ;; 10615 10616gnu*) 10617 version_type=linux # correct to gnu/linux during the next big refactor 10618 need_lib_prefix=no 10619 need_version=no 10620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10621 soname_spec='${libname}${release}${shared_ext}$major' 10622 shlibpath_var=LD_LIBRARY_PATH 10623 shlibpath_overrides_runpath=no 10624 hardcode_into_libs=yes 10625 ;; 10626 10627haiku*) 10628 version_type=linux # correct to gnu/linux during the next big refactor 10629 need_lib_prefix=no 10630 need_version=no 10631 dynamic_linker="$host_os runtime_loader" 10632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10633 soname_spec='${libname}${release}${shared_ext}$major' 10634 shlibpath_var=LIBRARY_PATH 10635 shlibpath_overrides_runpath=yes 10636 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10637 hardcode_into_libs=yes 10638 ;; 10639 10640hpux9* | hpux10* | hpux11*) 10641 # Give a soname corresponding to the major version so that dld.sl refuses to 10642 # link against other versions. 10643 version_type=sunos 10644 need_lib_prefix=no 10645 need_version=no 10646 case $host_cpu in 10647 ia64*) 10648 shrext_cmds='.so' 10649 hardcode_into_libs=yes 10650 dynamic_linker="$host_os dld.so" 10651 shlibpath_var=LD_LIBRARY_PATH 10652 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10654 soname_spec='${libname}${release}${shared_ext}$major' 10655 if test "X$HPUX_IA64_MODE" = X32; then 10656 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10657 else 10658 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10659 fi 10660 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10661 ;; 10662 hppa*64*) 10663 shrext_cmds='.sl' 10664 hardcode_into_libs=yes 10665 dynamic_linker="$host_os dld.sl" 10666 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10667 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10669 soname_spec='${libname}${release}${shared_ext}$major' 10670 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10671 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10672 ;; 10673 *) 10674 shrext_cmds='.sl' 10675 dynamic_linker="$host_os dld.sl" 10676 shlibpath_var=SHLIB_PATH 10677 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10679 soname_spec='${libname}${release}${shared_ext}$major' 10680 ;; 10681 esac 10682 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10683 postinstall_cmds='chmod 555 $lib' 10684 # or fails outright, so override atomically: 10685 install_override_mode=555 10686 ;; 10687 10688interix[3-9]*) 10689 version_type=linux # correct to gnu/linux during the next big refactor 10690 need_lib_prefix=no 10691 need_version=no 10692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10693 soname_spec='${libname}${release}${shared_ext}$major' 10694 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10695 shlibpath_var=LD_LIBRARY_PATH 10696 shlibpath_overrides_runpath=no 10697 hardcode_into_libs=yes 10698 ;; 10699 10700irix5* | irix6* | nonstopux*) 10701 case $host_os in 10702 nonstopux*) version_type=nonstopux ;; 10703 *) 10704 if test "$lt_cv_prog_gnu_ld" = yes; then 10705 version_type=linux # correct to gnu/linux during the next big refactor 10706 else 10707 version_type=irix 10708 fi ;; 10709 esac 10710 need_lib_prefix=no 10711 need_version=no 10712 soname_spec='${libname}${release}${shared_ext}$major' 10713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10714 case $host_os in 10715 irix5* | nonstopux*) 10716 libsuff= shlibsuff= 10717 ;; 10718 *) 10719 case $LD in # libtool.m4 will add one of these switches to LD 10720 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10721 libsuff= shlibsuff= libmagic=32-bit;; 10722 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10723 libsuff=32 shlibsuff=N32 libmagic=N32;; 10724 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10725 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10726 *) libsuff= shlibsuff= libmagic=never-match;; 10727 esac 10728 ;; 10729 esac 10730 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10731 shlibpath_overrides_runpath=no 10732 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10733 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10734 hardcode_into_libs=yes 10735 ;; 10736 10737# No shared lib support for Linux oldld, aout, or coff. 10738linux*oldld* | linux*aout* | linux*coff*) 10739 dynamic_linker=no 10740 ;; 10741 10742# This must be glibc/ELF. 10743linux* | k*bsd*-gnu | kopensolaris*-gnu) 10744 version_type=linux # correct to gnu/linux during the next big refactor 10745 need_lib_prefix=no 10746 need_version=no 10747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10748 soname_spec='${libname}${release}${shared_ext}$major' 10749 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10750 shlibpath_var=LD_LIBRARY_PATH 10751 shlibpath_overrides_runpath=no 10752 10753 # Some binutils ld are patched to set DT_RUNPATH 10754 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10755 $as_echo_n "(cached) " >&6 10756else 10757 lt_cv_shlibpath_overrides_runpath=no 10758 save_LDFLAGS=$LDFLAGS 10759 save_libdir=$libdir 10760 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10761 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10763/* end confdefs.h. */ 10764 10765int 10766main () 10767{ 10768 10769 ; 10770 return 0; 10771} 10772_ACEOF 10773if ac_fn_c_try_link "$LINENO"; then : 10774 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10775 lt_cv_shlibpath_overrides_runpath=yes 10776fi 10777fi 10778rm -f core conftest.err conftest.$ac_objext \ 10779 conftest$ac_exeext conftest.$ac_ext 10780 LDFLAGS=$save_LDFLAGS 10781 libdir=$save_libdir 10782 10783fi 10784 10785 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10786 10787 # This implies no fast_install, which is unacceptable. 10788 # Some rework will be needed to allow for fast_install 10789 # before this can be enabled. 10790 hardcode_into_libs=yes 10791 10792 # Append ld.so.conf contents to the search path 10793 if test -f /etc/ld.so.conf; then 10794 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 10795 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10796 fi 10797 10798 # We used to test for /lib/ld.so.1 and disable shared libraries on 10799 # powerpc, because MkLinux only supported shared libraries with the 10800 # GNU dynamic linker. Since this was broken with cross compilers, 10801 # most powerpc-linux boxes support dynamic linking these days and 10802 # people can always --disable-shared, the test was removed, and we 10803 # assume the GNU/Linux dynamic linker is in use. 10804 dynamic_linker='GNU/Linux ld.so' 10805 ;; 10806 10807netbsd*) 10808 version_type=sunos 10809 need_lib_prefix=no 10810 need_version=no 10811 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10813 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10814 dynamic_linker='NetBSD (a.out) ld.so' 10815 else 10816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10817 soname_spec='${libname}${release}${shared_ext}$major' 10818 dynamic_linker='NetBSD ld.elf_so' 10819 fi 10820 shlibpath_var=LD_LIBRARY_PATH 10821 shlibpath_overrides_runpath=yes 10822 hardcode_into_libs=yes 10823 ;; 10824 10825newsos6) 10826 version_type=linux # correct to gnu/linux during the next big refactor 10827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10828 shlibpath_var=LD_LIBRARY_PATH 10829 shlibpath_overrides_runpath=yes 10830 ;; 10831 10832*nto* | *qnx*) 10833 version_type=qnx 10834 need_lib_prefix=no 10835 need_version=no 10836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10837 soname_spec='${libname}${release}${shared_ext}$major' 10838 shlibpath_var=LD_LIBRARY_PATH 10839 shlibpath_overrides_runpath=no 10840 hardcode_into_libs=yes 10841 dynamic_linker='ldqnx.so' 10842 ;; 10843 10844openbsd*) 10845 version_type=sunos 10846 sys_lib_dlsearch_path_spec="/usr/lib" 10847 need_lib_prefix=no 10848 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10849 case $host_os in 10850 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10851 *) need_version=no ;; 10852 esac 10853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10854 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10855 shlibpath_var=LD_LIBRARY_PATH 10856 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10857 case $host_os in 10858 openbsd2.[89] | openbsd2.[89].*) 10859 shlibpath_overrides_runpath=no 10860 ;; 10861 *) 10862 shlibpath_overrides_runpath=yes 10863 ;; 10864 esac 10865 else 10866 shlibpath_overrides_runpath=yes 10867 fi 10868 ;; 10869 10870os2*) 10871 libname_spec='$name' 10872 shrext_cmds=".dll" 10873 need_lib_prefix=no 10874 library_names_spec='$libname${shared_ext} $libname.a' 10875 dynamic_linker='OS/2 ld.exe' 10876 shlibpath_var=LIBPATH 10877 ;; 10878 10879osf3* | osf4* | osf5*) 10880 version_type=osf 10881 need_lib_prefix=no 10882 need_version=no 10883 soname_spec='${libname}${release}${shared_ext}$major' 10884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10885 shlibpath_var=LD_LIBRARY_PATH 10886 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10887 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10888 ;; 10889 10890rdos*) 10891 dynamic_linker=no 10892 ;; 10893 10894solaris*) 10895 version_type=linux # correct to gnu/linux during the next big refactor 10896 need_lib_prefix=no 10897 need_version=no 10898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10899 soname_spec='${libname}${release}${shared_ext}$major' 10900 shlibpath_var=LD_LIBRARY_PATH 10901 shlibpath_overrides_runpath=yes 10902 hardcode_into_libs=yes 10903 # ldd complains unless libraries are executable 10904 postinstall_cmds='chmod +x $lib' 10905 ;; 10906 10907sunos4*) 10908 version_type=sunos 10909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10910 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10911 shlibpath_var=LD_LIBRARY_PATH 10912 shlibpath_overrides_runpath=yes 10913 if test "$with_gnu_ld" = yes; then 10914 need_lib_prefix=no 10915 fi 10916 need_version=yes 10917 ;; 10918 10919sysv4 | sysv4.3*) 10920 version_type=linux # correct to gnu/linux during the next big refactor 10921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10922 soname_spec='${libname}${release}${shared_ext}$major' 10923 shlibpath_var=LD_LIBRARY_PATH 10924 case $host_vendor in 10925 sni) 10926 shlibpath_overrides_runpath=no 10927 need_lib_prefix=no 10928 runpath_var=LD_RUN_PATH 10929 ;; 10930 siemens) 10931 need_lib_prefix=no 10932 ;; 10933 motorola) 10934 need_lib_prefix=no 10935 need_version=no 10936 shlibpath_overrides_runpath=no 10937 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10938 ;; 10939 esac 10940 ;; 10941 10942sysv4*MP*) 10943 if test -d /usr/nec ;then 10944 version_type=linux # correct to gnu/linux during the next big refactor 10945 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10946 soname_spec='$libname${shared_ext}.$major' 10947 shlibpath_var=LD_LIBRARY_PATH 10948 fi 10949 ;; 10950 10951sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10952 version_type=freebsd-elf 10953 need_lib_prefix=no 10954 need_version=no 10955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10956 soname_spec='${libname}${release}${shared_ext}$major' 10957 shlibpath_var=LD_LIBRARY_PATH 10958 shlibpath_overrides_runpath=yes 10959 hardcode_into_libs=yes 10960 if test "$with_gnu_ld" = yes; then 10961 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10962 else 10963 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10964 case $host_os in 10965 sco3.2v5*) 10966 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10967 ;; 10968 esac 10969 fi 10970 sys_lib_dlsearch_path_spec='/usr/lib' 10971 ;; 10972 10973tpf*) 10974 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10975 version_type=linux # correct to gnu/linux during the next big refactor 10976 need_lib_prefix=no 10977 need_version=no 10978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10979 shlibpath_var=LD_LIBRARY_PATH 10980 shlibpath_overrides_runpath=no 10981 hardcode_into_libs=yes 10982 ;; 10983 10984uts4*) 10985 version_type=linux # correct to gnu/linux during the next big refactor 10986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10987 soname_spec='${libname}${release}${shared_ext}$major' 10988 shlibpath_var=LD_LIBRARY_PATH 10989 ;; 10990 10991*) 10992 dynamic_linker=no 10993 ;; 10994esac 10995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10996$as_echo "$dynamic_linker" >&6; } 10997test "$dynamic_linker" = no && can_build_shared=no 10998 10999variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11000if test "$GCC" = yes; then 11001 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11002fi 11003 11004if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11005 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11006fi 11007if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11008 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11009fi 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11103$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11104hardcode_action= 11105if test -n "$hardcode_libdir_flag_spec" || 11106 test -n "$runpath_var" || 11107 test "X$hardcode_automatic" = "Xyes" ; then 11108 11109 # We can hardcode non-existent directories. 11110 if test "$hardcode_direct" != no && 11111 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11112 # have to relink, otherwise we might link with an installed library 11113 # when we should be linking with a yet-to-be-installed one 11114 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11115 test "$hardcode_minus_L" != no; then 11116 # Linking always hardcodes the temporary library directory. 11117 hardcode_action=relink 11118 else 11119 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11120 hardcode_action=immediate 11121 fi 11122else 11123 # We cannot hardcode anything, or else we can only hardcode existing 11124 # directories. 11125 hardcode_action=unsupported 11126fi 11127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11128$as_echo "$hardcode_action" >&6; } 11129 11130if test "$hardcode_action" = relink || 11131 test "$inherit_rpath" = yes; then 11132 # Fast installation is not supported 11133 enable_fast_install=no 11134elif test "$shlibpath_overrides_runpath" = yes || 11135 test "$enable_shared" = no; then 11136 # Fast installation is not necessary 11137 enable_fast_install=needless 11138fi 11139 11140 11141 11142 11143 11144 11145 if test "x$enable_dlopen" != xyes; then 11146 enable_dlopen=unknown 11147 enable_dlopen_self=unknown 11148 enable_dlopen_self_static=unknown 11149else 11150 lt_cv_dlopen=no 11151 lt_cv_dlopen_libs= 11152 11153 case $host_os in 11154 beos*) 11155 lt_cv_dlopen="load_add_on" 11156 lt_cv_dlopen_libs= 11157 lt_cv_dlopen_self=yes 11158 ;; 11159 11160 mingw* | pw32* | cegcc*) 11161 lt_cv_dlopen="LoadLibrary" 11162 lt_cv_dlopen_libs= 11163 ;; 11164 11165 cygwin*) 11166 lt_cv_dlopen="dlopen" 11167 lt_cv_dlopen_libs= 11168 ;; 11169 11170 darwin*) 11171 # if libdl is installed we need to link against it 11172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11173$as_echo_n "checking for dlopen in -ldl... " >&6; } 11174if ${ac_cv_lib_dl_dlopen+:} false; then : 11175 $as_echo_n "(cached) " >&6 11176else 11177 ac_check_lib_save_LIBS=$LIBS 11178LIBS="-ldl $LIBS" 11179cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11180/* end confdefs.h. */ 11181 11182/* Override any GCC internal prototype to avoid an error. 11183 Use char because int might match the return type of a GCC 11184 builtin and then its argument prototype would still apply. */ 11185#ifdef __cplusplus 11186extern "C" 11187#endif 11188char dlopen (); 11189int 11190main () 11191{ 11192return dlopen (); 11193 ; 11194 return 0; 11195} 11196_ACEOF 11197if ac_fn_c_try_link "$LINENO"; then : 11198 ac_cv_lib_dl_dlopen=yes 11199else 11200 ac_cv_lib_dl_dlopen=no 11201fi 11202rm -f core conftest.err conftest.$ac_objext \ 11203 conftest$ac_exeext conftest.$ac_ext 11204LIBS=$ac_check_lib_save_LIBS 11205fi 11206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11207$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11208if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11209 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11210else 11211 11212 lt_cv_dlopen="dyld" 11213 lt_cv_dlopen_libs= 11214 lt_cv_dlopen_self=yes 11215 11216fi 11217 11218 ;; 11219 11220 *) 11221 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11222if test "x$ac_cv_func_shl_load" = xyes; then : 11223 lt_cv_dlopen="shl_load" 11224else 11225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11226$as_echo_n "checking for shl_load in -ldld... " >&6; } 11227if ${ac_cv_lib_dld_shl_load+:} false; then : 11228 $as_echo_n "(cached) " >&6 11229else 11230 ac_check_lib_save_LIBS=$LIBS 11231LIBS="-ldld $LIBS" 11232cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11233/* end confdefs.h. */ 11234 11235/* Override any GCC internal prototype to avoid an error. 11236 Use char because int might match the return type of a GCC 11237 builtin and then its argument prototype would still apply. */ 11238#ifdef __cplusplus 11239extern "C" 11240#endif 11241char shl_load (); 11242int 11243main () 11244{ 11245return shl_load (); 11246 ; 11247 return 0; 11248} 11249_ACEOF 11250if ac_fn_c_try_link "$LINENO"; then : 11251 ac_cv_lib_dld_shl_load=yes 11252else 11253 ac_cv_lib_dld_shl_load=no 11254fi 11255rm -f core conftest.err conftest.$ac_objext \ 11256 conftest$ac_exeext conftest.$ac_ext 11257LIBS=$ac_check_lib_save_LIBS 11258fi 11259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11260$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11261if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11262 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11263else 11264 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11265if test "x$ac_cv_func_dlopen" = xyes; then : 11266 lt_cv_dlopen="dlopen" 11267else 11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11269$as_echo_n "checking for dlopen in -ldl... " >&6; } 11270if ${ac_cv_lib_dl_dlopen+:} false; then : 11271 $as_echo_n "(cached) " >&6 11272else 11273 ac_check_lib_save_LIBS=$LIBS 11274LIBS="-ldl $LIBS" 11275cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11276/* end confdefs.h. */ 11277 11278/* Override any GCC internal prototype to avoid an error. 11279 Use char because int might match the return type of a GCC 11280 builtin and then its argument prototype would still apply. */ 11281#ifdef __cplusplus 11282extern "C" 11283#endif 11284char dlopen (); 11285int 11286main () 11287{ 11288return dlopen (); 11289 ; 11290 return 0; 11291} 11292_ACEOF 11293if ac_fn_c_try_link "$LINENO"; then : 11294 ac_cv_lib_dl_dlopen=yes 11295else 11296 ac_cv_lib_dl_dlopen=no 11297fi 11298rm -f core conftest.err conftest.$ac_objext \ 11299 conftest$ac_exeext conftest.$ac_ext 11300LIBS=$ac_check_lib_save_LIBS 11301fi 11302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11303$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11304if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11305 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11306else 11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11308$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11309if ${ac_cv_lib_svld_dlopen+:} false; then : 11310 $as_echo_n "(cached) " >&6 11311else 11312 ac_check_lib_save_LIBS=$LIBS 11313LIBS="-lsvld $LIBS" 11314cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11315/* end confdefs.h. */ 11316 11317/* Override any GCC internal prototype to avoid an error. 11318 Use char because int might match the return type of a GCC 11319 builtin and then its argument prototype would still apply. */ 11320#ifdef __cplusplus 11321extern "C" 11322#endif 11323char dlopen (); 11324int 11325main () 11326{ 11327return dlopen (); 11328 ; 11329 return 0; 11330} 11331_ACEOF 11332if ac_fn_c_try_link "$LINENO"; then : 11333 ac_cv_lib_svld_dlopen=yes 11334else 11335 ac_cv_lib_svld_dlopen=no 11336fi 11337rm -f core conftest.err conftest.$ac_objext \ 11338 conftest$ac_exeext conftest.$ac_ext 11339LIBS=$ac_check_lib_save_LIBS 11340fi 11341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11342$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11343if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11344 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11345else 11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11347$as_echo_n "checking for dld_link in -ldld... " >&6; } 11348if ${ac_cv_lib_dld_dld_link+:} false; then : 11349 $as_echo_n "(cached) " >&6 11350else 11351 ac_check_lib_save_LIBS=$LIBS 11352LIBS="-ldld $LIBS" 11353cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11354/* end confdefs.h. */ 11355 11356/* Override any GCC internal prototype to avoid an error. 11357 Use char because int might match the return type of a GCC 11358 builtin and then its argument prototype would still apply. */ 11359#ifdef __cplusplus 11360extern "C" 11361#endif 11362char dld_link (); 11363int 11364main () 11365{ 11366return dld_link (); 11367 ; 11368 return 0; 11369} 11370_ACEOF 11371if ac_fn_c_try_link "$LINENO"; then : 11372 ac_cv_lib_dld_dld_link=yes 11373else 11374 ac_cv_lib_dld_dld_link=no 11375fi 11376rm -f core conftest.err conftest.$ac_objext \ 11377 conftest$ac_exeext conftest.$ac_ext 11378LIBS=$ac_check_lib_save_LIBS 11379fi 11380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11381$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11382if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11383 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11384fi 11385 11386 11387fi 11388 11389 11390fi 11391 11392 11393fi 11394 11395 11396fi 11397 11398 11399fi 11400 11401 ;; 11402 esac 11403 11404 if test "x$lt_cv_dlopen" != xno; then 11405 enable_dlopen=yes 11406 else 11407 enable_dlopen=no 11408 fi 11409 11410 case $lt_cv_dlopen in 11411 dlopen) 11412 save_CPPFLAGS="$CPPFLAGS" 11413 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11414 11415 save_LDFLAGS="$LDFLAGS" 11416 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11417 11418 save_LIBS="$LIBS" 11419 LIBS="$lt_cv_dlopen_libs $LIBS" 11420 11421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11422$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11423if ${lt_cv_dlopen_self+:} false; then : 11424 $as_echo_n "(cached) " >&6 11425else 11426 if test "$cross_compiling" = yes; then : 11427 lt_cv_dlopen_self=cross 11428else 11429 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11430 lt_status=$lt_dlunknown 11431 cat > conftest.$ac_ext <<_LT_EOF 11432#line $LINENO "configure" 11433#include "confdefs.h" 11434 11435#if HAVE_DLFCN_H 11436#include <dlfcn.h> 11437#endif 11438 11439#include <stdio.h> 11440 11441#ifdef RTLD_GLOBAL 11442# define LT_DLGLOBAL RTLD_GLOBAL 11443#else 11444# ifdef DL_GLOBAL 11445# define LT_DLGLOBAL DL_GLOBAL 11446# else 11447# define LT_DLGLOBAL 0 11448# endif 11449#endif 11450 11451/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11452 find out it does not work in some platform. */ 11453#ifndef LT_DLLAZY_OR_NOW 11454# ifdef RTLD_LAZY 11455# define LT_DLLAZY_OR_NOW RTLD_LAZY 11456# else 11457# ifdef DL_LAZY 11458# define LT_DLLAZY_OR_NOW DL_LAZY 11459# else 11460# ifdef RTLD_NOW 11461# define LT_DLLAZY_OR_NOW RTLD_NOW 11462# else 11463# ifdef DL_NOW 11464# define LT_DLLAZY_OR_NOW DL_NOW 11465# else 11466# define LT_DLLAZY_OR_NOW 0 11467# endif 11468# endif 11469# endif 11470# endif 11471#endif 11472 11473/* When -fvisbility=hidden is used, assume the code has been annotated 11474 correspondingly for the symbols needed. */ 11475#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11476int fnord () __attribute__((visibility("default"))); 11477#endif 11478 11479int fnord () { return 42; } 11480int main () 11481{ 11482 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11483 int status = $lt_dlunknown; 11484 11485 if (self) 11486 { 11487 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11488 else 11489 { 11490 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11491 else puts (dlerror ()); 11492 } 11493 /* dlclose (self); */ 11494 } 11495 else 11496 puts (dlerror ()); 11497 11498 return status; 11499} 11500_LT_EOF 11501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11502 (eval $ac_link) 2>&5 11503 ac_status=$? 11504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11505 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11506 (./conftest; exit; ) >&5 2>/dev/null 11507 lt_status=$? 11508 case x$lt_status in 11509 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11510 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11511 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11512 esac 11513 else : 11514 # compilation failed 11515 lt_cv_dlopen_self=no 11516 fi 11517fi 11518rm -fr conftest* 11519 11520 11521fi 11522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11523$as_echo "$lt_cv_dlopen_self" >&6; } 11524 11525 if test "x$lt_cv_dlopen_self" = xyes; then 11526 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11528$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11529if ${lt_cv_dlopen_self_static+:} false; then : 11530 $as_echo_n "(cached) " >&6 11531else 11532 if test "$cross_compiling" = yes; then : 11533 lt_cv_dlopen_self_static=cross 11534else 11535 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11536 lt_status=$lt_dlunknown 11537 cat > conftest.$ac_ext <<_LT_EOF 11538#line $LINENO "configure" 11539#include "confdefs.h" 11540 11541#if HAVE_DLFCN_H 11542#include <dlfcn.h> 11543#endif 11544 11545#include <stdio.h> 11546 11547#ifdef RTLD_GLOBAL 11548# define LT_DLGLOBAL RTLD_GLOBAL 11549#else 11550# ifdef DL_GLOBAL 11551# define LT_DLGLOBAL DL_GLOBAL 11552# else 11553# define LT_DLGLOBAL 0 11554# endif 11555#endif 11556 11557/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11558 find out it does not work in some platform. */ 11559#ifndef LT_DLLAZY_OR_NOW 11560# ifdef RTLD_LAZY 11561# define LT_DLLAZY_OR_NOW RTLD_LAZY 11562# else 11563# ifdef DL_LAZY 11564# define LT_DLLAZY_OR_NOW DL_LAZY 11565# else 11566# ifdef RTLD_NOW 11567# define LT_DLLAZY_OR_NOW RTLD_NOW 11568# else 11569# ifdef DL_NOW 11570# define LT_DLLAZY_OR_NOW DL_NOW 11571# else 11572# define LT_DLLAZY_OR_NOW 0 11573# endif 11574# endif 11575# endif 11576# endif 11577#endif 11578 11579/* When -fvisbility=hidden is used, assume the code has been annotated 11580 correspondingly for the symbols needed. */ 11581#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11582int fnord () __attribute__((visibility("default"))); 11583#endif 11584 11585int fnord () { return 42; } 11586int main () 11587{ 11588 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11589 int status = $lt_dlunknown; 11590 11591 if (self) 11592 { 11593 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11594 else 11595 { 11596 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11597 else puts (dlerror ()); 11598 } 11599 /* dlclose (self); */ 11600 } 11601 else 11602 puts (dlerror ()); 11603 11604 return status; 11605} 11606_LT_EOF 11607 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11608 (eval $ac_link) 2>&5 11609 ac_status=$? 11610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11611 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11612 (./conftest; exit; ) >&5 2>/dev/null 11613 lt_status=$? 11614 case x$lt_status in 11615 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11616 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11617 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11618 esac 11619 else : 11620 # compilation failed 11621 lt_cv_dlopen_self_static=no 11622 fi 11623fi 11624rm -fr conftest* 11625 11626 11627fi 11628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11629$as_echo "$lt_cv_dlopen_self_static" >&6; } 11630 fi 11631 11632 CPPFLAGS="$save_CPPFLAGS" 11633 LDFLAGS="$save_LDFLAGS" 11634 LIBS="$save_LIBS" 11635 ;; 11636 esac 11637 11638 case $lt_cv_dlopen_self in 11639 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11640 *) enable_dlopen_self=unknown ;; 11641 esac 11642 11643 case $lt_cv_dlopen_self_static in 11644 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11645 *) enable_dlopen_self_static=unknown ;; 11646 esac 11647fi 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665striplib= 11666old_striplib= 11667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11668$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11669if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11670 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11671 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11673$as_echo "yes" >&6; } 11674else 11675# FIXME - insert some real tests, host_os isn't really good enough 11676 case $host_os in 11677 darwin*) 11678 if test -n "$STRIP" ; then 11679 striplib="$STRIP -x" 11680 old_striplib="$STRIP -S" 11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11682$as_echo "yes" >&6; } 11683 else 11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11685$as_echo "no" >&6; } 11686 fi 11687 ;; 11688 *) 11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11690$as_echo "no" >&6; } 11691 ;; 11692 esac 11693fi 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 # Report which library types will actually be built 11707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11708$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11710$as_echo "$can_build_shared" >&6; } 11711 11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11713$as_echo_n "checking whether to build shared libraries... " >&6; } 11714 test "$can_build_shared" = "no" && enable_shared=no 11715 11716 # On AIX, shared libraries and static libraries use the same namespace, and 11717 # are all built from PIC. 11718 case $host_os in 11719 aix3*) 11720 test "$enable_shared" = yes && enable_static=no 11721 if test -n "$RANLIB"; then 11722 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11723 postinstall_cmds='$RANLIB $lib' 11724 fi 11725 ;; 11726 11727 aix[4-9]*) 11728 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11729 test "$enable_shared" = yes && enable_static=no 11730 fi 11731 ;; 11732 esac 11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11734$as_echo "$enable_shared" >&6; } 11735 11736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11737$as_echo_n "checking whether to build static libraries... " >&6; } 11738 # Make sure either enable_shared or enable_static is yes. 11739 test "$enable_shared" = yes || enable_static=yes 11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11741$as_echo "$enable_static" >&6; } 11742 11743 11744 11745 11746fi 11747ac_ext=c 11748ac_cpp='$CPP $CPPFLAGS' 11749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11751ac_compiler_gnu=$ac_cv_c_compiler_gnu 11752 11753CC="$lt_save_CC" 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 ac_config_commands="$ac_config_commands libtool" 11770 11771 11772 11773 11774# Only expand once: 11775 11776 11777 11778# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11791$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11792if ${ac_cv_prog_cc_c99+:} false; then : 11793 $as_echo_n "(cached) " >&6 11794else 11795 ac_cv_prog_cc_c99=no 11796ac_save_CC=$CC 11797cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11798/* end confdefs.h. */ 11799#include <stdarg.h> 11800#include <stdbool.h> 11801#include <stdlib.h> 11802#include <wchar.h> 11803#include <stdio.h> 11804 11805// Check varargs macros. These examples are taken from C99 6.10.3.5. 11806#define debug(...) fprintf (stderr, __VA_ARGS__) 11807#define showlist(...) puts (#__VA_ARGS__) 11808#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11809static void 11810test_varargs_macros (void) 11811{ 11812 int x = 1234; 11813 int y = 5678; 11814 debug ("Flag"); 11815 debug ("X = %d\n", x); 11816 showlist (The first, second, and third items.); 11817 report (x>y, "x is %d but y is %d", x, y); 11818} 11819 11820// Check long long types. 11821#define BIG64 18446744073709551615ull 11822#define BIG32 4294967295ul 11823#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 11824#if !BIG_OK 11825 your preprocessor is broken; 11826#endif 11827#if BIG_OK 11828#else 11829 your preprocessor is broken; 11830#endif 11831static long long int bignum = -9223372036854775807LL; 11832static unsigned long long int ubignum = BIG64; 11833 11834struct incomplete_array 11835{ 11836 int datasize; 11837 double data[]; 11838}; 11839 11840struct named_init { 11841 int number; 11842 const wchar_t *name; 11843 double average; 11844}; 11845 11846typedef const char *ccp; 11847 11848static inline int 11849test_restrict (ccp restrict text) 11850{ 11851 // See if C++-style comments work. 11852 // Iterate through items via the restricted pointer. 11853 // Also check for declarations in for loops. 11854 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 11855 continue; 11856 return 0; 11857} 11858 11859// Check varargs and va_copy. 11860static void 11861test_varargs (const char *format, ...) 11862{ 11863 va_list args; 11864 va_start (args, format); 11865 va_list args_copy; 11866 va_copy (args_copy, args); 11867 11868 const char *str; 11869 int number; 11870 float fnumber; 11871 11872 while (*format) 11873 { 11874 switch (*format++) 11875 { 11876 case 's': // string 11877 str = va_arg (args_copy, const char *); 11878 break; 11879 case 'd': // int 11880 number = va_arg (args_copy, int); 11881 break; 11882 case 'f': // float 11883 fnumber = va_arg (args_copy, double); 11884 break; 11885 default: 11886 break; 11887 } 11888 } 11889 va_end (args_copy); 11890 va_end (args); 11891} 11892 11893int 11894main () 11895{ 11896 11897 // Check bool. 11898 _Bool success = false; 11899 11900 // Check restrict. 11901 if (test_restrict ("String literal") == 0) 11902 success = true; 11903 char *restrict newvar = "Another string"; 11904 11905 // Check varargs. 11906 test_varargs ("s, d' f .", "string", 65, 34.234); 11907 test_varargs_macros (); 11908 11909 // Check flexible array members. 11910 struct incomplete_array *ia = 11911 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 11912 ia->datasize = 10; 11913 for (int i = 0; i < ia->datasize; ++i) 11914 ia->data[i] = i * 1.234; 11915 11916 // Check named initializers. 11917 struct named_init ni = { 11918 .number = 34, 11919 .name = L"Test wide string", 11920 .average = 543.34343, 11921 }; 11922 11923 ni.number = 58; 11924 11925 int dynamic_array[ni.number]; 11926 dynamic_array[ni.number - 1] = 543; 11927 11928 // work around unused variable warnings 11929 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 11930 || dynamic_array[ni.number - 1] != 543); 11931 11932 ; 11933 return 0; 11934} 11935_ACEOF 11936for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 11937do 11938 CC="$ac_save_CC $ac_arg" 11939 if ac_fn_c_try_compile "$LINENO"; then : 11940 ac_cv_prog_cc_c99=$ac_arg 11941fi 11942rm -f core conftest.err conftest.$ac_objext 11943 test "x$ac_cv_prog_cc_c99" != "xno" && break 11944done 11945rm -f conftest.$ac_ext 11946CC=$ac_save_CC 11947 11948fi 11949# AC_CACHE_VAL 11950case "x$ac_cv_prog_cc_c99" in 11951 x) 11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11953$as_echo "none needed" >&6; } ;; 11954 xno) 11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11956$as_echo "unsupported" >&6; } ;; 11957 *) 11958 CC="$CC $ac_cv_prog_cc_c99" 11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 11960$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 11961esac 11962if test "x$ac_cv_prog_cc_c99" != xno; then : 11963 11964fi 11965 11966 11967 11968 11969 11970 11971ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 11972if test "x$ac_cv_have_decl___clang__" = xyes; then : 11973 CLANGCC="yes" 11974else 11975 CLANGCC="no" 11976fi 11977 11978ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 11979if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 11980 INTELCC="yes" 11981else 11982 INTELCC="no" 11983fi 11984 11985ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 11986if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 11987 SUNCC="yes" 11988else 11989 SUNCC="no" 11990fi 11991 11992 11993 11994 11995if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11996 if test -n "$ac_tool_prefix"; then 11997 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11998set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12000$as_echo_n "checking for $ac_word... " >&6; } 12001if ${ac_cv_path_PKG_CONFIG+:} false; then : 12002 $as_echo_n "(cached) " >&6 12003else 12004 case $PKG_CONFIG in 12005 [\\/]* | ?:[\\/]*) 12006 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12007 ;; 12008 *) 12009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12010for as_dir in $PATH 12011do 12012 IFS=$as_save_IFS 12013 test -z "$as_dir" && as_dir=. 12014 for ac_exec_ext in '' $ac_executable_extensions; do 12015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12016 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12018 break 2 12019 fi 12020done 12021 done 12022IFS=$as_save_IFS 12023 12024 ;; 12025esac 12026fi 12027PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12028if test -n "$PKG_CONFIG"; then 12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12030$as_echo "$PKG_CONFIG" >&6; } 12031else 12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12033$as_echo "no" >&6; } 12034fi 12035 12036 12037fi 12038if test -z "$ac_cv_path_PKG_CONFIG"; then 12039 ac_pt_PKG_CONFIG=$PKG_CONFIG 12040 # Extract the first word of "pkg-config", so it can be a program name with args. 12041set dummy pkg-config; ac_word=$2 12042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12043$as_echo_n "checking for $ac_word... " >&6; } 12044if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 12045 $as_echo_n "(cached) " >&6 12046else 12047 case $ac_pt_PKG_CONFIG in 12048 [\\/]* | ?:[\\/]*) 12049 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12050 ;; 12051 *) 12052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12053for as_dir in $PATH 12054do 12055 IFS=$as_save_IFS 12056 test -z "$as_dir" && as_dir=. 12057 for ac_exec_ext in '' $ac_executable_extensions; do 12058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12059 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12061 break 2 12062 fi 12063done 12064 done 12065IFS=$as_save_IFS 12066 12067 ;; 12068esac 12069fi 12070ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12071if test -n "$ac_pt_PKG_CONFIG"; then 12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12073$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12074else 12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12076$as_echo "no" >&6; } 12077fi 12078 12079 if test "x$ac_pt_PKG_CONFIG" = x; then 12080 PKG_CONFIG="" 12081 else 12082 case $cross_compiling:$ac_tool_warned in 12083yes:) 12084{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12085$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12086ac_tool_warned=yes ;; 12087esac 12088 PKG_CONFIG=$ac_pt_PKG_CONFIG 12089 fi 12090else 12091 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12092fi 12093 12094fi 12095if test -n "$PKG_CONFIG"; then 12096 _pkg_min_version=0.9.0 12097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12098$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12099 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12101$as_echo "yes" >&6; } 12102 else 12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12104$as_echo "no" >&6; } 12105 PKG_CONFIG="" 12106 fi 12107 12108fi 12109 12110 12111 12112 12113 12114# Check whether --enable-selective-werror was given. 12115if test "${enable_selective_werror+set}" = set; then : 12116 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 12117else 12118 SELECTIVE_WERROR=yes 12119fi 12120 12121 12122 12123 12124 12125# -v is too short to test reliably with XORG_TESTSET_CFLAG 12126if test "x$SUNCC" = "xyes"; then 12127 BASE_CFLAGS="-v" 12128else 12129 BASE_CFLAGS="" 12130fi 12131 12132# This chunk of warnings were those that existed in the legacy CWARNFLAGS 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146xorg_testset_save_CFLAGS="$CFLAGS" 12147 12148if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12149 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12151$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12152if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12153 $as_echo_n "(cached) " >&6 12154else 12155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12156/* end confdefs.h. */ 12157int i; 12158_ACEOF 12159if ac_fn_c_try_compile "$LINENO"; then : 12160 xorg_cv_cc_flag_unknown_warning_option=yes 12161else 12162 xorg_cv_cc_flag_unknown_warning_option=no 12163fi 12164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12165fi 12166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12167$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12168 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12169 CFLAGS="$xorg_testset_save_CFLAGS" 12170fi 12171 12172if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12175 fi 12176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12178$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12179if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12180 $as_echo_n "(cached) " >&6 12181else 12182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12183/* end confdefs.h. */ 12184int i; 12185_ACEOF 12186if ac_fn_c_try_compile "$LINENO"; then : 12187 xorg_cv_cc_flag_unused_command_line_argument=yes 12188else 12189 xorg_cv_cc_flag_unused_command_line_argument=no 12190fi 12191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12192fi 12193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12194$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12195 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12196 CFLAGS="$xorg_testset_save_CFLAGS" 12197fi 12198 12199found="no" 12200 12201 if test $found = "no" ; then 12202 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12204 fi 12205 12206 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12208 fi 12209 12210 CFLAGS="$CFLAGS -Wall" 12211 12212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 12213$as_echo_n "checking if $CC supports -Wall... " >&6; } 12214 cacheid=xorg_cv_cc_flag__Wall 12215 if eval \${$cacheid+:} false; then : 12216 $as_echo_n "(cached) " >&6 12217else 12218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12219/* end confdefs.h. */ 12220int i; 12221int 12222main () 12223{ 12224 12225 ; 12226 return 0; 12227} 12228_ACEOF 12229if ac_fn_c_try_link "$LINENO"; then : 12230 eval $cacheid=yes 12231else 12232 eval $cacheid=no 12233fi 12234rm -f core conftest.err conftest.$ac_objext \ 12235 conftest$ac_exeext conftest.$ac_ext 12236fi 12237 12238 12239 CFLAGS="$xorg_testset_save_CFLAGS" 12240 12241 eval supported=\$$cacheid 12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12243$as_echo "$supported" >&6; } 12244 if test "$supported" = "yes" ; then 12245 BASE_CFLAGS="$BASE_CFLAGS -Wall" 12246 found="yes" 12247 fi 12248 fi 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264xorg_testset_save_CFLAGS="$CFLAGS" 12265 12266if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12267 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12269$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12270if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12271 $as_echo_n "(cached) " >&6 12272else 12273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12274/* end confdefs.h. */ 12275int i; 12276_ACEOF 12277if ac_fn_c_try_compile "$LINENO"; then : 12278 xorg_cv_cc_flag_unknown_warning_option=yes 12279else 12280 xorg_cv_cc_flag_unknown_warning_option=no 12281fi 12282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12283fi 12284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12285$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12286 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12287 CFLAGS="$xorg_testset_save_CFLAGS" 12288fi 12289 12290if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12291 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12292 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12293 fi 12294 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12296$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12297if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12298 $as_echo_n "(cached) " >&6 12299else 12300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12301/* end confdefs.h. */ 12302int i; 12303_ACEOF 12304if ac_fn_c_try_compile "$LINENO"; then : 12305 xorg_cv_cc_flag_unused_command_line_argument=yes 12306else 12307 xorg_cv_cc_flag_unused_command_line_argument=no 12308fi 12309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12310fi 12311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12312$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12313 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12314 CFLAGS="$xorg_testset_save_CFLAGS" 12315fi 12316 12317found="no" 12318 12319 if test $found = "no" ; then 12320 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12322 fi 12323 12324 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12326 fi 12327 12328 CFLAGS="$CFLAGS -Wpointer-arith" 12329 12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 12331$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 12332 cacheid=xorg_cv_cc_flag__Wpointer_arith 12333 if eval \${$cacheid+:} false; then : 12334 $as_echo_n "(cached) " >&6 12335else 12336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12337/* end confdefs.h. */ 12338int i; 12339int 12340main () 12341{ 12342 12343 ; 12344 return 0; 12345} 12346_ACEOF 12347if ac_fn_c_try_link "$LINENO"; then : 12348 eval $cacheid=yes 12349else 12350 eval $cacheid=no 12351fi 12352rm -f core conftest.err conftest.$ac_objext \ 12353 conftest$ac_exeext conftest.$ac_ext 12354fi 12355 12356 12357 CFLAGS="$xorg_testset_save_CFLAGS" 12358 12359 eval supported=\$$cacheid 12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12361$as_echo "$supported" >&6; } 12362 if test "$supported" = "yes" ; then 12363 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12364 found="yes" 12365 fi 12366 fi 12367 12368 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381 12382xorg_testset_save_CFLAGS="$CFLAGS" 12383 12384if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12385 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12387$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12388if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12389 $as_echo_n "(cached) " >&6 12390else 12391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12392/* end confdefs.h. */ 12393int i; 12394_ACEOF 12395if ac_fn_c_try_compile "$LINENO"; then : 12396 xorg_cv_cc_flag_unknown_warning_option=yes 12397else 12398 xorg_cv_cc_flag_unknown_warning_option=no 12399fi 12400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12401fi 12402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12403$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12404 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12405 CFLAGS="$xorg_testset_save_CFLAGS" 12406fi 12407 12408if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12410 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12411 fi 12412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12414$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12415if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12416 $as_echo_n "(cached) " >&6 12417else 12418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12419/* end confdefs.h. */ 12420int i; 12421_ACEOF 12422if ac_fn_c_try_compile "$LINENO"; then : 12423 xorg_cv_cc_flag_unused_command_line_argument=yes 12424else 12425 xorg_cv_cc_flag_unused_command_line_argument=no 12426fi 12427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12428fi 12429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12430$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12431 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12432 CFLAGS="$xorg_testset_save_CFLAGS" 12433fi 12434 12435found="no" 12436 12437 if test $found = "no" ; then 12438 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12440 fi 12441 12442 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12444 fi 12445 12446 CFLAGS="$CFLAGS -Wmissing-declarations" 12447 12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 12449$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 12450 cacheid=xorg_cv_cc_flag__Wmissing_declarations 12451 if eval \${$cacheid+:} false; then : 12452 $as_echo_n "(cached) " >&6 12453else 12454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12455/* end confdefs.h. */ 12456int i; 12457int 12458main () 12459{ 12460 12461 ; 12462 return 0; 12463} 12464_ACEOF 12465if ac_fn_c_try_link "$LINENO"; then : 12466 eval $cacheid=yes 12467else 12468 eval $cacheid=no 12469fi 12470rm -f core conftest.err conftest.$ac_objext \ 12471 conftest$ac_exeext conftest.$ac_ext 12472fi 12473 12474 12475 CFLAGS="$xorg_testset_save_CFLAGS" 12476 12477 eval supported=\$$cacheid 12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12479$as_echo "$supported" >&6; } 12480 if test "$supported" = "yes" ; then 12481 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12482 found="yes" 12483 fi 12484 fi 12485 12486 12487 12488 12489 12490 12491 12492 12493 12494 12495 12496 12497 12498 12499 12500xorg_testset_save_CFLAGS="$CFLAGS" 12501 12502if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12503 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12505$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12506if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12507 $as_echo_n "(cached) " >&6 12508else 12509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12510/* end confdefs.h. */ 12511int i; 12512_ACEOF 12513if ac_fn_c_try_compile "$LINENO"; then : 12514 xorg_cv_cc_flag_unknown_warning_option=yes 12515else 12516 xorg_cv_cc_flag_unknown_warning_option=no 12517fi 12518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12519fi 12520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12521$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12522 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12523 CFLAGS="$xorg_testset_save_CFLAGS" 12524fi 12525 12526if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12527 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12528 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12529 fi 12530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12532$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12533if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12534 $as_echo_n "(cached) " >&6 12535else 12536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12537/* end confdefs.h. */ 12538int i; 12539_ACEOF 12540if ac_fn_c_try_compile "$LINENO"; then : 12541 xorg_cv_cc_flag_unused_command_line_argument=yes 12542else 12543 xorg_cv_cc_flag_unused_command_line_argument=no 12544fi 12545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12546fi 12547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12548$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12549 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12550 CFLAGS="$xorg_testset_save_CFLAGS" 12551fi 12552 12553found="no" 12554 12555 if test $found = "no" ; then 12556 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12558 fi 12559 12560 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12562 fi 12563 12564 CFLAGS="$CFLAGS -Wformat=2" 12565 12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12567$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12568 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 12569 if eval \${$cacheid+:} false; then : 12570 $as_echo_n "(cached) " >&6 12571else 12572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12573/* end confdefs.h. */ 12574int i; 12575int 12576main () 12577{ 12578 12579 ; 12580 return 0; 12581} 12582_ACEOF 12583if ac_fn_c_try_link "$LINENO"; then : 12584 eval $cacheid=yes 12585else 12586 eval $cacheid=no 12587fi 12588rm -f core conftest.err conftest.$ac_objext \ 12589 conftest$ac_exeext conftest.$ac_ext 12590fi 12591 12592 12593 CFLAGS="$xorg_testset_save_CFLAGS" 12594 12595 eval supported=\$$cacheid 12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12597$as_echo "$supported" >&6; } 12598 if test "$supported" = "yes" ; then 12599 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12600 found="yes" 12601 fi 12602 fi 12603 12604 if test $found = "no" ; then 12605 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12606 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12607 fi 12608 12609 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12611 fi 12612 12613 CFLAGS="$CFLAGS -Wformat" 12614 12615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 12616$as_echo_n "checking if $CC supports -Wformat... " >&6; } 12617 cacheid=xorg_cv_cc_flag__Wformat 12618 if eval \${$cacheid+:} false; then : 12619 $as_echo_n "(cached) " >&6 12620else 12621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12622/* end confdefs.h. */ 12623int i; 12624int 12625main () 12626{ 12627 12628 ; 12629 return 0; 12630} 12631_ACEOF 12632if ac_fn_c_try_link "$LINENO"; then : 12633 eval $cacheid=yes 12634else 12635 eval $cacheid=no 12636fi 12637rm -f core conftest.err conftest.$ac_objext \ 12638 conftest$ac_exeext conftest.$ac_ext 12639fi 12640 12641 12642 CFLAGS="$xorg_testset_save_CFLAGS" 12643 12644 eval supported=\$$cacheid 12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12646$as_echo "$supported" >&6; } 12647 if test "$supported" = "yes" ; then 12648 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 12649 found="yes" 12650 fi 12651 fi 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669xorg_testset_save_CFLAGS="$CFLAGS" 12670 12671if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12672 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12674$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12675if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12676 $as_echo_n "(cached) " >&6 12677else 12678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12679/* end confdefs.h. */ 12680int i; 12681_ACEOF 12682if ac_fn_c_try_compile "$LINENO"; then : 12683 xorg_cv_cc_flag_unknown_warning_option=yes 12684else 12685 xorg_cv_cc_flag_unknown_warning_option=no 12686fi 12687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12688fi 12689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12690$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12691 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12692 CFLAGS="$xorg_testset_save_CFLAGS" 12693fi 12694 12695if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12698 fi 12699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12701$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12702if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12703 $as_echo_n "(cached) " >&6 12704else 12705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12706/* end confdefs.h. */ 12707int i; 12708_ACEOF 12709if ac_fn_c_try_compile "$LINENO"; then : 12710 xorg_cv_cc_flag_unused_command_line_argument=yes 12711else 12712 xorg_cv_cc_flag_unused_command_line_argument=no 12713fi 12714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12715fi 12716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12717$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12718 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12719 CFLAGS="$xorg_testset_save_CFLAGS" 12720fi 12721 12722found="no" 12723 12724 if test $found = "no" ; then 12725 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12726 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12727 fi 12728 12729 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12731 fi 12732 12733 CFLAGS="$CFLAGS -Wstrict-prototypes" 12734 12735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 12736$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 12737 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 12738 if eval \${$cacheid+:} false; then : 12739 $as_echo_n "(cached) " >&6 12740else 12741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12742/* end confdefs.h. */ 12743int i; 12744int 12745main () 12746{ 12747 12748 ; 12749 return 0; 12750} 12751_ACEOF 12752if ac_fn_c_try_link "$LINENO"; then : 12753 eval $cacheid=yes 12754else 12755 eval $cacheid=no 12756fi 12757rm -f core conftest.err conftest.$ac_objext \ 12758 conftest$ac_exeext conftest.$ac_ext 12759fi 12760 12761 12762 CFLAGS="$xorg_testset_save_CFLAGS" 12763 12764 eval supported=\$$cacheid 12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12766$as_echo "$supported" >&6; } 12767 if test "$supported" = "yes" ; then 12768 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 12769 found="yes" 12770 fi 12771 fi 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787xorg_testset_save_CFLAGS="$CFLAGS" 12788 12789if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12790 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12792$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12793if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12794 $as_echo_n "(cached) " >&6 12795else 12796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12797/* end confdefs.h. */ 12798int i; 12799_ACEOF 12800if ac_fn_c_try_compile "$LINENO"; then : 12801 xorg_cv_cc_flag_unknown_warning_option=yes 12802else 12803 xorg_cv_cc_flag_unknown_warning_option=no 12804fi 12805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12806fi 12807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12808$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12809 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12810 CFLAGS="$xorg_testset_save_CFLAGS" 12811fi 12812 12813if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12815 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12816 fi 12817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12819$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12820if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12821 $as_echo_n "(cached) " >&6 12822else 12823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12824/* end confdefs.h. */ 12825int i; 12826_ACEOF 12827if ac_fn_c_try_compile "$LINENO"; then : 12828 xorg_cv_cc_flag_unused_command_line_argument=yes 12829else 12830 xorg_cv_cc_flag_unused_command_line_argument=no 12831fi 12832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12833fi 12834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12835$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12836 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12837 CFLAGS="$xorg_testset_save_CFLAGS" 12838fi 12839 12840found="no" 12841 12842 if test $found = "no" ; then 12843 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12845 fi 12846 12847 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12849 fi 12850 12851 CFLAGS="$CFLAGS -Wmissing-prototypes" 12852 12853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 12854$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 12855 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 12856 if eval \${$cacheid+:} false; then : 12857 $as_echo_n "(cached) " >&6 12858else 12859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12860/* end confdefs.h. */ 12861int i; 12862int 12863main () 12864{ 12865 12866 ; 12867 return 0; 12868} 12869_ACEOF 12870if ac_fn_c_try_link "$LINENO"; then : 12871 eval $cacheid=yes 12872else 12873 eval $cacheid=no 12874fi 12875rm -f core conftest.err conftest.$ac_objext \ 12876 conftest$ac_exeext conftest.$ac_ext 12877fi 12878 12879 12880 CFLAGS="$xorg_testset_save_CFLAGS" 12881 12882 eval supported=\$$cacheid 12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12884$as_echo "$supported" >&6; } 12885 if test "$supported" = "yes" ; then 12886 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 12887 found="yes" 12888 fi 12889 fi 12890 12891 12892 12893 12894 12895 12896 12897 12898 12899 12900 12901 12902 12903 12904 12905xorg_testset_save_CFLAGS="$CFLAGS" 12906 12907if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12908 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12910$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12911if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12912 $as_echo_n "(cached) " >&6 12913else 12914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12915/* end confdefs.h. */ 12916int i; 12917_ACEOF 12918if ac_fn_c_try_compile "$LINENO"; then : 12919 xorg_cv_cc_flag_unknown_warning_option=yes 12920else 12921 xorg_cv_cc_flag_unknown_warning_option=no 12922fi 12923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12924fi 12925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12926$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12927 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12928 CFLAGS="$xorg_testset_save_CFLAGS" 12929fi 12930 12931if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12933 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12934 fi 12935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12937$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12938if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12939 $as_echo_n "(cached) " >&6 12940else 12941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12942/* end confdefs.h. */ 12943int i; 12944_ACEOF 12945if ac_fn_c_try_compile "$LINENO"; then : 12946 xorg_cv_cc_flag_unused_command_line_argument=yes 12947else 12948 xorg_cv_cc_flag_unused_command_line_argument=no 12949fi 12950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12951fi 12952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12953$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12954 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12955 CFLAGS="$xorg_testset_save_CFLAGS" 12956fi 12957 12958found="no" 12959 12960 if test $found = "no" ; then 12961 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12962 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12963 fi 12964 12965 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12966 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12967 fi 12968 12969 CFLAGS="$CFLAGS -Wnested-externs" 12970 12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 12972$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 12973 cacheid=xorg_cv_cc_flag__Wnested_externs 12974 if eval \${$cacheid+:} false; then : 12975 $as_echo_n "(cached) " >&6 12976else 12977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12978/* end confdefs.h. */ 12979int i; 12980int 12981main () 12982{ 12983 12984 ; 12985 return 0; 12986} 12987_ACEOF 12988if ac_fn_c_try_link "$LINENO"; then : 12989 eval $cacheid=yes 12990else 12991 eval $cacheid=no 12992fi 12993rm -f core conftest.err conftest.$ac_objext \ 12994 conftest$ac_exeext conftest.$ac_ext 12995fi 12996 12997 12998 CFLAGS="$xorg_testset_save_CFLAGS" 12999 13000 eval supported=\$$cacheid 13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13002$as_echo "$supported" >&6; } 13003 if test "$supported" = "yes" ; then 13004 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 13005 found="yes" 13006 fi 13007 fi 13008 13009 13010 13011 13012 13013 13014 13015 13016 13017 13018 13019 13020 13021 13022 13023xorg_testset_save_CFLAGS="$CFLAGS" 13024 13025if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13026 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13028$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13029if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13030 $as_echo_n "(cached) " >&6 13031else 13032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13033/* end confdefs.h. */ 13034int i; 13035_ACEOF 13036if ac_fn_c_try_compile "$LINENO"; then : 13037 xorg_cv_cc_flag_unknown_warning_option=yes 13038else 13039 xorg_cv_cc_flag_unknown_warning_option=no 13040fi 13041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13042fi 13043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13044$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13045 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13046 CFLAGS="$xorg_testset_save_CFLAGS" 13047fi 13048 13049if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13052 fi 13053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13055$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13056if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13057 $as_echo_n "(cached) " >&6 13058else 13059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13060/* end confdefs.h. */ 13061int i; 13062_ACEOF 13063if ac_fn_c_try_compile "$LINENO"; then : 13064 xorg_cv_cc_flag_unused_command_line_argument=yes 13065else 13066 xorg_cv_cc_flag_unused_command_line_argument=no 13067fi 13068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13069fi 13070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13071$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13072 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13073 CFLAGS="$xorg_testset_save_CFLAGS" 13074fi 13075 13076found="no" 13077 13078 if test $found = "no" ; then 13079 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13080 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13081 fi 13082 13083 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13085 fi 13086 13087 CFLAGS="$CFLAGS -Wbad-function-cast" 13088 13089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 13090$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 13091 cacheid=xorg_cv_cc_flag__Wbad_function_cast 13092 if eval \${$cacheid+:} false; then : 13093 $as_echo_n "(cached) " >&6 13094else 13095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13096/* end confdefs.h. */ 13097int i; 13098int 13099main () 13100{ 13101 13102 ; 13103 return 0; 13104} 13105_ACEOF 13106if ac_fn_c_try_link "$LINENO"; then : 13107 eval $cacheid=yes 13108else 13109 eval $cacheid=no 13110fi 13111rm -f core conftest.err conftest.$ac_objext \ 13112 conftest$ac_exeext conftest.$ac_ext 13113fi 13114 13115 13116 CFLAGS="$xorg_testset_save_CFLAGS" 13117 13118 eval supported=\$$cacheid 13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13120$as_echo "$supported" >&6; } 13121 if test "$supported" = "yes" ; then 13122 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 13123 found="yes" 13124 fi 13125 fi 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139 13140 13141xorg_testset_save_CFLAGS="$CFLAGS" 13142 13143if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13144 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13146$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13147if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13148 $as_echo_n "(cached) " >&6 13149else 13150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13151/* end confdefs.h. */ 13152int i; 13153_ACEOF 13154if ac_fn_c_try_compile "$LINENO"; then : 13155 xorg_cv_cc_flag_unknown_warning_option=yes 13156else 13157 xorg_cv_cc_flag_unknown_warning_option=no 13158fi 13159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13160fi 13161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13162$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13163 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13164 CFLAGS="$xorg_testset_save_CFLAGS" 13165fi 13166 13167if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13169 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13170 fi 13171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13173$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13174if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13175 $as_echo_n "(cached) " >&6 13176else 13177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13178/* end confdefs.h. */ 13179int i; 13180_ACEOF 13181if ac_fn_c_try_compile "$LINENO"; then : 13182 xorg_cv_cc_flag_unused_command_line_argument=yes 13183else 13184 xorg_cv_cc_flag_unused_command_line_argument=no 13185fi 13186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13187fi 13188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13189$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13190 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13191 CFLAGS="$xorg_testset_save_CFLAGS" 13192fi 13193 13194found="no" 13195 13196 if test $found = "no" ; then 13197 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13198 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13199 fi 13200 13201 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13203 fi 13204 13205 CFLAGS="$CFLAGS -Wold-style-definition" 13206 13207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 13208$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 13209 cacheid=xorg_cv_cc_flag__Wold_style_definition 13210 if eval \${$cacheid+:} false; then : 13211 $as_echo_n "(cached) " >&6 13212else 13213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13214/* end confdefs.h. */ 13215int i; 13216int 13217main () 13218{ 13219 13220 ; 13221 return 0; 13222} 13223_ACEOF 13224if ac_fn_c_try_link "$LINENO"; then : 13225 eval $cacheid=yes 13226else 13227 eval $cacheid=no 13228fi 13229rm -f core conftest.err conftest.$ac_objext \ 13230 conftest$ac_exeext conftest.$ac_ext 13231fi 13232 13233 13234 CFLAGS="$xorg_testset_save_CFLAGS" 13235 13236 eval supported=\$$cacheid 13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13238$as_echo "$supported" >&6; } 13239 if test "$supported" = "yes" ; then 13240 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 13241 found="yes" 13242 fi 13243 fi 13244 13245 13246 13247 13248 13249 13250 13251 13252 13253 13254 13255 13256 13257 13258 13259xorg_testset_save_CFLAGS="$CFLAGS" 13260 13261if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13262 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13264$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13265if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13266 $as_echo_n "(cached) " >&6 13267else 13268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13269/* end confdefs.h. */ 13270int i; 13271_ACEOF 13272if ac_fn_c_try_compile "$LINENO"; then : 13273 xorg_cv_cc_flag_unknown_warning_option=yes 13274else 13275 xorg_cv_cc_flag_unknown_warning_option=no 13276fi 13277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13278fi 13279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13280$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13281 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13282 CFLAGS="$xorg_testset_save_CFLAGS" 13283fi 13284 13285if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13288 fi 13289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13291$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13292if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13293 $as_echo_n "(cached) " >&6 13294else 13295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13296/* end confdefs.h. */ 13297int i; 13298_ACEOF 13299if ac_fn_c_try_compile "$LINENO"; then : 13300 xorg_cv_cc_flag_unused_command_line_argument=yes 13301else 13302 xorg_cv_cc_flag_unused_command_line_argument=no 13303fi 13304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13305fi 13306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13307$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13308 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13309 CFLAGS="$xorg_testset_save_CFLAGS" 13310fi 13311 13312found="no" 13313 13314 if test $found = "no" ; then 13315 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13316 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13317 fi 13318 13319 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13321 fi 13322 13323 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 13324 13325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 13326$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 13327 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 13328 if eval \${$cacheid+:} false; then : 13329 $as_echo_n "(cached) " >&6 13330else 13331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13332/* end confdefs.h. */ 13333int i; 13334int 13335main () 13336{ 13337 13338 ; 13339 return 0; 13340} 13341_ACEOF 13342if ac_fn_c_try_link "$LINENO"; then : 13343 eval $cacheid=yes 13344else 13345 eval $cacheid=no 13346fi 13347rm -f core conftest.err conftest.$ac_objext \ 13348 conftest$ac_exeext conftest.$ac_ext 13349fi 13350 13351 13352 CFLAGS="$xorg_testset_save_CFLAGS" 13353 13354 eval supported=\$$cacheid 13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13356$as_echo "$supported" >&6; } 13357 if test "$supported" = "yes" ; then 13358 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 13359 found="yes" 13360 fi 13361 fi 13362 13363 13364 13365 13366 13367# This chunk adds additional warnings that could catch undesired effects. 13368 13369 13370 13371 13372 13373 13374 13375 13376 13377 13378 13379 13380 13381xorg_testset_save_CFLAGS="$CFLAGS" 13382 13383if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13384 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13386$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13387if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13388 $as_echo_n "(cached) " >&6 13389else 13390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13391/* end confdefs.h. */ 13392int i; 13393_ACEOF 13394if ac_fn_c_try_compile "$LINENO"; then : 13395 xorg_cv_cc_flag_unknown_warning_option=yes 13396else 13397 xorg_cv_cc_flag_unknown_warning_option=no 13398fi 13399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13400fi 13401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13402$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13403 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13404 CFLAGS="$xorg_testset_save_CFLAGS" 13405fi 13406 13407if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13408 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13409 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13410 fi 13411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13413$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13414if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13415 $as_echo_n "(cached) " >&6 13416else 13417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13418/* end confdefs.h. */ 13419int i; 13420_ACEOF 13421if ac_fn_c_try_compile "$LINENO"; then : 13422 xorg_cv_cc_flag_unused_command_line_argument=yes 13423else 13424 xorg_cv_cc_flag_unused_command_line_argument=no 13425fi 13426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13427fi 13428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13429$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13430 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13431 CFLAGS="$xorg_testset_save_CFLAGS" 13432fi 13433 13434found="no" 13435 13436 if test $found = "no" ; then 13437 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13439 fi 13440 13441 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13443 fi 13444 13445 CFLAGS="$CFLAGS -Wunused" 13446 13447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 13448$as_echo_n "checking if $CC supports -Wunused... " >&6; } 13449 cacheid=xorg_cv_cc_flag__Wunused 13450 if eval \${$cacheid+:} false; then : 13451 $as_echo_n "(cached) " >&6 13452else 13453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13454/* end confdefs.h. */ 13455int i; 13456int 13457main () 13458{ 13459 13460 ; 13461 return 0; 13462} 13463_ACEOF 13464if ac_fn_c_try_link "$LINENO"; then : 13465 eval $cacheid=yes 13466else 13467 eval $cacheid=no 13468fi 13469rm -f core conftest.err conftest.$ac_objext \ 13470 conftest$ac_exeext conftest.$ac_ext 13471fi 13472 13473 13474 CFLAGS="$xorg_testset_save_CFLAGS" 13475 13476 eval supported=\$$cacheid 13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13478$as_echo "$supported" >&6; } 13479 if test "$supported" = "yes" ; then 13480 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13481 found="yes" 13482 fi 13483 fi 13484 13485 13486 13487 13488 13489 13490 13491 13492 13493 13494 13495 13496 13497 13498 13499xorg_testset_save_CFLAGS="$CFLAGS" 13500 13501if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13504$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13505if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13506 $as_echo_n "(cached) " >&6 13507else 13508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13509/* end confdefs.h. */ 13510int i; 13511_ACEOF 13512if ac_fn_c_try_compile "$LINENO"; then : 13513 xorg_cv_cc_flag_unknown_warning_option=yes 13514else 13515 xorg_cv_cc_flag_unknown_warning_option=no 13516fi 13517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13518fi 13519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13520$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13521 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13522 CFLAGS="$xorg_testset_save_CFLAGS" 13523fi 13524 13525if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13528 fi 13529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13531$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13532if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13533 $as_echo_n "(cached) " >&6 13534else 13535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13536/* end confdefs.h. */ 13537int i; 13538_ACEOF 13539if ac_fn_c_try_compile "$LINENO"; then : 13540 xorg_cv_cc_flag_unused_command_line_argument=yes 13541else 13542 xorg_cv_cc_flag_unused_command_line_argument=no 13543fi 13544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13545fi 13546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13547$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13548 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13549 CFLAGS="$xorg_testset_save_CFLAGS" 13550fi 13551 13552found="no" 13553 13554 if test $found = "no" ; then 13555 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13556 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13557 fi 13558 13559 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13561 fi 13562 13563 CFLAGS="$CFLAGS -Wuninitialized" 13564 13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 13566$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 13567 cacheid=xorg_cv_cc_flag__Wuninitialized 13568 if eval \${$cacheid+:} false; then : 13569 $as_echo_n "(cached) " >&6 13570else 13571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13572/* end confdefs.h. */ 13573int i; 13574int 13575main () 13576{ 13577 13578 ; 13579 return 0; 13580} 13581_ACEOF 13582if ac_fn_c_try_link "$LINENO"; then : 13583 eval $cacheid=yes 13584else 13585 eval $cacheid=no 13586fi 13587rm -f core conftest.err conftest.$ac_objext \ 13588 conftest$ac_exeext conftest.$ac_ext 13589fi 13590 13591 13592 CFLAGS="$xorg_testset_save_CFLAGS" 13593 13594 eval supported=\$$cacheid 13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13596$as_echo "$supported" >&6; } 13597 if test "$supported" = "yes" ; then 13598 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13599 found="yes" 13600 fi 13601 fi 13602 13603 13604 13605 13606 13607 13608 13609 13610 13611 13612 13613 13614 13615 13616 13617xorg_testset_save_CFLAGS="$CFLAGS" 13618 13619if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13622$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13623if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13624 $as_echo_n "(cached) " >&6 13625else 13626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13627/* end confdefs.h. */ 13628int i; 13629_ACEOF 13630if ac_fn_c_try_compile "$LINENO"; then : 13631 xorg_cv_cc_flag_unknown_warning_option=yes 13632else 13633 xorg_cv_cc_flag_unknown_warning_option=no 13634fi 13635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13636fi 13637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13638$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13639 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13640 CFLAGS="$xorg_testset_save_CFLAGS" 13641fi 13642 13643if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13644 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13645 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13646 fi 13647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13649$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13650if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13651 $as_echo_n "(cached) " >&6 13652else 13653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13654/* end confdefs.h. */ 13655int i; 13656_ACEOF 13657if ac_fn_c_try_compile "$LINENO"; then : 13658 xorg_cv_cc_flag_unused_command_line_argument=yes 13659else 13660 xorg_cv_cc_flag_unused_command_line_argument=no 13661fi 13662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13663fi 13664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13665$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13666 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13667 CFLAGS="$xorg_testset_save_CFLAGS" 13668fi 13669 13670found="no" 13671 13672 if test $found = "no" ; then 13673 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13675 fi 13676 13677 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13679 fi 13680 13681 CFLAGS="$CFLAGS -Wshadow" 13682 13683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 13684$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 13685 cacheid=xorg_cv_cc_flag__Wshadow 13686 if eval \${$cacheid+:} false; then : 13687 $as_echo_n "(cached) " >&6 13688else 13689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13690/* end confdefs.h. */ 13691int i; 13692int 13693main () 13694{ 13695 13696 ; 13697 return 0; 13698} 13699_ACEOF 13700if ac_fn_c_try_link "$LINENO"; then : 13701 eval $cacheid=yes 13702else 13703 eval $cacheid=no 13704fi 13705rm -f core conftest.err conftest.$ac_objext \ 13706 conftest$ac_exeext conftest.$ac_ext 13707fi 13708 13709 13710 CFLAGS="$xorg_testset_save_CFLAGS" 13711 13712 eval supported=\$$cacheid 13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13714$as_echo "$supported" >&6; } 13715 if test "$supported" = "yes" ; then 13716 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 13717 found="yes" 13718 fi 13719 fi 13720 13721 13722 13723 13724 13725 13726 13727 13728 13729 13730 13731 13732 13733 13734 13735xorg_testset_save_CFLAGS="$CFLAGS" 13736 13737if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13738 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13740$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13741if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13742 $as_echo_n "(cached) " >&6 13743else 13744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13745/* end confdefs.h. */ 13746int i; 13747_ACEOF 13748if ac_fn_c_try_compile "$LINENO"; then : 13749 xorg_cv_cc_flag_unknown_warning_option=yes 13750else 13751 xorg_cv_cc_flag_unknown_warning_option=no 13752fi 13753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13754fi 13755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13756$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13757 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13758 CFLAGS="$xorg_testset_save_CFLAGS" 13759fi 13760 13761if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13763 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13764 fi 13765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13767$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13768if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13769 $as_echo_n "(cached) " >&6 13770else 13771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13772/* end confdefs.h. */ 13773int i; 13774_ACEOF 13775if ac_fn_c_try_compile "$LINENO"; then : 13776 xorg_cv_cc_flag_unused_command_line_argument=yes 13777else 13778 xorg_cv_cc_flag_unused_command_line_argument=no 13779fi 13780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13781fi 13782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13783$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13784 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13785 CFLAGS="$xorg_testset_save_CFLAGS" 13786fi 13787 13788found="no" 13789 13790 if test $found = "no" ; then 13791 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13792 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13793 fi 13794 13795 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13797 fi 13798 13799 CFLAGS="$CFLAGS -Wcast-qual" 13800 13801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 13802$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 13803 cacheid=xorg_cv_cc_flag__Wcast_qual 13804 if eval \${$cacheid+:} false; then : 13805 $as_echo_n "(cached) " >&6 13806else 13807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13808/* end confdefs.h. */ 13809int i; 13810int 13811main () 13812{ 13813 13814 ; 13815 return 0; 13816} 13817_ACEOF 13818if ac_fn_c_try_link "$LINENO"; then : 13819 eval $cacheid=yes 13820else 13821 eval $cacheid=no 13822fi 13823rm -f core conftest.err conftest.$ac_objext \ 13824 conftest$ac_exeext conftest.$ac_ext 13825fi 13826 13827 13828 CFLAGS="$xorg_testset_save_CFLAGS" 13829 13830 eval supported=\$$cacheid 13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13832$as_echo "$supported" >&6; } 13833 if test "$supported" = "yes" ; then 13834 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 13835 found="yes" 13836 fi 13837 fi 13838 13839 13840 13841 13842 13843 13844 13845 13846 13847 13848 13849 13850 13851 13852 13853xorg_testset_save_CFLAGS="$CFLAGS" 13854 13855if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13856 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13858$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13859if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13860 $as_echo_n "(cached) " >&6 13861else 13862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13863/* end confdefs.h. */ 13864int i; 13865_ACEOF 13866if ac_fn_c_try_compile "$LINENO"; then : 13867 xorg_cv_cc_flag_unknown_warning_option=yes 13868else 13869 xorg_cv_cc_flag_unknown_warning_option=no 13870fi 13871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13872fi 13873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13874$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13875 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13876 CFLAGS="$xorg_testset_save_CFLAGS" 13877fi 13878 13879if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13882 fi 13883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13885$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13886if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13887 $as_echo_n "(cached) " >&6 13888else 13889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13890/* end confdefs.h. */ 13891int i; 13892_ACEOF 13893if ac_fn_c_try_compile "$LINENO"; then : 13894 xorg_cv_cc_flag_unused_command_line_argument=yes 13895else 13896 xorg_cv_cc_flag_unused_command_line_argument=no 13897fi 13898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13899fi 13900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13901$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13902 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13903 CFLAGS="$xorg_testset_save_CFLAGS" 13904fi 13905 13906found="no" 13907 13908 if test $found = "no" ; then 13909 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13910 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13911 fi 13912 13913 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13915 fi 13916 13917 CFLAGS="$CFLAGS -Wmissing-noreturn" 13918 13919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 13920$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 13921 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 13922 if eval \${$cacheid+:} false; then : 13923 $as_echo_n "(cached) " >&6 13924else 13925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13926/* end confdefs.h. */ 13927int i; 13928int 13929main () 13930{ 13931 13932 ; 13933 return 0; 13934} 13935_ACEOF 13936if ac_fn_c_try_link "$LINENO"; then : 13937 eval $cacheid=yes 13938else 13939 eval $cacheid=no 13940fi 13941rm -f core conftest.err conftest.$ac_objext \ 13942 conftest$ac_exeext conftest.$ac_ext 13943fi 13944 13945 13946 CFLAGS="$xorg_testset_save_CFLAGS" 13947 13948 eval supported=\$$cacheid 13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13950$as_echo "$supported" >&6; } 13951 if test "$supported" = "yes" ; then 13952 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 13953 found="yes" 13954 fi 13955 fi 13956 13957 13958 13959 13960 13961 13962 13963 13964 13965 13966 13967 13968 13969 13970 13971xorg_testset_save_CFLAGS="$CFLAGS" 13972 13973if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13974 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13976$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13977if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13978 $as_echo_n "(cached) " >&6 13979else 13980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13981/* end confdefs.h. */ 13982int i; 13983_ACEOF 13984if ac_fn_c_try_compile "$LINENO"; then : 13985 xorg_cv_cc_flag_unknown_warning_option=yes 13986else 13987 xorg_cv_cc_flag_unknown_warning_option=no 13988fi 13989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13990fi 13991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13992$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13993 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13994 CFLAGS="$xorg_testset_save_CFLAGS" 13995fi 13996 13997if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14000 fi 14001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14003$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14004if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14005 $as_echo_n "(cached) " >&6 14006else 14007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14008/* end confdefs.h. */ 14009int i; 14010_ACEOF 14011if ac_fn_c_try_compile "$LINENO"; then : 14012 xorg_cv_cc_flag_unused_command_line_argument=yes 14013else 14014 xorg_cv_cc_flag_unused_command_line_argument=no 14015fi 14016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14017fi 14018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14019$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14020 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14021 CFLAGS="$xorg_testset_save_CFLAGS" 14022fi 14023 14024found="no" 14025 14026 if test $found = "no" ; then 14027 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14029 fi 14030 14031 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14033 fi 14034 14035 CFLAGS="$CFLAGS -Wmissing-format-attribute" 14036 14037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 14038$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 14039 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 14040 if eval \${$cacheid+:} false; then : 14041 $as_echo_n "(cached) " >&6 14042else 14043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14044/* end confdefs.h. */ 14045int i; 14046int 14047main () 14048{ 14049 14050 ; 14051 return 0; 14052} 14053_ACEOF 14054if ac_fn_c_try_link "$LINENO"; then : 14055 eval $cacheid=yes 14056else 14057 eval $cacheid=no 14058fi 14059rm -f core conftest.err conftest.$ac_objext \ 14060 conftest$ac_exeext conftest.$ac_ext 14061fi 14062 14063 14064 CFLAGS="$xorg_testset_save_CFLAGS" 14065 14066 eval supported=\$$cacheid 14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14068$as_echo "$supported" >&6; } 14069 if test "$supported" = "yes" ; then 14070 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 14071 found="yes" 14072 fi 14073 fi 14074 14075 14076 14077 14078 14079 14080 14081 14082 14083 14084 14085 14086 14087 14088 14089xorg_testset_save_CFLAGS="$CFLAGS" 14090 14091if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14094$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14095if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14096 $as_echo_n "(cached) " >&6 14097else 14098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14099/* end confdefs.h. */ 14100int i; 14101_ACEOF 14102if ac_fn_c_try_compile "$LINENO"; then : 14103 xorg_cv_cc_flag_unknown_warning_option=yes 14104else 14105 xorg_cv_cc_flag_unknown_warning_option=no 14106fi 14107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14108fi 14109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14110$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14111 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14112 CFLAGS="$xorg_testset_save_CFLAGS" 14113fi 14114 14115if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14118 fi 14119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14121$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14122if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14123 $as_echo_n "(cached) " >&6 14124else 14125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14126/* end confdefs.h. */ 14127int i; 14128_ACEOF 14129if ac_fn_c_try_compile "$LINENO"; then : 14130 xorg_cv_cc_flag_unused_command_line_argument=yes 14131else 14132 xorg_cv_cc_flag_unused_command_line_argument=no 14133fi 14134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14135fi 14136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14137$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14138 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14139 CFLAGS="$xorg_testset_save_CFLAGS" 14140fi 14141 14142found="no" 14143 14144 if test $found = "no" ; then 14145 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14147 fi 14148 14149 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14151 fi 14152 14153 CFLAGS="$CFLAGS -Wredundant-decls" 14154 14155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 14156$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 14157 cacheid=xorg_cv_cc_flag__Wredundant_decls 14158 if eval \${$cacheid+:} false; then : 14159 $as_echo_n "(cached) " >&6 14160else 14161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14162/* end confdefs.h. */ 14163int i; 14164int 14165main () 14166{ 14167 14168 ; 14169 return 0; 14170} 14171_ACEOF 14172if ac_fn_c_try_link "$LINENO"; then : 14173 eval $cacheid=yes 14174else 14175 eval $cacheid=no 14176fi 14177rm -f core conftest.err conftest.$ac_objext \ 14178 conftest$ac_exeext conftest.$ac_ext 14179fi 14180 14181 14182 CFLAGS="$xorg_testset_save_CFLAGS" 14183 14184 eval supported=\$$cacheid 14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14186$as_echo "$supported" >&6; } 14187 if test "$supported" = "yes" ; then 14188 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 14189 found="yes" 14190 fi 14191 fi 14192 14193 14194 14195# These are currently disabled because they are noisy. They will be enabled 14196# in the future once the codebase is sufficiently modernized to silence 14197# them. For now, I don't want them to drown out the other warnings. 14198# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 14199# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 14200# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 14201 14202# Turn some warnings into errors, so we don't accidently get successful builds 14203# when there are problems that should be fixed. 14204 14205if test "x$SELECTIVE_WERROR" = "xyes" ; then 14206 14207 14208 14209 14210 14211 14212 14213 14214 14215 14216 14217 14218 14219xorg_testset_save_CFLAGS="$CFLAGS" 14220 14221if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14224$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14225if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14226 $as_echo_n "(cached) " >&6 14227else 14228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14229/* end confdefs.h. */ 14230int i; 14231_ACEOF 14232if ac_fn_c_try_compile "$LINENO"; then : 14233 xorg_cv_cc_flag_unknown_warning_option=yes 14234else 14235 xorg_cv_cc_flag_unknown_warning_option=no 14236fi 14237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14238fi 14239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14240$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14241 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14242 CFLAGS="$xorg_testset_save_CFLAGS" 14243fi 14244 14245if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14247 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14248 fi 14249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14251$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14252if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14253 $as_echo_n "(cached) " >&6 14254else 14255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14256/* end confdefs.h. */ 14257int i; 14258_ACEOF 14259if ac_fn_c_try_compile "$LINENO"; then : 14260 xorg_cv_cc_flag_unused_command_line_argument=yes 14261else 14262 xorg_cv_cc_flag_unused_command_line_argument=no 14263fi 14264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14265fi 14266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14267$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14268 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14269 CFLAGS="$xorg_testset_save_CFLAGS" 14270fi 14271 14272found="no" 14273 14274 if test $found = "no" ; then 14275 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14276 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14277 fi 14278 14279 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14281 fi 14282 14283 CFLAGS="$CFLAGS -Werror=implicit" 14284 14285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 14286$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 14287 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 14288 if eval \${$cacheid+:} false; then : 14289 $as_echo_n "(cached) " >&6 14290else 14291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14292/* end confdefs.h. */ 14293int i; 14294int 14295main () 14296{ 14297 14298 ; 14299 return 0; 14300} 14301_ACEOF 14302if ac_fn_c_try_link "$LINENO"; then : 14303 eval $cacheid=yes 14304else 14305 eval $cacheid=no 14306fi 14307rm -f core conftest.err conftest.$ac_objext \ 14308 conftest$ac_exeext conftest.$ac_ext 14309fi 14310 14311 14312 CFLAGS="$xorg_testset_save_CFLAGS" 14313 14314 eval supported=\$$cacheid 14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14316$as_echo "$supported" >&6; } 14317 if test "$supported" = "yes" ; then 14318 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 14319 found="yes" 14320 fi 14321 fi 14322 14323 if test $found = "no" ; then 14324 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14325 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14326 fi 14327 14328 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14330 fi 14331 14332 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14333 14334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 14335$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 14336 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 14337 if eval \${$cacheid+:} false; then : 14338 $as_echo_n "(cached) " >&6 14339else 14340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14341/* end confdefs.h. */ 14342int i; 14343int 14344main () 14345{ 14346 14347 ; 14348 return 0; 14349} 14350_ACEOF 14351if ac_fn_c_try_link "$LINENO"; then : 14352 eval $cacheid=yes 14353else 14354 eval $cacheid=no 14355fi 14356rm -f core conftest.err conftest.$ac_objext \ 14357 conftest$ac_exeext conftest.$ac_ext 14358fi 14359 14360 14361 CFLAGS="$xorg_testset_save_CFLAGS" 14362 14363 eval supported=\$$cacheid 14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14365$as_echo "$supported" >&6; } 14366 if test "$supported" = "yes" ; then 14367 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14368 found="yes" 14369 fi 14370 fi 14371 14372 14373 14374 14375 14376 14377 14378 14379 14380 14381 14382 14383 14384 14385 14386xorg_testset_save_CFLAGS="$CFLAGS" 14387 14388if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14391$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14392if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14393 $as_echo_n "(cached) " >&6 14394else 14395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14396/* end confdefs.h. */ 14397int i; 14398_ACEOF 14399if ac_fn_c_try_compile "$LINENO"; then : 14400 xorg_cv_cc_flag_unknown_warning_option=yes 14401else 14402 xorg_cv_cc_flag_unknown_warning_option=no 14403fi 14404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14405fi 14406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14407$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14408 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14409 CFLAGS="$xorg_testset_save_CFLAGS" 14410fi 14411 14412if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14414 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14415 fi 14416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14418$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14419if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14420 $as_echo_n "(cached) " >&6 14421else 14422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14423/* end confdefs.h. */ 14424int i; 14425_ACEOF 14426if ac_fn_c_try_compile "$LINENO"; then : 14427 xorg_cv_cc_flag_unused_command_line_argument=yes 14428else 14429 xorg_cv_cc_flag_unused_command_line_argument=no 14430fi 14431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14432fi 14433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14434$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14435 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14436 CFLAGS="$xorg_testset_save_CFLAGS" 14437fi 14438 14439found="no" 14440 14441 if test $found = "no" ; then 14442 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14444 fi 14445 14446 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14448 fi 14449 14450 CFLAGS="$CFLAGS -Werror=nonnull" 14451 14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 14453$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 14454 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 14455 if eval \${$cacheid+:} false; then : 14456 $as_echo_n "(cached) " >&6 14457else 14458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14459/* end confdefs.h. */ 14460int i; 14461int 14462main () 14463{ 14464 14465 ; 14466 return 0; 14467} 14468_ACEOF 14469if ac_fn_c_try_link "$LINENO"; then : 14470 eval $cacheid=yes 14471else 14472 eval $cacheid=no 14473fi 14474rm -f core conftest.err conftest.$ac_objext \ 14475 conftest$ac_exeext conftest.$ac_ext 14476fi 14477 14478 14479 CFLAGS="$xorg_testset_save_CFLAGS" 14480 14481 eval supported=\$$cacheid 14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14483$as_echo "$supported" >&6; } 14484 if test "$supported" = "yes" ; then 14485 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14486 found="yes" 14487 fi 14488 fi 14489 14490 14491 14492 14493 14494 14495 14496 14497 14498 14499 14500 14501 14502 14503 14504xorg_testset_save_CFLAGS="$CFLAGS" 14505 14506if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14507 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14509$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14510if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14511 $as_echo_n "(cached) " >&6 14512else 14513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14514/* end confdefs.h. */ 14515int i; 14516_ACEOF 14517if ac_fn_c_try_compile "$LINENO"; then : 14518 xorg_cv_cc_flag_unknown_warning_option=yes 14519else 14520 xorg_cv_cc_flag_unknown_warning_option=no 14521fi 14522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14523fi 14524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14525$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14526 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14527 CFLAGS="$xorg_testset_save_CFLAGS" 14528fi 14529 14530if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14533 fi 14534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14536$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14537if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14538 $as_echo_n "(cached) " >&6 14539else 14540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14541/* end confdefs.h. */ 14542int i; 14543_ACEOF 14544if ac_fn_c_try_compile "$LINENO"; then : 14545 xorg_cv_cc_flag_unused_command_line_argument=yes 14546else 14547 xorg_cv_cc_flag_unused_command_line_argument=no 14548fi 14549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14550fi 14551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14552$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14553 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14554 CFLAGS="$xorg_testset_save_CFLAGS" 14555fi 14556 14557found="no" 14558 14559 if test $found = "no" ; then 14560 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14561 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14562 fi 14563 14564 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14566 fi 14567 14568 CFLAGS="$CFLAGS -Werror=init-self" 14569 14570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 14571$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 14572 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 14573 if eval \${$cacheid+:} false; then : 14574 $as_echo_n "(cached) " >&6 14575else 14576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14577/* end confdefs.h. */ 14578int i; 14579int 14580main () 14581{ 14582 14583 ; 14584 return 0; 14585} 14586_ACEOF 14587if ac_fn_c_try_link "$LINENO"; then : 14588 eval $cacheid=yes 14589else 14590 eval $cacheid=no 14591fi 14592rm -f core conftest.err conftest.$ac_objext \ 14593 conftest$ac_exeext conftest.$ac_ext 14594fi 14595 14596 14597 CFLAGS="$xorg_testset_save_CFLAGS" 14598 14599 eval supported=\$$cacheid 14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14601$as_echo "$supported" >&6; } 14602 if test "$supported" = "yes" ; then 14603 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 14604 found="yes" 14605 fi 14606 fi 14607 14608 14609 14610 14611 14612 14613 14614 14615 14616 14617 14618 14619 14620 14621 14622xorg_testset_save_CFLAGS="$CFLAGS" 14623 14624if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14625 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14627$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14628if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14629 $as_echo_n "(cached) " >&6 14630else 14631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14632/* end confdefs.h. */ 14633int i; 14634_ACEOF 14635if ac_fn_c_try_compile "$LINENO"; then : 14636 xorg_cv_cc_flag_unknown_warning_option=yes 14637else 14638 xorg_cv_cc_flag_unknown_warning_option=no 14639fi 14640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14641fi 14642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14643$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14644 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14645 CFLAGS="$xorg_testset_save_CFLAGS" 14646fi 14647 14648if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14649 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14650 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14651 fi 14652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14654$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14655if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14656 $as_echo_n "(cached) " >&6 14657else 14658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14659/* end confdefs.h. */ 14660int i; 14661_ACEOF 14662if ac_fn_c_try_compile "$LINENO"; then : 14663 xorg_cv_cc_flag_unused_command_line_argument=yes 14664else 14665 xorg_cv_cc_flag_unused_command_line_argument=no 14666fi 14667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14668fi 14669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14670$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14671 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14672 CFLAGS="$xorg_testset_save_CFLAGS" 14673fi 14674 14675found="no" 14676 14677 if test $found = "no" ; then 14678 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14679 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14680 fi 14681 14682 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14684 fi 14685 14686 CFLAGS="$CFLAGS -Werror=main" 14687 14688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 14689$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 14690 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 14691 if eval \${$cacheid+:} false; then : 14692 $as_echo_n "(cached) " >&6 14693else 14694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14695/* end confdefs.h. */ 14696int i; 14697int 14698main () 14699{ 14700 14701 ; 14702 return 0; 14703} 14704_ACEOF 14705if ac_fn_c_try_link "$LINENO"; then : 14706 eval $cacheid=yes 14707else 14708 eval $cacheid=no 14709fi 14710rm -f core conftest.err conftest.$ac_objext \ 14711 conftest$ac_exeext conftest.$ac_ext 14712fi 14713 14714 14715 CFLAGS="$xorg_testset_save_CFLAGS" 14716 14717 eval supported=\$$cacheid 14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14719$as_echo "$supported" >&6; } 14720 if test "$supported" = "yes" ; then 14721 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 14722 found="yes" 14723 fi 14724 fi 14725 14726 14727 14728 14729 14730 14731 14732 14733 14734 14735 14736 14737 14738 14739 14740xorg_testset_save_CFLAGS="$CFLAGS" 14741 14742if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14743 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14745$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14746if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14747 $as_echo_n "(cached) " >&6 14748else 14749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14750/* end confdefs.h. */ 14751int i; 14752_ACEOF 14753if ac_fn_c_try_compile "$LINENO"; then : 14754 xorg_cv_cc_flag_unknown_warning_option=yes 14755else 14756 xorg_cv_cc_flag_unknown_warning_option=no 14757fi 14758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14759fi 14760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14761$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14762 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14763 CFLAGS="$xorg_testset_save_CFLAGS" 14764fi 14765 14766if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14768 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14769 fi 14770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14772$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14773if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14774 $as_echo_n "(cached) " >&6 14775else 14776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14777/* end confdefs.h. */ 14778int i; 14779_ACEOF 14780if ac_fn_c_try_compile "$LINENO"; then : 14781 xorg_cv_cc_flag_unused_command_line_argument=yes 14782else 14783 xorg_cv_cc_flag_unused_command_line_argument=no 14784fi 14785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14786fi 14787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14788$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14789 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14790 CFLAGS="$xorg_testset_save_CFLAGS" 14791fi 14792 14793found="no" 14794 14795 if test $found = "no" ; then 14796 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14797 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14798 fi 14799 14800 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14802 fi 14803 14804 CFLAGS="$CFLAGS -Werror=missing-braces" 14805 14806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 14807$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 14808 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 14809 if eval \${$cacheid+:} false; then : 14810 $as_echo_n "(cached) " >&6 14811else 14812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14813/* end confdefs.h. */ 14814int i; 14815int 14816main () 14817{ 14818 14819 ; 14820 return 0; 14821} 14822_ACEOF 14823if ac_fn_c_try_link "$LINENO"; then : 14824 eval $cacheid=yes 14825else 14826 eval $cacheid=no 14827fi 14828rm -f core conftest.err conftest.$ac_objext \ 14829 conftest$ac_exeext conftest.$ac_ext 14830fi 14831 14832 14833 CFLAGS="$xorg_testset_save_CFLAGS" 14834 14835 eval supported=\$$cacheid 14836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14837$as_echo "$supported" >&6; } 14838 if test "$supported" = "yes" ; then 14839 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 14840 found="yes" 14841 fi 14842 fi 14843 14844 14845 14846 14847 14848 14849 14850 14851 14852 14853 14854 14855 14856 14857 14858xorg_testset_save_CFLAGS="$CFLAGS" 14859 14860if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14861 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14863$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14864if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14865 $as_echo_n "(cached) " >&6 14866else 14867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14868/* end confdefs.h. */ 14869int i; 14870_ACEOF 14871if ac_fn_c_try_compile "$LINENO"; then : 14872 xorg_cv_cc_flag_unknown_warning_option=yes 14873else 14874 xorg_cv_cc_flag_unknown_warning_option=no 14875fi 14876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14877fi 14878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14879$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14880 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14881 CFLAGS="$xorg_testset_save_CFLAGS" 14882fi 14883 14884if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14885 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14886 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14887 fi 14888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14890$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14891if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14892 $as_echo_n "(cached) " >&6 14893else 14894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14895/* end confdefs.h. */ 14896int i; 14897_ACEOF 14898if ac_fn_c_try_compile "$LINENO"; then : 14899 xorg_cv_cc_flag_unused_command_line_argument=yes 14900else 14901 xorg_cv_cc_flag_unused_command_line_argument=no 14902fi 14903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14904fi 14905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14906$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14907 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14908 CFLAGS="$xorg_testset_save_CFLAGS" 14909fi 14910 14911found="no" 14912 14913 if test $found = "no" ; then 14914 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14915 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14916 fi 14917 14918 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14920 fi 14921 14922 CFLAGS="$CFLAGS -Werror=sequence-point" 14923 14924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 14925$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 14926 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 14927 if eval \${$cacheid+:} false; then : 14928 $as_echo_n "(cached) " >&6 14929else 14930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14931/* end confdefs.h. */ 14932int i; 14933int 14934main () 14935{ 14936 14937 ; 14938 return 0; 14939} 14940_ACEOF 14941if ac_fn_c_try_link "$LINENO"; then : 14942 eval $cacheid=yes 14943else 14944 eval $cacheid=no 14945fi 14946rm -f core conftest.err conftest.$ac_objext \ 14947 conftest$ac_exeext conftest.$ac_ext 14948fi 14949 14950 14951 CFLAGS="$xorg_testset_save_CFLAGS" 14952 14953 eval supported=\$$cacheid 14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14955$as_echo "$supported" >&6; } 14956 if test "$supported" = "yes" ; then 14957 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 14958 found="yes" 14959 fi 14960 fi 14961 14962 14963 14964 14965 14966 14967 14968 14969 14970 14971 14972 14973 14974 14975 14976xorg_testset_save_CFLAGS="$CFLAGS" 14977 14978if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14979 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14981$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14982if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14983 $as_echo_n "(cached) " >&6 14984else 14985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14986/* end confdefs.h. */ 14987int i; 14988_ACEOF 14989if ac_fn_c_try_compile "$LINENO"; then : 14990 xorg_cv_cc_flag_unknown_warning_option=yes 14991else 14992 xorg_cv_cc_flag_unknown_warning_option=no 14993fi 14994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14995fi 14996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14997$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14998 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14999 CFLAGS="$xorg_testset_save_CFLAGS" 15000fi 15001 15002if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15005 fi 15006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15008$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15009if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15010 $as_echo_n "(cached) " >&6 15011else 15012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15013/* end confdefs.h. */ 15014int i; 15015_ACEOF 15016if ac_fn_c_try_compile "$LINENO"; then : 15017 xorg_cv_cc_flag_unused_command_line_argument=yes 15018else 15019 xorg_cv_cc_flag_unused_command_line_argument=no 15020fi 15021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15022fi 15023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15024$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15025 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15026 CFLAGS="$xorg_testset_save_CFLAGS" 15027fi 15028 15029found="no" 15030 15031 if test $found = "no" ; then 15032 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15034 fi 15035 15036 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15038 fi 15039 15040 CFLAGS="$CFLAGS -Werror=return-type" 15041 15042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 15043$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 15044 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 15045 if eval \${$cacheid+:} false; then : 15046 $as_echo_n "(cached) " >&6 15047else 15048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15049/* end confdefs.h. */ 15050int i; 15051int 15052main () 15053{ 15054 15055 ; 15056 return 0; 15057} 15058_ACEOF 15059if ac_fn_c_try_link "$LINENO"; then : 15060 eval $cacheid=yes 15061else 15062 eval $cacheid=no 15063fi 15064rm -f core conftest.err conftest.$ac_objext \ 15065 conftest$ac_exeext conftest.$ac_ext 15066fi 15067 15068 15069 CFLAGS="$xorg_testset_save_CFLAGS" 15070 15071 eval supported=\$$cacheid 15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15073$as_echo "$supported" >&6; } 15074 if test "$supported" = "yes" ; then 15075 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 15076 found="yes" 15077 fi 15078 fi 15079 15080 if test $found = "no" ; then 15081 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15083 fi 15084 15085 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15087 fi 15088 15089 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15090 15091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 15092$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 15093 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 15094 if eval \${$cacheid+:} false; then : 15095 $as_echo_n "(cached) " >&6 15096else 15097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15098/* end confdefs.h. */ 15099int i; 15100int 15101main () 15102{ 15103 15104 ; 15105 return 0; 15106} 15107_ACEOF 15108if ac_fn_c_try_link "$LINENO"; then : 15109 eval $cacheid=yes 15110else 15111 eval $cacheid=no 15112fi 15113rm -f core conftest.err conftest.$ac_objext \ 15114 conftest$ac_exeext conftest.$ac_ext 15115fi 15116 15117 15118 CFLAGS="$xorg_testset_save_CFLAGS" 15119 15120 eval supported=\$$cacheid 15121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15122$as_echo "$supported" >&6; } 15123 if test "$supported" = "yes" ; then 15124 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15125 found="yes" 15126 fi 15127 fi 15128 15129 15130 15131 15132 15133 15134 15135 15136 15137 15138 15139 15140 15141 15142 15143xorg_testset_save_CFLAGS="$CFLAGS" 15144 15145if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15148$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15149if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15150 $as_echo_n "(cached) " >&6 15151else 15152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15153/* end confdefs.h. */ 15154int i; 15155_ACEOF 15156if ac_fn_c_try_compile "$LINENO"; then : 15157 xorg_cv_cc_flag_unknown_warning_option=yes 15158else 15159 xorg_cv_cc_flag_unknown_warning_option=no 15160fi 15161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15162fi 15163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15164$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15165 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15166 CFLAGS="$xorg_testset_save_CFLAGS" 15167fi 15168 15169if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15171 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15172 fi 15173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15175$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15176if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15177 $as_echo_n "(cached) " >&6 15178else 15179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15180/* end confdefs.h. */ 15181int i; 15182_ACEOF 15183if ac_fn_c_try_compile "$LINENO"; then : 15184 xorg_cv_cc_flag_unused_command_line_argument=yes 15185else 15186 xorg_cv_cc_flag_unused_command_line_argument=no 15187fi 15188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15189fi 15190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15191$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15192 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15193 CFLAGS="$xorg_testset_save_CFLAGS" 15194fi 15195 15196found="no" 15197 15198 if test $found = "no" ; then 15199 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15201 fi 15202 15203 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15205 fi 15206 15207 CFLAGS="$CFLAGS -Werror=trigraphs" 15208 15209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 15210$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 15211 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 15212 if eval \${$cacheid+:} false; then : 15213 $as_echo_n "(cached) " >&6 15214else 15215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15216/* end confdefs.h. */ 15217int i; 15218int 15219main () 15220{ 15221 15222 ; 15223 return 0; 15224} 15225_ACEOF 15226if ac_fn_c_try_link "$LINENO"; then : 15227 eval $cacheid=yes 15228else 15229 eval $cacheid=no 15230fi 15231rm -f core conftest.err conftest.$ac_objext \ 15232 conftest$ac_exeext conftest.$ac_ext 15233fi 15234 15235 15236 CFLAGS="$xorg_testset_save_CFLAGS" 15237 15238 eval supported=\$$cacheid 15239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15240$as_echo "$supported" >&6; } 15241 if test "$supported" = "yes" ; then 15242 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 15243 found="yes" 15244 fi 15245 fi 15246 15247 15248 15249 15250 15251 15252 15253 15254 15255 15256 15257 15258 15259 15260 15261xorg_testset_save_CFLAGS="$CFLAGS" 15262 15263if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15266$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15267if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15268 $as_echo_n "(cached) " >&6 15269else 15270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15271/* end confdefs.h. */ 15272int i; 15273_ACEOF 15274if ac_fn_c_try_compile "$LINENO"; then : 15275 xorg_cv_cc_flag_unknown_warning_option=yes 15276else 15277 xorg_cv_cc_flag_unknown_warning_option=no 15278fi 15279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15280fi 15281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15282$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15283 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15284 CFLAGS="$xorg_testset_save_CFLAGS" 15285fi 15286 15287if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15289 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15290 fi 15291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15293$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15294if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15295 $as_echo_n "(cached) " >&6 15296else 15297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15298/* end confdefs.h. */ 15299int i; 15300_ACEOF 15301if ac_fn_c_try_compile "$LINENO"; then : 15302 xorg_cv_cc_flag_unused_command_line_argument=yes 15303else 15304 xorg_cv_cc_flag_unused_command_line_argument=no 15305fi 15306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15307fi 15308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15309$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15310 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15311 CFLAGS="$xorg_testset_save_CFLAGS" 15312fi 15313 15314found="no" 15315 15316 if test $found = "no" ; then 15317 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15319 fi 15320 15321 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15323 fi 15324 15325 CFLAGS="$CFLAGS -Werror=array-bounds" 15326 15327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 15328$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 15329 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 15330 if eval \${$cacheid+:} false; then : 15331 $as_echo_n "(cached) " >&6 15332else 15333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15334/* end confdefs.h. */ 15335int i; 15336int 15337main () 15338{ 15339 15340 ; 15341 return 0; 15342} 15343_ACEOF 15344if ac_fn_c_try_link "$LINENO"; then : 15345 eval $cacheid=yes 15346else 15347 eval $cacheid=no 15348fi 15349rm -f core conftest.err conftest.$ac_objext \ 15350 conftest$ac_exeext conftest.$ac_ext 15351fi 15352 15353 15354 CFLAGS="$xorg_testset_save_CFLAGS" 15355 15356 eval supported=\$$cacheid 15357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15358$as_echo "$supported" >&6; } 15359 if test "$supported" = "yes" ; then 15360 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 15361 found="yes" 15362 fi 15363 fi 15364 15365 15366 15367 15368 15369 15370 15371 15372 15373 15374 15375 15376 15377 15378 15379xorg_testset_save_CFLAGS="$CFLAGS" 15380 15381if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15382 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15384$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15385if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15386 $as_echo_n "(cached) " >&6 15387else 15388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15389/* end confdefs.h. */ 15390int i; 15391_ACEOF 15392if ac_fn_c_try_compile "$LINENO"; then : 15393 xorg_cv_cc_flag_unknown_warning_option=yes 15394else 15395 xorg_cv_cc_flag_unknown_warning_option=no 15396fi 15397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15398fi 15399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15400$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15401 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15402 CFLAGS="$xorg_testset_save_CFLAGS" 15403fi 15404 15405if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15408 fi 15409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15411$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15412if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15413 $as_echo_n "(cached) " >&6 15414else 15415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15416/* end confdefs.h. */ 15417int i; 15418_ACEOF 15419if ac_fn_c_try_compile "$LINENO"; then : 15420 xorg_cv_cc_flag_unused_command_line_argument=yes 15421else 15422 xorg_cv_cc_flag_unused_command_line_argument=no 15423fi 15424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15425fi 15426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15427$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15428 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15429 CFLAGS="$xorg_testset_save_CFLAGS" 15430fi 15431 15432found="no" 15433 15434 if test $found = "no" ; then 15435 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15436 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15437 fi 15438 15439 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15441 fi 15442 15443 CFLAGS="$CFLAGS -Werror=write-strings" 15444 15445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 15446$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 15447 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 15448 if eval \${$cacheid+:} false; then : 15449 $as_echo_n "(cached) " >&6 15450else 15451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15452/* end confdefs.h. */ 15453int i; 15454int 15455main () 15456{ 15457 15458 ; 15459 return 0; 15460} 15461_ACEOF 15462if ac_fn_c_try_link "$LINENO"; then : 15463 eval $cacheid=yes 15464else 15465 eval $cacheid=no 15466fi 15467rm -f core conftest.err conftest.$ac_objext \ 15468 conftest$ac_exeext conftest.$ac_ext 15469fi 15470 15471 15472 CFLAGS="$xorg_testset_save_CFLAGS" 15473 15474 eval supported=\$$cacheid 15475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15476$as_echo "$supported" >&6; } 15477 if test "$supported" = "yes" ; then 15478 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 15479 found="yes" 15480 fi 15481 fi 15482 15483 15484 15485 15486 15487 15488 15489 15490 15491 15492 15493 15494 15495 15496 15497xorg_testset_save_CFLAGS="$CFLAGS" 15498 15499if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15500 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15502$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15503if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15504 $as_echo_n "(cached) " >&6 15505else 15506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15507/* end confdefs.h. */ 15508int i; 15509_ACEOF 15510if ac_fn_c_try_compile "$LINENO"; then : 15511 xorg_cv_cc_flag_unknown_warning_option=yes 15512else 15513 xorg_cv_cc_flag_unknown_warning_option=no 15514fi 15515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15516fi 15517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15518$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15519 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15520 CFLAGS="$xorg_testset_save_CFLAGS" 15521fi 15522 15523if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15524 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15525 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15526 fi 15527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15529$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15530if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15531 $as_echo_n "(cached) " >&6 15532else 15533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15534/* end confdefs.h. */ 15535int i; 15536_ACEOF 15537if ac_fn_c_try_compile "$LINENO"; then : 15538 xorg_cv_cc_flag_unused_command_line_argument=yes 15539else 15540 xorg_cv_cc_flag_unused_command_line_argument=no 15541fi 15542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15543fi 15544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15545$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15546 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15547 CFLAGS="$xorg_testset_save_CFLAGS" 15548fi 15549 15550found="no" 15551 15552 if test $found = "no" ; then 15553 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15555 fi 15556 15557 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15559 fi 15560 15561 CFLAGS="$CFLAGS -Werror=address" 15562 15563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 15564$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 15565 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 15566 if eval \${$cacheid+:} false; then : 15567 $as_echo_n "(cached) " >&6 15568else 15569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15570/* end confdefs.h. */ 15571int i; 15572int 15573main () 15574{ 15575 15576 ; 15577 return 0; 15578} 15579_ACEOF 15580if ac_fn_c_try_link "$LINENO"; then : 15581 eval $cacheid=yes 15582else 15583 eval $cacheid=no 15584fi 15585rm -f core conftest.err conftest.$ac_objext \ 15586 conftest$ac_exeext conftest.$ac_ext 15587fi 15588 15589 15590 CFLAGS="$xorg_testset_save_CFLAGS" 15591 15592 eval supported=\$$cacheid 15593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15594$as_echo "$supported" >&6; } 15595 if test "$supported" = "yes" ; then 15596 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 15597 found="yes" 15598 fi 15599 fi 15600 15601 15602 15603 15604 15605 15606 15607 15608 15609 15610 15611 15612 15613 15614 15615xorg_testset_save_CFLAGS="$CFLAGS" 15616 15617if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15618 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15620$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15621if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15622 $as_echo_n "(cached) " >&6 15623else 15624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15625/* end confdefs.h. */ 15626int i; 15627_ACEOF 15628if ac_fn_c_try_compile "$LINENO"; then : 15629 xorg_cv_cc_flag_unknown_warning_option=yes 15630else 15631 xorg_cv_cc_flag_unknown_warning_option=no 15632fi 15633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15634fi 15635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15636$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15637 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15638 CFLAGS="$xorg_testset_save_CFLAGS" 15639fi 15640 15641if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15644 fi 15645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15647$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15648if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15649 $as_echo_n "(cached) " >&6 15650else 15651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15652/* end confdefs.h. */ 15653int i; 15654_ACEOF 15655if ac_fn_c_try_compile "$LINENO"; then : 15656 xorg_cv_cc_flag_unused_command_line_argument=yes 15657else 15658 xorg_cv_cc_flag_unused_command_line_argument=no 15659fi 15660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15661fi 15662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15663$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15664 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15665 CFLAGS="$xorg_testset_save_CFLAGS" 15666fi 15667 15668found="no" 15669 15670 if test $found = "no" ; then 15671 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15672 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15673 fi 15674 15675 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15677 fi 15678 15679 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 15680 15681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 15682$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 15683 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 15684 if eval \${$cacheid+:} false; then : 15685 $as_echo_n "(cached) " >&6 15686else 15687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15688/* end confdefs.h. */ 15689int i; 15690int 15691main () 15692{ 15693 15694 ; 15695 return 0; 15696} 15697_ACEOF 15698if ac_fn_c_try_link "$LINENO"; then : 15699 eval $cacheid=yes 15700else 15701 eval $cacheid=no 15702fi 15703rm -f core conftest.err conftest.$ac_objext \ 15704 conftest$ac_exeext conftest.$ac_ext 15705fi 15706 15707 15708 CFLAGS="$xorg_testset_save_CFLAGS" 15709 15710 eval supported=\$$cacheid 15711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15712$as_echo "$supported" >&6; } 15713 if test "$supported" = "yes" ; then 15714 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 15715 found="yes" 15716 fi 15717 fi 15718 15719 if test $found = "no" ; then 15720 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15722 fi 15723 15724 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15726 fi 15727 15728 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15729 15730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 15731$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 15732 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 15733 if eval \${$cacheid+:} false; then : 15734 $as_echo_n "(cached) " >&6 15735else 15736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15737/* end confdefs.h. */ 15738int i; 15739int 15740main () 15741{ 15742 15743 ; 15744 return 0; 15745} 15746_ACEOF 15747if ac_fn_c_try_link "$LINENO"; then : 15748 eval $cacheid=yes 15749else 15750 eval $cacheid=no 15751fi 15752rm -f core conftest.err conftest.$ac_objext \ 15753 conftest$ac_exeext conftest.$ac_ext 15754fi 15755 15756 15757 CFLAGS="$xorg_testset_save_CFLAGS" 15758 15759 eval supported=\$$cacheid 15760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15761$as_echo "$supported" >&6; } 15762 if test "$supported" = "yes" ; then 15763 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15764 found="yes" 15765 fi 15766 fi 15767 15768 15769 15770 15771 15772 15773 15774 15775 15776 15777 15778 15779 15780 15781 15782xorg_testset_save_CFLAGS="$CFLAGS" 15783 15784if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15785 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15787$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15788if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15789 $as_echo_n "(cached) " >&6 15790else 15791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15792/* end confdefs.h. */ 15793int i; 15794_ACEOF 15795if ac_fn_c_try_compile "$LINENO"; then : 15796 xorg_cv_cc_flag_unknown_warning_option=yes 15797else 15798 xorg_cv_cc_flag_unknown_warning_option=no 15799fi 15800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15801fi 15802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15803$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15804 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15805 CFLAGS="$xorg_testset_save_CFLAGS" 15806fi 15807 15808if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15811 fi 15812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15814$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15815if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15816 $as_echo_n "(cached) " >&6 15817else 15818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15819/* end confdefs.h. */ 15820int i; 15821_ACEOF 15822if ac_fn_c_try_compile "$LINENO"; then : 15823 xorg_cv_cc_flag_unused_command_line_argument=yes 15824else 15825 xorg_cv_cc_flag_unused_command_line_argument=no 15826fi 15827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15828fi 15829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15830$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15831 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15832 CFLAGS="$xorg_testset_save_CFLAGS" 15833fi 15834 15835found="no" 15836 15837 if test $found = "no" ; then 15838 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15839 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15840 fi 15841 15842 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15844 fi 15845 15846 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 15847 15848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 15849$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 15850 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 15851 if eval \${$cacheid+:} false; then : 15852 $as_echo_n "(cached) " >&6 15853else 15854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15855/* end confdefs.h. */ 15856int i; 15857int 15858main () 15859{ 15860 15861 ; 15862 return 0; 15863} 15864_ACEOF 15865if ac_fn_c_try_link "$LINENO"; then : 15866 eval $cacheid=yes 15867else 15868 eval $cacheid=no 15869fi 15870rm -f core conftest.err conftest.$ac_objext \ 15871 conftest$ac_exeext conftest.$ac_ext 15872fi 15873 15874 15875 CFLAGS="$xorg_testset_save_CFLAGS" 15876 15877 eval supported=\$$cacheid 15878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15879$as_echo "$supported" >&6; } 15880 if test "$supported" = "yes" ; then 15881 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 15882 found="yes" 15883 fi 15884 fi 15885 15886 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 15887else 15888{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5 15889$as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;} 15890 15891 15892 15893 15894 15895 15896 15897 15898 15899 15900 15901 15902 15903xorg_testset_save_CFLAGS="$CFLAGS" 15904 15905if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15906 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15908$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15909if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15910 $as_echo_n "(cached) " >&6 15911else 15912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15913/* end confdefs.h. */ 15914int i; 15915_ACEOF 15916if ac_fn_c_try_compile "$LINENO"; then : 15917 xorg_cv_cc_flag_unknown_warning_option=yes 15918else 15919 xorg_cv_cc_flag_unknown_warning_option=no 15920fi 15921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15922fi 15923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15924$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15925 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15926 CFLAGS="$xorg_testset_save_CFLAGS" 15927fi 15928 15929if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15930 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15932 fi 15933 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15935$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15936if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15937 $as_echo_n "(cached) " >&6 15938else 15939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15940/* end confdefs.h. */ 15941int i; 15942_ACEOF 15943if ac_fn_c_try_compile "$LINENO"; then : 15944 xorg_cv_cc_flag_unused_command_line_argument=yes 15945else 15946 xorg_cv_cc_flag_unused_command_line_argument=no 15947fi 15948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15949fi 15950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15951$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15952 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15953 CFLAGS="$xorg_testset_save_CFLAGS" 15954fi 15955 15956found="no" 15957 15958 if test $found = "no" ; then 15959 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15961 fi 15962 15963 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15965 fi 15966 15967 CFLAGS="$CFLAGS -Wimplicit" 15968 15969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 15970$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 15971 cacheid=xorg_cv_cc_flag__Wimplicit 15972 if eval \${$cacheid+:} false; then : 15973 $as_echo_n "(cached) " >&6 15974else 15975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15976/* end confdefs.h. */ 15977int i; 15978int 15979main () 15980{ 15981 15982 ; 15983 return 0; 15984} 15985_ACEOF 15986if ac_fn_c_try_link "$LINENO"; then : 15987 eval $cacheid=yes 15988else 15989 eval $cacheid=no 15990fi 15991rm -f core conftest.err conftest.$ac_objext \ 15992 conftest$ac_exeext conftest.$ac_ext 15993fi 15994 15995 15996 CFLAGS="$xorg_testset_save_CFLAGS" 15997 15998 eval supported=\$$cacheid 15999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16000$as_echo "$supported" >&6; } 16001 if test "$supported" = "yes" ; then 16002 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 16003 found="yes" 16004 fi 16005 fi 16006 16007 16008 16009 16010 16011 16012 16013 16014 16015 16016 16017 16018 16019 16020 16021xorg_testset_save_CFLAGS="$CFLAGS" 16022 16023if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16026$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16027if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16028 $as_echo_n "(cached) " >&6 16029else 16030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16031/* end confdefs.h. */ 16032int i; 16033_ACEOF 16034if ac_fn_c_try_compile "$LINENO"; then : 16035 xorg_cv_cc_flag_unknown_warning_option=yes 16036else 16037 xorg_cv_cc_flag_unknown_warning_option=no 16038fi 16039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16040fi 16041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16042$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16043 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16044 CFLAGS="$xorg_testset_save_CFLAGS" 16045fi 16046 16047if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16048 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16050 fi 16051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16053$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16054if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16055 $as_echo_n "(cached) " >&6 16056else 16057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16058/* end confdefs.h. */ 16059int i; 16060_ACEOF 16061if ac_fn_c_try_compile "$LINENO"; then : 16062 xorg_cv_cc_flag_unused_command_line_argument=yes 16063else 16064 xorg_cv_cc_flag_unused_command_line_argument=no 16065fi 16066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16067fi 16068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16069$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16070 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16071 CFLAGS="$xorg_testset_save_CFLAGS" 16072fi 16073 16074found="no" 16075 16076 if test $found = "no" ; then 16077 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16079 fi 16080 16081 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16083 fi 16084 16085 CFLAGS="$CFLAGS -Wnonnull" 16086 16087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 16088$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 16089 cacheid=xorg_cv_cc_flag__Wnonnull 16090 if eval \${$cacheid+:} false; then : 16091 $as_echo_n "(cached) " >&6 16092else 16093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16094/* end confdefs.h. */ 16095int i; 16096int 16097main () 16098{ 16099 16100 ; 16101 return 0; 16102} 16103_ACEOF 16104if ac_fn_c_try_link "$LINENO"; then : 16105 eval $cacheid=yes 16106else 16107 eval $cacheid=no 16108fi 16109rm -f core conftest.err conftest.$ac_objext \ 16110 conftest$ac_exeext conftest.$ac_ext 16111fi 16112 16113 16114 CFLAGS="$xorg_testset_save_CFLAGS" 16115 16116 eval supported=\$$cacheid 16117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16118$as_echo "$supported" >&6; } 16119 if test "$supported" = "yes" ; then 16120 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 16121 found="yes" 16122 fi 16123 fi 16124 16125 16126 16127 16128 16129 16130 16131 16132 16133 16134 16135 16136 16137 16138 16139xorg_testset_save_CFLAGS="$CFLAGS" 16140 16141if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16142 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16144$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16145if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16146 $as_echo_n "(cached) " >&6 16147else 16148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16149/* end confdefs.h. */ 16150int i; 16151_ACEOF 16152if ac_fn_c_try_compile "$LINENO"; then : 16153 xorg_cv_cc_flag_unknown_warning_option=yes 16154else 16155 xorg_cv_cc_flag_unknown_warning_option=no 16156fi 16157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16158fi 16159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16160$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16161 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16162 CFLAGS="$xorg_testset_save_CFLAGS" 16163fi 16164 16165if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16167 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16168 fi 16169 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16171$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16172if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16173 $as_echo_n "(cached) " >&6 16174else 16175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16176/* end confdefs.h. */ 16177int i; 16178_ACEOF 16179if ac_fn_c_try_compile "$LINENO"; then : 16180 xorg_cv_cc_flag_unused_command_line_argument=yes 16181else 16182 xorg_cv_cc_flag_unused_command_line_argument=no 16183fi 16184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16185fi 16186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16187$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16188 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16189 CFLAGS="$xorg_testset_save_CFLAGS" 16190fi 16191 16192found="no" 16193 16194 if test $found = "no" ; then 16195 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16196 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16197 fi 16198 16199 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16201 fi 16202 16203 CFLAGS="$CFLAGS -Winit-self" 16204 16205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 16206$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 16207 cacheid=xorg_cv_cc_flag__Winit_self 16208 if eval \${$cacheid+:} false; then : 16209 $as_echo_n "(cached) " >&6 16210else 16211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16212/* end confdefs.h. */ 16213int i; 16214int 16215main () 16216{ 16217 16218 ; 16219 return 0; 16220} 16221_ACEOF 16222if ac_fn_c_try_link "$LINENO"; then : 16223 eval $cacheid=yes 16224else 16225 eval $cacheid=no 16226fi 16227rm -f core conftest.err conftest.$ac_objext \ 16228 conftest$ac_exeext conftest.$ac_ext 16229fi 16230 16231 16232 CFLAGS="$xorg_testset_save_CFLAGS" 16233 16234 eval supported=\$$cacheid 16235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16236$as_echo "$supported" >&6; } 16237 if test "$supported" = "yes" ; then 16238 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 16239 found="yes" 16240 fi 16241 fi 16242 16243 16244 16245 16246 16247 16248 16249 16250 16251 16252 16253 16254 16255 16256 16257xorg_testset_save_CFLAGS="$CFLAGS" 16258 16259if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16262$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16263if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16264 $as_echo_n "(cached) " >&6 16265else 16266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16267/* end confdefs.h. */ 16268int i; 16269_ACEOF 16270if ac_fn_c_try_compile "$LINENO"; then : 16271 xorg_cv_cc_flag_unknown_warning_option=yes 16272else 16273 xorg_cv_cc_flag_unknown_warning_option=no 16274fi 16275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16276fi 16277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16278$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16279 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16280 CFLAGS="$xorg_testset_save_CFLAGS" 16281fi 16282 16283if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16286 fi 16287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16289$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16290if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16291 $as_echo_n "(cached) " >&6 16292else 16293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16294/* end confdefs.h. */ 16295int i; 16296_ACEOF 16297if ac_fn_c_try_compile "$LINENO"; then : 16298 xorg_cv_cc_flag_unused_command_line_argument=yes 16299else 16300 xorg_cv_cc_flag_unused_command_line_argument=no 16301fi 16302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16303fi 16304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16305$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16306 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16307 CFLAGS="$xorg_testset_save_CFLAGS" 16308fi 16309 16310found="no" 16311 16312 if test $found = "no" ; then 16313 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16315 fi 16316 16317 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16319 fi 16320 16321 CFLAGS="$CFLAGS -Wmain" 16322 16323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 16324$as_echo_n "checking if $CC supports -Wmain... " >&6; } 16325 cacheid=xorg_cv_cc_flag__Wmain 16326 if eval \${$cacheid+:} false; then : 16327 $as_echo_n "(cached) " >&6 16328else 16329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16330/* end confdefs.h. */ 16331int i; 16332int 16333main () 16334{ 16335 16336 ; 16337 return 0; 16338} 16339_ACEOF 16340if ac_fn_c_try_link "$LINENO"; then : 16341 eval $cacheid=yes 16342else 16343 eval $cacheid=no 16344fi 16345rm -f core conftest.err conftest.$ac_objext \ 16346 conftest$ac_exeext conftest.$ac_ext 16347fi 16348 16349 16350 CFLAGS="$xorg_testset_save_CFLAGS" 16351 16352 eval supported=\$$cacheid 16353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16354$as_echo "$supported" >&6; } 16355 if test "$supported" = "yes" ; then 16356 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 16357 found="yes" 16358 fi 16359 fi 16360 16361 16362 16363 16364 16365 16366 16367 16368 16369 16370 16371 16372 16373 16374 16375xorg_testset_save_CFLAGS="$CFLAGS" 16376 16377if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16378 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16380$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16381if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16382 $as_echo_n "(cached) " >&6 16383else 16384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16385/* end confdefs.h. */ 16386int i; 16387_ACEOF 16388if ac_fn_c_try_compile "$LINENO"; then : 16389 xorg_cv_cc_flag_unknown_warning_option=yes 16390else 16391 xorg_cv_cc_flag_unknown_warning_option=no 16392fi 16393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16394fi 16395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16396$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16397 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16398 CFLAGS="$xorg_testset_save_CFLAGS" 16399fi 16400 16401if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16402 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16403 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16404 fi 16405 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16407$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16408if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16409 $as_echo_n "(cached) " >&6 16410else 16411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16412/* end confdefs.h. */ 16413int i; 16414_ACEOF 16415if ac_fn_c_try_compile "$LINENO"; then : 16416 xorg_cv_cc_flag_unused_command_line_argument=yes 16417else 16418 xorg_cv_cc_flag_unused_command_line_argument=no 16419fi 16420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16421fi 16422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16423$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16424 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16425 CFLAGS="$xorg_testset_save_CFLAGS" 16426fi 16427 16428found="no" 16429 16430 if test $found = "no" ; then 16431 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16432 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16433 fi 16434 16435 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16437 fi 16438 16439 CFLAGS="$CFLAGS -Wmissing-braces" 16440 16441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 16442$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 16443 cacheid=xorg_cv_cc_flag__Wmissing_braces 16444 if eval \${$cacheid+:} false; then : 16445 $as_echo_n "(cached) " >&6 16446else 16447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16448/* end confdefs.h. */ 16449int i; 16450int 16451main () 16452{ 16453 16454 ; 16455 return 0; 16456} 16457_ACEOF 16458if ac_fn_c_try_link "$LINENO"; then : 16459 eval $cacheid=yes 16460else 16461 eval $cacheid=no 16462fi 16463rm -f core conftest.err conftest.$ac_objext \ 16464 conftest$ac_exeext conftest.$ac_ext 16465fi 16466 16467 16468 CFLAGS="$xorg_testset_save_CFLAGS" 16469 16470 eval supported=\$$cacheid 16471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16472$as_echo "$supported" >&6; } 16473 if test "$supported" = "yes" ; then 16474 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 16475 found="yes" 16476 fi 16477 fi 16478 16479 16480 16481 16482 16483 16484 16485 16486 16487 16488 16489 16490 16491 16492 16493xorg_testset_save_CFLAGS="$CFLAGS" 16494 16495if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16498$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16499if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16500 $as_echo_n "(cached) " >&6 16501else 16502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16503/* end confdefs.h. */ 16504int i; 16505_ACEOF 16506if ac_fn_c_try_compile "$LINENO"; then : 16507 xorg_cv_cc_flag_unknown_warning_option=yes 16508else 16509 xorg_cv_cc_flag_unknown_warning_option=no 16510fi 16511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16512fi 16513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16514$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16515 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16516 CFLAGS="$xorg_testset_save_CFLAGS" 16517fi 16518 16519if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16520 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16521 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16522 fi 16523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16525$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16526if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16527 $as_echo_n "(cached) " >&6 16528else 16529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16530/* end confdefs.h. */ 16531int i; 16532_ACEOF 16533if ac_fn_c_try_compile "$LINENO"; then : 16534 xorg_cv_cc_flag_unused_command_line_argument=yes 16535else 16536 xorg_cv_cc_flag_unused_command_line_argument=no 16537fi 16538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16539fi 16540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16541$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16542 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16543 CFLAGS="$xorg_testset_save_CFLAGS" 16544fi 16545 16546found="no" 16547 16548 if test $found = "no" ; then 16549 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16550 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16551 fi 16552 16553 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16555 fi 16556 16557 CFLAGS="$CFLAGS -Wsequence-point" 16558 16559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 16560$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 16561 cacheid=xorg_cv_cc_flag__Wsequence_point 16562 if eval \${$cacheid+:} false; then : 16563 $as_echo_n "(cached) " >&6 16564else 16565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16566/* end confdefs.h. */ 16567int i; 16568int 16569main () 16570{ 16571 16572 ; 16573 return 0; 16574} 16575_ACEOF 16576if ac_fn_c_try_link "$LINENO"; then : 16577 eval $cacheid=yes 16578else 16579 eval $cacheid=no 16580fi 16581rm -f core conftest.err conftest.$ac_objext \ 16582 conftest$ac_exeext conftest.$ac_ext 16583fi 16584 16585 16586 CFLAGS="$xorg_testset_save_CFLAGS" 16587 16588 eval supported=\$$cacheid 16589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16590$as_echo "$supported" >&6; } 16591 if test "$supported" = "yes" ; then 16592 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 16593 found="yes" 16594 fi 16595 fi 16596 16597 16598 16599 16600 16601 16602 16603 16604 16605 16606 16607 16608 16609 16610 16611xorg_testset_save_CFLAGS="$CFLAGS" 16612 16613if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16614 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16616$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16617if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16618 $as_echo_n "(cached) " >&6 16619else 16620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16621/* end confdefs.h. */ 16622int i; 16623_ACEOF 16624if ac_fn_c_try_compile "$LINENO"; then : 16625 xorg_cv_cc_flag_unknown_warning_option=yes 16626else 16627 xorg_cv_cc_flag_unknown_warning_option=no 16628fi 16629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16630fi 16631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16632$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16633 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16634 CFLAGS="$xorg_testset_save_CFLAGS" 16635fi 16636 16637if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16638 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16639 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16640 fi 16641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16643$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16644if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16645 $as_echo_n "(cached) " >&6 16646else 16647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16648/* end confdefs.h. */ 16649int i; 16650_ACEOF 16651if ac_fn_c_try_compile "$LINENO"; then : 16652 xorg_cv_cc_flag_unused_command_line_argument=yes 16653else 16654 xorg_cv_cc_flag_unused_command_line_argument=no 16655fi 16656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16657fi 16658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16659$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16660 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16661 CFLAGS="$xorg_testset_save_CFLAGS" 16662fi 16663 16664found="no" 16665 16666 if test $found = "no" ; then 16667 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16668 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16669 fi 16670 16671 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16673 fi 16674 16675 CFLAGS="$CFLAGS -Wreturn-type" 16676 16677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 16678$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 16679 cacheid=xorg_cv_cc_flag__Wreturn_type 16680 if eval \${$cacheid+:} false; then : 16681 $as_echo_n "(cached) " >&6 16682else 16683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16684/* end confdefs.h. */ 16685int i; 16686int 16687main () 16688{ 16689 16690 ; 16691 return 0; 16692} 16693_ACEOF 16694if ac_fn_c_try_link "$LINENO"; then : 16695 eval $cacheid=yes 16696else 16697 eval $cacheid=no 16698fi 16699rm -f core conftest.err conftest.$ac_objext \ 16700 conftest$ac_exeext conftest.$ac_ext 16701fi 16702 16703 16704 CFLAGS="$xorg_testset_save_CFLAGS" 16705 16706 eval supported=\$$cacheid 16707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16708$as_echo "$supported" >&6; } 16709 if test "$supported" = "yes" ; then 16710 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 16711 found="yes" 16712 fi 16713 fi 16714 16715 16716 16717 16718 16719 16720 16721 16722 16723 16724 16725 16726 16727 16728 16729xorg_testset_save_CFLAGS="$CFLAGS" 16730 16731if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16734$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16735if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16736 $as_echo_n "(cached) " >&6 16737else 16738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16739/* end confdefs.h. */ 16740int i; 16741_ACEOF 16742if ac_fn_c_try_compile "$LINENO"; then : 16743 xorg_cv_cc_flag_unknown_warning_option=yes 16744else 16745 xorg_cv_cc_flag_unknown_warning_option=no 16746fi 16747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16748fi 16749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16750$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16751 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16752 CFLAGS="$xorg_testset_save_CFLAGS" 16753fi 16754 16755if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16757 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16758 fi 16759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16761$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16762if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16763 $as_echo_n "(cached) " >&6 16764else 16765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16766/* end confdefs.h. */ 16767int i; 16768_ACEOF 16769if ac_fn_c_try_compile "$LINENO"; then : 16770 xorg_cv_cc_flag_unused_command_line_argument=yes 16771else 16772 xorg_cv_cc_flag_unused_command_line_argument=no 16773fi 16774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16775fi 16776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16777$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16778 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16779 CFLAGS="$xorg_testset_save_CFLAGS" 16780fi 16781 16782found="no" 16783 16784 if test $found = "no" ; then 16785 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16786 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16787 fi 16788 16789 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16791 fi 16792 16793 CFLAGS="$CFLAGS -Wtrigraphs" 16794 16795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 16796$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 16797 cacheid=xorg_cv_cc_flag__Wtrigraphs 16798 if eval \${$cacheid+:} false; then : 16799 $as_echo_n "(cached) " >&6 16800else 16801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16802/* end confdefs.h. */ 16803int i; 16804int 16805main () 16806{ 16807 16808 ; 16809 return 0; 16810} 16811_ACEOF 16812if ac_fn_c_try_link "$LINENO"; then : 16813 eval $cacheid=yes 16814else 16815 eval $cacheid=no 16816fi 16817rm -f core conftest.err conftest.$ac_objext \ 16818 conftest$ac_exeext conftest.$ac_ext 16819fi 16820 16821 16822 CFLAGS="$xorg_testset_save_CFLAGS" 16823 16824 eval supported=\$$cacheid 16825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16826$as_echo "$supported" >&6; } 16827 if test "$supported" = "yes" ; then 16828 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 16829 found="yes" 16830 fi 16831 fi 16832 16833 16834 16835 16836 16837 16838 16839 16840 16841 16842 16843 16844 16845 16846 16847xorg_testset_save_CFLAGS="$CFLAGS" 16848 16849if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16850 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16852$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16853if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16854 $as_echo_n "(cached) " >&6 16855else 16856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16857/* end confdefs.h. */ 16858int i; 16859_ACEOF 16860if ac_fn_c_try_compile "$LINENO"; then : 16861 xorg_cv_cc_flag_unknown_warning_option=yes 16862else 16863 xorg_cv_cc_flag_unknown_warning_option=no 16864fi 16865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16866fi 16867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16868$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16869 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16870 CFLAGS="$xorg_testset_save_CFLAGS" 16871fi 16872 16873if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16875 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16876 fi 16877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16879$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16880if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16881 $as_echo_n "(cached) " >&6 16882else 16883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16884/* end confdefs.h. */ 16885int i; 16886_ACEOF 16887if ac_fn_c_try_compile "$LINENO"; then : 16888 xorg_cv_cc_flag_unused_command_line_argument=yes 16889else 16890 xorg_cv_cc_flag_unused_command_line_argument=no 16891fi 16892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16893fi 16894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16895$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16896 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16897 CFLAGS="$xorg_testset_save_CFLAGS" 16898fi 16899 16900found="no" 16901 16902 if test $found = "no" ; then 16903 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16904 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16905 fi 16906 16907 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16909 fi 16910 16911 CFLAGS="$CFLAGS -Warray-bounds" 16912 16913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 16914$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 16915 cacheid=xorg_cv_cc_flag__Warray_bounds 16916 if eval \${$cacheid+:} false; then : 16917 $as_echo_n "(cached) " >&6 16918else 16919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16920/* end confdefs.h. */ 16921int i; 16922int 16923main () 16924{ 16925 16926 ; 16927 return 0; 16928} 16929_ACEOF 16930if ac_fn_c_try_link "$LINENO"; then : 16931 eval $cacheid=yes 16932else 16933 eval $cacheid=no 16934fi 16935rm -f core conftest.err conftest.$ac_objext \ 16936 conftest$ac_exeext conftest.$ac_ext 16937fi 16938 16939 16940 CFLAGS="$xorg_testset_save_CFLAGS" 16941 16942 eval supported=\$$cacheid 16943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16944$as_echo "$supported" >&6; } 16945 if test "$supported" = "yes" ; then 16946 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 16947 found="yes" 16948 fi 16949 fi 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965xorg_testset_save_CFLAGS="$CFLAGS" 16966 16967if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16970$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16971if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16972 $as_echo_n "(cached) " >&6 16973else 16974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16975/* end confdefs.h. */ 16976int i; 16977_ACEOF 16978if ac_fn_c_try_compile "$LINENO"; then : 16979 xorg_cv_cc_flag_unknown_warning_option=yes 16980else 16981 xorg_cv_cc_flag_unknown_warning_option=no 16982fi 16983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16984fi 16985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16986$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16987 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16988 CFLAGS="$xorg_testset_save_CFLAGS" 16989fi 16990 16991if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16993 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16994 fi 16995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16997$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16998if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16999 $as_echo_n "(cached) " >&6 17000else 17001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17002/* end confdefs.h. */ 17003int i; 17004_ACEOF 17005if ac_fn_c_try_compile "$LINENO"; then : 17006 xorg_cv_cc_flag_unused_command_line_argument=yes 17007else 17008 xorg_cv_cc_flag_unused_command_line_argument=no 17009fi 17010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17011fi 17012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17013$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17014 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17015 CFLAGS="$xorg_testset_save_CFLAGS" 17016fi 17017 17018found="no" 17019 17020 if test $found = "no" ; then 17021 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17022 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17023 fi 17024 17025 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17027 fi 17028 17029 CFLAGS="$CFLAGS -Wwrite-strings" 17030 17031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 17032$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 17033 cacheid=xorg_cv_cc_flag__Wwrite_strings 17034 if eval \${$cacheid+:} false; then : 17035 $as_echo_n "(cached) " >&6 17036else 17037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17038/* end confdefs.h. */ 17039int i; 17040int 17041main () 17042{ 17043 17044 ; 17045 return 0; 17046} 17047_ACEOF 17048if ac_fn_c_try_link "$LINENO"; then : 17049 eval $cacheid=yes 17050else 17051 eval $cacheid=no 17052fi 17053rm -f core conftest.err conftest.$ac_objext \ 17054 conftest$ac_exeext conftest.$ac_ext 17055fi 17056 17057 17058 CFLAGS="$xorg_testset_save_CFLAGS" 17059 17060 eval supported=\$$cacheid 17061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17062$as_echo "$supported" >&6; } 17063 if test "$supported" = "yes" ; then 17064 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 17065 found="yes" 17066 fi 17067 fi 17068 17069 17070 17071 17072 17073 17074 17075 17076 17077 17078 17079 17080 17081 17082 17083xorg_testset_save_CFLAGS="$CFLAGS" 17084 17085if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17088$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17089if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17090 $as_echo_n "(cached) " >&6 17091else 17092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17093/* end confdefs.h. */ 17094int i; 17095_ACEOF 17096if ac_fn_c_try_compile "$LINENO"; then : 17097 xorg_cv_cc_flag_unknown_warning_option=yes 17098else 17099 xorg_cv_cc_flag_unknown_warning_option=no 17100fi 17101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17102fi 17103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17104$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17105 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17106 CFLAGS="$xorg_testset_save_CFLAGS" 17107fi 17108 17109if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17111 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17112 fi 17113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17115$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17116if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17117 $as_echo_n "(cached) " >&6 17118else 17119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17120/* end confdefs.h. */ 17121int i; 17122_ACEOF 17123if ac_fn_c_try_compile "$LINENO"; then : 17124 xorg_cv_cc_flag_unused_command_line_argument=yes 17125else 17126 xorg_cv_cc_flag_unused_command_line_argument=no 17127fi 17128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17129fi 17130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17131$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17132 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17133 CFLAGS="$xorg_testset_save_CFLAGS" 17134fi 17135 17136found="no" 17137 17138 if test $found = "no" ; then 17139 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17140 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17141 fi 17142 17143 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17145 fi 17146 17147 CFLAGS="$CFLAGS -Waddress" 17148 17149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 17150$as_echo_n "checking if $CC supports -Waddress... " >&6; } 17151 cacheid=xorg_cv_cc_flag__Waddress 17152 if eval \${$cacheid+:} false; then : 17153 $as_echo_n "(cached) " >&6 17154else 17155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17156/* end confdefs.h. */ 17157int i; 17158int 17159main () 17160{ 17161 17162 ; 17163 return 0; 17164} 17165_ACEOF 17166if ac_fn_c_try_link "$LINENO"; then : 17167 eval $cacheid=yes 17168else 17169 eval $cacheid=no 17170fi 17171rm -f core conftest.err conftest.$ac_objext \ 17172 conftest$ac_exeext conftest.$ac_ext 17173fi 17174 17175 17176 CFLAGS="$xorg_testset_save_CFLAGS" 17177 17178 eval supported=\$$cacheid 17179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17180$as_echo "$supported" >&6; } 17181 if test "$supported" = "yes" ; then 17182 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 17183 found="yes" 17184 fi 17185 fi 17186 17187 17188 17189 17190 17191 17192 17193 17194 17195 17196 17197 17198 17199 17200 17201xorg_testset_save_CFLAGS="$CFLAGS" 17202 17203if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17204 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17206$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17207if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17208 $as_echo_n "(cached) " >&6 17209else 17210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17211/* end confdefs.h. */ 17212int i; 17213_ACEOF 17214if ac_fn_c_try_compile "$LINENO"; then : 17215 xorg_cv_cc_flag_unknown_warning_option=yes 17216else 17217 xorg_cv_cc_flag_unknown_warning_option=no 17218fi 17219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17220fi 17221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17222$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17223 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17224 CFLAGS="$xorg_testset_save_CFLAGS" 17225fi 17226 17227if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17230 fi 17231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17233$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17234if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17235 $as_echo_n "(cached) " >&6 17236else 17237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17238/* end confdefs.h. */ 17239int i; 17240_ACEOF 17241if ac_fn_c_try_compile "$LINENO"; then : 17242 xorg_cv_cc_flag_unused_command_line_argument=yes 17243else 17244 xorg_cv_cc_flag_unused_command_line_argument=no 17245fi 17246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17247fi 17248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17249$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17250 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17251 CFLAGS="$xorg_testset_save_CFLAGS" 17252fi 17253 17254found="no" 17255 17256 if test $found = "no" ; then 17257 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17258 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17259 fi 17260 17261 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17263 fi 17264 17265 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 17266 17267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 17268$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 17269 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 17270 if eval \${$cacheid+:} false; then : 17271 $as_echo_n "(cached) " >&6 17272else 17273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17274/* end confdefs.h. */ 17275int i; 17276int 17277main () 17278{ 17279 17280 ; 17281 return 0; 17282} 17283_ACEOF 17284if ac_fn_c_try_link "$LINENO"; then : 17285 eval $cacheid=yes 17286else 17287 eval $cacheid=no 17288fi 17289rm -f core conftest.err conftest.$ac_objext \ 17290 conftest$ac_exeext conftest.$ac_ext 17291fi 17292 17293 17294 CFLAGS="$xorg_testset_save_CFLAGS" 17295 17296 eval supported=\$$cacheid 17297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17298$as_echo "$supported" >&6; } 17299 if test "$supported" = "yes" ; then 17300 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 17301 found="yes" 17302 fi 17303 fi 17304 17305 17306 17307 17308 17309 17310 17311 17312 17313 17314 17315 17316 17317 17318 17319xorg_testset_save_CFLAGS="$CFLAGS" 17320 17321if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17324$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17325if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17326 $as_echo_n "(cached) " >&6 17327else 17328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17329/* end confdefs.h. */ 17330int i; 17331_ACEOF 17332if ac_fn_c_try_compile "$LINENO"; then : 17333 xorg_cv_cc_flag_unknown_warning_option=yes 17334else 17335 xorg_cv_cc_flag_unknown_warning_option=no 17336fi 17337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17338fi 17339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17340$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17341 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17342 CFLAGS="$xorg_testset_save_CFLAGS" 17343fi 17344 17345if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17348 fi 17349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17351$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17352if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17353 $as_echo_n "(cached) " >&6 17354else 17355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17356/* end confdefs.h. */ 17357int i; 17358_ACEOF 17359if ac_fn_c_try_compile "$LINENO"; then : 17360 xorg_cv_cc_flag_unused_command_line_argument=yes 17361else 17362 xorg_cv_cc_flag_unused_command_line_argument=no 17363fi 17364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17365fi 17366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17367$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17368 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17369 CFLAGS="$xorg_testset_save_CFLAGS" 17370fi 17371 17372found="no" 17373 17374 if test $found = "no" ; then 17375 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17377 fi 17378 17379 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17381 fi 17382 17383 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 17384 17385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 17386$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 17387 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 17388 if eval \${$cacheid+:} false; then : 17389 $as_echo_n "(cached) " >&6 17390else 17391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17392/* end confdefs.h. */ 17393int i; 17394int 17395main () 17396{ 17397 17398 ; 17399 return 0; 17400} 17401_ACEOF 17402if ac_fn_c_try_link "$LINENO"; then : 17403 eval $cacheid=yes 17404else 17405 eval $cacheid=no 17406fi 17407rm -f core conftest.err conftest.$ac_objext \ 17408 conftest$ac_exeext conftest.$ac_ext 17409fi 17410 17411 17412 CFLAGS="$xorg_testset_save_CFLAGS" 17413 17414 eval supported=\$$cacheid 17415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17416$as_echo "$supported" >&6; } 17417 if test "$supported" = "yes" ; then 17418 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 17419 found="yes" 17420 fi 17421 fi 17422 17423 17424fi 17425 17426 17427 17428 17429 17430 17431 17432 CWARNFLAGS="$BASE_CFLAGS" 17433 if test "x$GCC" = xyes ; then 17434 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 17435 fi 17436 17437 17438 17439 17440 17441 17442 17443 17444# Check whether --enable-strict-compilation was given. 17445if test "${enable_strict_compilation+set}" = set; then : 17446 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 17447else 17448 STRICT_COMPILE=no 17449fi 17450 17451 17452 17453 17454 17455 17456STRICT_CFLAGS="" 17457 17458 17459 17460 17461 17462 17463 17464 17465 17466 17467 17468 17469 17470xorg_testset_save_CFLAGS="$CFLAGS" 17471 17472if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17473 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17475$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17476if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17477 $as_echo_n "(cached) " >&6 17478else 17479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17480/* end confdefs.h. */ 17481int i; 17482_ACEOF 17483if ac_fn_c_try_compile "$LINENO"; then : 17484 xorg_cv_cc_flag_unknown_warning_option=yes 17485else 17486 xorg_cv_cc_flag_unknown_warning_option=no 17487fi 17488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17489fi 17490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17491$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17492 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17493 CFLAGS="$xorg_testset_save_CFLAGS" 17494fi 17495 17496if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17498 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17499 fi 17500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17502$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17503if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17504 $as_echo_n "(cached) " >&6 17505else 17506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17507/* end confdefs.h. */ 17508int i; 17509_ACEOF 17510if ac_fn_c_try_compile "$LINENO"; then : 17511 xorg_cv_cc_flag_unused_command_line_argument=yes 17512else 17513 xorg_cv_cc_flag_unused_command_line_argument=no 17514fi 17515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17516fi 17517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17518$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17519 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17520 CFLAGS="$xorg_testset_save_CFLAGS" 17521fi 17522 17523found="no" 17524 17525 if test $found = "no" ; then 17526 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17528 fi 17529 17530 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17532 fi 17533 17534 CFLAGS="$CFLAGS -pedantic" 17535 17536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 17537$as_echo_n "checking if $CC supports -pedantic... " >&6; } 17538 cacheid=xorg_cv_cc_flag__pedantic 17539 if eval \${$cacheid+:} false; then : 17540 $as_echo_n "(cached) " >&6 17541else 17542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17543/* end confdefs.h. */ 17544int i; 17545int 17546main () 17547{ 17548 17549 ; 17550 return 0; 17551} 17552_ACEOF 17553if ac_fn_c_try_link "$LINENO"; then : 17554 eval $cacheid=yes 17555else 17556 eval $cacheid=no 17557fi 17558rm -f core conftest.err conftest.$ac_objext \ 17559 conftest$ac_exeext conftest.$ac_ext 17560fi 17561 17562 17563 CFLAGS="$xorg_testset_save_CFLAGS" 17564 17565 eval supported=\$$cacheid 17566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17567$as_echo "$supported" >&6; } 17568 if test "$supported" = "yes" ; then 17569 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 17570 found="yes" 17571 fi 17572 fi 17573 17574 17575 17576 17577 17578 17579 17580 17581 17582 17583 17584 17585 17586 17587 17588xorg_testset_save_CFLAGS="$CFLAGS" 17589 17590if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17593$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17594if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17595 $as_echo_n "(cached) " >&6 17596else 17597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17598/* end confdefs.h. */ 17599int i; 17600_ACEOF 17601if ac_fn_c_try_compile "$LINENO"; then : 17602 xorg_cv_cc_flag_unknown_warning_option=yes 17603else 17604 xorg_cv_cc_flag_unknown_warning_option=no 17605fi 17606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17607fi 17608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17609$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17610 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17611 CFLAGS="$xorg_testset_save_CFLAGS" 17612fi 17613 17614if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17616 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17617 fi 17618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17620$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17621if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17622 $as_echo_n "(cached) " >&6 17623else 17624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17625/* end confdefs.h. */ 17626int i; 17627_ACEOF 17628if ac_fn_c_try_compile "$LINENO"; then : 17629 xorg_cv_cc_flag_unused_command_line_argument=yes 17630else 17631 xorg_cv_cc_flag_unused_command_line_argument=no 17632fi 17633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17634fi 17635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17636$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17637 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17638 CFLAGS="$xorg_testset_save_CFLAGS" 17639fi 17640 17641found="no" 17642 17643 if test $found = "no" ; then 17644 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17645 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17646 fi 17647 17648 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17650 fi 17651 17652 CFLAGS="$CFLAGS -Werror" 17653 17654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 17655$as_echo_n "checking if $CC supports -Werror... " >&6; } 17656 cacheid=xorg_cv_cc_flag__Werror 17657 if eval \${$cacheid+:} false; then : 17658 $as_echo_n "(cached) " >&6 17659else 17660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17661/* end confdefs.h. */ 17662int i; 17663int 17664main () 17665{ 17666 17667 ; 17668 return 0; 17669} 17670_ACEOF 17671if ac_fn_c_try_link "$LINENO"; then : 17672 eval $cacheid=yes 17673else 17674 eval $cacheid=no 17675fi 17676rm -f core conftest.err conftest.$ac_objext \ 17677 conftest$ac_exeext conftest.$ac_ext 17678fi 17679 17680 17681 CFLAGS="$xorg_testset_save_CFLAGS" 17682 17683 eval supported=\$$cacheid 17684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17685$as_echo "$supported" >&6; } 17686 if test "$supported" = "yes" ; then 17687 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 17688 found="yes" 17689 fi 17690 fi 17691 17692 if test $found = "no" ; then 17693 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17695 fi 17696 17697 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17699 fi 17700 17701 CFLAGS="$CFLAGS -errwarn" 17702 17703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 17704$as_echo_n "checking if $CC supports -errwarn... " >&6; } 17705 cacheid=xorg_cv_cc_flag__errwarn 17706 if eval \${$cacheid+:} false; then : 17707 $as_echo_n "(cached) " >&6 17708else 17709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17710/* end confdefs.h. */ 17711int i; 17712int 17713main () 17714{ 17715 17716 ; 17717 return 0; 17718} 17719_ACEOF 17720if ac_fn_c_try_link "$LINENO"; then : 17721 eval $cacheid=yes 17722else 17723 eval $cacheid=no 17724fi 17725rm -f core conftest.err conftest.$ac_objext \ 17726 conftest$ac_exeext conftest.$ac_ext 17727fi 17728 17729 17730 CFLAGS="$xorg_testset_save_CFLAGS" 17731 17732 eval supported=\$$cacheid 17733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17734$as_echo "$supported" >&6; } 17735 if test "$supported" = "yes" ; then 17736 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 17737 found="yes" 17738 fi 17739 fi 17740 17741 17742 17743# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 17744# activate it with -Werror, so we add it here explicitly. 17745 17746 17747 17748 17749 17750 17751 17752 17753 17754 17755 17756 17757 17758xorg_testset_save_CFLAGS="$CFLAGS" 17759 17760if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17761 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17763$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17764if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17765 $as_echo_n "(cached) " >&6 17766else 17767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17768/* end confdefs.h. */ 17769int i; 17770_ACEOF 17771if ac_fn_c_try_compile "$LINENO"; then : 17772 xorg_cv_cc_flag_unknown_warning_option=yes 17773else 17774 xorg_cv_cc_flag_unknown_warning_option=no 17775fi 17776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17777fi 17778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17779$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17780 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17781 CFLAGS="$xorg_testset_save_CFLAGS" 17782fi 17783 17784if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17785 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17786 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17787 fi 17788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17790$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17791if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17792 $as_echo_n "(cached) " >&6 17793else 17794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17795/* end confdefs.h. */ 17796int i; 17797_ACEOF 17798if ac_fn_c_try_compile "$LINENO"; then : 17799 xorg_cv_cc_flag_unused_command_line_argument=yes 17800else 17801 xorg_cv_cc_flag_unused_command_line_argument=no 17802fi 17803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17804fi 17805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17806$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17807 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17808 CFLAGS="$xorg_testset_save_CFLAGS" 17809fi 17810 17811found="no" 17812 17813 if test $found = "no" ; then 17814 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17815 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17816 fi 17817 17818 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17820 fi 17821 17822 CFLAGS="$CFLAGS -Werror=attributes" 17823 17824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 17825$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 17826 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 17827 if eval \${$cacheid+:} false; then : 17828 $as_echo_n "(cached) " >&6 17829else 17830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17831/* end confdefs.h. */ 17832int i; 17833int 17834main () 17835{ 17836 17837 ; 17838 return 0; 17839} 17840_ACEOF 17841if ac_fn_c_try_link "$LINENO"; then : 17842 eval $cacheid=yes 17843else 17844 eval $cacheid=no 17845fi 17846rm -f core conftest.err conftest.$ac_objext \ 17847 conftest$ac_exeext conftest.$ac_ext 17848fi 17849 17850 17851 CFLAGS="$xorg_testset_save_CFLAGS" 17852 17853 eval supported=\$$cacheid 17854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17855$as_echo "$supported" >&6; } 17856 if test "$supported" = "yes" ; then 17857 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 17858 found="yes" 17859 fi 17860 fi 17861 17862 17863 17864if test "x$STRICT_COMPILE" = "xyes"; then 17865 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 17866 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 17867fi 17868 17869 17870 17871 17872 17873 17874cat >>confdefs.h <<_ACEOF 17875#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 17876_ACEOF 17877 17878 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 17879 if test "x$PVM" = "x"; then 17880 PVM="0" 17881 fi 17882 17883cat >>confdefs.h <<_ACEOF 17884#define PACKAGE_VERSION_MINOR $PVM 17885_ACEOF 17886 17887 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 17888 if test "x$PVP" = "x"; then 17889 PVP="0" 17890 fi 17891 17892cat >>confdefs.h <<_ACEOF 17893#define PACKAGE_VERSION_PATCHLEVEL $PVP 17894_ACEOF 17895 17896 17897 17898CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 17899mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 17900|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 17901echo 'git directory not found: installing possibly empty changelog.' >&2)" 17902 17903 17904 17905 17906macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 17907INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 17908mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 17909|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 17910echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 17911 17912 17913 17914 17915 17916 17917if test x$APP_MAN_SUFFIX = x ; then 17918 APP_MAN_SUFFIX=1 17919fi 17920if test x$APP_MAN_DIR = x ; then 17921 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 17922fi 17923 17924if test x$LIB_MAN_SUFFIX = x ; then 17925 LIB_MAN_SUFFIX=3 17926fi 17927if test x$LIB_MAN_DIR = x ; then 17928 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 17929fi 17930 17931if test x$FILE_MAN_SUFFIX = x ; then 17932 case $host_os in 17933 solaris*) FILE_MAN_SUFFIX=4 ;; 17934 *) FILE_MAN_SUFFIX=5 ;; 17935 esac 17936fi 17937if test x$FILE_MAN_DIR = x ; then 17938 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 17939fi 17940 17941if test x$MISC_MAN_SUFFIX = x ; then 17942 case $host_os in 17943 solaris*) MISC_MAN_SUFFIX=5 ;; 17944 *) MISC_MAN_SUFFIX=7 ;; 17945 esac 17946fi 17947if test x$MISC_MAN_DIR = x ; then 17948 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 17949fi 17950 17951if test x$DRIVER_MAN_SUFFIX = x ; then 17952 case $host_os in 17953 solaris*) DRIVER_MAN_SUFFIX=7 ;; 17954 *) DRIVER_MAN_SUFFIX=4 ;; 17955 esac 17956fi 17957if test x$DRIVER_MAN_DIR = x ; then 17958 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 17959fi 17960 17961if test x$ADMIN_MAN_SUFFIX = x ; then 17962 case $host_os in 17963 solaris*) ADMIN_MAN_SUFFIX=1m ;; 17964 *) ADMIN_MAN_SUFFIX=8 ;; 17965 esac 17966fi 17967if test x$ADMIN_MAN_DIR = x ; then 17968 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 17969fi 17970 17971 17972 17973 17974 17975 17976 17977 17978 17979 17980 17981 17982 17983 17984 17985XORG_MAN_PAGE="X Version 11" 17986 17987MAN_SUBSTS="\ 17988 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17989 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17990 -e 's|__xservername__|Xorg|g' \ 17991 -e 's|__xconfigfile__|xorg.conf|g' \ 17992 -e 's|__projectroot__|\$(prefix)|g' \ 17993 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 17994 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 17995 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 17996 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 17997 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 17998 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 17999 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 18000 18001 18002 18003# Check whether --enable-silent-rules was given. 18004if test "${enable_silent_rules+set}" = set; then : 18005 enableval=$enable_silent_rules; 18006fi 18007 18008case $enable_silent_rules in # ((( 18009 yes) AM_DEFAULT_VERBOSITY=0;; 18010 no) AM_DEFAULT_VERBOSITY=1;; 18011 *) AM_DEFAULT_VERBOSITY=0;; 18012esac 18013am_make=${MAKE-make} 18014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 18015$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 18016if ${am_cv_make_support_nested_variables+:} false; then : 18017 $as_echo_n "(cached) " >&6 18018else 18019 if $as_echo 'TRUE=$(BAR$(V)) 18020BAR0=false 18021BAR1=true 18022V=1 18023am__doit: 18024 @$(TRUE) 18025.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 18026 am_cv_make_support_nested_variables=yes 18027else 18028 am_cv_make_support_nested_variables=no 18029fi 18030fi 18031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 18032$as_echo "$am_cv_make_support_nested_variables" >&6; } 18033if test $am_cv_make_support_nested_variables = yes; then 18034 AM_V='$(V)' 18035 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 18036else 18037 AM_V=$AM_DEFAULT_VERBOSITY 18038 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 18039fi 18040AM_BACKSLASH='\' 18041 18042 18043 18044# Checks for programs. 18045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 18046$as_echo_n "checking whether ln -s works... " >&6; } 18047LN_S=$as_ln_s 18048if test "$LN_S" = "ln -s"; then 18049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18050$as_echo "yes" >&6; } 18051else 18052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 18053$as_echo "no, using $LN_S" >&6; } 18054fi 18055 18056 18057# Checks for library functions. 18058for ac_func in pathconf 18059do : 18060 ac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf" 18061if test "x$ac_cv_func_pathconf" = xyes; then : 18062 cat >>confdefs.h <<_ACEOF 18063#define HAVE_PATHCONF 1 18064_ACEOF 18065 18066fi 18067done 18068 18069 18070# Obtain compiler/linker options for depedencies 18071 18072pkg_failed=no 18073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XAU" >&5 18074$as_echo_n "checking for XAU... " >&6; } 18075 18076if test -n "$XAU_CFLAGS"; then 18077 pkg_cv_XAU_CFLAGS="$XAU_CFLAGS" 18078 elif test -n "$PKG_CONFIG"; then 18079 if test -n "$PKG_CONFIG" && \ 18080 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5 18081 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5 18082 ac_status=$? 18083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18084 test $ac_status = 0; }; then 18085 pkg_cv_XAU_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null` 18086else 18087 pkg_failed=yes 18088fi 18089 else 18090 pkg_failed=untried 18091fi 18092if test -n "$XAU_LIBS"; then 18093 pkg_cv_XAU_LIBS="$XAU_LIBS" 18094 elif test -n "$PKG_CONFIG"; then 18095 if test -n "$PKG_CONFIG" && \ 18096 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5 18097 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5 18098 ac_status=$? 18099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18100 test $ac_status = 0; }; then 18101 pkg_cv_XAU_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null` 18102else 18103 pkg_failed=yes 18104fi 18105 else 18106 pkg_failed=untried 18107fi 18108 18109 18110 18111if test $pkg_failed = yes; then 18112 18113if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18114 _pkg_short_errors_supported=yes 18115else 18116 _pkg_short_errors_supported=no 18117fi 18118 if test $_pkg_short_errors_supported = yes; then 18119 XAU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto" 2>&1` 18120 else 18121 XAU_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto" 2>&1` 18122 fi 18123 # Put the nasty error message in config.log where it belongs 18124 echo "$XAU_PKG_ERRORS" >&5 18125 18126 as_fn_error $? "Package requirements (xproto) were not met: 18127 18128$XAU_PKG_ERRORS 18129 18130Consider adjusting the PKG_CONFIG_PATH environment variable if you 18131installed software in a non-standard prefix. 18132 18133Alternatively, you may set the environment variables XAU_CFLAGS 18134and XAU_LIBS to avoid the need to call pkg-config. 18135See the pkg-config man page for more details. 18136" "$LINENO" 5 18137elif test $pkg_failed = untried; then 18138 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18139$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18140as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18141is in your PATH or set the PKG_CONFIG environment variable to the full 18142path to pkg-config. 18143 18144Alternatively, you may set the environment variables XAU_CFLAGS 18145and XAU_LIBS to avoid the need to call pkg-config. 18146See the pkg-config man page for more details. 18147 18148To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18149See \`config.log' for more details" "$LINENO" 5; } 18150else 18151 XAU_CFLAGS=$pkg_cv_XAU_CFLAGS 18152 XAU_LIBS=$pkg_cv_XAU_LIBS 18153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18154$as_echo "yes" >&6; } 18155 : 18156fi 18157 18158# Check whether --enable-xthreads was given. 18159if test "${enable_xthreads+set}" = set; then : 18160 enableval=$enable_xthreads; xthreads=$enableval 18161else 18162 xthreads=yes 18163fi 18164 18165 18166if test "x$xthreads" = "xyes" ; then 18167 18168$as_echo "#define XTHREADS 1" >>confdefs.h 18169 18170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lc" >&5 18171$as_echo_n "checking for gethostbyname_r in -lc... " >&6; } 18172if ${ac_cv_lib_c_gethostbyname_r+:} false; then : 18173 $as_echo_n "(cached) " >&6 18174else 18175 ac_check_lib_save_LIBS=$LIBS 18176LIBS="-lc $LIBS" 18177cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18178/* end confdefs.h. */ 18179 18180/* Override any GCC internal prototype to avoid an error. 18181 Use char because int might match the return type of a GCC 18182 builtin and then its argument prototype would still apply. */ 18183#ifdef __cplusplus 18184extern "C" 18185#endif 18186char gethostbyname_r (); 18187int 18188main () 18189{ 18190return gethostbyname_r (); 18191 ; 18192 return 0; 18193} 18194_ACEOF 18195if ac_fn_c_try_link "$LINENO"; then : 18196 ac_cv_lib_c_gethostbyname_r=yes 18197else 18198 ac_cv_lib_c_gethostbyname_r=no 18199fi 18200rm -f core conftest.err conftest.$ac_objext \ 18201 conftest$ac_exeext conftest.$ac_ext 18202LIBS=$ac_check_lib_save_LIBS 18203fi 18204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_gethostbyname_r" >&5 18205$as_echo "$ac_cv_lib_c_gethostbyname_r" >&6; } 18206if test "x$ac_cv_lib_c_gethostbyname_r" = xyes; then : 18207 mtsafe=yes 18208fi 18209 18210 if test "x$mtsafe" = "x" ; then 18211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5 18212$as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; } 18213if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then : 18214 $as_echo_n "(cached) " >&6 18215else 18216 ac_check_lib_save_LIBS=$LIBS 18217LIBS="-lnsl $LIBS" 18218cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18219/* end confdefs.h. */ 18220 18221/* Override any GCC internal prototype to avoid an error. 18222 Use char because int might match the return type of a GCC 18223 builtin and then its argument prototype would still apply. */ 18224#ifdef __cplusplus 18225extern "C" 18226#endif 18227char gethostbyname_r (); 18228int 18229main () 18230{ 18231return gethostbyname_r (); 18232 ; 18233 return 0; 18234} 18235_ACEOF 18236if ac_fn_c_try_link "$LINENO"; then : 18237 ac_cv_lib_nsl_gethostbyname_r=yes 18238else 18239 ac_cv_lib_nsl_gethostbyname_r=no 18240fi 18241rm -f core conftest.err conftest.$ac_objext \ 18242 conftest$ac_exeext conftest.$ac_ext 18243LIBS=$ac_check_lib_save_LIBS 18244fi 18245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5 18246$as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; } 18247if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then : 18248 mtsafe=yes 18249fi 18250 18251 fi 18252 if test "x$mtsafe" = "xyes" ; then 18253 18254$as_echo "#define XUSE_MTSAFE_API 1" >>confdefs.h 18255 18256 fi 18257 18258# XXX incomplete, please fill this in 18259 case $host_os in 18260 solaris*) 18261 XTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" ;; 18262 esac 18263 XAU_CFLAGS="$XAU_CFLAGS $XTHREAD_CFLAGS" 18264fi 18265 18266# Allow checking code with lint, sparse, etc. 18267 18268 18269 18270 18271 18272# Check whether --with-lint was given. 18273if test "${with_lint+set}" = set; then : 18274 withval=$with_lint; use_lint=$withval 18275else 18276 use_lint=no 18277fi 18278 18279 18280# Obtain platform specific info like program name and options 18281# The lint program on FreeBSD and NetBSD is different from the one on Solaris 18282case $host_os in 18283 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 18284 lint_name=splint 18285 lint_options="-badflag" 18286 ;; 18287 *freebsd* | *netbsd*) 18288 lint_name=lint 18289 lint_options="-u -b" 18290 ;; 18291 *solaris*) 18292 lint_name=lint 18293 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 18294 ;; 18295esac 18296 18297# Test for the presence of the program (either guessed by the code or spelled out by the user) 18298if test "x$use_lint" = x"yes" ; then 18299 # Extract the first word of "$lint_name", so it can be a program name with args. 18300set dummy $lint_name; ac_word=$2 18301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18302$as_echo_n "checking for $ac_word... " >&6; } 18303if ${ac_cv_path_LINT+:} false; then : 18304 $as_echo_n "(cached) " >&6 18305else 18306 case $LINT in 18307 [\\/]* | ?:[\\/]*) 18308 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 18309 ;; 18310 *) 18311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18312for as_dir in $PATH 18313do 18314 IFS=$as_save_IFS 18315 test -z "$as_dir" && as_dir=. 18316 for ac_exec_ext in '' $ac_executable_extensions; do 18317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18318 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 18319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18320 break 2 18321 fi 18322done 18323 done 18324IFS=$as_save_IFS 18325 18326 ;; 18327esac 18328fi 18329LINT=$ac_cv_path_LINT 18330if test -n "$LINT"; then 18331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 18332$as_echo "$LINT" >&6; } 18333else 18334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18335$as_echo "no" >&6; } 18336fi 18337 18338 18339 if test "x$LINT" = "x"; then 18340 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 18341 fi 18342elif test "x$use_lint" = x"no" ; then 18343 if test "x$LINT" != "x"; then 18344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 18345$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 18346 fi 18347else 18348 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 18349fi 18350 18351# User supplied flags override default flags 18352if test "x$LINT_FLAGS" != "x"; then 18353 lint_options=$LINT_FLAGS 18354fi 18355 18356LINT_FLAGS=$lint_options 18357 18358 if test "x$LINT" != x; then 18359 LINT_TRUE= 18360 LINT_FALSE='#' 18361else 18362 LINT_TRUE='#' 18363 LINT_FALSE= 18364fi 18365 18366 18367 18368 18369 18370# Check whether --enable-lint-library was given. 18371if test "${enable_lint_library+set}" = set; then : 18372 enableval=$enable_lint_library; make_lint_lib=$enableval 18373else 18374 make_lint_lib=no 18375fi 18376 18377 18378if test "x$make_lint_lib" = x"yes" ; then 18379 LINTLIB=llib-lXau.ln 18380 if test "x$LINT" = "x"; then 18381 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5 18382 fi 18383elif test "x$make_lint_lib" != x"no" ; then 18384 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5 18385fi 18386 18387 18388 if test x$make_lint_lib != xno; then 18389 MAKE_LINT_LIB_TRUE= 18390 MAKE_LINT_LIB_FALSE='#' 18391else 18392 MAKE_LINT_LIB_TRUE='#' 18393 MAKE_LINT_LIB_FALSE= 18394fi 18395 18396 18397 18398LINT_FLAGS="${LINT_FLAGS} ${XAU_CFLAGS}" 18399 18400ac_config_files="$ac_config_files Makefile man/Makefile xau.pc" 18401 18402cat >confcache <<\_ACEOF 18403# This file is a shell script that caches the results of configure 18404# tests run on this system so they can be shared between configure 18405# scripts and configure runs, see configure's option --config-cache. 18406# It is not useful on other systems. If it contains results you don't 18407# want to keep, you may remove or edit it. 18408# 18409# config.status only pays attention to the cache file if you give it 18410# the --recheck option to rerun configure. 18411# 18412# `ac_cv_env_foo' variables (set or unset) will be overridden when 18413# loading this file, other *unset* `ac_cv_foo' will be assigned the 18414# following values. 18415 18416_ACEOF 18417 18418# The following way of writing the cache mishandles newlines in values, 18419# but we know of no workaround that is simple, portable, and efficient. 18420# So, we kill variables containing newlines. 18421# Ultrix sh set writes to stderr and can't be redirected directly, 18422# and sets the high bit in the cache file unless we assign to the vars. 18423( 18424 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18425 eval ac_val=\$$ac_var 18426 case $ac_val in #( 18427 *${as_nl}*) 18428 case $ac_var in #( 18429 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18430$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18431 esac 18432 case $ac_var in #( 18433 _ | IFS | as_nl) ;; #( 18434 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18435 *) { eval $ac_var=; unset $ac_var;} ;; 18436 esac ;; 18437 esac 18438 done 18439 18440 (set) 2>&1 | 18441 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18442 *${as_nl}ac_space=\ *) 18443 # `set' does not quote correctly, so add quotes: double-quote 18444 # substitution turns \\\\ into \\, and sed turns \\ into \. 18445 sed -n \ 18446 "s/'/'\\\\''/g; 18447 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18448 ;; #( 18449 *) 18450 # `set' quotes correctly as required by POSIX, so do not add quotes. 18451 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18452 ;; 18453 esac | 18454 sort 18455) | 18456 sed ' 18457 /^ac_cv_env_/b end 18458 t clear 18459 :clear 18460 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18461 t end 18462 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18463 :end' >>confcache 18464if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18465 if test -w "$cache_file"; then 18466 if test "x$cache_file" != "x/dev/null"; then 18467 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18468$as_echo "$as_me: updating cache $cache_file" >&6;} 18469 if test ! -f "$cache_file" || test -h "$cache_file"; then 18470 cat confcache >"$cache_file" 18471 else 18472 case $cache_file in #( 18473 */* | ?:*) 18474 mv -f confcache "$cache_file"$$ && 18475 mv -f "$cache_file"$$ "$cache_file" ;; #( 18476 *) 18477 mv -f confcache "$cache_file" ;; 18478 esac 18479 fi 18480 fi 18481 else 18482 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18483$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18484 fi 18485fi 18486rm -f confcache 18487 18488test "x$prefix" = xNONE && prefix=$ac_default_prefix 18489# Let make expand exec_prefix. 18490test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18491 18492DEFS=-DHAVE_CONFIG_H 18493 18494ac_libobjs= 18495ac_ltlibobjs= 18496U= 18497for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18498 # 1. Remove the extension, and $U if already installed. 18499 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18500 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18501 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18502 # will be set to the directory where LIBOBJS objects are built. 18503 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18504 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18505done 18506LIBOBJS=$ac_libobjs 18507 18508LTLIBOBJS=$ac_ltlibobjs 18509 18510 18511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18512$as_echo_n "checking that generated files are newer than configure... " >&6; } 18513 if test -n "$am_sleep_pid"; then 18514 # Hide warnings about reused PIDs. 18515 wait $am_sleep_pid 2>/dev/null 18516 fi 18517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 18518$as_echo "done" >&6; } 18519if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18520 as_fn_error $? "conditional \"AMDEP\" was never defined. 18521Usually this means the macro was only invoked conditionally." "$LINENO" 5 18522fi 18523if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18524 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18525Usually this means the macro was only invoked conditionally." "$LINENO" 5 18526fi 18527 if test -n "$EXEEXT"; then 18528 am__EXEEXT_TRUE= 18529 am__EXEEXT_FALSE='#' 18530else 18531 am__EXEEXT_TRUE='#' 18532 am__EXEEXT_FALSE= 18533fi 18534 18535if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 18536 as_fn_error $? "conditional \"LINT\" was never defined. 18537Usually this means the macro was only invoked conditionally." "$LINENO" 5 18538fi 18539if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then 18540 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined. 18541Usually this means the macro was only invoked conditionally." "$LINENO" 5 18542fi 18543 18544: "${CONFIG_STATUS=./config.status}" 18545ac_write_fail=0 18546ac_clean_files_save=$ac_clean_files 18547ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18548{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18549$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18550as_write_fail=0 18551cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18552#! $SHELL 18553# Generated by $as_me. 18554# Run this file to recreate the current configuration. 18555# Compiler output produced by configure, useful for debugging 18556# configure, is in config.log if it exists. 18557 18558debug=false 18559ac_cs_recheck=false 18560ac_cs_silent=false 18561 18562SHELL=\${CONFIG_SHELL-$SHELL} 18563export SHELL 18564_ASEOF 18565cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18566## -------------------- ## 18567## M4sh Initialization. ## 18568## -------------------- ## 18569 18570# Be more Bourne compatible 18571DUALCASE=1; export DUALCASE # for MKS sh 18572if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18573 emulate sh 18574 NULLCMD=: 18575 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18576 # is contrary to our usage. Disable this feature. 18577 alias -g '${1+"$@"}'='"$@"' 18578 setopt NO_GLOB_SUBST 18579else 18580 case `(set -o) 2>/dev/null` in #( 18581 *posix*) : 18582 set -o posix ;; #( 18583 *) : 18584 ;; 18585esac 18586fi 18587 18588 18589as_nl=' 18590' 18591export as_nl 18592# Printing a long string crashes Solaris 7 /usr/bin/printf. 18593as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18594as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18595as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18596# Prefer a ksh shell builtin over an external printf program on Solaris, 18597# but without wasting forks for bash or zsh. 18598if test -z "$BASH_VERSION$ZSH_VERSION" \ 18599 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18600 as_echo='print -r --' 18601 as_echo_n='print -rn --' 18602elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18603 as_echo='printf %s\n' 18604 as_echo_n='printf %s' 18605else 18606 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18607 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18608 as_echo_n='/usr/ucb/echo -n' 18609 else 18610 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18611 as_echo_n_body='eval 18612 arg=$1; 18613 case $arg in #( 18614 *"$as_nl"*) 18615 expr "X$arg" : "X\\(.*\\)$as_nl"; 18616 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18617 esac; 18618 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18619 ' 18620 export as_echo_n_body 18621 as_echo_n='sh -c $as_echo_n_body as_echo' 18622 fi 18623 export as_echo_body 18624 as_echo='sh -c $as_echo_body as_echo' 18625fi 18626 18627# The user is always right. 18628if test "${PATH_SEPARATOR+set}" != set; then 18629 PATH_SEPARATOR=: 18630 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18631 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18632 PATH_SEPARATOR=';' 18633 } 18634fi 18635 18636 18637# IFS 18638# We need space, tab and new line, in precisely that order. Quoting is 18639# there to prevent editors from complaining about space-tab. 18640# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18641# splitting by setting IFS to empty value.) 18642IFS=" "" $as_nl" 18643 18644# Find who we are. Look in the path if we contain no directory separator. 18645as_myself= 18646case $0 in #(( 18647 *[\\/]* ) as_myself=$0 ;; 18648 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18649for as_dir in $PATH 18650do 18651 IFS=$as_save_IFS 18652 test -z "$as_dir" && as_dir=. 18653 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18654 done 18655IFS=$as_save_IFS 18656 18657 ;; 18658esac 18659# We did not find ourselves, most probably we were run as `sh COMMAND' 18660# in which case we are not to be found in the path. 18661if test "x$as_myself" = x; then 18662 as_myself=$0 18663fi 18664if test ! -f "$as_myself"; then 18665 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18666 exit 1 18667fi 18668 18669# Unset variables that we do not need and which cause bugs (e.g. in 18670# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18671# suppresses any "Segmentation fault" message there. '((' could 18672# trigger a bug in pdksh 5.2.14. 18673for as_var in BASH_ENV ENV MAIL MAILPATH 18674do eval test x\${$as_var+set} = xset \ 18675 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18676done 18677PS1='$ ' 18678PS2='> ' 18679PS4='+ ' 18680 18681# NLS nuisances. 18682LC_ALL=C 18683export LC_ALL 18684LANGUAGE=C 18685export LANGUAGE 18686 18687# CDPATH. 18688(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18689 18690 18691# as_fn_error STATUS ERROR [LINENO LOG_FD] 18692# ---------------------------------------- 18693# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18694# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18695# script with STATUS, using 1 if that was 0. 18696as_fn_error () 18697{ 18698 as_status=$1; test $as_status -eq 0 && as_status=1 18699 if test "$4"; then 18700 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18701 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18702 fi 18703 $as_echo "$as_me: error: $2" >&2 18704 as_fn_exit $as_status 18705} # as_fn_error 18706 18707 18708# as_fn_set_status STATUS 18709# ----------------------- 18710# Set $? to STATUS, without forking. 18711as_fn_set_status () 18712{ 18713 return $1 18714} # as_fn_set_status 18715 18716# as_fn_exit STATUS 18717# ----------------- 18718# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18719as_fn_exit () 18720{ 18721 set +e 18722 as_fn_set_status $1 18723 exit $1 18724} # as_fn_exit 18725 18726# as_fn_unset VAR 18727# --------------- 18728# Portably unset VAR. 18729as_fn_unset () 18730{ 18731 { eval $1=; unset $1;} 18732} 18733as_unset=as_fn_unset 18734# as_fn_append VAR VALUE 18735# ---------------------- 18736# Append the text in VALUE to the end of the definition contained in VAR. Take 18737# advantage of any shell optimizations that allow amortized linear growth over 18738# repeated appends, instead of the typical quadratic growth present in naive 18739# implementations. 18740if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18741 eval 'as_fn_append () 18742 { 18743 eval $1+=\$2 18744 }' 18745else 18746 as_fn_append () 18747 { 18748 eval $1=\$$1\$2 18749 } 18750fi # as_fn_append 18751 18752# as_fn_arith ARG... 18753# ------------------ 18754# Perform arithmetic evaluation on the ARGs, and store the result in the 18755# global $as_val. Take advantage of shells that can avoid forks. The arguments 18756# must be portable across $(()) and expr. 18757if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18758 eval 'as_fn_arith () 18759 { 18760 as_val=$(( $* )) 18761 }' 18762else 18763 as_fn_arith () 18764 { 18765 as_val=`expr "$@" || test $? -eq 1` 18766 } 18767fi # as_fn_arith 18768 18769 18770if expr a : '\(a\)' >/dev/null 2>&1 && 18771 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18772 as_expr=expr 18773else 18774 as_expr=false 18775fi 18776 18777if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18778 as_basename=basename 18779else 18780 as_basename=false 18781fi 18782 18783if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18784 as_dirname=dirname 18785else 18786 as_dirname=false 18787fi 18788 18789as_me=`$as_basename -- "$0" || 18790$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18791 X"$0" : 'X\(//\)$' \| \ 18792 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18793$as_echo X/"$0" | 18794 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18795 s//\1/ 18796 q 18797 } 18798 /^X\/\(\/\/\)$/{ 18799 s//\1/ 18800 q 18801 } 18802 /^X\/\(\/\).*/{ 18803 s//\1/ 18804 q 18805 } 18806 s/.*/./; q'` 18807 18808# Avoid depending upon Character Ranges. 18809as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18810as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18811as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18812as_cr_digits='0123456789' 18813as_cr_alnum=$as_cr_Letters$as_cr_digits 18814 18815ECHO_C= ECHO_N= ECHO_T= 18816case `echo -n x` in #((((( 18817-n*) 18818 case `echo 'xy\c'` in 18819 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18820 xy) ECHO_C='\c';; 18821 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18822 ECHO_T=' ';; 18823 esac;; 18824*) 18825 ECHO_N='-n';; 18826esac 18827 18828rm -f conf$$ conf$$.exe conf$$.file 18829if test -d conf$$.dir; then 18830 rm -f conf$$.dir/conf$$.file 18831else 18832 rm -f conf$$.dir 18833 mkdir conf$$.dir 2>/dev/null 18834fi 18835if (echo >conf$$.file) 2>/dev/null; then 18836 if ln -s conf$$.file conf$$ 2>/dev/null; then 18837 as_ln_s='ln -s' 18838 # ... but there are two gotchas: 18839 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18840 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18841 # In both cases, we have to default to `cp -p'. 18842 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18843 as_ln_s='cp -p' 18844 elif ln conf$$.file conf$$ 2>/dev/null; then 18845 as_ln_s=ln 18846 else 18847 as_ln_s='cp -p' 18848 fi 18849else 18850 as_ln_s='cp -p' 18851fi 18852rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18853rmdir conf$$.dir 2>/dev/null 18854 18855 18856# as_fn_mkdir_p 18857# ------------- 18858# Create "$as_dir" as a directory, including parents if necessary. 18859as_fn_mkdir_p () 18860{ 18861 18862 case $as_dir in #( 18863 -*) as_dir=./$as_dir;; 18864 esac 18865 test -d "$as_dir" || eval $as_mkdir_p || { 18866 as_dirs= 18867 while :; do 18868 case $as_dir in #( 18869 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18870 *) as_qdir=$as_dir;; 18871 esac 18872 as_dirs="'$as_qdir' $as_dirs" 18873 as_dir=`$as_dirname -- "$as_dir" || 18874$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18875 X"$as_dir" : 'X\(//\)[^/]' \| \ 18876 X"$as_dir" : 'X\(//\)$' \| \ 18877 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18878$as_echo X"$as_dir" | 18879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18880 s//\1/ 18881 q 18882 } 18883 /^X\(\/\/\)[^/].*/{ 18884 s//\1/ 18885 q 18886 } 18887 /^X\(\/\/\)$/{ 18888 s//\1/ 18889 q 18890 } 18891 /^X\(\/\).*/{ 18892 s//\1/ 18893 q 18894 } 18895 s/.*/./; q'` 18896 test -d "$as_dir" && break 18897 done 18898 test -z "$as_dirs" || eval "mkdir $as_dirs" 18899 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18900 18901 18902} # as_fn_mkdir_p 18903if mkdir -p . 2>/dev/null; then 18904 as_mkdir_p='mkdir -p "$as_dir"' 18905else 18906 test -d ./-p && rmdir ./-p 18907 as_mkdir_p=false 18908fi 18909 18910if test -x / >/dev/null 2>&1; then 18911 as_test_x='test -x' 18912else 18913 if ls -dL / >/dev/null 2>&1; then 18914 as_ls_L_option=L 18915 else 18916 as_ls_L_option= 18917 fi 18918 as_test_x=' 18919 eval sh -c '\'' 18920 if test -d "$1"; then 18921 test -d "$1/."; 18922 else 18923 case $1 in #( 18924 -*)set "./$1";; 18925 esac; 18926 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 18927 ???[sx]*):;;*)false;;esac;fi 18928 '\'' sh 18929 ' 18930fi 18931as_executable_p=$as_test_x 18932 18933# Sed expression to map a string onto a valid CPP name. 18934as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18935 18936# Sed expression to map a string onto a valid variable name. 18937as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18938 18939 18940exec 6>&1 18941## ----------------------------------- ## 18942## Main body of $CONFIG_STATUS script. ## 18943## ----------------------------------- ## 18944_ASEOF 18945test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18946 18947cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18948# Save the log message, to keep $0 and so on meaningful, and to 18949# report actual input values of CONFIG_FILES etc. instead of their 18950# values after options handling. 18951ac_log=" 18952This file was extended by libXau $as_me 1.0.8, which was 18953generated by GNU Autoconf 2.68. Invocation command line was 18954 18955 CONFIG_FILES = $CONFIG_FILES 18956 CONFIG_HEADERS = $CONFIG_HEADERS 18957 CONFIG_LINKS = $CONFIG_LINKS 18958 CONFIG_COMMANDS = $CONFIG_COMMANDS 18959 $ $0 $@ 18960 18961on `(hostname || uname -n) 2>/dev/null | sed 1q` 18962" 18963 18964_ACEOF 18965 18966case $ac_config_files in *" 18967"*) set x $ac_config_files; shift; ac_config_files=$*;; 18968esac 18969 18970case $ac_config_headers in *" 18971"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18972esac 18973 18974 18975cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18976# Files that config.status was made for. 18977config_files="$ac_config_files" 18978config_headers="$ac_config_headers" 18979config_commands="$ac_config_commands" 18980 18981_ACEOF 18982 18983cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18984ac_cs_usage="\ 18985\`$as_me' instantiates files and other configuration actions 18986from templates according to the current configuration. Unless the files 18987and actions are specified as TAGs, all are instantiated by default. 18988 18989Usage: $0 [OPTION]... [TAG]... 18990 18991 -h, --help print this help, then exit 18992 -V, --version print version number and configuration settings, then exit 18993 --config print configuration, then exit 18994 -q, --quiet, --silent 18995 do not print progress messages 18996 -d, --debug don't remove temporary files 18997 --recheck update $as_me by reconfiguring in the same conditions 18998 --file=FILE[:TEMPLATE] 18999 instantiate the configuration file FILE 19000 --header=FILE[:TEMPLATE] 19001 instantiate the configuration header FILE 19002 19003Configuration files: 19004$config_files 19005 19006Configuration headers: 19007$config_headers 19008 19009Configuration commands: 19010$config_commands 19011 19012Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 19013 19014_ACEOF 19015cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19016ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19017ac_cs_version="\\ 19018libXau config.status 1.0.8 19019configured by $0, generated by GNU Autoconf 2.68, 19020 with options \\"\$ac_cs_config\\" 19021 19022Copyright (C) 2010 Free Software Foundation, Inc. 19023This config.status script is free software; the Free Software Foundation 19024gives unlimited permission to copy, distribute and modify it." 19025 19026ac_pwd='$ac_pwd' 19027srcdir='$srcdir' 19028INSTALL='$INSTALL' 19029MKDIR_P='$MKDIR_P' 19030AWK='$AWK' 19031test -n "\$AWK" || AWK=awk 19032_ACEOF 19033 19034cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19035# The default lists apply if the user does not specify any file. 19036ac_need_defaults=: 19037while test $# != 0 19038do 19039 case $1 in 19040 --*=?*) 19041 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19042 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19043 ac_shift=: 19044 ;; 19045 --*=) 19046 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19047 ac_optarg= 19048 ac_shift=: 19049 ;; 19050 *) 19051 ac_option=$1 19052 ac_optarg=$2 19053 ac_shift=shift 19054 ;; 19055 esac 19056 19057 case $ac_option in 19058 # Handling of the options. 19059 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19060 ac_cs_recheck=: ;; 19061 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19062 $as_echo "$ac_cs_version"; exit ;; 19063 --config | --confi | --conf | --con | --co | --c ) 19064 $as_echo "$ac_cs_config"; exit ;; 19065 --debug | --debu | --deb | --de | --d | -d ) 19066 debug=: ;; 19067 --file | --fil | --fi | --f ) 19068 $ac_shift 19069 case $ac_optarg in 19070 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19071 '') as_fn_error $? "missing file argument" ;; 19072 esac 19073 as_fn_append CONFIG_FILES " '$ac_optarg'" 19074 ac_need_defaults=false;; 19075 --header | --heade | --head | --hea ) 19076 $ac_shift 19077 case $ac_optarg in 19078 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19079 esac 19080 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19081 ac_need_defaults=false;; 19082 --he | --h) 19083 # Conflict between --help and --header 19084 as_fn_error $? "ambiguous option: \`$1' 19085Try \`$0 --help' for more information.";; 19086 --help | --hel | -h ) 19087 $as_echo "$ac_cs_usage"; exit ;; 19088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19089 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19090 ac_cs_silent=: ;; 19091 19092 # This is an error. 19093 -*) as_fn_error $? "unrecognized option: \`$1' 19094Try \`$0 --help' for more information." ;; 19095 19096 *) as_fn_append ac_config_targets " $1" 19097 ac_need_defaults=false ;; 19098 19099 esac 19100 shift 19101done 19102 19103ac_configure_extra_args= 19104 19105if $ac_cs_silent; then 19106 exec 6>/dev/null 19107 ac_configure_extra_args="$ac_configure_extra_args --silent" 19108fi 19109 19110_ACEOF 19111cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19112if \$ac_cs_recheck; then 19113 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19114 shift 19115 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19116 CONFIG_SHELL='$SHELL' 19117 export CONFIG_SHELL 19118 exec "\$@" 19119fi 19120 19121_ACEOF 19122cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19123exec 5>>config.log 19124{ 19125 echo 19126 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19127## Running $as_me. ## 19128_ASBOX 19129 $as_echo "$ac_log" 19130} >&5 19131 19132_ACEOF 19133cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19134# 19135# INIT-COMMANDS 19136# 19137AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19138 19139 19140# The HP-UX ksh and POSIX shell print the target directory to stdout 19141# if CDPATH is set. 19142(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19143 19144sed_quote_subst='$sed_quote_subst' 19145double_quote_subst='$double_quote_subst' 19146delay_variable_subst='$delay_variable_subst' 19147AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 19148DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19149OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19150macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19151macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19152enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19153enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19154pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19155enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19156SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19157ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19158PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19159host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19160host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19161host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19162build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19163build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19164build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19165SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19166Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19167GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19168EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19169FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19170LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19171NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19172LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19173max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19174ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19175exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19176lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19177lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19178lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19179lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19180lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19181reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19182reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19183deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19184file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19185file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19186want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19187sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19188AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19189AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19190archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19191STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19192RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19193old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19194old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19195old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19196lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19197CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19198CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19199compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19200GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19201lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19202lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19203lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19204lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 19205nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19206lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19207objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19208MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19209lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19210lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19211lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19212lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19213lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19214need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19215MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19216DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19217NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19218LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19219OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19220OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19221libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19222shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19223extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19224archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19225enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19226export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19227whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19228compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19229old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19230old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19231archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19232archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19233module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19234module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19235with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19236allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19237no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19238hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19239hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19240hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19241hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19242hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19243hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19244hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19245inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19246link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19247always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19248export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19249exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19250include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19251prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19252postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19253file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19254variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19255need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19256need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19257version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19258runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19259shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19260shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19261libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19262library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19263soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19264install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19265postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19266postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19267finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19268finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19269hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19270sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19271sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 19272hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19273enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19274enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19275enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19276old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19277striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19278 19279LTCC='$LTCC' 19280LTCFLAGS='$LTCFLAGS' 19281compiler='$compiler_DEFAULT' 19282 19283# A function that is used when there is no print builtin or printf. 19284func_fallback_echo () 19285{ 19286 eval 'cat <<_LTECHO_EOF 19287\$1 19288_LTECHO_EOF' 19289} 19290 19291# Quote evaled strings. 19292for var in AS \ 19293DLLTOOL \ 19294OBJDUMP \ 19295SHELL \ 19296ECHO \ 19297PATH_SEPARATOR \ 19298SED \ 19299GREP \ 19300EGREP \ 19301FGREP \ 19302LD \ 19303NM \ 19304LN_S \ 19305lt_SP2NL \ 19306lt_NL2SP \ 19307reload_flag \ 19308deplibs_check_method \ 19309file_magic_cmd \ 19310file_magic_glob \ 19311want_nocaseglob \ 19312sharedlib_from_linklib_cmd \ 19313AR \ 19314AR_FLAGS \ 19315archiver_list_spec \ 19316STRIP \ 19317RANLIB \ 19318CC \ 19319CFLAGS \ 19320compiler \ 19321lt_cv_sys_global_symbol_pipe \ 19322lt_cv_sys_global_symbol_to_cdecl \ 19323lt_cv_sys_global_symbol_to_c_name_address \ 19324lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19325nm_file_list_spec \ 19326lt_prog_compiler_no_builtin_flag \ 19327lt_prog_compiler_pic \ 19328lt_prog_compiler_wl \ 19329lt_prog_compiler_static \ 19330lt_cv_prog_compiler_c_o \ 19331need_locks \ 19332MANIFEST_TOOL \ 19333DSYMUTIL \ 19334NMEDIT \ 19335LIPO \ 19336OTOOL \ 19337OTOOL64 \ 19338shrext_cmds \ 19339export_dynamic_flag_spec \ 19340whole_archive_flag_spec \ 19341compiler_needs_object \ 19342with_gnu_ld \ 19343allow_undefined_flag \ 19344no_undefined_flag \ 19345hardcode_libdir_flag_spec \ 19346hardcode_libdir_separator \ 19347exclude_expsyms \ 19348include_expsyms \ 19349file_list_spec \ 19350variables_saved_for_relink \ 19351libname_spec \ 19352library_names_spec \ 19353soname_spec \ 19354install_override_mode \ 19355finish_eval \ 19356old_striplib \ 19357striplib; do 19358 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19359 *[\\\\\\\`\\"\\\$]*) 19360 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 19361 ;; 19362 *) 19363 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19364 ;; 19365 esac 19366done 19367 19368# Double-quote double-evaled strings. 19369for var in reload_cmds \ 19370old_postinstall_cmds \ 19371old_postuninstall_cmds \ 19372old_archive_cmds \ 19373extract_expsyms_cmds \ 19374old_archive_from_new_cmds \ 19375old_archive_from_expsyms_cmds \ 19376archive_cmds \ 19377archive_expsym_cmds \ 19378module_cmds \ 19379module_expsym_cmds \ 19380export_symbols_cmds \ 19381prelink_cmds \ 19382postlink_cmds \ 19383postinstall_cmds \ 19384postuninstall_cmds \ 19385finish_cmds \ 19386sys_lib_search_path_spec \ 19387sys_lib_dlsearch_path_spec; do 19388 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19389 *[\\\\\\\`\\"\\\$]*) 19390 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 19391 ;; 19392 *) 19393 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19394 ;; 19395 esac 19396done 19397 19398ac_aux_dir='$ac_aux_dir' 19399xsi_shell='$xsi_shell' 19400lt_shell_append='$lt_shell_append' 19401 19402# See if we are running on zsh, and set the options which allow our 19403# commands through without removal of \ escapes INIT. 19404if test -n "\${ZSH_VERSION+set}" ; then 19405 setopt NO_GLOB_SUBST 19406fi 19407 19408 19409 PACKAGE='$PACKAGE' 19410 VERSION='$VERSION' 19411 TIMESTAMP='$TIMESTAMP' 19412 RM='$RM' 19413 ofile='$ofile' 19414 19415 19416 19417 19418_ACEOF 19419 19420cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19421 19422# Handling of arguments. 19423for ac_config_target in $ac_config_targets 19424do 19425 case $ac_config_target in 19426 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19427 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19428 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19429 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19430 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 19431 "xau.pc") CONFIG_FILES="$CONFIG_FILES xau.pc" ;; 19432 19433 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19434 esac 19435done 19436 19437 19438# If the user did not use the arguments to specify the items to instantiate, 19439# then the envvar interface is used. Set only those that are not. 19440# We use the long form for the default assignment because of an extremely 19441# bizarre bug on SunOS 4.1.3. 19442if $ac_need_defaults; then 19443 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19444 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19445 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19446fi 19447 19448# Have a temporary directory for convenience. Make it in the build tree 19449# simply because there is no reason against having it here, and in addition, 19450# creating and moving files from /tmp can sometimes cause problems. 19451# Hook for its removal unless debugging. 19452# Note that there is a small window in which the directory will not be cleaned: 19453# after its creation but before its name has been assigned to `$tmp'. 19454$debug || 19455{ 19456 tmp= ac_tmp= 19457 trap 'exit_status=$? 19458 : "${ac_tmp:=$tmp}" 19459 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19460' 0 19461 trap 'as_fn_exit 1' 1 2 13 15 19462} 19463# Create a (secure) tmp directory for tmp files. 19464 19465{ 19466 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19467 test -d "$tmp" 19468} || 19469{ 19470 tmp=./conf$$-$RANDOM 19471 (umask 077 && mkdir "$tmp") 19472} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19473ac_tmp=$tmp 19474 19475# Set up the scripts for CONFIG_FILES section. 19476# No need to generate them if there are no CONFIG_FILES. 19477# This happens for instance with `./config.status config.h'. 19478if test -n "$CONFIG_FILES"; then 19479 19480 19481ac_cr=`echo X | tr X '\015'` 19482# On cygwin, bash can eat \r inside `` if the user requested igncr. 19483# But we know of no other shell where ac_cr would be empty at this 19484# point, so we can use a bashism as a fallback. 19485if test "x$ac_cr" = x; then 19486 eval ac_cr=\$\'\\r\' 19487fi 19488ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19489if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19490 ac_cs_awk_cr='\\r' 19491else 19492 ac_cs_awk_cr=$ac_cr 19493fi 19494 19495echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19496_ACEOF 19497 19498 19499{ 19500 echo "cat >conf$$subs.awk <<_ACEOF" && 19501 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19502 echo "_ACEOF" 19503} >conf$$subs.sh || 19504 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19505ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19506ac_delim='%!_!# ' 19507for ac_last_try in false false false false false :; do 19508 . ./conf$$subs.sh || 19509 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19510 19511 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19512 if test $ac_delim_n = $ac_delim_num; then 19513 break 19514 elif $ac_last_try; then 19515 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19516 else 19517 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19518 fi 19519done 19520rm -f conf$$subs.sh 19521 19522cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19523cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19524_ACEOF 19525sed -n ' 19526h 19527s/^/S["/; s/!.*/"]=/ 19528p 19529g 19530s/^[^!]*!// 19531:repl 19532t repl 19533s/'"$ac_delim"'$// 19534t delim 19535:nl 19536h 19537s/\(.\{148\}\)..*/\1/ 19538t more1 19539s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19540p 19541n 19542b repl 19543:more1 19544s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19545p 19546g 19547s/.\{148\}// 19548t nl 19549:delim 19550h 19551s/\(.\{148\}\)..*/\1/ 19552t more2 19553s/["\\]/\\&/g; s/^/"/; s/$/"/ 19554p 19555b 19556:more2 19557s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19558p 19559g 19560s/.\{148\}// 19561t delim 19562' <conf$$subs.awk | sed ' 19563/^[^""]/{ 19564 N 19565 s/\n// 19566} 19567' >>$CONFIG_STATUS || ac_write_fail=1 19568rm -f conf$$subs.awk 19569cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19570_ACAWK 19571cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19572 for (key in S) S_is_set[key] = 1 19573 FS = "" 19574 19575} 19576{ 19577 line = $ 0 19578 nfields = split(line, field, "@") 19579 substed = 0 19580 len = length(field[1]) 19581 for (i = 2; i < nfields; i++) { 19582 key = field[i] 19583 keylen = length(key) 19584 if (S_is_set[key]) { 19585 value = S[key] 19586 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19587 len += length(value) + length(field[++i]) 19588 substed = 1 19589 } else 19590 len += 1 + keylen 19591 } 19592 19593 print line 19594} 19595 19596_ACAWK 19597_ACEOF 19598cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19599if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19600 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19601else 19602 cat 19603fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19604 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19605_ACEOF 19606 19607# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19608# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19609# trailing colons and then remove the whole line if VPATH becomes empty 19610# (actually we leave an empty line to preserve line numbers). 19611if test "x$srcdir" = x.; then 19612 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19613h 19614s/// 19615s/^/:/ 19616s/[ ]*$/:/ 19617s/:\$(srcdir):/:/g 19618s/:\${srcdir}:/:/g 19619s/:@srcdir@:/:/g 19620s/^:*// 19621s/:*$// 19622x 19623s/\(=[ ]*\).*/\1/ 19624G 19625s/\n// 19626s/^[^=]*=[ ]*$// 19627}' 19628fi 19629 19630cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19631fi # test -n "$CONFIG_FILES" 19632 19633# Set up the scripts for CONFIG_HEADERS section. 19634# No need to generate them if there are no CONFIG_HEADERS. 19635# This happens for instance with `./config.status Makefile'. 19636if test -n "$CONFIG_HEADERS"; then 19637cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19638BEGIN { 19639_ACEOF 19640 19641# Transform confdefs.h into an awk script `defines.awk', embedded as 19642# here-document in config.status, that substitutes the proper values into 19643# config.h.in to produce config.h. 19644 19645# Create a delimiter string that does not exist in confdefs.h, to ease 19646# handling of long lines. 19647ac_delim='%!_!# ' 19648for ac_last_try in false false :; do 19649 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19650 if test -z "$ac_tt"; then 19651 break 19652 elif $ac_last_try; then 19653 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19654 else 19655 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19656 fi 19657done 19658 19659# For the awk script, D is an array of macro values keyed by name, 19660# likewise P contains macro parameters if any. Preserve backslash 19661# newline sequences. 19662 19663ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19664sed -n ' 19665s/.\{148\}/&'"$ac_delim"'/g 19666t rset 19667:rset 19668s/^[ ]*#[ ]*define[ ][ ]*/ / 19669t def 19670d 19671:def 19672s/\\$// 19673t bsnl 19674s/["\\]/\\&/g 19675s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19676D["\1"]=" \3"/p 19677s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19678d 19679:bsnl 19680s/["\\]/\\&/g 19681s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19682D["\1"]=" \3\\\\\\n"\\/p 19683t cont 19684s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19685t cont 19686d 19687:cont 19688n 19689s/.\{148\}/&'"$ac_delim"'/g 19690t clear 19691:clear 19692s/\\$// 19693t bsnlc 19694s/["\\]/\\&/g; s/^/"/; s/$/"/p 19695d 19696:bsnlc 19697s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19698b cont 19699' <confdefs.h | sed ' 19700s/'"$ac_delim"'/"\\\ 19701"/g' >>$CONFIG_STATUS || ac_write_fail=1 19702 19703cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19704 for (key in D) D_is_set[key] = 1 19705 FS = "" 19706} 19707/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19708 line = \$ 0 19709 split(line, arg, " ") 19710 if (arg[1] == "#") { 19711 defundef = arg[2] 19712 mac1 = arg[3] 19713 } else { 19714 defundef = substr(arg[1], 2) 19715 mac1 = arg[2] 19716 } 19717 split(mac1, mac2, "(") #) 19718 macro = mac2[1] 19719 prefix = substr(line, 1, index(line, defundef) - 1) 19720 if (D_is_set[macro]) { 19721 # Preserve the white space surrounding the "#". 19722 print prefix "define", macro P[macro] D[macro] 19723 next 19724 } else { 19725 # Replace #undef with comments. This is necessary, for example, 19726 # in the case of _POSIX_SOURCE, which is predefined and required 19727 # on some systems where configure will not decide to define it. 19728 if (defundef == "undef") { 19729 print "/*", prefix defundef, macro, "*/" 19730 next 19731 } 19732 } 19733} 19734{ print } 19735_ACAWK 19736_ACEOF 19737cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19738 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19739fi # test -n "$CONFIG_HEADERS" 19740 19741 19742eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19743shift 19744for ac_tag 19745do 19746 case $ac_tag in 19747 :[FHLC]) ac_mode=$ac_tag; continue;; 19748 esac 19749 case $ac_mode$ac_tag in 19750 :[FHL]*:*);; 19751 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19752 :[FH]-) ac_tag=-:-;; 19753 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19754 esac 19755 ac_save_IFS=$IFS 19756 IFS=: 19757 set x $ac_tag 19758 IFS=$ac_save_IFS 19759 shift 19760 ac_file=$1 19761 shift 19762 19763 case $ac_mode in 19764 :L) ac_source=$1;; 19765 :[FH]) 19766 ac_file_inputs= 19767 for ac_f 19768 do 19769 case $ac_f in 19770 -) ac_f="$ac_tmp/stdin";; 19771 *) # Look for the file first in the build tree, then in the source tree 19772 # (if the path is not absolute). The absolute path cannot be DOS-style, 19773 # because $ac_f cannot contain `:'. 19774 test -f "$ac_f" || 19775 case $ac_f in 19776 [\\/$]*) false;; 19777 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19778 esac || 19779 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19780 esac 19781 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19782 as_fn_append ac_file_inputs " '$ac_f'" 19783 done 19784 19785 # Let's still pretend it is `configure' which instantiates (i.e., don't 19786 # use $as_me), people would be surprised to read: 19787 # /* config.h. Generated by config.status. */ 19788 configure_input='Generated from '` 19789 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19790 `' by configure.' 19791 if test x"$ac_file" != x-; then 19792 configure_input="$ac_file. $configure_input" 19793 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19794$as_echo "$as_me: creating $ac_file" >&6;} 19795 fi 19796 # Neutralize special characters interpreted by sed in replacement strings. 19797 case $configure_input in #( 19798 *\&* | *\|* | *\\* ) 19799 ac_sed_conf_input=`$as_echo "$configure_input" | 19800 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19801 *) ac_sed_conf_input=$configure_input;; 19802 esac 19803 19804 case $ac_tag in 19805 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19806 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19807 esac 19808 ;; 19809 esac 19810 19811 ac_dir=`$as_dirname -- "$ac_file" || 19812$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19813 X"$ac_file" : 'X\(//\)[^/]' \| \ 19814 X"$ac_file" : 'X\(//\)$' \| \ 19815 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19816$as_echo X"$ac_file" | 19817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19818 s//\1/ 19819 q 19820 } 19821 /^X\(\/\/\)[^/].*/{ 19822 s//\1/ 19823 q 19824 } 19825 /^X\(\/\/\)$/{ 19826 s//\1/ 19827 q 19828 } 19829 /^X\(\/\).*/{ 19830 s//\1/ 19831 q 19832 } 19833 s/.*/./; q'` 19834 as_dir="$ac_dir"; as_fn_mkdir_p 19835 ac_builddir=. 19836 19837case "$ac_dir" in 19838.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19839*) 19840 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19841 # A ".." for each directory in $ac_dir_suffix. 19842 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19843 case $ac_top_builddir_sub in 19844 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19845 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19846 esac ;; 19847esac 19848ac_abs_top_builddir=$ac_pwd 19849ac_abs_builddir=$ac_pwd$ac_dir_suffix 19850# for backward compatibility: 19851ac_top_builddir=$ac_top_build_prefix 19852 19853case $srcdir in 19854 .) # We are building in place. 19855 ac_srcdir=. 19856 ac_top_srcdir=$ac_top_builddir_sub 19857 ac_abs_top_srcdir=$ac_pwd ;; 19858 [\\/]* | ?:[\\/]* ) # Absolute name. 19859 ac_srcdir=$srcdir$ac_dir_suffix; 19860 ac_top_srcdir=$srcdir 19861 ac_abs_top_srcdir=$srcdir ;; 19862 *) # Relative name. 19863 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19864 ac_top_srcdir=$ac_top_build_prefix$srcdir 19865 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19866esac 19867ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19868 19869 19870 case $ac_mode in 19871 :F) 19872 # 19873 # CONFIG_FILE 19874 # 19875 19876 case $INSTALL in 19877 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19878 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19879 esac 19880 ac_MKDIR_P=$MKDIR_P 19881 case $MKDIR_P in 19882 [\\/$]* | ?:[\\/]* ) ;; 19883 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19884 esac 19885_ACEOF 19886 19887cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19888# If the template does not know about datarootdir, expand it. 19889# FIXME: This hack should be removed a few years after 2.60. 19890ac_datarootdir_hack=; ac_datarootdir_seen= 19891ac_sed_dataroot=' 19892/datarootdir/ { 19893 p 19894 q 19895} 19896/@datadir@/p 19897/@docdir@/p 19898/@infodir@/p 19899/@localedir@/p 19900/@mandir@/p' 19901case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19902*datarootdir*) ac_datarootdir_seen=yes;; 19903*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19905$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19906_ACEOF 19907cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19908 ac_datarootdir_hack=' 19909 s&@datadir@&$datadir&g 19910 s&@docdir@&$docdir&g 19911 s&@infodir@&$infodir&g 19912 s&@localedir@&$localedir&g 19913 s&@mandir@&$mandir&g 19914 s&\\\${datarootdir}&$datarootdir&g' ;; 19915esac 19916_ACEOF 19917 19918# Neutralize VPATH when `$srcdir' = `.'. 19919# Shell code in configure.ac might set extrasub. 19920# FIXME: do we really want to maintain this feature? 19921cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19922ac_sed_extra="$ac_vpsub 19923$extrasub 19924_ACEOF 19925cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19926:t 19927/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19928s|@configure_input@|$ac_sed_conf_input|;t t 19929s&@top_builddir@&$ac_top_builddir_sub&;t t 19930s&@top_build_prefix@&$ac_top_build_prefix&;t t 19931s&@srcdir@&$ac_srcdir&;t t 19932s&@abs_srcdir@&$ac_abs_srcdir&;t t 19933s&@top_srcdir@&$ac_top_srcdir&;t t 19934s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19935s&@builddir@&$ac_builddir&;t t 19936s&@abs_builddir@&$ac_abs_builddir&;t t 19937s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19938s&@INSTALL@&$ac_INSTALL&;t t 19939s&@MKDIR_P@&$ac_MKDIR_P&;t t 19940$ac_datarootdir_hack 19941" 19942eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19943 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19944 19945test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19946 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19947 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19948 "$ac_tmp/out"`; test -z "$ac_out"; } && 19949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19950which seems to be undefined. Please make sure it is defined" >&5 19951$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19952which seems to be undefined. Please make sure it is defined" >&2;} 19953 19954 rm -f "$ac_tmp/stdin" 19955 case $ac_file in 19956 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19957 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19958 esac \ 19959 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19960 ;; 19961 :H) 19962 # 19963 # CONFIG_HEADER 19964 # 19965 if test x"$ac_file" != x-; then 19966 { 19967 $as_echo "/* $configure_input */" \ 19968 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 19969 } >"$ac_tmp/config.h" \ 19970 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19971 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 19972 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 19973$as_echo "$as_me: $ac_file is unchanged" >&6;} 19974 else 19975 rm -f "$ac_file" 19976 mv "$ac_tmp/config.h" "$ac_file" \ 19977 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19978 fi 19979 else 19980 $as_echo "/* $configure_input */" \ 19981 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 19982 || as_fn_error $? "could not create -" "$LINENO" 5 19983 fi 19984# Compute "$ac_file"'s index in $config_headers. 19985_am_arg="$ac_file" 19986_am_stamp_count=1 19987for _am_header in $config_headers :; do 19988 case $_am_header in 19989 $_am_arg | $_am_arg:* ) 19990 break ;; 19991 * ) 19992 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 19993 esac 19994done 19995echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 19996$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19997 X"$_am_arg" : 'X\(//\)[^/]' \| \ 19998 X"$_am_arg" : 'X\(//\)$' \| \ 19999 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20000$as_echo X"$_am_arg" | 20001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20002 s//\1/ 20003 q 20004 } 20005 /^X\(\/\/\)[^/].*/{ 20006 s//\1/ 20007 q 20008 } 20009 /^X\(\/\/\)$/{ 20010 s//\1/ 20011 q 20012 } 20013 /^X\(\/\).*/{ 20014 s//\1/ 20015 q 20016 } 20017 s/.*/./; q'`/stamp-h$_am_stamp_count 20018 ;; 20019 20020 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20021$as_echo "$as_me: executing $ac_file commands" >&6;} 20022 ;; 20023 esac 20024 20025 20026 case $ac_file$ac_mode in 20027 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20028 # Older Autoconf quotes --file arguments for eval, but not when files 20029 # are listed without --file. Let's play safe and only enable the eval 20030 # if we detect the quoting. 20031 case $CONFIG_FILES in 20032 *\'*) eval set x "$CONFIG_FILES" ;; 20033 *) set x $CONFIG_FILES ;; 20034 esac 20035 shift 20036 for mf 20037 do 20038 # Strip MF so we end up with the name of the file. 20039 mf=`echo "$mf" | sed -e 's/:.*$//'` 20040 # Check whether this is an Automake generated Makefile or not. 20041 # We used to match only the files named 'Makefile.in', but 20042 # some people rename them; so instead we look at the file content. 20043 # Grep'ing the first line is not enough: some people post-process 20044 # each Makefile.in and add a new line on top of each file to say so. 20045 # Grep'ing the whole file is not good either: AIX grep has a line 20046 # limit of 2048, but all sed's we know have understand at least 4000. 20047 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20048 dirpart=`$as_dirname -- "$mf" || 20049$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20050 X"$mf" : 'X\(//\)[^/]' \| \ 20051 X"$mf" : 'X\(//\)$' \| \ 20052 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20053$as_echo X"$mf" | 20054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20055 s//\1/ 20056 q 20057 } 20058 /^X\(\/\/\)[^/].*/{ 20059 s//\1/ 20060 q 20061 } 20062 /^X\(\/\/\)$/{ 20063 s//\1/ 20064 q 20065 } 20066 /^X\(\/\).*/{ 20067 s//\1/ 20068 q 20069 } 20070 s/.*/./; q'` 20071 else 20072 continue 20073 fi 20074 # Extract the definition of DEPDIR, am__include, and am__quote 20075 # from the Makefile without running 'make'. 20076 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20077 test -z "$DEPDIR" && continue 20078 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20079 test -z "$am__include" && continue 20080 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20081 # Find all dependency output files, they are included files with 20082 # $(DEPDIR) in their names. We invoke sed twice because it is the 20083 # simplest approach to changing $(DEPDIR) to its actual value in the 20084 # expansion. 20085 for file in `sed -n " 20086 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20087 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 20088 # Make sure the directory exists. 20089 test -f "$dirpart/$file" && continue 20090 fdir=`$as_dirname -- "$file" || 20091$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20092 X"$file" : 'X\(//\)[^/]' \| \ 20093 X"$file" : 'X\(//\)$' \| \ 20094 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20095$as_echo X"$file" | 20096 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20097 s//\1/ 20098 q 20099 } 20100 /^X\(\/\/\)[^/].*/{ 20101 s//\1/ 20102 q 20103 } 20104 /^X\(\/\/\)$/{ 20105 s//\1/ 20106 q 20107 } 20108 /^X\(\/\).*/{ 20109 s//\1/ 20110 q 20111 } 20112 s/.*/./; q'` 20113 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20114 # echo "creating $dirpart/$file" 20115 echo '# dummy' > "$dirpart/$file" 20116 done 20117 done 20118} 20119 ;; 20120 "libtool":C) 20121 20122 # See if we are running on zsh, and set the options which allow our 20123 # commands through without removal of \ escapes. 20124 if test -n "${ZSH_VERSION+set}" ; then 20125 setopt NO_GLOB_SUBST 20126 fi 20127 20128 cfgfile="${ofile}T" 20129 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20130 $RM "$cfgfile" 20131 20132 cat <<_LT_EOF >> "$cfgfile" 20133#! $SHELL 20134 20135# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 20136# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 20137# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20138# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20139# 20140# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 20141# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 20142# Foundation, Inc. 20143# Written by Gordon Matzigkeit, 1996 20144# 20145# This file is part of GNU Libtool. 20146# 20147# GNU Libtool is free software; you can redistribute it and/or 20148# modify it under the terms of the GNU General Public License as 20149# published by the Free Software Foundation; either version 2 of 20150# the License, or (at your option) any later version. 20151# 20152# As a special exception to the GNU General Public License, 20153# if you distribute this file as part of a program or library that 20154# is built using GNU Libtool, you may include this file under the 20155# same distribution terms that you use for the rest of that program. 20156# 20157# GNU Libtool is distributed in the hope that it will be useful, 20158# but WITHOUT ANY WARRANTY; without even the implied warranty of 20159# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20160# GNU General Public License for more details. 20161# 20162# You should have received a copy of the GNU General Public License 20163# along with GNU Libtool; see the file COPYING. If not, a copy 20164# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 20165# obtained by writing to the Free Software Foundation, Inc., 20166# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20167 20168 20169# The names of the tagged configurations supported by this script. 20170available_tags="" 20171 20172# ### BEGIN LIBTOOL CONFIG 20173 20174# Assembler program. 20175AS=$lt_AS 20176 20177# DLL creation program. 20178DLLTOOL=$lt_DLLTOOL 20179 20180# Object dumper program. 20181OBJDUMP=$lt_OBJDUMP 20182 20183# Which release of libtool.m4 was used? 20184macro_version=$macro_version 20185macro_revision=$macro_revision 20186 20187# Whether or not to build shared libraries. 20188build_libtool_libs=$enable_shared 20189 20190# Whether or not to build static libraries. 20191build_old_libs=$enable_static 20192 20193# What type of objects to build. 20194pic_mode=$pic_mode 20195 20196# Whether or not to optimize for fast installation. 20197fast_install=$enable_fast_install 20198 20199# Shell to use when invoking shell scripts. 20200SHELL=$lt_SHELL 20201 20202# An echo program that protects backslashes. 20203ECHO=$lt_ECHO 20204 20205# The PATH separator for the build system. 20206PATH_SEPARATOR=$lt_PATH_SEPARATOR 20207 20208# The host system. 20209host_alias=$host_alias 20210host=$host 20211host_os=$host_os 20212 20213# The build system. 20214build_alias=$build_alias 20215build=$build 20216build_os=$build_os 20217 20218# A sed program that does not truncate output. 20219SED=$lt_SED 20220 20221# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20222Xsed="\$SED -e 1s/^X//" 20223 20224# A grep program that handles long lines. 20225GREP=$lt_GREP 20226 20227# An ERE matcher. 20228EGREP=$lt_EGREP 20229 20230# A literal string matcher. 20231FGREP=$lt_FGREP 20232 20233# A BSD- or MS-compatible name lister. 20234NM=$lt_NM 20235 20236# Whether we need soft or hard links. 20237LN_S=$lt_LN_S 20238 20239# What is the maximum length of a command? 20240max_cmd_len=$max_cmd_len 20241 20242# Object file suffix (normally "o"). 20243objext=$ac_objext 20244 20245# Executable file suffix (normally ""). 20246exeext=$exeext 20247 20248# whether the shell understands "unset". 20249lt_unset=$lt_unset 20250 20251# turn spaces into newlines. 20252SP2NL=$lt_lt_SP2NL 20253 20254# turn newlines into spaces. 20255NL2SP=$lt_lt_NL2SP 20256 20257# convert \$build file names to \$host format. 20258to_host_file_cmd=$lt_cv_to_host_file_cmd 20259 20260# convert \$build files to toolchain format. 20261to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20262 20263# Method to check whether dependent libraries are shared objects. 20264deplibs_check_method=$lt_deplibs_check_method 20265 20266# Command to use when deplibs_check_method = "file_magic". 20267file_magic_cmd=$lt_file_magic_cmd 20268 20269# How to find potential files when deplibs_check_method = "file_magic". 20270file_magic_glob=$lt_file_magic_glob 20271 20272# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20273want_nocaseglob=$lt_want_nocaseglob 20274 20275# Command to associate shared and link libraries. 20276sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20277 20278# The archiver. 20279AR=$lt_AR 20280 20281# Flags to create an archive. 20282AR_FLAGS=$lt_AR_FLAGS 20283 20284# How to feed a file listing to the archiver. 20285archiver_list_spec=$lt_archiver_list_spec 20286 20287# A symbol stripping program. 20288STRIP=$lt_STRIP 20289 20290# Commands used to install an old-style archive. 20291RANLIB=$lt_RANLIB 20292old_postinstall_cmds=$lt_old_postinstall_cmds 20293old_postuninstall_cmds=$lt_old_postuninstall_cmds 20294 20295# Whether to use a lock for old archive extraction. 20296lock_old_archive_extraction=$lock_old_archive_extraction 20297 20298# A C compiler. 20299LTCC=$lt_CC 20300 20301# LTCC compiler flags. 20302LTCFLAGS=$lt_CFLAGS 20303 20304# Take the output of nm and produce a listing of raw symbols and C names. 20305global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20306 20307# Transform the output of nm in a proper C declaration. 20308global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20309 20310# Transform the output of nm in a C name address pair. 20311global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20312 20313# Transform the output of nm in a C name address pair when lib prefix is needed. 20314global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20315 20316# Specify filename containing input files for \$NM. 20317nm_file_list_spec=$lt_nm_file_list_spec 20318 20319# The root where to search for dependent libraries,and in which our libraries should be installed. 20320lt_sysroot=$lt_sysroot 20321 20322# The name of the directory that contains temporary libtool files. 20323objdir=$objdir 20324 20325# Used to examine libraries when file_magic_cmd begins with "file". 20326MAGIC_CMD=$MAGIC_CMD 20327 20328# Must we lock files when doing compilation? 20329need_locks=$lt_need_locks 20330 20331# Manifest tool. 20332MANIFEST_TOOL=$lt_MANIFEST_TOOL 20333 20334# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20335DSYMUTIL=$lt_DSYMUTIL 20336 20337# Tool to change global to local symbols on Mac OS X. 20338NMEDIT=$lt_NMEDIT 20339 20340# Tool to manipulate fat objects and archives on Mac OS X. 20341LIPO=$lt_LIPO 20342 20343# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20344OTOOL=$lt_OTOOL 20345 20346# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20347OTOOL64=$lt_OTOOL64 20348 20349# Old archive suffix (normally "a"). 20350libext=$libext 20351 20352# Shared library suffix (normally ".so"). 20353shrext_cmds=$lt_shrext_cmds 20354 20355# The commands to extract the exported symbol list from a shared archive. 20356extract_expsyms_cmds=$lt_extract_expsyms_cmds 20357 20358# Variables whose values should be saved in libtool wrapper scripts and 20359# restored at link time. 20360variables_saved_for_relink=$lt_variables_saved_for_relink 20361 20362# Do we need the "lib" prefix for modules? 20363need_lib_prefix=$need_lib_prefix 20364 20365# Do we need a version for libraries? 20366need_version=$need_version 20367 20368# Library versioning type. 20369version_type=$version_type 20370 20371# Shared library runtime path variable. 20372runpath_var=$runpath_var 20373 20374# Shared library path variable. 20375shlibpath_var=$shlibpath_var 20376 20377# Is shlibpath searched before the hard-coded library search path? 20378shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20379 20380# Format of library name prefix. 20381libname_spec=$lt_libname_spec 20382 20383# List of archive names. First name is the real one, the rest are links. 20384# The last name is the one that the linker finds with -lNAME 20385library_names_spec=$lt_library_names_spec 20386 20387# The coded name of the library, if different from the real name. 20388soname_spec=$lt_soname_spec 20389 20390# Permission mode override for installation of shared libraries. 20391install_override_mode=$lt_install_override_mode 20392 20393# Command to use after installation of a shared archive. 20394postinstall_cmds=$lt_postinstall_cmds 20395 20396# Command to use after uninstallation of a shared archive. 20397postuninstall_cmds=$lt_postuninstall_cmds 20398 20399# Commands used to finish a libtool library installation in a directory. 20400finish_cmds=$lt_finish_cmds 20401 20402# As "finish_cmds", except a single script fragment to be evaled but 20403# not shown. 20404finish_eval=$lt_finish_eval 20405 20406# Whether we should hardcode library paths into libraries. 20407hardcode_into_libs=$hardcode_into_libs 20408 20409# Compile-time system search path for libraries. 20410sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20411 20412# Run-time system search path for libraries. 20413sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20414 20415# Whether dlopen is supported. 20416dlopen_support=$enable_dlopen 20417 20418# Whether dlopen of programs is supported. 20419dlopen_self=$enable_dlopen_self 20420 20421# Whether dlopen of statically linked programs is supported. 20422dlopen_self_static=$enable_dlopen_self_static 20423 20424# Commands to strip libraries. 20425old_striplib=$lt_old_striplib 20426striplib=$lt_striplib 20427 20428 20429# The linker used to build libraries. 20430LD=$lt_LD 20431 20432# How to create reloadable object files. 20433reload_flag=$lt_reload_flag 20434reload_cmds=$lt_reload_cmds 20435 20436# Commands used to build an old-style archive. 20437old_archive_cmds=$lt_old_archive_cmds 20438 20439# A language specific compiler. 20440CC=$lt_compiler 20441 20442# Is the compiler the GNU compiler? 20443with_gcc=$GCC 20444 20445# Compiler flag to turn off builtin functions. 20446no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20447 20448# Additional compiler flags for building library objects. 20449pic_flag=$lt_lt_prog_compiler_pic 20450 20451# How to pass a linker flag through the compiler. 20452wl=$lt_lt_prog_compiler_wl 20453 20454# Compiler flag to prevent dynamic linking. 20455link_static_flag=$lt_lt_prog_compiler_static 20456 20457# Does compiler simultaneously support -c and -o options? 20458compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20459 20460# Whether or not to add -lc for building shared libraries. 20461build_libtool_need_lc=$archive_cmds_need_lc 20462 20463# Whether or not to disallow shared libs when runtime libs are static. 20464allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20465 20466# Compiler flag to allow reflexive dlopens. 20467export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20468 20469# Compiler flag to generate shared objects directly from archives. 20470whole_archive_flag_spec=$lt_whole_archive_flag_spec 20471 20472# Whether the compiler copes with passing no objects directly. 20473compiler_needs_object=$lt_compiler_needs_object 20474 20475# Create an old-style archive from a shared archive. 20476old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20477 20478# Create a temporary old-style archive to link instead of a shared archive. 20479old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20480 20481# Commands used to build a shared archive. 20482archive_cmds=$lt_archive_cmds 20483archive_expsym_cmds=$lt_archive_expsym_cmds 20484 20485# Commands used to build a loadable module if different from building 20486# a shared archive. 20487module_cmds=$lt_module_cmds 20488module_expsym_cmds=$lt_module_expsym_cmds 20489 20490# Whether we are building with GNU ld or not. 20491with_gnu_ld=$lt_with_gnu_ld 20492 20493# Flag that allows shared libraries with undefined symbols to be built. 20494allow_undefined_flag=$lt_allow_undefined_flag 20495 20496# Flag that enforces no undefined symbols. 20497no_undefined_flag=$lt_no_undefined_flag 20498 20499# Flag to hardcode \$libdir into a binary during linking. 20500# This must work even if \$libdir does not exist 20501hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20502 20503# Whether we need a single "-rpath" flag with a separated argument. 20504hardcode_libdir_separator=$lt_hardcode_libdir_separator 20505 20506# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20507# DIR into the resulting binary. 20508hardcode_direct=$hardcode_direct 20509 20510# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20511# DIR into the resulting binary and the resulting library dependency is 20512# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 20513# library is relocated. 20514hardcode_direct_absolute=$hardcode_direct_absolute 20515 20516# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20517# into the resulting binary. 20518hardcode_minus_L=$hardcode_minus_L 20519 20520# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20521# into the resulting binary. 20522hardcode_shlibpath_var=$hardcode_shlibpath_var 20523 20524# Set to "yes" if building a shared library automatically hardcodes DIR 20525# into the library and all subsequent libraries and executables linked 20526# against it. 20527hardcode_automatic=$hardcode_automatic 20528 20529# Set to yes if linker adds runtime paths of dependent libraries 20530# to runtime path list. 20531inherit_rpath=$inherit_rpath 20532 20533# Whether libtool must link a program against all its dependency libraries. 20534link_all_deplibs=$link_all_deplibs 20535 20536# Set to "yes" if exported symbols are required. 20537always_export_symbols=$always_export_symbols 20538 20539# The commands to list exported symbols. 20540export_symbols_cmds=$lt_export_symbols_cmds 20541 20542# Symbols that should not be listed in the preloaded symbols. 20543exclude_expsyms=$lt_exclude_expsyms 20544 20545# Symbols that must always be exported. 20546include_expsyms=$lt_include_expsyms 20547 20548# Commands necessary for linking programs (against libraries) with templates. 20549prelink_cmds=$lt_prelink_cmds 20550 20551# Commands necessary for finishing linking programs. 20552postlink_cmds=$lt_postlink_cmds 20553 20554# Specify filename containing input files. 20555file_list_spec=$lt_file_list_spec 20556 20557# How to hardcode a shared library path into an executable. 20558hardcode_action=$hardcode_action 20559 20560# ### END LIBTOOL CONFIG 20561 20562_LT_EOF 20563 20564 case $host_os in 20565 aix3*) 20566 cat <<\_LT_EOF >> "$cfgfile" 20567# AIX sometimes has problems with the GCC collect2 program. For some 20568# reason, if we set the COLLECT_NAMES environment variable, the problems 20569# vanish in a puff of smoke. 20570if test "X${COLLECT_NAMES+set}" != Xset; then 20571 COLLECT_NAMES= 20572 export COLLECT_NAMES 20573fi 20574_LT_EOF 20575 ;; 20576 esac 20577 20578 20579ltmain="$ac_aux_dir/ltmain.sh" 20580 20581 20582 # We use sed instead of cat because bash on DJGPP gets confused if 20583 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20584 # text mode, it properly converts lines to CR/LF. This bash problem 20585 # is reportedly fixed, but why not run on old versions too? 20586 sed '$q' "$ltmain" >> "$cfgfile" \ 20587 || (rm -f "$cfgfile"; exit 1) 20588 20589 if test x"$xsi_shell" = xyes; then 20590 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 20591func_dirname ()\ 20592{\ 20593\ case ${1} in\ 20594\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20595\ * ) func_dirname_result="${3}" ;;\ 20596\ esac\ 20597} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 20598 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20599 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20600test 0 -eq $? || _lt_function_replace_fail=: 20601 20602 20603 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 20604func_basename ()\ 20605{\ 20606\ func_basename_result="${1##*/}"\ 20607} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20608 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20609 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20610test 0 -eq $? || _lt_function_replace_fail=: 20611 20612 20613 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 20614func_dirname_and_basename ()\ 20615{\ 20616\ case ${1} in\ 20617\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20618\ * ) func_dirname_result="${3}" ;;\ 20619\ esac\ 20620\ func_basename_result="${1##*/}"\ 20621} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20622 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20623 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20624test 0 -eq $? || _lt_function_replace_fail=: 20625 20626 20627 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 20628func_stripname ()\ 20629{\ 20630\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 20631\ # positional parameters, so assign one to ordinary parameter first.\ 20632\ func_stripname_result=${3}\ 20633\ func_stripname_result=${func_stripname_result#"${1}"}\ 20634\ func_stripname_result=${func_stripname_result%"${2}"}\ 20635} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 20636 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20637 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20638test 0 -eq $? || _lt_function_replace_fail=: 20639 20640 20641 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 20642func_split_long_opt ()\ 20643{\ 20644\ func_split_long_opt_name=${1%%=*}\ 20645\ func_split_long_opt_arg=${1#*=}\ 20646} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20647 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20648 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20649test 0 -eq $? || _lt_function_replace_fail=: 20650 20651 20652 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 20653func_split_short_opt ()\ 20654{\ 20655\ func_split_short_opt_arg=${1#??}\ 20656\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 20657} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20658 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20659 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20660test 0 -eq $? || _lt_function_replace_fail=: 20661 20662 20663 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 20664func_lo2o ()\ 20665{\ 20666\ case ${1} in\ 20667\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 20668\ *) func_lo2o_result=${1} ;;\ 20669\ esac\ 20670} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 20671 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20672 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20673test 0 -eq $? || _lt_function_replace_fail=: 20674 20675 20676 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 20677func_xform ()\ 20678{\ 20679 func_xform_result=${1%.*}.lo\ 20680} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 20681 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20682 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20683test 0 -eq $? || _lt_function_replace_fail=: 20684 20685 20686 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 20687func_arith ()\ 20688{\ 20689 func_arith_result=$(( $* ))\ 20690} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 20691 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20692 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20693test 0 -eq $? || _lt_function_replace_fail=: 20694 20695 20696 sed -e '/^func_len ()$/,/^} # func_len /c\ 20697func_len ()\ 20698{\ 20699 func_len_result=${#1}\ 20700} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 20701 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20702 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20703test 0 -eq $? || _lt_function_replace_fail=: 20704 20705fi 20706 20707if test x"$lt_shell_append" = xyes; then 20708 sed -e '/^func_append ()$/,/^} # func_append /c\ 20709func_append ()\ 20710{\ 20711 eval "${1}+=\\${2}"\ 20712} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 20713 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20714 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20715test 0 -eq $? || _lt_function_replace_fail=: 20716 20717 20718 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 20719func_append_quoted ()\ 20720{\ 20721\ func_quote_for_eval "${2}"\ 20722\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 20723} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 20724 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20725 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20726test 0 -eq $? || _lt_function_replace_fail=: 20727 20728 20729 # Save a `func_append' function call where possible by direct use of '+=' 20730 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 20731 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20732 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20733 test 0 -eq $? || _lt_function_replace_fail=: 20734else 20735 # Save a `func_append' function call even when '+=' is not available 20736 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 20737 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20738 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20739 test 0 -eq $? || _lt_function_replace_fail=: 20740fi 20741 20742if test x"$_lt_function_replace_fail" = x":"; then 20743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 20744$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 20745fi 20746 20747 20748 mv -f "$cfgfile" "$ofile" || 20749 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20750 chmod +x "$ofile" 20751 20752 ;; 20753 20754 esac 20755done # for ac_tag 20756 20757 20758as_fn_exit 0 20759_ACEOF 20760ac_clean_files=$ac_clean_files_save 20761 20762test $ac_write_fail = 0 || 20763 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20764 20765 20766# configure is writing to config.log, and then calls config.status. 20767# config.status does its own redirection, appending to config.log. 20768# Unfortunately, on DOS this fails, as config.log is still kept open 20769# by configure, so config.status won't be able to write to it; its 20770# output is simply discarded. So we exec the FD to /dev/null, 20771# effectively closing config.log, so it can be properly (re)opened and 20772# appended to by config.status. When coming back to configure, we 20773# need to make the FD available again. 20774if test "$no_create" != yes; then 20775 ac_cs_success=: 20776 ac_config_status_args= 20777 test "$silent" = yes && 20778 ac_config_status_args="$ac_config_status_args --quiet" 20779 exec 5>/dev/null 20780 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20781 exec 5>>config.log 20782 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20783 # would make configure fail if this is the last instruction. 20784 $ac_cs_success || as_fn_exit 1 20785fi 20786if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20788$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20789fi 20790 20791