configure revision 67ab2ff2
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for libXinerama 1.1.2. 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 177 178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 182 PATH=/empty FPATH=/empty; export PATH FPATH 183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 185test \$(( 1 + 1 )) = 2 || 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='libXinerama' 573PACKAGE_TARNAME='libXinerama' 574PACKAGE_VERSION='1.1.2' 575PACKAGE_STRING='libXinerama 1.1.2' 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 620LINT_FALSE 621LINT_TRUE 622LINT_FLAGS 623LINT 624XINERAMA_LIBS 625XINERAMA_CFLAGS 626XTMALLOC_ZERO_CFLAGS 627XMALLOC_ZERO_CFLAGS 628MALLOC_ZERO_CFLAGS 629AM_BACKSLASH 630AM_DEFAULT_VERBOSITY 631MAN_SUBSTS 632XORG_MAN_PAGE 633ADMIN_MAN_DIR 634DRIVER_MAN_DIR 635MISC_MAN_DIR 636FILE_MAN_DIR 637LIB_MAN_DIR 638APP_MAN_DIR 639ADMIN_MAN_SUFFIX 640DRIVER_MAN_SUFFIX 641MISC_MAN_SUFFIX 642FILE_MAN_SUFFIX 643LIB_MAN_SUFFIX 644APP_MAN_SUFFIX 645INSTALL_CMD 646PKG_CONFIG 647CHANGELOG_CMD 648STRICT_CFLAGS 649CWARNFLAGS 650BASE_CFLAGS 651CPP 652OTOOL64 653OTOOL 654LIPO 655NMEDIT 656DSYMUTIL 657MANIFEST_TOOL 658RANLIB 659ac_ct_AR 660AR 661DLLTOOL 662OBJDUMP 663LN_S 664NM 665ac_ct_DUMPBIN 666DUMPBIN 667LD 668FGREP 669EGREP 670GREP 671SED 672am__fastdepCC_FALSE 673am__fastdepCC_TRUE 674CCDEPMODE 675AMDEPBACKSLASH 676AMDEP_FALSE 677AMDEP_TRUE 678am__quote 679am__include 680DEPDIR 681OBJEXT 682EXEEXT 683ac_ct_CC 684CPPFLAGS 685LDFLAGS 686CFLAGS 687CC 688host_os 689host_vendor 690host_cpu 691host 692build_os 693build_vendor 694build_cpu 695build 696LIBTOOL 697MAINT 698MAINTAINER_MODE_FALSE 699MAINTAINER_MODE_TRUE 700am__untar 701am__tar 702AMTAR 703am__leading_dot 704SET_MAKE 705AWK 706mkdir_p 707MKDIR_P 708INSTALL_STRIP_PROGRAM 709STRIP 710install_sh 711MAKEINFO 712AUTOHEADER 713AUTOMAKE 714AUTOCONF 715ACLOCAL 716VERSION 717PACKAGE 718CYGPATH_W 719am__isrc 720INSTALL_DATA 721INSTALL_SCRIPT 722INSTALL_PROGRAM 723target_alias 724host_alias 725build_alias 726LIBS 727ECHO_T 728ECHO_N 729ECHO_C 730DEFS 731mandir 732localedir 733libdir 734psdir 735pdfdir 736dvidir 737htmldir 738infodir 739docdir 740oldincludedir 741includedir 742localstatedir 743sharedstatedir 744sysconfdir 745datadir 746datarootdir 747libexecdir 748sbindir 749bindir 750program_transform_name 751prefix 752exec_prefix 753PACKAGE_URL 754PACKAGE_BUGREPORT 755PACKAGE_STRING 756PACKAGE_VERSION 757PACKAGE_TARNAME 758PACKAGE_NAME 759PATH_SEPARATOR 760SHELL' 761ac_subst_files='' 762ac_user_opts=' 763enable_option_checking 764enable_maintainer_mode 765enable_shared 766enable_static 767with_pic 768enable_fast_install 769enable_dependency_tracking 770with_gnu_ld 771with_sysroot 772enable_libtool_lock 773enable_selective_werror 774enable_strict_compilation 775enable_silent_rules 776enable_malloc0returnsnull 777with_lint 778' 779 ac_precious_vars='build_alias 780host_alias 781target_alias 782CC 783CFLAGS 784LDFLAGS 785LIBS 786CPPFLAGS 787CPP 788PKG_CONFIG 789XINERAMA_CFLAGS 790XINERAMA_LIBS 791LINT 792LINT_FLAGS' 793 794 795# Initialize some variables set by options. 796ac_init_help= 797ac_init_version=false 798ac_unrecognized_opts= 799ac_unrecognized_sep= 800# The variables have the same names as the options, with 801# dashes changed to underlines. 802cache_file=/dev/null 803exec_prefix=NONE 804no_create= 805no_recursion= 806prefix=NONE 807program_prefix=NONE 808program_suffix=NONE 809program_transform_name=s,x,x, 810silent= 811site= 812srcdir= 813verbose= 814x_includes=NONE 815x_libraries=NONE 816 817# Installation directory options. 818# These are left unexpanded so users can "make install exec_prefix=/foo" 819# and all the variables that are supposed to be based on exec_prefix 820# by default will actually change. 821# Use braces instead of parens because sh, perl, etc. also accept them. 822# (The list follows the same order as the GNU Coding Standards.) 823bindir='${exec_prefix}/bin' 824sbindir='${exec_prefix}/sbin' 825libexecdir='${exec_prefix}/libexec' 826datarootdir='${prefix}/share' 827datadir='${datarootdir}' 828sysconfdir='${prefix}/etc' 829sharedstatedir='${prefix}/com' 830localstatedir='${prefix}/var' 831includedir='${prefix}/include' 832oldincludedir='/usr/include' 833docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 834infodir='${datarootdir}/info' 835htmldir='${docdir}' 836dvidir='${docdir}' 837pdfdir='${docdir}' 838psdir='${docdir}' 839libdir='${exec_prefix}/lib' 840localedir='${datarootdir}/locale' 841mandir='${datarootdir}/man' 842 843ac_prev= 844ac_dashdash= 845for ac_option 846do 847 # If the previous option needs an argument, assign it. 848 if test -n "$ac_prev"; then 849 eval $ac_prev=\$ac_option 850 ac_prev= 851 continue 852 fi 853 854 case $ac_option in 855 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 856 *=) ac_optarg= ;; 857 *) ac_optarg=yes ;; 858 esac 859 860 # Accept the important Cygnus configure options, so we can diagnose typos. 861 862 case $ac_dashdash$ac_option in 863 --) 864 ac_dashdash=yes ;; 865 866 -bindir | --bindir | --bindi | --bind | --bin | --bi) 867 ac_prev=bindir ;; 868 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 869 bindir=$ac_optarg ;; 870 871 -build | --build | --buil | --bui | --bu) 872 ac_prev=build_alias ;; 873 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 874 build_alias=$ac_optarg ;; 875 876 -cache-file | --cache-file | --cache-fil | --cache-fi \ 877 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 878 ac_prev=cache_file ;; 879 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 880 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 881 cache_file=$ac_optarg ;; 882 883 --config-cache | -C) 884 cache_file=config.cache ;; 885 886 -datadir | --datadir | --datadi | --datad) 887 ac_prev=datadir ;; 888 -datadir=* | --datadir=* | --datadi=* | --datad=*) 889 datadir=$ac_optarg ;; 890 891 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 892 | --dataroo | --dataro | --datar) 893 ac_prev=datarootdir ;; 894 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 895 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 896 datarootdir=$ac_optarg ;; 897 898 -disable-* | --disable-*) 899 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 900 # Reject names that are not valid shell variable names. 901 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 902 as_fn_error $? "invalid feature name: $ac_useropt" 903 ac_useropt_orig=$ac_useropt 904 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 905 case $ac_user_opts in 906 *" 907"enable_$ac_useropt" 908"*) ;; 909 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 910 ac_unrecognized_sep=', ';; 911 esac 912 eval enable_$ac_useropt=no ;; 913 914 -docdir | --docdir | --docdi | --doc | --do) 915 ac_prev=docdir ;; 916 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 917 docdir=$ac_optarg ;; 918 919 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 920 ac_prev=dvidir ;; 921 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 922 dvidir=$ac_optarg ;; 923 924 -enable-* | --enable-*) 925 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 926 # Reject names that are not valid shell variable names. 927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 928 as_fn_error $? "invalid feature name: $ac_useropt" 929 ac_useropt_orig=$ac_useropt 930 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 931 case $ac_user_opts in 932 *" 933"enable_$ac_useropt" 934"*) ;; 935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 936 ac_unrecognized_sep=', ';; 937 esac 938 eval enable_$ac_useropt=\$ac_optarg ;; 939 940 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 941 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 942 | --exec | --exe | --ex) 943 ac_prev=exec_prefix ;; 944 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 945 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 946 | --exec=* | --exe=* | --ex=*) 947 exec_prefix=$ac_optarg ;; 948 949 -gas | --gas | --ga | --g) 950 # Obsolete; use --with-gas. 951 with_gas=yes ;; 952 953 -help | --help | --hel | --he | -h) 954 ac_init_help=long ;; 955 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 956 ac_init_help=recursive ;; 957 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 958 ac_init_help=short ;; 959 960 -host | --host | --hos | --ho) 961 ac_prev=host_alias ;; 962 -host=* | --host=* | --hos=* | --ho=*) 963 host_alias=$ac_optarg ;; 964 965 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 966 ac_prev=htmldir ;; 967 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 968 | --ht=*) 969 htmldir=$ac_optarg ;; 970 971 -includedir | --includedir | --includedi | --included | --include \ 972 | --includ | --inclu | --incl | --inc) 973 ac_prev=includedir ;; 974 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 975 | --includ=* | --inclu=* | --incl=* | --inc=*) 976 includedir=$ac_optarg ;; 977 978 -infodir | --infodir | --infodi | --infod | --info | --inf) 979 ac_prev=infodir ;; 980 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 981 infodir=$ac_optarg ;; 982 983 -libdir | --libdir | --libdi | --libd) 984 ac_prev=libdir ;; 985 -libdir=* | --libdir=* | --libdi=* | --libd=*) 986 libdir=$ac_optarg ;; 987 988 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 989 | --libexe | --libex | --libe) 990 ac_prev=libexecdir ;; 991 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 992 | --libexe=* | --libex=* | --libe=*) 993 libexecdir=$ac_optarg ;; 994 995 -localedir | --localedir | --localedi | --localed | --locale) 996 ac_prev=localedir ;; 997 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 998 localedir=$ac_optarg ;; 999 1000 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1001 | --localstate | --localstat | --localsta | --localst | --locals) 1002 ac_prev=localstatedir ;; 1003 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1004 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1005 localstatedir=$ac_optarg ;; 1006 1007 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1008 ac_prev=mandir ;; 1009 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1010 mandir=$ac_optarg ;; 1011 1012 -nfp | --nfp | --nf) 1013 # Obsolete; use --without-fp. 1014 with_fp=no ;; 1015 1016 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1017 | --no-cr | --no-c | -n) 1018 no_create=yes ;; 1019 1020 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1021 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1022 no_recursion=yes ;; 1023 1024 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1025 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1026 | --oldin | --oldi | --old | --ol | --o) 1027 ac_prev=oldincludedir ;; 1028 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1029 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1030 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1031 oldincludedir=$ac_optarg ;; 1032 1033 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1034 ac_prev=prefix ;; 1035 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1036 prefix=$ac_optarg ;; 1037 1038 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1039 | --program-pre | --program-pr | --program-p) 1040 ac_prev=program_prefix ;; 1041 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1042 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1043 program_prefix=$ac_optarg ;; 1044 1045 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1046 | --program-suf | --program-su | --program-s) 1047 ac_prev=program_suffix ;; 1048 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1049 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1050 program_suffix=$ac_optarg ;; 1051 1052 -program-transform-name | --program-transform-name \ 1053 | --program-transform-nam | --program-transform-na \ 1054 | --program-transform-n | --program-transform- \ 1055 | --program-transform | --program-transfor \ 1056 | --program-transfo | --program-transf \ 1057 | --program-trans | --program-tran \ 1058 | --progr-tra | --program-tr | --program-t) 1059 ac_prev=program_transform_name ;; 1060 -program-transform-name=* | --program-transform-name=* \ 1061 | --program-transform-nam=* | --program-transform-na=* \ 1062 | --program-transform-n=* | --program-transform-=* \ 1063 | --program-transform=* | --program-transfor=* \ 1064 | --program-transfo=* | --program-transf=* \ 1065 | --program-trans=* | --program-tran=* \ 1066 | --progr-tra=* | --program-tr=* | --program-t=*) 1067 program_transform_name=$ac_optarg ;; 1068 1069 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1070 ac_prev=pdfdir ;; 1071 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1072 pdfdir=$ac_optarg ;; 1073 1074 -psdir | --psdir | --psdi | --psd | --ps) 1075 ac_prev=psdir ;; 1076 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1077 psdir=$ac_optarg ;; 1078 1079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1080 | -silent | --silent | --silen | --sile | --sil) 1081 silent=yes ;; 1082 1083 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1084 ac_prev=sbindir ;; 1085 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1086 | --sbi=* | --sb=*) 1087 sbindir=$ac_optarg ;; 1088 1089 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1090 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1091 | --sharedst | --shareds | --shared | --share | --shar \ 1092 | --sha | --sh) 1093 ac_prev=sharedstatedir ;; 1094 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1095 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1096 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1097 | --sha=* | --sh=*) 1098 sharedstatedir=$ac_optarg ;; 1099 1100 -site | --site | --sit) 1101 ac_prev=site ;; 1102 -site=* | --site=* | --sit=*) 1103 site=$ac_optarg ;; 1104 1105 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1106 ac_prev=srcdir ;; 1107 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1108 srcdir=$ac_optarg ;; 1109 1110 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1111 | --syscon | --sysco | --sysc | --sys | --sy) 1112 ac_prev=sysconfdir ;; 1113 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1114 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1115 sysconfdir=$ac_optarg ;; 1116 1117 -target | --target | --targe | --targ | --tar | --ta | --t) 1118 ac_prev=target_alias ;; 1119 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1120 target_alias=$ac_optarg ;; 1121 1122 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1123 verbose=yes ;; 1124 1125 -version | --version | --versio | --versi | --vers | -V) 1126 ac_init_version=: ;; 1127 1128 -with-* | --with-*) 1129 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1130 # Reject names that are not valid shell variable names. 1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1132 as_fn_error $? "invalid package name: $ac_useropt" 1133 ac_useropt_orig=$ac_useropt 1134 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1135 case $ac_user_opts in 1136 *" 1137"with_$ac_useropt" 1138"*) ;; 1139 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1140 ac_unrecognized_sep=', ';; 1141 esac 1142 eval with_$ac_useropt=\$ac_optarg ;; 1143 1144 -without-* | --without-*) 1145 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1146 # Reject names that are not valid shell variable names. 1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1148 as_fn_error $? "invalid package name: $ac_useropt" 1149 ac_useropt_orig=$ac_useropt 1150 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1151 case $ac_user_opts in 1152 *" 1153"with_$ac_useropt" 1154"*) ;; 1155 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1156 ac_unrecognized_sep=', ';; 1157 esac 1158 eval with_$ac_useropt=no ;; 1159 1160 --x) 1161 # Obsolete; use --with-x. 1162 with_x=yes ;; 1163 1164 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1165 | --x-incl | --x-inc | --x-in | --x-i) 1166 ac_prev=x_includes ;; 1167 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1168 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1169 x_includes=$ac_optarg ;; 1170 1171 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1172 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1173 ac_prev=x_libraries ;; 1174 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1175 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1176 x_libraries=$ac_optarg ;; 1177 1178 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1179Try \`$0 --help' for more information" 1180 ;; 1181 1182 *=*) 1183 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1184 # Reject names that are not valid shell variable names. 1185 case $ac_envvar in #( 1186 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1187 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1188 esac 1189 eval $ac_envvar=\$ac_optarg 1190 export $ac_envvar ;; 1191 1192 *) 1193 # FIXME: should be removed in autoconf 3.0. 1194 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1195 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1196 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1197 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1198 ;; 1199 1200 esac 1201done 1202 1203if test -n "$ac_prev"; then 1204 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1205 as_fn_error $? "missing argument to $ac_option" 1206fi 1207 1208if test -n "$ac_unrecognized_opts"; then 1209 case $enable_option_checking in 1210 no) ;; 1211 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1212 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1213 esac 1214fi 1215 1216# Check all directory arguments for consistency. 1217for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1218 datadir sysconfdir sharedstatedir localstatedir includedir \ 1219 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1220 libdir localedir mandir 1221do 1222 eval ac_val=\$$ac_var 1223 # Remove trailing slashes. 1224 case $ac_val in 1225 */ ) 1226 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1227 eval $ac_var=\$ac_val;; 1228 esac 1229 # Be sure to have absolute directory names. 1230 case $ac_val in 1231 [\\/$]* | ?:[\\/]* ) continue;; 1232 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1233 esac 1234 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1235done 1236 1237# There might be people who depend on the old broken behavior: `$host' 1238# used to hold the argument of --host etc. 1239# FIXME: To remove some day. 1240build=$build_alias 1241host=$host_alias 1242target=$target_alias 1243 1244# FIXME: To remove some day. 1245if test "x$host_alias" != x; then 1246 if test "x$build_alias" = x; then 1247 cross_compiling=maybe 1248 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1249 If a cross compiler is detected then cross compile mode will be used" >&2 1250 elif test "x$build_alias" != "x$host_alias"; then 1251 cross_compiling=yes 1252 fi 1253fi 1254 1255ac_tool_prefix= 1256test -n "$host_alias" && ac_tool_prefix=$host_alias- 1257 1258test "$silent" = yes && exec 6>/dev/null 1259 1260 1261ac_pwd=`pwd` && test -n "$ac_pwd" && 1262ac_ls_di=`ls -di .` && 1263ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1264 as_fn_error $? "working directory cannot be determined" 1265test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1266 as_fn_error $? "pwd does not report name of working directory" 1267 1268 1269# Find the source files, if location was not specified. 1270if test -z "$srcdir"; then 1271 ac_srcdir_defaulted=yes 1272 # Try the directory containing this script, then the parent directory. 1273 ac_confdir=`$as_dirname -- "$as_myself" || 1274$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1275 X"$as_myself" : 'X\(//\)[^/]' \| \ 1276 X"$as_myself" : 'X\(//\)$' \| \ 1277 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1278$as_echo X"$as_myself" | 1279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1280 s//\1/ 1281 q 1282 } 1283 /^X\(\/\/\)[^/].*/{ 1284 s//\1/ 1285 q 1286 } 1287 /^X\(\/\/\)$/{ 1288 s//\1/ 1289 q 1290 } 1291 /^X\(\/\).*/{ 1292 s//\1/ 1293 q 1294 } 1295 s/.*/./; q'` 1296 srcdir=$ac_confdir 1297 if test ! -r "$srcdir/$ac_unique_file"; then 1298 srcdir=.. 1299 fi 1300else 1301 ac_srcdir_defaulted=no 1302fi 1303if test ! -r "$srcdir/$ac_unique_file"; then 1304 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1305 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1306fi 1307ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1308ac_abs_confdir=`( 1309 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1310 pwd)` 1311# When building in place, set srcdir=. 1312if test "$ac_abs_confdir" = "$ac_pwd"; then 1313 srcdir=. 1314fi 1315# Remove unnecessary trailing slashes from srcdir. 1316# Double slashes in file names in object file debugging info 1317# mess up M-x gdb in Emacs. 1318case $srcdir in 1319*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1320esac 1321for ac_var in $ac_precious_vars; do 1322 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1323 eval ac_env_${ac_var}_value=\$${ac_var} 1324 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1325 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1326done 1327 1328# 1329# Report the --help message. 1330# 1331if test "$ac_init_help" = "long"; then 1332 # Omit some internal or obsolete options to make the list less imposing. 1333 # This message is too long to be a string in the A/UX 3.1 sh. 1334 cat <<_ACEOF 1335\`configure' configures libXinerama 1.1.2 to adapt to many kinds of systems. 1336 1337Usage: $0 [OPTION]... [VAR=VALUE]... 1338 1339To assign environment variables (e.g., CC, CFLAGS...), specify them as 1340VAR=VALUE. See below for descriptions of some of the useful variables. 1341 1342Defaults for the options are specified in brackets. 1343 1344Configuration: 1345 -h, --help display this help and exit 1346 --help=short display options specific to this package 1347 --help=recursive display the short help of all the included packages 1348 -V, --version display version information and exit 1349 -q, --quiet, --silent do not print \`checking ...' messages 1350 --cache-file=FILE cache test results in FILE [disabled] 1351 -C, --config-cache alias for \`--cache-file=config.cache' 1352 -n, --no-create do not create output files 1353 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1354 1355Installation directories: 1356 --prefix=PREFIX install architecture-independent files in PREFIX 1357 [$ac_default_prefix] 1358 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1359 [PREFIX] 1360 1361By default, \`make install' will install all the files in 1362\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1363an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1364for instance \`--prefix=\$HOME'. 1365 1366For better control, use the options below. 1367 1368Fine tuning of the installation directories: 1369 --bindir=DIR user executables [EPREFIX/bin] 1370 --sbindir=DIR system admin executables [EPREFIX/sbin] 1371 --libexecdir=DIR program executables [EPREFIX/libexec] 1372 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1373 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1374 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1375 --libdir=DIR object code libraries [EPREFIX/lib] 1376 --includedir=DIR C header files [PREFIX/include] 1377 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1378 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1379 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1380 --infodir=DIR info documentation [DATAROOTDIR/info] 1381 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1382 --mandir=DIR man documentation [DATAROOTDIR/man] 1383 --docdir=DIR documentation root [DATAROOTDIR/doc/libXinerama] 1384 --htmldir=DIR html documentation [DOCDIR] 1385 --dvidir=DIR dvi documentation [DOCDIR] 1386 --pdfdir=DIR pdf documentation [DOCDIR] 1387 --psdir=DIR ps documentation [DOCDIR] 1388_ACEOF 1389 1390 cat <<\_ACEOF 1391 1392Program names: 1393 --program-prefix=PREFIX prepend PREFIX to installed program names 1394 --program-suffix=SUFFIX append SUFFIX to installed program names 1395 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1396 1397System types: 1398 --build=BUILD configure for building on BUILD [guessed] 1399 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1400_ACEOF 1401fi 1402 1403if test -n "$ac_init_help"; then 1404 case $ac_init_help in 1405 short | recursive ) echo "Configuration of libXinerama 1.1.2:";; 1406 esac 1407 cat <<\_ACEOF 1408 1409Optional Features: 1410 --disable-option-checking ignore unrecognized --enable/--with options 1411 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1412 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1413 --enable-maintainer-mode enable make rules and dependencies not useful 1414 (and sometimes confusing) to the casual installer 1415 --enable-shared[=PKGS] build shared libraries [default=yes] 1416 --enable-static[=PKGS] build static libraries [default=yes] 1417 --enable-fast-install[=PKGS] 1418 optimize for fast installation [default=yes] 1419 --disable-dependency-tracking speeds up one-time build 1420 --enable-dependency-tracking do not reject slow dependency extractors 1421 --disable-libtool-lock avoid locking (might break parallel builds) 1422 --disable-selective-werror 1423 Turn off selective compiler errors. (default: 1424 enabled) 1425 --enable-strict-compilation 1426 Enable all warnings from compiler and make them 1427 errors (default: disabled) 1428 --enable-silent-rules less verbose build output (undo: `make V=1') 1429 --disable-silent-rules verbose build output (undo: `make V=0') 1430 --enable-malloc0returnsnull 1431 malloc(0) returns NULL (default: auto) 1432 1433Optional Packages: 1434 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1435 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1436 --with-pic try to use only PIC/non-PIC objects [default=use 1437 both] 1438 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1439 --with-sysroot=DIR Search for dependent libraries within DIR 1440 (or the compiler's sysroot if not specified). 1441 --with-lint Use a lint-style source code checker (default: 1442 disabled) 1443 1444Some influential environment variables: 1445 CC C compiler command 1446 CFLAGS C compiler flags 1447 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1448 nonstandard directory <lib dir> 1449 LIBS libraries to pass to the linker, e.g. -l<library> 1450 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1451 you have headers in a nonstandard directory <include dir> 1452 CPP C preprocessor 1453 PKG_CONFIG path to pkg-config utility 1454 XINERAMA_CFLAGS 1455 C compiler flags for XINERAMA, overriding pkg-config 1456 XINERAMA_LIBS 1457 linker flags for XINERAMA, overriding pkg-config 1458 LINT Path to a lint-style command 1459 LINT_FLAGS Flags for the lint-style command 1460 1461Use these variables to override the choices made by `configure' or to help 1462it to find libraries and programs with nonstandard names/locations. 1463 1464Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1465_ACEOF 1466ac_status=$? 1467fi 1468 1469if test "$ac_init_help" = "recursive"; then 1470 # If there are subdirs, report their specific --help. 1471 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1472 test -d "$ac_dir" || 1473 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1474 continue 1475 ac_builddir=. 1476 1477case "$ac_dir" in 1478.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1479*) 1480 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1481 # A ".." for each directory in $ac_dir_suffix. 1482 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1483 case $ac_top_builddir_sub in 1484 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1485 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1486 esac ;; 1487esac 1488ac_abs_top_builddir=$ac_pwd 1489ac_abs_builddir=$ac_pwd$ac_dir_suffix 1490# for backward compatibility: 1491ac_top_builddir=$ac_top_build_prefix 1492 1493case $srcdir in 1494 .) # We are building in place. 1495 ac_srcdir=. 1496 ac_top_srcdir=$ac_top_builddir_sub 1497 ac_abs_top_srcdir=$ac_pwd ;; 1498 [\\/]* | ?:[\\/]* ) # Absolute name. 1499 ac_srcdir=$srcdir$ac_dir_suffix; 1500 ac_top_srcdir=$srcdir 1501 ac_abs_top_srcdir=$srcdir ;; 1502 *) # Relative name. 1503 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1504 ac_top_srcdir=$ac_top_build_prefix$srcdir 1505 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1506esac 1507ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1508 1509 cd "$ac_dir" || { ac_status=$?; continue; } 1510 # Check for guested configure. 1511 if test -f "$ac_srcdir/configure.gnu"; then 1512 echo && 1513 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1514 elif test -f "$ac_srcdir/configure"; then 1515 echo && 1516 $SHELL "$ac_srcdir/configure" --help=recursive 1517 else 1518 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1519 fi || ac_status=$? 1520 cd "$ac_pwd" || { ac_status=$?; break; } 1521 done 1522fi 1523 1524test -n "$ac_init_help" && exit $ac_status 1525if $ac_init_version; then 1526 cat <<\_ACEOF 1527libXinerama configure 1.1.2 1528generated by GNU Autoconf 2.68 1529 1530Copyright (C) 2010 Free Software Foundation, Inc. 1531This configure script is free software; the Free Software Foundation 1532gives unlimited permission to copy, distribute and modify it. 1533_ACEOF 1534 exit 1535fi 1536 1537## ------------------------ ## 1538## Autoconf initialization. ## 1539## ------------------------ ## 1540 1541# ac_fn_c_try_compile LINENO 1542# -------------------------- 1543# Try to compile conftest.$ac_ext, and return whether this succeeded. 1544ac_fn_c_try_compile () 1545{ 1546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1547 rm -f conftest.$ac_objext 1548 if { { ac_try="$ac_compile" 1549case "(($ac_try" in 1550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1551 *) ac_try_echo=$ac_try;; 1552esac 1553eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1554$as_echo "$ac_try_echo"; } >&5 1555 (eval "$ac_compile") 2>conftest.err 1556 ac_status=$? 1557 if test -s conftest.err; then 1558 grep -v '^ *+' conftest.err >conftest.er1 1559 cat conftest.er1 >&5 1560 mv -f conftest.er1 conftest.err 1561 fi 1562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1563 test $ac_status = 0; } && { 1564 test -z "$ac_c_werror_flag" || 1565 test ! -s conftest.err 1566 } && test -s conftest.$ac_objext; then : 1567 ac_retval=0 1568else 1569 $as_echo "$as_me: failed program was:" >&5 1570sed 's/^/| /' conftest.$ac_ext >&5 1571 1572 ac_retval=1 1573fi 1574 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1575 as_fn_set_status $ac_retval 1576 1577} # ac_fn_c_try_compile 1578 1579# ac_fn_c_try_link LINENO 1580# ----------------------- 1581# Try to link conftest.$ac_ext, and return whether this succeeded. 1582ac_fn_c_try_link () 1583{ 1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1585 rm -f conftest.$ac_objext conftest$ac_exeext 1586 if { { ac_try="$ac_link" 1587case "(($ac_try" in 1588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1589 *) ac_try_echo=$ac_try;; 1590esac 1591eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1592$as_echo "$ac_try_echo"; } >&5 1593 (eval "$ac_link") 2>conftest.err 1594 ac_status=$? 1595 if test -s conftest.err; then 1596 grep -v '^ *+' conftest.err >conftest.er1 1597 cat conftest.er1 >&5 1598 mv -f conftest.er1 conftest.err 1599 fi 1600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1601 test $ac_status = 0; } && { 1602 test -z "$ac_c_werror_flag" || 1603 test ! -s conftest.err 1604 } && test -s conftest$ac_exeext && { 1605 test "$cross_compiling" = yes || 1606 $as_test_x conftest$ac_exeext 1607 }; then : 1608 ac_retval=0 1609else 1610 $as_echo "$as_me: failed program was:" >&5 1611sed 's/^/| /' conftest.$ac_ext >&5 1612 1613 ac_retval=1 1614fi 1615 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1616 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1617 # interfere with the next link command; also delete a directory that is 1618 # left behind by Apple's compiler. We do this before executing the actions. 1619 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1620 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1621 as_fn_set_status $ac_retval 1622 1623} # ac_fn_c_try_link 1624 1625# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1626# ------------------------------------------------------- 1627# Tests whether HEADER exists and can be compiled using the include files in 1628# INCLUDES, setting the cache variable VAR accordingly. 1629ac_fn_c_check_header_compile () 1630{ 1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1633$as_echo_n "checking for $2... " >&6; } 1634if eval \${$3+:} false; then : 1635 $as_echo_n "(cached) " >&6 1636else 1637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1638/* end confdefs.h. */ 1639$4 1640#include <$2> 1641_ACEOF 1642if ac_fn_c_try_compile "$LINENO"; then : 1643 eval "$3=yes" 1644else 1645 eval "$3=no" 1646fi 1647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1648fi 1649eval ac_res=\$$3 1650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1651$as_echo "$ac_res" >&6; } 1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1653 1654} # ac_fn_c_check_header_compile 1655 1656# ac_fn_c_try_cpp LINENO 1657# ---------------------- 1658# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1659ac_fn_c_try_cpp () 1660{ 1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1662 if { { ac_try="$ac_cpp conftest.$ac_ext" 1663case "(($ac_try" in 1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1665 *) ac_try_echo=$ac_try;; 1666esac 1667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1668$as_echo "$ac_try_echo"; } >&5 1669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1670 ac_status=$? 1671 if test -s conftest.err; then 1672 grep -v '^ *+' conftest.err >conftest.er1 1673 cat conftest.er1 >&5 1674 mv -f conftest.er1 conftest.err 1675 fi 1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1677 test $ac_status = 0; } > conftest.i && { 1678 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1679 test ! -s conftest.err 1680 }; then : 1681 ac_retval=0 1682else 1683 $as_echo "$as_me: failed program was:" >&5 1684sed 's/^/| /' conftest.$ac_ext >&5 1685 1686 ac_retval=1 1687fi 1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1689 as_fn_set_status $ac_retval 1690 1691} # ac_fn_c_try_cpp 1692 1693# ac_fn_c_try_run LINENO 1694# ---------------------- 1695# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1696# that executables *can* be run. 1697ac_fn_c_try_run () 1698{ 1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1700 if { { ac_try="$ac_link" 1701case "(($ac_try" in 1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1703 *) ac_try_echo=$ac_try;; 1704esac 1705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1706$as_echo "$ac_try_echo"; } >&5 1707 (eval "$ac_link") 2>&5 1708 ac_status=$? 1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1710 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1711 { { case "(($ac_try" in 1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1713 *) ac_try_echo=$ac_try;; 1714esac 1715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1716$as_echo "$ac_try_echo"; } >&5 1717 (eval "$ac_try") 2>&5 1718 ac_status=$? 1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1720 test $ac_status = 0; }; }; then : 1721 ac_retval=0 1722else 1723 $as_echo "$as_me: program exited with status $ac_status" >&5 1724 $as_echo "$as_me: failed program was:" >&5 1725sed 's/^/| /' conftest.$ac_ext >&5 1726 1727 ac_retval=$ac_status 1728fi 1729 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1731 as_fn_set_status $ac_retval 1732 1733} # ac_fn_c_try_run 1734 1735# ac_fn_c_check_func LINENO FUNC VAR 1736# ---------------------------------- 1737# Tests whether FUNC exists, setting the cache variable VAR accordingly 1738ac_fn_c_check_func () 1739{ 1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1742$as_echo_n "checking for $2... " >&6; } 1743if eval \${$3+:} false; then : 1744 $as_echo_n "(cached) " >&6 1745else 1746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1747/* end confdefs.h. */ 1748/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1749 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1750#define $2 innocuous_$2 1751 1752/* System header to define __stub macros and hopefully few prototypes, 1753 which can conflict with char $2 (); below. 1754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1755 <limits.h> exists even on freestanding compilers. */ 1756 1757#ifdef __STDC__ 1758# include <limits.h> 1759#else 1760# include <assert.h> 1761#endif 1762 1763#undef $2 1764 1765/* Override any GCC internal prototype to avoid an error. 1766 Use char because int might match the return type of a GCC 1767 builtin and then its argument prototype would still apply. */ 1768#ifdef __cplusplus 1769extern "C" 1770#endif 1771char $2 (); 1772/* The GNU C library defines this for functions which it implements 1773 to always fail with ENOSYS. Some functions are actually named 1774 something starting with __ and the normal name is an alias. */ 1775#if defined __stub_$2 || defined __stub___$2 1776choke me 1777#endif 1778 1779int 1780main () 1781{ 1782return $2 (); 1783 ; 1784 return 0; 1785} 1786_ACEOF 1787if ac_fn_c_try_link "$LINENO"; then : 1788 eval "$3=yes" 1789else 1790 eval "$3=no" 1791fi 1792rm -f core conftest.err conftest.$ac_objext \ 1793 conftest$ac_exeext conftest.$ac_ext 1794fi 1795eval ac_res=\$$3 1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1797$as_echo "$ac_res" >&6; } 1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1799 1800} # ac_fn_c_check_func 1801 1802# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1803# --------------------------------------------- 1804# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1805# accordingly. 1806ac_fn_c_check_decl () 1807{ 1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1809 as_decl_name=`echo $2|sed 's/ *(.*//'` 1810 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1812$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1813if eval \${$3+:} false; then : 1814 $as_echo_n "(cached) " >&6 1815else 1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1817/* end confdefs.h. */ 1818$4 1819int 1820main () 1821{ 1822#ifndef $as_decl_name 1823#ifdef __cplusplus 1824 (void) $as_decl_use; 1825#else 1826 (void) $as_decl_name; 1827#endif 1828#endif 1829 1830 ; 1831 return 0; 1832} 1833_ACEOF 1834if ac_fn_c_try_compile "$LINENO"; then : 1835 eval "$3=yes" 1836else 1837 eval "$3=no" 1838fi 1839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1840fi 1841eval ac_res=\$$3 1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1843$as_echo "$ac_res" >&6; } 1844 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1845 1846} # ac_fn_c_check_decl 1847cat >config.log <<_ACEOF 1848This file contains any messages produced by compilers while 1849running configure, to aid debugging if configure makes a mistake. 1850 1851It was created by libXinerama $as_me 1.1.2, which was 1852generated by GNU Autoconf 2.68. Invocation command line was 1853 1854 $ $0 $@ 1855 1856_ACEOF 1857exec 5>>config.log 1858{ 1859cat <<_ASUNAME 1860## --------- ## 1861## Platform. ## 1862## --------- ## 1863 1864hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1865uname -m = `(uname -m) 2>/dev/null || echo unknown` 1866uname -r = `(uname -r) 2>/dev/null || echo unknown` 1867uname -s = `(uname -s) 2>/dev/null || echo unknown` 1868uname -v = `(uname -v) 2>/dev/null || echo unknown` 1869 1870/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1871/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1872 1873/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1874/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1875/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1876/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1877/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1878/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1879/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1880 1881_ASUNAME 1882 1883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1884for as_dir in $PATH 1885do 1886 IFS=$as_save_IFS 1887 test -z "$as_dir" && as_dir=. 1888 $as_echo "PATH: $as_dir" 1889 done 1890IFS=$as_save_IFS 1891 1892} >&5 1893 1894cat >&5 <<_ACEOF 1895 1896 1897## ----------- ## 1898## Core tests. ## 1899## ----------- ## 1900 1901_ACEOF 1902 1903 1904# Keep a trace of the command line. 1905# Strip out --no-create and --no-recursion so they do not pile up. 1906# Strip out --silent because we don't want to record it for future runs. 1907# Also quote any args containing shell meta-characters. 1908# Make two passes to allow for proper duplicate-argument suppression. 1909ac_configure_args= 1910ac_configure_args0= 1911ac_configure_args1= 1912ac_must_keep_next=false 1913for ac_pass in 1 2 1914do 1915 for ac_arg 1916 do 1917 case $ac_arg in 1918 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1919 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1920 | -silent | --silent | --silen | --sile | --sil) 1921 continue ;; 1922 *\'*) 1923 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1924 esac 1925 case $ac_pass in 1926 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1927 2) 1928 as_fn_append ac_configure_args1 " '$ac_arg'" 1929 if test $ac_must_keep_next = true; then 1930 ac_must_keep_next=false # Got value, back to normal. 1931 else 1932 case $ac_arg in 1933 *=* | --config-cache | -C | -disable-* | --disable-* \ 1934 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1935 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1936 | -with-* | --with-* | -without-* | --without-* | --x) 1937 case "$ac_configure_args0 " in 1938 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1939 esac 1940 ;; 1941 -* ) ac_must_keep_next=true ;; 1942 esac 1943 fi 1944 as_fn_append ac_configure_args " '$ac_arg'" 1945 ;; 1946 esac 1947 done 1948done 1949{ ac_configure_args0=; unset ac_configure_args0;} 1950{ ac_configure_args1=; unset ac_configure_args1;} 1951 1952# When interrupted or exit'd, cleanup temporary files, and complete 1953# config.log. We remove comments because anyway the quotes in there 1954# would cause problems or look ugly. 1955# WARNING: Use '\'' to represent an apostrophe within the trap. 1956# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1957trap 'exit_status=$? 1958 # Save into config.log some information that might help in debugging. 1959 { 1960 echo 1961 1962 $as_echo "## ---------------- ## 1963## Cache variables. ## 1964## ---------------- ##" 1965 echo 1966 # The following way of writing the cache mishandles newlines in values, 1967( 1968 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1969 eval ac_val=\$$ac_var 1970 case $ac_val in #( 1971 *${as_nl}*) 1972 case $ac_var in #( 1973 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1974$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1975 esac 1976 case $ac_var in #( 1977 _ | IFS | as_nl) ;; #( 1978 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1979 *) { eval $ac_var=; unset $ac_var;} ;; 1980 esac ;; 1981 esac 1982 done 1983 (set) 2>&1 | 1984 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1985 *${as_nl}ac_space=\ *) 1986 sed -n \ 1987 "s/'\''/'\''\\\\'\'''\''/g; 1988 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1989 ;; #( 1990 *) 1991 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1992 ;; 1993 esac | 1994 sort 1995) 1996 echo 1997 1998 $as_echo "## ----------------- ## 1999## Output variables. ## 2000## ----------------- ##" 2001 echo 2002 for ac_var in $ac_subst_vars 2003 do 2004 eval ac_val=\$$ac_var 2005 case $ac_val in 2006 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2007 esac 2008 $as_echo "$ac_var='\''$ac_val'\''" 2009 done | sort 2010 echo 2011 2012 if test -n "$ac_subst_files"; then 2013 $as_echo "## ------------------- ## 2014## File substitutions. ## 2015## ------------------- ##" 2016 echo 2017 for ac_var in $ac_subst_files 2018 do 2019 eval ac_val=\$$ac_var 2020 case $ac_val in 2021 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2022 esac 2023 $as_echo "$ac_var='\''$ac_val'\''" 2024 done | sort 2025 echo 2026 fi 2027 2028 if test -s confdefs.h; then 2029 $as_echo "## ----------- ## 2030## confdefs.h. ## 2031## ----------- ##" 2032 echo 2033 cat confdefs.h 2034 echo 2035 fi 2036 test "$ac_signal" != 0 && 2037 $as_echo "$as_me: caught signal $ac_signal" 2038 $as_echo "$as_me: exit $exit_status" 2039 } >&5 2040 rm -f core *.core core.conftest.* && 2041 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2042 exit $exit_status 2043' 0 2044for ac_signal in 1 2 13 15; do 2045 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2046done 2047ac_signal=0 2048 2049# confdefs.h avoids OS command line length limits that DEFS can exceed. 2050rm -f -r conftest* confdefs.h 2051 2052$as_echo "/* confdefs.h */" > confdefs.h 2053 2054# Predefined preprocessor variables. 2055 2056cat >>confdefs.h <<_ACEOF 2057#define PACKAGE_NAME "$PACKAGE_NAME" 2058_ACEOF 2059 2060cat >>confdefs.h <<_ACEOF 2061#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2062_ACEOF 2063 2064cat >>confdefs.h <<_ACEOF 2065#define PACKAGE_VERSION "$PACKAGE_VERSION" 2066_ACEOF 2067 2068cat >>confdefs.h <<_ACEOF 2069#define PACKAGE_STRING "$PACKAGE_STRING" 2070_ACEOF 2071 2072cat >>confdefs.h <<_ACEOF 2073#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2074_ACEOF 2075 2076cat >>confdefs.h <<_ACEOF 2077#define PACKAGE_URL "$PACKAGE_URL" 2078_ACEOF 2079 2080 2081# Let the site file select an alternate cache file if it wants to. 2082# Prefer an explicitly selected file to automatically selected ones. 2083ac_site_file1=NONE 2084ac_site_file2=NONE 2085if test -n "$CONFIG_SITE"; then 2086 # We do not want a PATH search for config.site. 2087 case $CONFIG_SITE in #(( 2088 -*) ac_site_file1=./$CONFIG_SITE;; 2089 */*) ac_site_file1=$CONFIG_SITE;; 2090 *) ac_site_file1=./$CONFIG_SITE;; 2091 esac 2092elif test "x$prefix" != xNONE; then 2093 ac_site_file1=$prefix/share/config.site 2094 ac_site_file2=$prefix/etc/config.site 2095else 2096 ac_site_file1=$ac_default_prefix/share/config.site 2097 ac_site_file2=$ac_default_prefix/etc/config.site 2098fi 2099for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2100do 2101 test "x$ac_site_file" = xNONE && continue 2102 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2103 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2104$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2105 sed 's/^/| /' "$ac_site_file" >&5 2106 . "$ac_site_file" \ 2107 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2108$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2109as_fn_error $? "failed to load site script $ac_site_file 2110See \`config.log' for more details" "$LINENO" 5; } 2111 fi 2112done 2113 2114if test -r "$cache_file"; then 2115 # Some versions of bash will fail to source /dev/null (special files 2116 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2117 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2118 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2119$as_echo "$as_me: loading cache $cache_file" >&6;} 2120 case $cache_file in 2121 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2122 *) . "./$cache_file";; 2123 esac 2124 fi 2125else 2126 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2127$as_echo "$as_me: creating cache $cache_file" >&6;} 2128 >$cache_file 2129fi 2130 2131# Check that the precious variables saved in the cache have kept the same 2132# value. 2133ac_cache_corrupted=false 2134for ac_var in $ac_precious_vars; do 2135 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2136 eval ac_new_set=\$ac_env_${ac_var}_set 2137 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2138 eval ac_new_val=\$ac_env_${ac_var}_value 2139 case $ac_old_set,$ac_new_set in 2140 set,) 2141 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2142$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2143 ac_cache_corrupted=: ;; 2144 ,set) 2145 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2146$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2147 ac_cache_corrupted=: ;; 2148 ,);; 2149 *) 2150 if test "x$ac_old_val" != "x$ac_new_val"; then 2151 # differences in whitespace do not lead to failure. 2152 ac_old_val_w=`echo x $ac_old_val` 2153 ac_new_val_w=`echo x $ac_new_val` 2154 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2155 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2156$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2157 ac_cache_corrupted=: 2158 else 2159 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2160$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2161 eval $ac_var=\$ac_old_val 2162 fi 2163 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2164$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2165 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2166$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2167 fi;; 2168 esac 2169 # Pass precious variables to config.status. 2170 if test "$ac_new_set" = set; then 2171 case $ac_new_val in 2172 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2173 *) ac_arg=$ac_var=$ac_new_val ;; 2174 esac 2175 case " $ac_configure_args " in 2176 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2177 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2178 esac 2179 fi 2180done 2181if $ac_cache_corrupted; then 2182 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2183$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2184 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2185$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2186 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2187fi 2188## -------------------- ## 2189## Main body of script. ## 2190## -------------------- ## 2191 2192ac_ext=c 2193ac_cpp='$CPP $CPPFLAGS' 2194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2196ac_compiler_gnu=$ac_cv_c_compiler_gnu 2197 2198 2199 2200ac_config_headers="$ac_config_headers config.h" 2201 2202 2203# Initialize Automake 2204am__api_version='1.11' 2205 2206ac_aux_dir= 2207for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2208 if test -f "$ac_dir/install-sh"; then 2209 ac_aux_dir=$ac_dir 2210 ac_install_sh="$ac_aux_dir/install-sh -c" 2211 break 2212 elif test -f "$ac_dir/install.sh"; then 2213 ac_aux_dir=$ac_dir 2214 ac_install_sh="$ac_aux_dir/install.sh -c" 2215 break 2216 elif test -f "$ac_dir/shtool"; then 2217 ac_aux_dir=$ac_dir 2218 ac_install_sh="$ac_aux_dir/shtool install -c" 2219 break 2220 fi 2221done 2222if test -z "$ac_aux_dir"; then 2223 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2224fi 2225 2226# These three variables are undocumented and unsupported, 2227# and are intended to be withdrawn in a future Autoconf release. 2228# They can cause serious problems if a builder's source tree is in a directory 2229# whose full name contains unusual characters. 2230ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2231ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2232ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2233 2234 2235# Find a good install program. We prefer a C program (faster), 2236# so one script is as good as another. But avoid the broken or 2237# incompatible versions: 2238# SysV /etc/install, /usr/sbin/install 2239# SunOS /usr/etc/install 2240# IRIX /sbin/install 2241# AIX /bin/install 2242# AmigaOS /C/install, which installs bootblocks on floppy discs 2243# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2244# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2245# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2246# OS/2's system install, which has a completely different semantic 2247# ./install, which can be erroneously created by make from ./install.sh. 2248# Reject install programs that cannot install multiple files. 2249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2250$as_echo_n "checking for a BSD-compatible install... " >&6; } 2251if test -z "$INSTALL"; then 2252if ${ac_cv_path_install+:} false; then : 2253 $as_echo_n "(cached) " >&6 2254else 2255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2256for as_dir in $PATH 2257do 2258 IFS=$as_save_IFS 2259 test -z "$as_dir" && as_dir=. 2260 # Account for people who put trailing slashes in PATH elements. 2261case $as_dir/ in #(( 2262 ./ | .// | /[cC]/* | \ 2263 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2264 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2265 /usr/ucb/* ) ;; 2266 *) 2267 # OSF1 and SCO ODT 3.0 have their own names for install. 2268 # Don't use installbsd from OSF since it installs stuff as root 2269 # by default. 2270 for ac_prog in ginstall scoinst install; do 2271 for ac_exec_ext in '' $ac_executable_extensions; do 2272 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2273 if test $ac_prog = install && 2274 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2275 # AIX install. It has an incompatible calling convention. 2276 : 2277 elif test $ac_prog = install && 2278 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2279 # program-specific install script used by HP pwplus--don't use. 2280 : 2281 else 2282 rm -rf conftest.one conftest.two conftest.dir 2283 echo one > conftest.one 2284 echo two > conftest.two 2285 mkdir conftest.dir 2286 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2287 test -s conftest.one && test -s conftest.two && 2288 test -s conftest.dir/conftest.one && 2289 test -s conftest.dir/conftest.two 2290 then 2291 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2292 break 3 2293 fi 2294 fi 2295 fi 2296 done 2297 done 2298 ;; 2299esac 2300 2301 done 2302IFS=$as_save_IFS 2303 2304rm -rf conftest.one conftest.two conftest.dir 2305 2306fi 2307 if test "${ac_cv_path_install+set}" = set; then 2308 INSTALL=$ac_cv_path_install 2309 else 2310 # As a last resort, use the slow shell script. Don't cache a 2311 # value for INSTALL within a source directory, because that will 2312 # break other packages using the cache if that directory is 2313 # removed, or if the value is a relative name. 2314 INSTALL=$ac_install_sh 2315 fi 2316fi 2317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2318$as_echo "$INSTALL" >&6; } 2319 2320# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2321# It thinks the first close brace ends the variable substitution. 2322test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2323 2324test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2325 2326test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2327 2328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2329$as_echo_n "checking whether build environment is sane... " >&6; } 2330# Just in case 2331sleep 1 2332echo timestamp > conftest.file 2333# Reject unsafe characters in $srcdir or the absolute working directory 2334# name. Accept space and tab only in the latter. 2335am_lf=' 2336' 2337case `pwd` in 2338 *[\\\"\#\$\&\'\`$am_lf]*) 2339 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2340esac 2341case $srcdir in 2342 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2343 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2344esac 2345 2346# Do `set' in a subshell so we don't clobber the current shell's 2347# arguments. Must try -L first in case configure is actually a 2348# symlink; some systems play weird games with the mod time of symlinks 2349# (eg FreeBSD returns the mod time of the symlink's containing 2350# directory). 2351if ( 2352 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2353 if test "$*" = "X"; then 2354 # -L didn't work. 2355 set X `ls -t "$srcdir/configure" conftest.file` 2356 fi 2357 rm -f conftest.file 2358 if test "$*" != "X $srcdir/configure conftest.file" \ 2359 && test "$*" != "X conftest.file $srcdir/configure"; then 2360 2361 # If neither matched, then we have a broken ls. This can happen 2362 # if, for instance, CONFIG_SHELL is bash and it inherits a 2363 # broken ls alias from the environment. This has actually 2364 # happened. Such a system could not be considered "sane". 2365 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2366alias in your environment" "$LINENO" 5 2367 fi 2368 2369 test "$2" = conftest.file 2370 ) 2371then 2372 # Ok. 2373 : 2374else 2375 as_fn_error $? "newly created file is older than distributed files! 2376Check your system clock" "$LINENO" 5 2377fi 2378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2379$as_echo "yes" >&6; } 2380test "$program_prefix" != NONE && 2381 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2382# Use a double $ so make ignores it. 2383test "$program_suffix" != NONE && 2384 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2385# Double any \ or $. 2386# By default was `s,x,x', remove it if useless. 2387ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2388program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2389 2390# expand $ac_aux_dir to an absolute path 2391am_aux_dir=`cd $ac_aux_dir && pwd` 2392 2393if test x"${MISSING+set}" != xset; then 2394 case $am_aux_dir in 2395 *\ * | *\ *) 2396 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2397 *) 2398 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2399 esac 2400fi 2401# Use eval to expand $SHELL 2402if eval "$MISSING --run true"; then 2403 am_missing_run="$MISSING --run " 2404else 2405 am_missing_run= 2406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2407$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2408fi 2409 2410if test x"${install_sh}" != xset; then 2411 case $am_aux_dir in 2412 *\ * | *\ *) 2413 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2414 *) 2415 install_sh="\${SHELL} $am_aux_dir/install-sh" 2416 esac 2417fi 2418 2419# Installed binaries are usually stripped using `strip' when the user 2420# run `make install-strip'. However `strip' might not be the right 2421# tool to use in cross-compilation environments, therefore Automake 2422# will honor the `STRIP' environment variable to overrule this program. 2423if test "$cross_compiling" != no; then 2424 if test -n "$ac_tool_prefix"; then 2425 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2426set dummy ${ac_tool_prefix}strip; ac_word=$2 2427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2428$as_echo_n "checking for $ac_word... " >&6; } 2429if ${ac_cv_prog_STRIP+:} false; then : 2430 $as_echo_n "(cached) " >&6 2431else 2432 if test -n "$STRIP"; then 2433 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2434else 2435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2436for as_dir in $PATH 2437do 2438 IFS=$as_save_IFS 2439 test -z "$as_dir" && as_dir=. 2440 for ac_exec_ext in '' $ac_executable_extensions; do 2441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2442 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2444 break 2 2445 fi 2446done 2447 done 2448IFS=$as_save_IFS 2449 2450fi 2451fi 2452STRIP=$ac_cv_prog_STRIP 2453if test -n "$STRIP"; then 2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2455$as_echo "$STRIP" >&6; } 2456else 2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2458$as_echo "no" >&6; } 2459fi 2460 2461 2462fi 2463if test -z "$ac_cv_prog_STRIP"; then 2464 ac_ct_STRIP=$STRIP 2465 # Extract the first word of "strip", so it can be a program name with args. 2466set dummy strip; ac_word=$2 2467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2468$as_echo_n "checking for $ac_word... " >&6; } 2469if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2470 $as_echo_n "(cached) " >&6 2471else 2472 if test -n "$ac_ct_STRIP"; then 2473 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2474else 2475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2476for as_dir in $PATH 2477do 2478 IFS=$as_save_IFS 2479 test -z "$as_dir" && as_dir=. 2480 for ac_exec_ext in '' $ac_executable_extensions; do 2481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2482 ac_cv_prog_ac_ct_STRIP="strip" 2483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2484 break 2 2485 fi 2486done 2487 done 2488IFS=$as_save_IFS 2489 2490fi 2491fi 2492ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2493if test -n "$ac_ct_STRIP"; then 2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2495$as_echo "$ac_ct_STRIP" >&6; } 2496else 2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2498$as_echo "no" >&6; } 2499fi 2500 2501 if test "x$ac_ct_STRIP" = x; then 2502 STRIP=":" 2503 else 2504 case $cross_compiling:$ac_tool_warned in 2505yes:) 2506{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2507$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2508ac_tool_warned=yes ;; 2509esac 2510 STRIP=$ac_ct_STRIP 2511 fi 2512else 2513 STRIP="$ac_cv_prog_STRIP" 2514fi 2515 2516fi 2517INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2518 2519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2520$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2521if test -z "$MKDIR_P"; then 2522 if ${ac_cv_path_mkdir+:} false; then : 2523 $as_echo_n "(cached) " >&6 2524else 2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2526for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2527do 2528 IFS=$as_save_IFS 2529 test -z "$as_dir" && as_dir=. 2530 for ac_prog in mkdir gmkdir; do 2531 for ac_exec_ext in '' $ac_executable_extensions; do 2532 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2533 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2534 'mkdir (GNU coreutils) '* | \ 2535 'mkdir (coreutils) '* | \ 2536 'mkdir (fileutils) '4.1*) 2537 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2538 break 3;; 2539 esac 2540 done 2541 done 2542 done 2543IFS=$as_save_IFS 2544 2545fi 2546 2547 test -d ./--version && rmdir ./--version 2548 if test "${ac_cv_path_mkdir+set}" = set; then 2549 MKDIR_P="$ac_cv_path_mkdir -p" 2550 else 2551 # As a last resort, use the slow shell script. Don't cache a 2552 # value for MKDIR_P within a source directory, because that will 2553 # break other packages using the cache if that directory is 2554 # removed, or if the value is a relative name. 2555 MKDIR_P="$ac_install_sh -d" 2556 fi 2557fi 2558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2559$as_echo "$MKDIR_P" >&6; } 2560 2561mkdir_p="$MKDIR_P" 2562case $mkdir_p in 2563 [\\/$]* | ?:[\\/]*) ;; 2564 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2565esac 2566 2567for ac_prog in gawk mawk nawk awk 2568do 2569 # Extract the first word of "$ac_prog", so it can be a program name with args. 2570set dummy $ac_prog; ac_word=$2 2571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2572$as_echo_n "checking for $ac_word... " >&6; } 2573if ${ac_cv_prog_AWK+:} false; then : 2574 $as_echo_n "(cached) " >&6 2575else 2576 if test -n "$AWK"; then 2577 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2578else 2579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2580for as_dir in $PATH 2581do 2582 IFS=$as_save_IFS 2583 test -z "$as_dir" && as_dir=. 2584 for ac_exec_ext in '' $ac_executable_extensions; do 2585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2586 ac_cv_prog_AWK="$ac_prog" 2587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2588 break 2 2589 fi 2590done 2591 done 2592IFS=$as_save_IFS 2593 2594fi 2595fi 2596AWK=$ac_cv_prog_AWK 2597if test -n "$AWK"; then 2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2599$as_echo "$AWK" >&6; } 2600else 2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2602$as_echo "no" >&6; } 2603fi 2604 2605 2606 test -n "$AWK" && break 2607done 2608 2609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2610$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2611set x ${MAKE-make} 2612ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2613if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2614 $as_echo_n "(cached) " >&6 2615else 2616 cat >conftest.make <<\_ACEOF 2617SHELL = /bin/sh 2618all: 2619 @echo '@@@%%%=$(MAKE)=@@@%%%' 2620_ACEOF 2621# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2622case `${MAKE-make} -f conftest.make 2>/dev/null` in 2623 *@@@%%%=?*=@@@%%%*) 2624 eval ac_cv_prog_make_${ac_make}_set=yes;; 2625 *) 2626 eval ac_cv_prog_make_${ac_make}_set=no;; 2627esac 2628rm -f conftest.make 2629fi 2630if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2632$as_echo "yes" >&6; } 2633 SET_MAKE= 2634else 2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2636$as_echo "no" >&6; } 2637 SET_MAKE="MAKE=${MAKE-make}" 2638fi 2639 2640rm -rf .tst 2>/dev/null 2641mkdir .tst 2>/dev/null 2642if test -d .tst; then 2643 am__leading_dot=. 2644else 2645 am__leading_dot=_ 2646fi 2647rmdir .tst 2>/dev/null 2648 2649if test "`cd $srcdir && pwd`" != "`pwd`"; then 2650 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2651 # is not polluted with repeated "-I." 2652 am__isrc=' -I$(srcdir)' 2653 # test to see if srcdir already configured 2654 if test -f $srcdir/config.status; then 2655 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2656 fi 2657fi 2658 2659# test whether we have cygpath 2660if test -z "$CYGPATH_W"; then 2661 if (cygpath --version) >/dev/null 2>/dev/null; then 2662 CYGPATH_W='cygpath -w' 2663 else 2664 CYGPATH_W=echo 2665 fi 2666fi 2667 2668 2669# Define the identity of the package. 2670 PACKAGE='libXinerama' 2671 VERSION='1.1.2' 2672 2673 2674cat >>confdefs.h <<_ACEOF 2675#define PACKAGE "$PACKAGE" 2676_ACEOF 2677 2678 2679cat >>confdefs.h <<_ACEOF 2680#define VERSION "$VERSION" 2681_ACEOF 2682 2683# Some tools Automake needs. 2684 2685ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2686 2687 2688AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2689 2690 2691AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2692 2693 2694AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2695 2696 2697MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2698 2699# We need awk for the "check" target. The system "awk" is bad on 2700# some platforms. 2701# Always define AMTAR for backward compatibility. 2702 2703AMTAR=${AMTAR-"${am_missing_run}tar"} 2704 2705am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2706 2707 2708 2709 2710 2711 2712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2713$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2714 # Check whether --enable-maintainer-mode was given. 2715if test "${enable_maintainer_mode+set}" = set; then : 2716 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2717else 2718 USE_MAINTAINER_MODE=no 2719fi 2720 2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2722$as_echo "$USE_MAINTAINER_MODE" >&6; } 2723 if test $USE_MAINTAINER_MODE = yes; then 2724 MAINTAINER_MODE_TRUE= 2725 MAINTAINER_MODE_FALSE='#' 2726else 2727 MAINTAINER_MODE_TRUE='#' 2728 MAINTAINER_MODE_FALSE= 2729fi 2730 2731 MAINT=$MAINTAINER_MODE_TRUE 2732 2733 2734 2735# Initialize libtool 2736case `pwd` in 2737 *\ * | *\ *) 2738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2739$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2740esac 2741 2742 2743 2744macro_version='2.4' 2745macro_revision='1.3293' 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759ltmain="$ac_aux_dir/ltmain.sh" 2760 2761# Make sure we can run config.sub. 2762$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2763 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2764 2765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2766$as_echo_n "checking build system type... " >&6; } 2767if ${ac_cv_build+:} false; then : 2768 $as_echo_n "(cached) " >&6 2769else 2770 ac_build_alias=$build_alias 2771test "x$ac_build_alias" = x && 2772 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2773test "x$ac_build_alias" = x && 2774 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2775ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2776 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2777 2778fi 2779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2780$as_echo "$ac_cv_build" >&6; } 2781case $ac_cv_build in 2782*-*-*) ;; 2783*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2784esac 2785build=$ac_cv_build 2786ac_save_IFS=$IFS; IFS='-' 2787set x $ac_cv_build 2788shift 2789build_cpu=$1 2790build_vendor=$2 2791shift; shift 2792# Remember, the first character of IFS is used to create $*, 2793# except with old shells: 2794build_os=$* 2795IFS=$ac_save_IFS 2796case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2797 2798 2799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2800$as_echo_n "checking host system type... " >&6; } 2801if ${ac_cv_host+:} false; then : 2802 $as_echo_n "(cached) " >&6 2803else 2804 if test "x$host_alias" = x; then 2805 ac_cv_host=$ac_cv_build 2806else 2807 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2808 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2809fi 2810 2811fi 2812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2813$as_echo "$ac_cv_host" >&6; } 2814case $ac_cv_host in 2815*-*-*) ;; 2816*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2817esac 2818host=$ac_cv_host 2819ac_save_IFS=$IFS; IFS='-' 2820set x $ac_cv_host 2821shift 2822host_cpu=$1 2823host_vendor=$2 2824shift; shift 2825# Remember, the first character of IFS is used to create $*, 2826# except with old shells: 2827host_os=$* 2828IFS=$ac_save_IFS 2829case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2830 2831 2832# Backslashify metacharacters that are still active within 2833# double-quoted strings. 2834sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 2835 2836# Same as above, but do not quote variable references. 2837double_quote_subst='s/\(["`\\]\)/\\\1/g' 2838 2839# Sed substitution to delay expansion of an escaped shell variable in a 2840# double_quote_subst'ed string. 2841delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2842 2843# Sed substitution to delay expansion of an escaped single quote. 2844delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2845 2846# Sed substitution to avoid accidental globbing in evaled expressions 2847no_glob_subst='s/\*/\\\*/g' 2848 2849ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2850ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 2851ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 2852 2853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 2854$as_echo_n "checking how to print strings... " >&6; } 2855# Test print first, because it will be a builtin if present. 2856if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 2857 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 2858 ECHO='print -r --' 2859elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 2860 ECHO='printf %s\n' 2861else 2862 # Use this function as a fallback that always works. 2863 func_fallback_echo () 2864 { 2865 eval 'cat <<_LTECHO_EOF 2866$1 2867_LTECHO_EOF' 2868 } 2869 ECHO='func_fallback_echo' 2870fi 2871 2872# func_echo_all arg... 2873# Invoke $ECHO with all args, space-separated. 2874func_echo_all () 2875{ 2876 $ECHO "" 2877} 2878 2879case "$ECHO" in 2880 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 2881$as_echo "printf" >&6; } ;; 2882 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 2883$as_echo "print -r" >&6; } ;; 2884 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 2885$as_echo "cat" >&6; } ;; 2886esac 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901DEPDIR="${am__leading_dot}deps" 2902 2903ac_config_commands="$ac_config_commands depfiles" 2904 2905 2906am_make=${MAKE-make} 2907cat > confinc << 'END' 2908am__doit: 2909 @echo this is the am__doit target 2910.PHONY: am__doit 2911END 2912# If we don't find an include directive, just comment out the code. 2913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2914$as_echo_n "checking for style of include used by $am_make... " >&6; } 2915am__include="#" 2916am__quote= 2917_am_result=none 2918# First try GNU make style include. 2919echo "include confinc" > confmf 2920# Ignore all kinds of additional output from `make'. 2921case `$am_make -s -f confmf 2> /dev/null` in #( 2922*the\ am__doit\ target*) 2923 am__include=include 2924 am__quote= 2925 _am_result=GNU 2926 ;; 2927esac 2928# Now try BSD make style include. 2929if test "$am__include" = "#"; then 2930 echo '.include "confinc"' > confmf 2931 case `$am_make -s -f confmf 2> /dev/null` in #( 2932 *the\ am__doit\ target*) 2933 am__include=.include 2934 am__quote="\"" 2935 _am_result=BSD 2936 ;; 2937 esac 2938fi 2939 2940 2941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2942$as_echo "$_am_result" >&6; } 2943rm -f confinc confmf 2944 2945# Check whether --enable-dependency-tracking was given. 2946if test "${enable_dependency_tracking+set}" = set; then : 2947 enableval=$enable_dependency_tracking; 2948fi 2949 2950if test "x$enable_dependency_tracking" != xno; then 2951 am_depcomp="$ac_aux_dir/depcomp" 2952 AMDEPBACKSLASH='\' 2953fi 2954 if test "x$enable_dependency_tracking" != xno; then 2955 AMDEP_TRUE= 2956 AMDEP_FALSE='#' 2957else 2958 AMDEP_TRUE='#' 2959 AMDEP_FALSE= 2960fi 2961 2962 2963ac_ext=c 2964ac_cpp='$CPP $CPPFLAGS' 2965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2967ac_compiler_gnu=$ac_cv_c_compiler_gnu 2968if test -n "$ac_tool_prefix"; then 2969 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2970set dummy ${ac_tool_prefix}gcc; ac_word=$2 2971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2972$as_echo_n "checking for $ac_word... " >&6; } 2973if ${ac_cv_prog_CC+:} false; then : 2974 $as_echo_n "(cached) " >&6 2975else 2976 if test -n "$CC"; then 2977 ac_cv_prog_CC="$CC" # Let the user override the test. 2978else 2979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2980for as_dir in $PATH 2981do 2982 IFS=$as_save_IFS 2983 test -z "$as_dir" && as_dir=. 2984 for ac_exec_ext in '' $ac_executable_extensions; do 2985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2986 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2988 break 2 2989 fi 2990done 2991 done 2992IFS=$as_save_IFS 2993 2994fi 2995fi 2996CC=$ac_cv_prog_CC 2997if test -n "$CC"; then 2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2999$as_echo "$CC" >&6; } 3000else 3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3002$as_echo "no" >&6; } 3003fi 3004 3005 3006fi 3007if test -z "$ac_cv_prog_CC"; then 3008 ac_ct_CC=$CC 3009 # Extract the first word of "gcc", so it can be a program name with args. 3010set dummy gcc; ac_word=$2 3011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3012$as_echo_n "checking for $ac_word... " >&6; } 3013if ${ac_cv_prog_ac_ct_CC+:} false; then : 3014 $as_echo_n "(cached) " >&6 3015else 3016 if test -n "$ac_ct_CC"; then 3017 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3018else 3019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3020for as_dir in $PATH 3021do 3022 IFS=$as_save_IFS 3023 test -z "$as_dir" && as_dir=. 3024 for ac_exec_ext in '' $ac_executable_extensions; do 3025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3026 ac_cv_prog_ac_ct_CC="gcc" 3027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3028 break 2 3029 fi 3030done 3031 done 3032IFS=$as_save_IFS 3033 3034fi 3035fi 3036ac_ct_CC=$ac_cv_prog_ac_ct_CC 3037if test -n "$ac_ct_CC"; then 3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3039$as_echo "$ac_ct_CC" >&6; } 3040else 3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3042$as_echo "no" >&6; } 3043fi 3044 3045 if test "x$ac_ct_CC" = x; then 3046 CC="" 3047 else 3048 case $cross_compiling:$ac_tool_warned in 3049yes:) 3050{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3051$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3052ac_tool_warned=yes ;; 3053esac 3054 CC=$ac_ct_CC 3055 fi 3056else 3057 CC="$ac_cv_prog_CC" 3058fi 3059 3060if test -z "$CC"; then 3061 if test -n "$ac_tool_prefix"; then 3062 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3063set dummy ${ac_tool_prefix}cc; ac_word=$2 3064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3065$as_echo_n "checking for $ac_word... " >&6; } 3066if ${ac_cv_prog_CC+:} false; then : 3067 $as_echo_n "(cached) " >&6 3068else 3069 if test -n "$CC"; then 3070 ac_cv_prog_CC="$CC" # Let the user override the test. 3071else 3072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3073for as_dir in $PATH 3074do 3075 IFS=$as_save_IFS 3076 test -z "$as_dir" && as_dir=. 3077 for ac_exec_ext in '' $ac_executable_extensions; do 3078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3079 ac_cv_prog_CC="${ac_tool_prefix}cc" 3080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3081 break 2 3082 fi 3083done 3084 done 3085IFS=$as_save_IFS 3086 3087fi 3088fi 3089CC=$ac_cv_prog_CC 3090if test -n "$CC"; then 3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3092$as_echo "$CC" >&6; } 3093else 3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3095$as_echo "no" >&6; } 3096fi 3097 3098 3099 fi 3100fi 3101if test -z "$CC"; then 3102 # Extract the first word of "cc", so it can be a program name with args. 3103set dummy cc; ac_word=$2 3104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3105$as_echo_n "checking for $ac_word... " >&6; } 3106if ${ac_cv_prog_CC+:} false; then : 3107 $as_echo_n "(cached) " >&6 3108else 3109 if test -n "$CC"; then 3110 ac_cv_prog_CC="$CC" # Let the user override the test. 3111else 3112 ac_prog_rejected=no 3113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3114for as_dir in $PATH 3115do 3116 IFS=$as_save_IFS 3117 test -z "$as_dir" && as_dir=. 3118 for ac_exec_ext in '' $ac_executable_extensions; do 3119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3120 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3121 ac_prog_rejected=yes 3122 continue 3123 fi 3124 ac_cv_prog_CC="cc" 3125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3126 break 2 3127 fi 3128done 3129 done 3130IFS=$as_save_IFS 3131 3132if test $ac_prog_rejected = yes; then 3133 # We found a bogon in the path, so make sure we never use it. 3134 set dummy $ac_cv_prog_CC 3135 shift 3136 if test $# != 0; then 3137 # We chose a different compiler from the bogus one. 3138 # However, it has the same basename, so the bogon will be chosen 3139 # first if we set CC to just the basename; use the full file name. 3140 shift 3141 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3142 fi 3143fi 3144fi 3145fi 3146CC=$ac_cv_prog_CC 3147if test -n "$CC"; then 3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3149$as_echo "$CC" >&6; } 3150else 3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3152$as_echo "no" >&6; } 3153fi 3154 3155 3156fi 3157if test -z "$CC"; then 3158 if test -n "$ac_tool_prefix"; then 3159 for ac_prog in cl.exe 3160 do 3161 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3162set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3164$as_echo_n "checking for $ac_word... " >&6; } 3165if ${ac_cv_prog_CC+:} false; then : 3166 $as_echo_n "(cached) " >&6 3167else 3168 if test -n "$CC"; then 3169 ac_cv_prog_CC="$CC" # Let the user override the test. 3170else 3171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3172for as_dir in $PATH 3173do 3174 IFS=$as_save_IFS 3175 test -z "$as_dir" && as_dir=. 3176 for ac_exec_ext in '' $ac_executable_extensions; do 3177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3178 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3180 break 2 3181 fi 3182done 3183 done 3184IFS=$as_save_IFS 3185 3186fi 3187fi 3188CC=$ac_cv_prog_CC 3189if test -n "$CC"; then 3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3191$as_echo "$CC" >&6; } 3192else 3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3194$as_echo "no" >&6; } 3195fi 3196 3197 3198 test -n "$CC" && break 3199 done 3200fi 3201if test -z "$CC"; then 3202 ac_ct_CC=$CC 3203 for ac_prog in cl.exe 3204do 3205 # Extract the first word of "$ac_prog", so it can be a program name with args. 3206set dummy $ac_prog; ac_word=$2 3207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3208$as_echo_n "checking for $ac_word... " >&6; } 3209if ${ac_cv_prog_ac_ct_CC+:} false; then : 3210 $as_echo_n "(cached) " >&6 3211else 3212 if test -n "$ac_ct_CC"; then 3213 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3214else 3215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3216for as_dir in $PATH 3217do 3218 IFS=$as_save_IFS 3219 test -z "$as_dir" && as_dir=. 3220 for ac_exec_ext in '' $ac_executable_extensions; do 3221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3222 ac_cv_prog_ac_ct_CC="$ac_prog" 3223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3224 break 2 3225 fi 3226done 3227 done 3228IFS=$as_save_IFS 3229 3230fi 3231fi 3232ac_ct_CC=$ac_cv_prog_ac_ct_CC 3233if test -n "$ac_ct_CC"; then 3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3235$as_echo "$ac_ct_CC" >&6; } 3236else 3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3238$as_echo "no" >&6; } 3239fi 3240 3241 3242 test -n "$ac_ct_CC" && break 3243done 3244 3245 if test "x$ac_ct_CC" = x; then 3246 CC="" 3247 else 3248 case $cross_compiling:$ac_tool_warned in 3249yes:) 3250{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3251$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3252ac_tool_warned=yes ;; 3253esac 3254 CC=$ac_ct_CC 3255 fi 3256fi 3257 3258fi 3259 3260 3261test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3262$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3263as_fn_error $? "no acceptable C compiler found in \$PATH 3264See \`config.log' for more details" "$LINENO" 5; } 3265 3266# Provide some information about the compiler. 3267$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3268set X $ac_compile 3269ac_compiler=$2 3270for ac_option in --version -v -V -qversion; do 3271 { { ac_try="$ac_compiler $ac_option >&5" 3272case "(($ac_try" in 3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3274 *) ac_try_echo=$ac_try;; 3275esac 3276eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3277$as_echo "$ac_try_echo"; } >&5 3278 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3279 ac_status=$? 3280 if test -s conftest.err; then 3281 sed '10a\ 3282... rest of stderr output deleted ... 3283 10q' conftest.err >conftest.er1 3284 cat conftest.er1 >&5 3285 fi 3286 rm -f conftest.er1 conftest.err 3287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3288 test $ac_status = 0; } 3289done 3290 3291cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3292/* end confdefs.h. */ 3293 3294int 3295main () 3296{ 3297 3298 ; 3299 return 0; 3300} 3301_ACEOF 3302ac_clean_files_save=$ac_clean_files 3303ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3304# Try to create an executable without -o first, disregard a.out. 3305# It will help us diagnose broken compilers, and finding out an intuition 3306# of exeext. 3307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3308$as_echo_n "checking whether the C compiler works... " >&6; } 3309ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3310 3311# The possible output files: 3312ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3313 3314ac_rmfiles= 3315for ac_file in $ac_files 3316do 3317 case $ac_file in 3318 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3319 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3320 esac 3321done 3322rm -f $ac_rmfiles 3323 3324if { { ac_try="$ac_link_default" 3325case "(($ac_try" in 3326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3327 *) ac_try_echo=$ac_try;; 3328esac 3329eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3330$as_echo "$ac_try_echo"; } >&5 3331 (eval "$ac_link_default") 2>&5 3332 ac_status=$? 3333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3334 test $ac_status = 0; }; then : 3335 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3336# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3337# in a Makefile. We should not override ac_cv_exeext if it was cached, 3338# so that the user can short-circuit this test for compilers unknown to 3339# Autoconf. 3340for ac_file in $ac_files '' 3341do 3342 test -f "$ac_file" || continue 3343 case $ac_file in 3344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3345 ;; 3346 [ab].out ) 3347 # We found the default executable, but exeext='' is most 3348 # certainly right. 3349 break;; 3350 *.* ) 3351 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3352 then :; else 3353 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3354 fi 3355 # We set ac_cv_exeext here because the later test for it is not 3356 # safe: cross compilers may not add the suffix if given an `-o' 3357 # argument, so we may need to know it at that point already. 3358 # Even if this section looks crufty: it has the advantage of 3359 # actually working. 3360 break;; 3361 * ) 3362 break;; 3363 esac 3364done 3365test "$ac_cv_exeext" = no && ac_cv_exeext= 3366 3367else 3368 ac_file='' 3369fi 3370if test -z "$ac_file"; then : 3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3372$as_echo "no" >&6; } 3373$as_echo "$as_me: failed program was:" >&5 3374sed 's/^/| /' conftest.$ac_ext >&5 3375 3376{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3377$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3378as_fn_error 77 "C compiler cannot create executables 3379See \`config.log' for more details" "$LINENO" 5; } 3380else 3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3382$as_echo "yes" >&6; } 3383fi 3384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3385$as_echo_n "checking for C compiler default output file name... " >&6; } 3386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3387$as_echo "$ac_file" >&6; } 3388ac_exeext=$ac_cv_exeext 3389 3390rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3391ac_clean_files=$ac_clean_files_save 3392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3393$as_echo_n "checking for suffix of executables... " >&6; } 3394if { { ac_try="$ac_link" 3395case "(($ac_try" in 3396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3397 *) ac_try_echo=$ac_try;; 3398esac 3399eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3400$as_echo "$ac_try_echo"; } >&5 3401 (eval "$ac_link") 2>&5 3402 ac_status=$? 3403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3404 test $ac_status = 0; }; then : 3405 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3406# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3407# work properly (i.e., refer to `conftest.exe'), while it won't with 3408# `rm'. 3409for ac_file in conftest.exe conftest conftest.*; do 3410 test -f "$ac_file" || continue 3411 case $ac_file in 3412 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3413 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3414 break;; 3415 * ) break;; 3416 esac 3417done 3418else 3419 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3420$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3421as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3422See \`config.log' for more details" "$LINENO" 5; } 3423fi 3424rm -f conftest conftest$ac_cv_exeext 3425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3426$as_echo "$ac_cv_exeext" >&6; } 3427 3428rm -f conftest.$ac_ext 3429EXEEXT=$ac_cv_exeext 3430ac_exeext=$EXEEXT 3431cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3432/* end confdefs.h. */ 3433#include <stdio.h> 3434int 3435main () 3436{ 3437FILE *f = fopen ("conftest.out", "w"); 3438 return ferror (f) || fclose (f) != 0; 3439 3440 ; 3441 return 0; 3442} 3443_ACEOF 3444ac_clean_files="$ac_clean_files conftest.out" 3445# Check that the compiler produces executables we can run. If not, either 3446# the compiler is broken, or we cross compile. 3447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3448$as_echo_n "checking whether we are cross compiling... " >&6; } 3449if test "$cross_compiling" != yes; then 3450 { { ac_try="$ac_link" 3451case "(($ac_try" in 3452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3453 *) ac_try_echo=$ac_try;; 3454esac 3455eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3456$as_echo "$ac_try_echo"; } >&5 3457 (eval "$ac_link") 2>&5 3458 ac_status=$? 3459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3460 test $ac_status = 0; } 3461 if { ac_try='./conftest$ac_cv_exeext' 3462 { { case "(($ac_try" in 3463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3464 *) ac_try_echo=$ac_try;; 3465esac 3466eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3467$as_echo "$ac_try_echo"; } >&5 3468 (eval "$ac_try") 2>&5 3469 ac_status=$? 3470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3471 test $ac_status = 0; }; }; then 3472 cross_compiling=no 3473 else 3474 if test "$cross_compiling" = maybe; then 3475 cross_compiling=yes 3476 else 3477 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3478$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3479as_fn_error $? "cannot run C compiled programs. 3480If you meant to cross compile, use \`--host'. 3481See \`config.log' for more details" "$LINENO" 5; } 3482 fi 3483 fi 3484fi 3485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3486$as_echo "$cross_compiling" >&6; } 3487 3488rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3489ac_clean_files=$ac_clean_files_save 3490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3491$as_echo_n "checking for suffix of object files... " >&6; } 3492if ${ac_cv_objext+:} false; then : 3493 $as_echo_n "(cached) " >&6 3494else 3495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3496/* end confdefs.h. */ 3497 3498int 3499main () 3500{ 3501 3502 ; 3503 return 0; 3504} 3505_ACEOF 3506rm -f conftest.o conftest.obj 3507if { { ac_try="$ac_compile" 3508case "(($ac_try" in 3509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3510 *) ac_try_echo=$ac_try;; 3511esac 3512eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3513$as_echo "$ac_try_echo"; } >&5 3514 (eval "$ac_compile") 2>&5 3515 ac_status=$? 3516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3517 test $ac_status = 0; }; then : 3518 for ac_file in conftest.o conftest.obj conftest.*; do 3519 test -f "$ac_file" || continue; 3520 case $ac_file in 3521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3522 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3523 break;; 3524 esac 3525done 3526else 3527 $as_echo "$as_me: failed program was:" >&5 3528sed 's/^/| /' conftest.$ac_ext >&5 3529 3530{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3531$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3532as_fn_error $? "cannot compute suffix of object files: cannot compile 3533See \`config.log' for more details" "$LINENO" 5; } 3534fi 3535rm -f conftest.$ac_cv_objext conftest.$ac_ext 3536fi 3537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3538$as_echo "$ac_cv_objext" >&6; } 3539OBJEXT=$ac_cv_objext 3540ac_objext=$OBJEXT 3541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3542$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3543if ${ac_cv_c_compiler_gnu+:} false; then : 3544 $as_echo_n "(cached) " >&6 3545else 3546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3547/* end confdefs.h. */ 3548 3549int 3550main () 3551{ 3552#ifndef __GNUC__ 3553 choke me 3554#endif 3555 3556 ; 3557 return 0; 3558} 3559_ACEOF 3560if ac_fn_c_try_compile "$LINENO"; then : 3561 ac_compiler_gnu=yes 3562else 3563 ac_compiler_gnu=no 3564fi 3565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3566ac_cv_c_compiler_gnu=$ac_compiler_gnu 3567 3568fi 3569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3570$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3571if test $ac_compiler_gnu = yes; then 3572 GCC=yes 3573else 3574 GCC= 3575fi 3576ac_test_CFLAGS=${CFLAGS+set} 3577ac_save_CFLAGS=$CFLAGS 3578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3579$as_echo_n "checking whether $CC accepts -g... " >&6; } 3580if ${ac_cv_prog_cc_g+:} false; then : 3581 $as_echo_n "(cached) " >&6 3582else 3583 ac_save_c_werror_flag=$ac_c_werror_flag 3584 ac_c_werror_flag=yes 3585 ac_cv_prog_cc_g=no 3586 CFLAGS="-g" 3587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3588/* end confdefs.h. */ 3589 3590int 3591main () 3592{ 3593 3594 ; 3595 return 0; 3596} 3597_ACEOF 3598if ac_fn_c_try_compile "$LINENO"; then : 3599 ac_cv_prog_cc_g=yes 3600else 3601 CFLAGS="" 3602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3603/* end confdefs.h. */ 3604 3605int 3606main () 3607{ 3608 3609 ; 3610 return 0; 3611} 3612_ACEOF 3613if ac_fn_c_try_compile "$LINENO"; then : 3614 3615else 3616 ac_c_werror_flag=$ac_save_c_werror_flag 3617 CFLAGS="-g" 3618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3619/* end confdefs.h. */ 3620 3621int 3622main () 3623{ 3624 3625 ; 3626 return 0; 3627} 3628_ACEOF 3629if ac_fn_c_try_compile "$LINENO"; then : 3630 ac_cv_prog_cc_g=yes 3631fi 3632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3633fi 3634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3635fi 3636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3637 ac_c_werror_flag=$ac_save_c_werror_flag 3638fi 3639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3640$as_echo "$ac_cv_prog_cc_g" >&6; } 3641if test "$ac_test_CFLAGS" = set; then 3642 CFLAGS=$ac_save_CFLAGS 3643elif test $ac_cv_prog_cc_g = yes; then 3644 if test "$GCC" = yes; then 3645 CFLAGS="-g -O2" 3646 else 3647 CFLAGS="-g" 3648 fi 3649else 3650 if test "$GCC" = yes; then 3651 CFLAGS="-O2" 3652 else 3653 CFLAGS= 3654 fi 3655fi 3656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3657$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3658if ${ac_cv_prog_cc_c89+:} false; then : 3659 $as_echo_n "(cached) " >&6 3660else 3661 ac_cv_prog_cc_c89=no 3662ac_save_CC=$CC 3663cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3664/* end confdefs.h. */ 3665#include <stdarg.h> 3666#include <stdio.h> 3667#include <sys/types.h> 3668#include <sys/stat.h> 3669/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3670struct buf { int x; }; 3671FILE * (*rcsopen) (struct buf *, struct stat *, int); 3672static char *e (p, i) 3673 char **p; 3674 int i; 3675{ 3676 return p[i]; 3677} 3678static char *f (char * (*g) (char **, int), char **p, ...) 3679{ 3680 char *s; 3681 va_list v; 3682 va_start (v,p); 3683 s = g (p, va_arg (v,int)); 3684 va_end (v); 3685 return s; 3686} 3687 3688/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3689 function prototypes and stuff, but not '\xHH' hex character constants. 3690 These don't provoke an error unfortunately, instead are silently treated 3691 as 'x'. The following induces an error, until -std is added to get 3692 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3693 array size at least. It's necessary to write '\x00'==0 to get something 3694 that's true only with -std. */ 3695int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3696 3697/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3698 inside strings and character constants. */ 3699#define FOO(x) 'x' 3700int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3701 3702int test (int i, double x); 3703struct s1 {int (*f) (int a);}; 3704struct s2 {int (*f) (double a);}; 3705int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3706int argc; 3707char **argv; 3708int 3709main () 3710{ 3711return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3712 ; 3713 return 0; 3714} 3715_ACEOF 3716for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3717 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3718do 3719 CC="$ac_save_CC $ac_arg" 3720 if ac_fn_c_try_compile "$LINENO"; then : 3721 ac_cv_prog_cc_c89=$ac_arg 3722fi 3723rm -f core conftest.err conftest.$ac_objext 3724 test "x$ac_cv_prog_cc_c89" != "xno" && break 3725done 3726rm -f conftest.$ac_ext 3727CC=$ac_save_CC 3728 3729fi 3730# AC_CACHE_VAL 3731case "x$ac_cv_prog_cc_c89" in 3732 x) 3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3734$as_echo "none needed" >&6; } ;; 3735 xno) 3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3737$as_echo "unsupported" >&6; } ;; 3738 *) 3739 CC="$CC $ac_cv_prog_cc_c89" 3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3741$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3742esac 3743if test "x$ac_cv_prog_cc_c89" != xno; then : 3744 3745fi 3746 3747ac_ext=c 3748ac_cpp='$CPP $CPPFLAGS' 3749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3751ac_compiler_gnu=$ac_cv_c_compiler_gnu 3752 3753depcc="$CC" am_compiler_list= 3754 3755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3756$as_echo_n "checking dependency style of $depcc... " >&6; } 3757if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3758 $as_echo_n "(cached) " >&6 3759else 3760 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3761 # We make a subdir and do the tests there. Otherwise we can end up 3762 # making bogus files that we don't know about and never remove. For 3763 # instance it was reported that on HP-UX the gcc test will end up 3764 # making a dummy file named `D' -- because `-MD' means `put the output 3765 # in D'. 3766 mkdir conftest.dir 3767 # Copy depcomp to subdir because otherwise we won't find it if we're 3768 # using a relative directory. 3769 cp "$am_depcomp" conftest.dir 3770 cd conftest.dir 3771 # We will build objects and dependencies in a subdirectory because 3772 # it helps to detect inapplicable dependency modes. For instance 3773 # both Tru64's cc and ICC support -MD to output dependencies as a 3774 # side effect of compilation, but ICC will put the dependencies in 3775 # the current directory while Tru64 will put them in the object 3776 # directory. 3777 mkdir sub 3778 3779 am_cv_CC_dependencies_compiler_type=none 3780 if test "$am_compiler_list" = ""; then 3781 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3782 fi 3783 am__universal=false 3784 case " $depcc " in #( 3785 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3786 esac 3787 3788 for depmode in $am_compiler_list; do 3789 # Setup a source with many dependencies, because some compilers 3790 # like to wrap large dependency lists on column 80 (with \), and 3791 # we should not choose a depcomp mode which is confused by this. 3792 # 3793 # We need to recreate these files for each test, as the compiler may 3794 # overwrite some of them when testing with obscure command lines. 3795 # This happens at least with the AIX C compiler. 3796 : > sub/conftest.c 3797 for i in 1 2 3 4 5 6; do 3798 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3799 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3800 # Solaris 8's {/usr,}/bin/sh. 3801 touch sub/conftst$i.h 3802 done 3803 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3804 3805 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3806 # mode. It turns out that the SunPro C++ compiler does not properly 3807 # handle `-M -o', and we need to detect this. Also, some Intel 3808 # versions had trouble with output in subdirs 3809 am__obj=sub/conftest.${OBJEXT-o} 3810 am__minus_obj="-o $am__obj" 3811 case $depmode in 3812 gcc) 3813 # This depmode causes a compiler race in universal mode. 3814 test "$am__universal" = false || continue 3815 ;; 3816 nosideeffect) 3817 # after this tag, mechanisms are not by side-effect, so they'll 3818 # only be used when explicitly requested 3819 if test "x$enable_dependency_tracking" = xyes; then 3820 continue 3821 else 3822 break 3823 fi 3824 ;; 3825 msvisualcpp | msvcmsys) 3826 # This compiler won't grok `-c -o', but also, the minuso test has 3827 # not run yet. These depmodes are late enough in the game, and 3828 # so weak that their functioning should not be impacted. 3829 am__obj=conftest.${OBJEXT-o} 3830 am__minus_obj= 3831 ;; 3832 none) break ;; 3833 esac 3834 if depmode=$depmode \ 3835 source=sub/conftest.c object=$am__obj \ 3836 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3837 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3838 >/dev/null 2>conftest.err && 3839 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3840 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3841 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3842 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3843 # icc doesn't choke on unknown options, it will just issue warnings 3844 # or remarks (even with -Werror). So we grep stderr for any message 3845 # that says an option was ignored or not supported. 3846 # When given -MP, icc 7.0 and 7.1 complain thusly: 3847 # icc: Command line warning: ignoring option '-M'; no argument required 3848 # The diagnosis changed in icc 8.0: 3849 # icc: Command line remark: option '-MP' not supported 3850 if (grep 'ignoring option' conftest.err || 3851 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3852 am_cv_CC_dependencies_compiler_type=$depmode 3853 break 3854 fi 3855 fi 3856 done 3857 3858 cd .. 3859 rm -rf conftest.dir 3860else 3861 am_cv_CC_dependencies_compiler_type=none 3862fi 3863 3864fi 3865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3866$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3867CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3868 3869 if 3870 test "x$enable_dependency_tracking" != xno \ 3871 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3872 am__fastdepCC_TRUE= 3873 am__fastdepCC_FALSE='#' 3874else 3875 am__fastdepCC_TRUE='#' 3876 am__fastdepCC_FALSE= 3877fi 3878 3879 3880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 3881$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3882if ${ac_cv_path_SED+:} false; then : 3883 $as_echo_n "(cached) " >&6 3884else 3885 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3886 for ac_i in 1 2 3 4 5 6 7; do 3887 ac_script="$ac_script$as_nl$ac_script" 3888 done 3889 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3890 { ac_script=; unset ac_script;} 3891 if test -z "$SED"; then 3892 ac_path_SED_found=false 3893 # Loop through the user's path and test for each of PROGNAME-LIST 3894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3895for as_dir in $PATH 3896do 3897 IFS=$as_save_IFS 3898 test -z "$as_dir" && as_dir=. 3899 for ac_prog in sed gsed; do 3900 for ac_exec_ext in '' $ac_executable_extensions; do 3901 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3902 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 3903# Check for GNU ac_path_SED and select it if it is found. 3904 # Check for GNU $ac_path_SED 3905case `"$ac_path_SED" --version 2>&1` in 3906*GNU*) 3907 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3908*) 3909 ac_count=0 3910 $as_echo_n 0123456789 >"conftest.in" 3911 while : 3912 do 3913 cat "conftest.in" "conftest.in" >"conftest.tmp" 3914 mv "conftest.tmp" "conftest.in" 3915 cp "conftest.in" "conftest.nl" 3916 $as_echo '' >> "conftest.nl" 3917 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3918 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3919 as_fn_arith $ac_count + 1 && ac_count=$as_val 3920 if test $ac_count -gt ${ac_path_SED_max-0}; then 3921 # Best one so far, save it but keep looking for a better one 3922 ac_cv_path_SED="$ac_path_SED" 3923 ac_path_SED_max=$ac_count 3924 fi 3925 # 10*(2^10) chars as input seems more than enough 3926 test $ac_count -gt 10 && break 3927 done 3928 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3929esac 3930 3931 $ac_path_SED_found && break 3 3932 done 3933 done 3934 done 3935IFS=$as_save_IFS 3936 if test -z "$ac_cv_path_SED"; then 3937 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 3938 fi 3939else 3940 ac_cv_path_SED=$SED 3941fi 3942 3943fi 3944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 3945$as_echo "$ac_cv_path_SED" >&6; } 3946 SED="$ac_cv_path_SED" 3947 rm -f conftest.sed 3948 3949test -z "$SED" && SED=sed 3950Xsed="$SED -e 1s/^X//" 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3963$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3964if ${ac_cv_path_GREP+:} false; then : 3965 $as_echo_n "(cached) " >&6 3966else 3967 if test -z "$GREP"; then 3968 ac_path_GREP_found=false 3969 # Loop through the user's path and test for each of PROGNAME-LIST 3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3971for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3972do 3973 IFS=$as_save_IFS 3974 test -z "$as_dir" && as_dir=. 3975 for ac_prog in grep ggrep; do 3976 for ac_exec_ext in '' $ac_executable_extensions; do 3977 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3978 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3979# Check for GNU ac_path_GREP and select it if it is found. 3980 # Check for GNU $ac_path_GREP 3981case `"$ac_path_GREP" --version 2>&1` in 3982*GNU*) 3983 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3984*) 3985 ac_count=0 3986 $as_echo_n 0123456789 >"conftest.in" 3987 while : 3988 do 3989 cat "conftest.in" "conftest.in" >"conftest.tmp" 3990 mv "conftest.tmp" "conftest.in" 3991 cp "conftest.in" "conftest.nl" 3992 $as_echo 'GREP' >> "conftest.nl" 3993 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3994 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3995 as_fn_arith $ac_count + 1 && ac_count=$as_val 3996 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3997 # Best one so far, save it but keep looking for a better one 3998 ac_cv_path_GREP="$ac_path_GREP" 3999 ac_path_GREP_max=$ac_count 4000 fi 4001 # 10*(2^10) chars as input seems more than enough 4002 test $ac_count -gt 10 && break 4003 done 4004 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4005esac 4006 4007 $ac_path_GREP_found && break 3 4008 done 4009 done 4010 done 4011IFS=$as_save_IFS 4012 if test -z "$ac_cv_path_GREP"; then 4013 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4014 fi 4015else 4016 ac_cv_path_GREP=$GREP 4017fi 4018 4019fi 4020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4021$as_echo "$ac_cv_path_GREP" >&6; } 4022 GREP="$ac_cv_path_GREP" 4023 4024 4025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4026$as_echo_n "checking for egrep... " >&6; } 4027if ${ac_cv_path_EGREP+:} false; then : 4028 $as_echo_n "(cached) " >&6 4029else 4030 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4031 then ac_cv_path_EGREP="$GREP -E" 4032 else 4033 if test -z "$EGREP"; then 4034 ac_path_EGREP_found=false 4035 # Loop through the user's path and test for each of PROGNAME-LIST 4036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4037for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4038do 4039 IFS=$as_save_IFS 4040 test -z "$as_dir" && as_dir=. 4041 for ac_prog in egrep; do 4042 for ac_exec_ext in '' $ac_executable_extensions; do 4043 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4044 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4045# Check for GNU ac_path_EGREP and select it if it is found. 4046 # Check for GNU $ac_path_EGREP 4047case `"$ac_path_EGREP" --version 2>&1` in 4048*GNU*) 4049 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4050*) 4051 ac_count=0 4052 $as_echo_n 0123456789 >"conftest.in" 4053 while : 4054 do 4055 cat "conftest.in" "conftest.in" >"conftest.tmp" 4056 mv "conftest.tmp" "conftest.in" 4057 cp "conftest.in" "conftest.nl" 4058 $as_echo 'EGREP' >> "conftest.nl" 4059 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4060 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4061 as_fn_arith $ac_count + 1 && ac_count=$as_val 4062 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4063 # Best one so far, save it but keep looking for a better one 4064 ac_cv_path_EGREP="$ac_path_EGREP" 4065 ac_path_EGREP_max=$ac_count 4066 fi 4067 # 10*(2^10) chars as input seems more than enough 4068 test $ac_count -gt 10 && break 4069 done 4070 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4071esac 4072 4073 $ac_path_EGREP_found && break 3 4074 done 4075 done 4076 done 4077IFS=$as_save_IFS 4078 if test -z "$ac_cv_path_EGREP"; then 4079 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4080 fi 4081else 4082 ac_cv_path_EGREP=$EGREP 4083fi 4084 4085 fi 4086fi 4087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4088$as_echo "$ac_cv_path_EGREP" >&6; } 4089 EGREP="$ac_cv_path_EGREP" 4090 4091 4092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4093$as_echo_n "checking for fgrep... " >&6; } 4094if ${ac_cv_path_FGREP+:} false; then : 4095 $as_echo_n "(cached) " >&6 4096else 4097 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4098 then ac_cv_path_FGREP="$GREP -F" 4099 else 4100 if test -z "$FGREP"; then 4101 ac_path_FGREP_found=false 4102 # Loop through the user's path and test for each of PROGNAME-LIST 4103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4104for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4105do 4106 IFS=$as_save_IFS 4107 test -z "$as_dir" && as_dir=. 4108 for ac_prog in fgrep; do 4109 for ac_exec_ext in '' $ac_executable_extensions; do 4110 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4111 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4112# Check for GNU ac_path_FGREP and select it if it is found. 4113 # Check for GNU $ac_path_FGREP 4114case `"$ac_path_FGREP" --version 2>&1` in 4115*GNU*) 4116 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4117*) 4118 ac_count=0 4119 $as_echo_n 0123456789 >"conftest.in" 4120 while : 4121 do 4122 cat "conftest.in" "conftest.in" >"conftest.tmp" 4123 mv "conftest.tmp" "conftest.in" 4124 cp "conftest.in" "conftest.nl" 4125 $as_echo 'FGREP' >> "conftest.nl" 4126 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4127 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4128 as_fn_arith $ac_count + 1 && ac_count=$as_val 4129 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4130 # Best one so far, save it but keep looking for a better one 4131 ac_cv_path_FGREP="$ac_path_FGREP" 4132 ac_path_FGREP_max=$ac_count 4133 fi 4134 # 10*(2^10) chars as input seems more than enough 4135 test $ac_count -gt 10 && break 4136 done 4137 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4138esac 4139 4140 $ac_path_FGREP_found && break 3 4141 done 4142 done 4143 done 4144IFS=$as_save_IFS 4145 if test -z "$ac_cv_path_FGREP"; then 4146 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4147 fi 4148else 4149 ac_cv_path_FGREP=$FGREP 4150fi 4151 4152 fi 4153fi 4154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4155$as_echo "$ac_cv_path_FGREP" >&6; } 4156 FGREP="$ac_cv_path_FGREP" 4157 4158 4159test -z "$GREP" && GREP=grep 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179# Check whether --with-gnu-ld was given. 4180if test "${with_gnu_ld+set}" = set; then : 4181 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4182else 4183 with_gnu_ld=no 4184fi 4185 4186ac_prog=ld 4187if test "$GCC" = yes; then 4188 # Check if gcc -print-prog-name=ld gives a path. 4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4190$as_echo_n "checking for ld used by $CC... " >&6; } 4191 case $host in 4192 *-*-mingw*) 4193 # gcc leaves a trailing carriage return which upsets mingw 4194 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4195 *) 4196 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4197 esac 4198 case $ac_prog in 4199 # Accept absolute paths. 4200 [\\/]* | ?:[\\/]*) 4201 re_direlt='/[^/][^/]*/\.\./' 4202 # Canonicalize the pathname of ld 4203 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4204 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4205 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4206 done 4207 test -z "$LD" && LD="$ac_prog" 4208 ;; 4209 "") 4210 # If it fails, then pretend we aren't using GCC. 4211 ac_prog=ld 4212 ;; 4213 *) 4214 # If it is relative, then search for the first ld in PATH. 4215 with_gnu_ld=unknown 4216 ;; 4217 esac 4218elif test "$with_gnu_ld" = yes; then 4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4220$as_echo_n "checking for GNU ld... " >&6; } 4221else 4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4223$as_echo_n "checking for non-GNU ld... " >&6; } 4224fi 4225if ${lt_cv_path_LD+:} false; then : 4226 $as_echo_n "(cached) " >&6 4227else 4228 if test -z "$LD"; then 4229 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4230 for ac_dir in $PATH; do 4231 IFS="$lt_save_ifs" 4232 test -z "$ac_dir" && ac_dir=. 4233 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4234 lt_cv_path_LD="$ac_dir/$ac_prog" 4235 # Check to see if the program is GNU ld. I'd rather use --version, 4236 # but apparently some variants of GNU ld only accept -v. 4237 # Break only if it was the GNU/non-GNU ld that we prefer. 4238 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4239 *GNU* | *'with BFD'*) 4240 test "$with_gnu_ld" != no && break 4241 ;; 4242 *) 4243 test "$with_gnu_ld" != yes && break 4244 ;; 4245 esac 4246 fi 4247 done 4248 IFS="$lt_save_ifs" 4249else 4250 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4251fi 4252fi 4253 4254LD="$lt_cv_path_LD" 4255if test -n "$LD"; then 4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4257$as_echo "$LD" >&6; } 4258else 4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4260$as_echo "no" >&6; } 4261fi 4262test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4264$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4265if ${lt_cv_prog_gnu_ld+:} false; then : 4266 $as_echo_n "(cached) " >&6 4267else 4268 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4269case `$LD -v 2>&1 </dev/null` in 4270*GNU* | *'with BFD'*) 4271 lt_cv_prog_gnu_ld=yes 4272 ;; 4273*) 4274 lt_cv_prog_gnu_ld=no 4275 ;; 4276esac 4277fi 4278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4279$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4280with_gnu_ld=$lt_cv_prog_gnu_ld 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4291$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4292if ${lt_cv_path_NM+:} false; then : 4293 $as_echo_n "(cached) " >&6 4294else 4295 if test -n "$NM"; then 4296 # Let the user override the test. 4297 lt_cv_path_NM="$NM" 4298else 4299 lt_nm_to_check="${ac_tool_prefix}nm" 4300 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4301 lt_nm_to_check="$lt_nm_to_check nm" 4302 fi 4303 for lt_tmp_nm in $lt_nm_to_check; do 4304 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4305 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4306 IFS="$lt_save_ifs" 4307 test -z "$ac_dir" && ac_dir=. 4308 tmp_nm="$ac_dir/$lt_tmp_nm" 4309 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4310 # Check to see if the nm accepts a BSD-compat flag. 4311 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4312 # nm: unknown option "B" ignored 4313 # Tru64's nm complains that /dev/null is an invalid object file 4314 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4315 */dev/null* | *'Invalid file or object type'*) 4316 lt_cv_path_NM="$tmp_nm -B" 4317 break 4318 ;; 4319 *) 4320 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4321 */dev/null*) 4322 lt_cv_path_NM="$tmp_nm -p" 4323 break 4324 ;; 4325 *) 4326 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4327 continue # so that we can try to find one that supports BSD flags 4328 ;; 4329 esac 4330 ;; 4331 esac 4332 fi 4333 done 4334 IFS="$lt_save_ifs" 4335 done 4336 : ${lt_cv_path_NM=no} 4337fi 4338fi 4339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4340$as_echo "$lt_cv_path_NM" >&6; } 4341if test "$lt_cv_path_NM" != "no"; then 4342 NM="$lt_cv_path_NM" 4343else 4344 # Didn't find any BSD compatible name lister, look for dumpbin. 4345 if test -n "$DUMPBIN"; then : 4346 # Let the user override the test. 4347 else 4348 if test -n "$ac_tool_prefix"; then 4349 for ac_prog in dumpbin "link -dump" 4350 do 4351 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4352set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4354$as_echo_n "checking for $ac_word... " >&6; } 4355if ${ac_cv_prog_DUMPBIN+:} false; then : 4356 $as_echo_n "(cached) " >&6 4357else 4358 if test -n "$DUMPBIN"; then 4359 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4360else 4361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4362for as_dir in $PATH 4363do 4364 IFS=$as_save_IFS 4365 test -z "$as_dir" && as_dir=. 4366 for ac_exec_ext in '' $ac_executable_extensions; do 4367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4368 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4370 break 2 4371 fi 4372done 4373 done 4374IFS=$as_save_IFS 4375 4376fi 4377fi 4378DUMPBIN=$ac_cv_prog_DUMPBIN 4379if test -n "$DUMPBIN"; then 4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4381$as_echo "$DUMPBIN" >&6; } 4382else 4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4384$as_echo "no" >&6; } 4385fi 4386 4387 4388 test -n "$DUMPBIN" && break 4389 done 4390fi 4391if test -z "$DUMPBIN"; then 4392 ac_ct_DUMPBIN=$DUMPBIN 4393 for ac_prog in dumpbin "link -dump" 4394do 4395 # Extract the first word of "$ac_prog", so it can be a program name with args. 4396set dummy $ac_prog; ac_word=$2 4397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4398$as_echo_n "checking for $ac_word... " >&6; } 4399if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4400 $as_echo_n "(cached) " >&6 4401else 4402 if test -n "$ac_ct_DUMPBIN"; then 4403 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4404else 4405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4406for as_dir in $PATH 4407do 4408 IFS=$as_save_IFS 4409 test -z "$as_dir" && as_dir=. 4410 for ac_exec_ext in '' $ac_executable_extensions; do 4411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4412 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4414 break 2 4415 fi 4416done 4417 done 4418IFS=$as_save_IFS 4419 4420fi 4421fi 4422ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4423if test -n "$ac_ct_DUMPBIN"; then 4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4425$as_echo "$ac_ct_DUMPBIN" >&6; } 4426else 4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4428$as_echo "no" >&6; } 4429fi 4430 4431 4432 test -n "$ac_ct_DUMPBIN" && break 4433done 4434 4435 if test "x$ac_ct_DUMPBIN" = x; then 4436 DUMPBIN=":" 4437 else 4438 case $cross_compiling:$ac_tool_warned in 4439yes:) 4440{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4441$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4442ac_tool_warned=yes ;; 4443esac 4444 DUMPBIN=$ac_ct_DUMPBIN 4445 fi 4446fi 4447 4448 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4449 *COFF*) 4450 DUMPBIN="$DUMPBIN -symbols" 4451 ;; 4452 *) 4453 DUMPBIN=: 4454 ;; 4455 esac 4456 fi 4457 4458 if test "$DUMPBIN" != ":"; then 4459 NM="$DUMPBIN" 4460 fi 4461fi 4462test -z "$NM" && NM=nm 4463 4464 4465 4466 4467 4468 4469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4470$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4471if ${lt_cv_nm_interface+:} false; then : 4472 $as_echo_n "(cached) " >&6 4473else 4474 lt_cv_nm_interface="BSD nm" 4475 echo "int some_variable = 0;" > conftest.$ac_ext 4476 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4477 (eval "$ac_compile" 2>conftest.err) 4478 cat conftest.err >&5 4479 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4480 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4481 cat conftest.err >&5 4482 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4483 cat conftest.out >&5 4484 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4485 lt_cv_nm_interface="MS dumpbin" 4486 fi 4487 rm -f conftest* 4488fi 4489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4490$as_echo "$lt_cv_nm_interface" >&6; } 4491 4492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4493$as_echo_n "checking whether ln -s works... " >&6; } 4494LN_S=$as_ln_s 4495if test "$LN_S" = "ln -s"; then 4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4497$as_echo "yes" >&6; } 4498else 4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4500$as_echo "no, using $LN_S" >&6; } 4501fi 4502 4503# find the maximum length of command line arguments 4504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4505$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4506if ${lt_cv_sys_max_cmd_len+:} false; then : 4507 $as_echo_n "(cached) " >&6 4508else 4509 i=0 4510 teststring="ABCD" 4511 4512 case $build_os in 4513 msdosdjgpp*) 4514 # On DJGPP, this test can blow up pretty badly due to problems in libc 4515 # (any single argument exceeding 2000 bytes causes a buffer overrun 4516 # during glob expansion). Even if it were fixed, the result of this 4517 # check would be larger than it should be. 4518 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4519 ;; 4520 4521 gnu*) 4522 # Under GNU Hurd, this test is not required because there is 4523 # no limit to the length of command line arguments. 4524 # Libtool will interpret -1 as no limit whatsoever 4525 lt_cv_sys_max_cmd_len=-1; 4526 ;; 4527 4528 cygwin* | mingw* | cegcc*) 4529 # On Win9x/ME, this test blows up -- it succeeds, but takes 4530 # about 5 minutes as the teststring grows exponentially. 4531 # Worse, since 9x/ME are not pre-emptively multitasking, 4532 # you end up with a "frozen" computer, even though with patience 4533 # the test eventually succeeds (with a max line length of 256k). 4534 # Instead, let's just punt: use the minimum linelength reported by 4535 # all of the supported platforms: 8192 (on NT/2K/XP). 4536 lt_cv_sys_max_cmd_len=8192; 4537 ;; 4538 4539 mint*) 4540 # On MiNT this can take a long time and run out of memory. 4541 lt_cv_sys_max_cmd_len=8192; 4542 ;; 4543 4544 amigaos*) 4545 # On AmigaOS with pdksh, this test takes hours, literally. 4546 # So we just punt and use a minimum line length of 8192. 4547 lt_cv_sys_max_cmd_len=8192; 4548 ;; 4549 4550 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4551 # This has been around since 386BSD, at least. Likely further. 4552 if test -x /sbin/sysctl; then 4553 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4554 elif test -x /usr/sbin/sysctl; then 4555 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4556 else 4557 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4558 fi 4559 # And add a safety zone 4560 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4561 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4562 ;; 4563 4564 interix*) 4565 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4566 lt_cv_sys_max_cmd_len=196608 4567 ;; 4568 4569 osf*) 4570 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4571 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4572 # nice to cause kernel panics so lets avoid the loop below. 4573 # First set a reasonable default. 4574 lt_cv_sys_max_cmd_len=16384 4575 # 4576 if test -x /sbin/sysconfig; then 4577 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4578 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4579 esac 4580 fi 4581 ;; 4582 sco3.2v5*) 4583 lt_cv_sys_max_cmd_len=102400 4584 ;; 4585 sysv5* | sco5v6* | sysv4.2uw2*) 4586 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4587 if test -n "$kargmax"; then 4588 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4589 else 4590 lt_cv_sys_max_cmd_len=32768 4591 fi 4592 ;; 4593 *) 4594 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4595 if test -n "$lt_cv_sys_max_cmd_len"; then 4596 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4597 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4598 else 4599 # Make teststring a little bigger before we do anything with it. 4600 # a 1K string should be a reasonable start. 4601 for i in 1 2 3 4 5 6 7 8 ; do 4602 teststring=$teststring$teststring 4603 done 4604 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4605 # If test is not a shell built-in, we'll probably end up computing a 4606 # maximum length that is only half of the actual maximum length, but 4607 # we can't tell. 4608 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 4609 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4610 test $i != 17 # 1/2 MB should be enough 4611 do 4612 i=`expr $i + 1` 4613 teststring=$teststring$teststring 4614 done 4615 # Only check the string length outside the loop. 4616 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4617 teststring= 4618 # Add a significant safety factor because C++ compilers can tack on 4619 # massive amounts of additional arguments before passing them to the 4620 # linker. It appears as though 1/2 is a usable value. 4621 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4622 fi 4623 ;; 4624 esac 4625 4626fi 4627 4628if test -n $lt_cv_sys_max_cmd_len ; then 4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4630$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4631else 4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4633$as_echo "none" >&6; } 4634fi 4635max_cmd_len=$lt_cv_sys_max_cmd_len 4636 4637 4638 4639 4640 4641 4642: ${CP="cp -f"} 4643: ${MV="mv -f"} 4644: ${RM="rm -f"} 4645 4646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4647$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4648# Try some XSI features 4649xsi_shell=no 4650( _lt_dummy="a/b/c" 4651 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 4652 = c,a/b,b/c, \ 4653 && eval 'test $(( 1 + 1 )) -eq 2 \ 4654 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4655 && xsi_shell=yes 4656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4657$as_echo "$xsi_shell" >&6; } 4658 4659 4660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4661$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4662lt_shell_append=no 4663( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4664 >/dev/null 2>&1 \ 4665 && lt_shell_append=yes 4666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4667$as_echo "$lt_shell_append" >&6; } 4668 4669 4670if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4671 lt_unset=unset 4672else 4673 lt_unset=false 4674fi 4675 4676 4677 4678 4679 4680# test EBCDIC or ASCII 4681case `echo X|tr X '\101'` in 4682 A) # ASCII based system 4683 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4684 lt_SP2NL='tr \040 \012' 4685 lt_NL2SP='tr \015\012 \040\040' 4686 ;; 4687 *) # EBCDIC based system 4688 lt_SP2NL='tr \100 \n' 4689 lt_NL2SP='tr \r\n \100\100' 4690 ;; 4691esac 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4702$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4703if ${lt_cv_to_host_file_cmd+:} false; then : 4704 $as_echo_n "(cached) " >&6 4705else 4706 case $host in 4707 *-*-mingw* ) 4708 case $build in 4709 *-*-mingw* ) # actually msys 4710 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4711 ;; 4712 *-*-cygwin* ) 4713 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4714 ;; 4715 * ) # otherwise, assume *nix 4716 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4717 ;; 4718 esac 4719 ;; 4720 *-*-cygwin* ) 4721 case $build in 4722 *-*-mingw* ) # actually msys 4723 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4724 ;; 4725 *-*-cygwin* ) 4726 lt_cv_to_host_file_cmd=func_convert_file_noop 4727 ;; 4728 * ) # otherwise, assume *nix 4729 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4730 ;; 4731 esac 4732 ;; 4733 * ) # unhandled hosts (and "normal" native builds) 4734 lt_cv_to_host_file_cmd=func_convert_file_noop 4735 ;; 4736esac 4737 4738fi 4739 4740to_host_file_cmd=$lt_cv_to_host_file_cmd 4741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4742$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4743 4744 4745 4746 4747 4748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4749$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4750if ${lt_cv_to_tool_file_cmd+:} false; then : 4751 $as_echo_n "(cached) " >&6 4752else 4753 #assume ordinary cross tools, or native build. 4754lt_cv_to_tool_file_cmd=func_convert_file_noop 4755case $host in 4756 *-*-mingw* ) 4757 case $build in 4758 *-*-mingw* ) # actually msys 4759 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4760 ;; 4761 esac 4762 ;; 4763esac 4764 4765fi 4766 4767to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4769$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4770 4771 4772 4773 4774 4775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4776$as_echo_n "checking for $LD option to reload object files... " >&6; } 4777if ${lt_cv_ld_reload_flag+:} false; then : 4778 $as_echo_n "(cached) " >&6 4779else 4780 lt_cv_ld_reload_flag='-r' 4781fi 4782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4783$as_echo "$lt_cv_ld_reload_flag" >&6; } 4784reload_flag=$lt_cv_ld_reload_flag 4785case $reload_flag in 4786"" | " "*) ;; 4787*) reload_flag=" $reload_flag" ;; 4788esac 4789reload_cmds='$LD$reload_flag -o $output$reload_objs' 4790case $host_os in 4791 cygwin* | mingw* | pw32* | cegcc*) 4792 if test "$GCC" != yes; then 4793 reload_cmds=false 4794 fi 4795 ;; 4796 darwin*) 4797 if test "$GCC" = yes; then 4798 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4799 else 4800 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4801 fi 4802 ;; 4803esac 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813if test -n "$ac_tool_prefix"; then 4814 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4815set dummy ${ac_tool_prefix}objdump; ac_word=$2 4816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4817$as_echo_n "checking for $ac_word... " >&6; } 4818if ${ac_cv_prog_OBJDUMP+:} false; then : 4819 $as_echo_n "(cached) " >&6 4820else 4821 if test -n "$OBJDUMP"; then 4822 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4823else 4824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4825for as_dir in $PATH 4826do 4827 IFS=$as_save_IFS 4828 test -z "$as_dir" && as_dir=. 4829 for ac_exec_ext in '' $ac_executable_extensions; do 4830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4831 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4833 break 2 4834 fi 4835done 4836 done 4837IFS=$as_save_IFS 4838 4839fi 4840fi 4841OBJDUMP=$ac_cv_prog_OBJDUMP 4842if test -n "$OBJDUMP"; then 4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4844$as_echo "$OBJDUMP" >&6; } 4845else 4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4847$as_echo "no" >&6; } 4848fi 4849 4850 4851fi 4852if test -z "$ac_cv_prog_OBJDUMP"; then 4853 ac_ct_OBJDUMP=$OBJDUMP 4854 # Extract the first word of "objdump", so it can be a program name with args. 4855set dummy objdump; ac_word=$2 4856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4857$as_echo_n "checking for $ac_word... " >&6; } 4858if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 4859 $as_echo_n "(cached) " >&6 4860else 4861 if test -n "$ac_ct_OBJDUMP"; then 4862 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4863else 4864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4865for as_dir in $PATH 4866do 4867 IFS=$as_save_IFS 4868 test -z "$as_dir" && as_dir=. 4869 for ac_exec_ext in '' $ac_executable_extensions; do 4870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4871 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4873 break 2 4874 fi 4875done 4876 done 4877IFS=$as_save_IFS 4878 4879fi 4880fi 4881ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4882if test -n "$ac_ct_OBJDUMP"; then 4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4884$as_echo "$ac_ct_OBJDUMP" >&6; } 4885else 4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4887$as_echo "no" >&6; } 4888fi 4889 4890 if test "x$ac_ct_OBJDUMP" = x; then 4891 OBJDUMP="false" 4892 else 4893 case $cross_compiling:$ac_tool_warned in 4894yes:) 4895{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4896$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4897ac_tool_warned=yes ;; 4898esac 4899 OBJDUMP=$ac_ct_OBJDUMP 4900 fi 4901else 4902 OBJDUMP="$ac_cv_prog_OBJDUMP" 4903fi 4904 4905test -z "$OBJDUMP" && OBJDUMP=objdump 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 4916$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4917if ${lt_cv_deplibs_check_method+:} false; then : 4918 $as_echo_n "(cached) " >&6 4919else 4920 lt_cv_file_magic_cmd='$MAGIC_CMD' 4921lt_cv_file_magic_test_file= 4922lt_cv_deplibs_check_method='unknown' 4923# Need to set the preceding variable on all platforms that support 4924# interlibrary dependencies. 4925# 'none' -- dependencies not supported. 4926# `unknown' -- same as none, but documents that we really don't know. 4927# 'pass_all' -- all dependencies passed with no checks. 4928# 'test_compile' -- check by making test program. 4929# 'file_magic [[regex]]' -- check by looking for files in library path 4930# which responds to the $file_magic_cmd with a given extended regex. 4931# If you have `file' or equivalent on your system and you're not sure 4932# whether `pass_all' will *always* work, you probably want this one. 4933 4934case $host_os in 4935aix[4-9]*) 4936 lt_cv_deplibs_check_method=pass_all 4937 ;; 4938 4939beos*) 4940 lt_cv_deplibs_check_method=pass_all 4941 ;; 4942 4943bsdi[45]*) 4944 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4945 lt_cv_file_magic_cmd='/usr/bin/file -L' 4946 lt_cv_file_magic_test_file=/shlib/libc.so 4947 ;; 4948 4949cygwin*) 4950 # func_win32_libid is a shell function defined in ltmain.sh 4951 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4952 lt_cv_file_magic_cmd='func_win32_libid' 4953 ;; 4954 4955mingw* | pw32*) 4956 # Base MSYS/MinGW do not provide the 'file' command needed by 4957 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4958 # unless we find 'file', for example because we are cross-compiling. 4959 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 4960 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 4961 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4962 lt_cv_file_magic_cmd='func_win32_libid' 4963 else 4964 # Keep this pattern in sync with the one in func_win32_libid. 4965 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 4966 lt_cv_file_magic_cmd='$OBJDUMP -f' 4967 fi 4968 ;; 4969 4970cegcc*) 4971 # use the weaker test based on 'objdump'. See mingw*. 4972 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4973 lt_cv_file_magic_cmd='$OBJDUMP -f' 4974 ;; 4975 4976darwin* | rhapsody*) 4977 lt_cv_deplibs_check_method=pass_all 4978 ;; 4979 4980freebsd* | dragonfly*) 4981 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4982 case $host_cpu in 4983 i*86 ) 4984 # Not sure whether the presence of OpenBSD here was a mistake. 4985 # Let's accept both of them until this is cleared up. 4986 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4987 lt_cv_file_magic_cmd=/usr/bin/file 4988 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4989 ;; 4990 esac 4991 else 4992 lt_cv_deplibs_check_method=pass_all 4993 fi 4994 ;; 4995 4996gnu*) 4997 lt_cv_deplibs_check_method=pass_all 4998 ;; 4999 5000haiku*) 5001 lt_cv_deplibs_check_method=pass_all 5002 ;; 5003 5004hpux10.20* | hpux11*) 5005 lt_cv_file_magic_cmd=/usr/bin/file 5006 case $host_cpu in 5007 ia64*) 5008 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5009 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5010 ;; 5011 hppa*64*) 5012 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]' 5013 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5014 ;; 5015 *) 5016 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5017 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5018 ;; 5019 esac 5020 ;; 5021 5022interix[3-9]*) 5023 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5024 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5025 ;; 5026 5027irix5* | irix6* | nonstopux*) 5028 case $LD in 5029 *-32|*"-32 ") libmagic=32-bit;; 5030 *-n32|*"-n32 ") libmagic=N32;; 5031 *-64|*"-64 ") libmagic=64-bit;; 5032 *) libmagic=never-match;; 5033 esac 5034 lt_cv_deplibs_check_method=pass_all 5035 ;; 5036 5037# This must be Linux ELF. 5038linux* | k*bsd*-gnu | kopensolaris*-gnu) 5039 lt_cv_deplibs_check_method=pass_all 5040 ;; 5041 5042netbsd*) 5043 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5044 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5045 else 5046 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5047 fi 5048 ;; 5049 5050newos6*) 5051 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5052 lt_cv_file_magic_cmd=/usr/bin/file 5053 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5054 ;; 5055 5056*nto* | *qnx*) 5057 lt_cv_deplibs_check_method=pass_all 5058 ;; 5059 5060openbsd*) 5061 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5062 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5063 else 5064 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5065 fi 5066 ;; 5067 5068osf3* | osf4* | osf5*) 5069 lt_cv_deplibs_check_method=pass_all 5070 ;; 5071 5072rdos*) 5073 lt_cv_deplibs_check_method=pass_all 5074 ;; 5075 5076solaris*) 5077 lt_cv_deplibs_check_method=pass_all 5078 ;; 5079 5080sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5081 lt_cv_deplibs_check_method=pass_all 5082 ;; 5083 5084sysv4 | sysv4.3*) 5085 case $host_vendor in 5086 motorola) 5087 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]' 5088 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5089 ;; 5090 ncr) 5091 lt_cv_deplibs_check_method=pass_all 5092 ;; 5093 sequent) 5094 lt_cv_file_magic_cmd='/bin/file' 5095 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5096 ;; 5097 sni) 5098 lt_cv_file_magic_cmd='/bin/file' 5099 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5100 lt_cv_file_magic_test_file=/lib/libc.so 5101 ;; 5102 siemens) 5103 lt_cv_deplibs_check_method=pass_all 5104 ;; 5105 pc) 5106 lt_cv_deplibs_check_method=pass_all 5107 ;; 5108 esac 5109 ;; 5110 5111tpf*) 5112 lt_cv_deplibs_check_method=pass_all 5113 ;; 5114esac 5115 5116fi 5117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5118$as_echo "$lt_cv_deplibs_check_method" >&6; } 5119 5120file_magic_glob= 5121want_nocaseglob=no 5122if test "$build" = "$host"; then 5123 case $host_os in 5124 mingw* | pw32*) 5125 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5126 want_nocaseglob=yes 5127 else 5128 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5129 fi 5130 ;; 5131 esac 5132fi 5133 5134file_magic_cmd=$lt_cv_file_magic_cmd 5135deplibs_check_method=$lt_cv_deplibs_check_method 5136test -z "$deplibs_check_method" && deplibs_check_method=unknown 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159if test -n "$ac_tool_prefix"; then 5160 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5161set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5163$as_echo_n "checking for $ac_word... " >&6; } 5164if ${ac_cv_prog_DLLTOOL+:} false; then : 5165 $as_echo_n "(cached) " >&6 5166else 5167 if test -n "$DLLTOOL"; then 5168 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5169else 5170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5171for as_dir in $PATH 5172do 5173 IFS=$as_save_IFS 5174 test -z "$as_dir" && as_dir=. 5175 for ac_exec_ext in '' $ac_executable_extensions; do 5176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5177 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5179 break 2 5180 fi 5181done 5182 done 5183IFS=$as_save_IFS 5184 5185fi 5186fi 5187DLLTOOL=$ac_cv_prog_DLLTOOL 5188if test -n "$DLLTOOL"; then 5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5190$as_echo "$DLLTOOL" >&6; } 5191else 5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5193$as_echo "no" >&6; } 5194fi 5195 5196 5197fi 5198if test -z "$ac_cv_prog_DLLTOOL"; then 5199 ac_ct_DLLTOOL=$DLLTOOL 5200 # Extract the first word of "dlltool", so it can be a program name with args. 5201set dummy dlltool; ac_word=$2 5202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5203$as_echo_n "checking for $ac_word... " >&6; } 5204if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5205 $as_echo_n "(cached) " >&6 5206else 5207 if test -n "$ac_ct_DLLTOOL"; then 5208 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5209else 5210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5211for as_dir in $PATH 5212do 5213 IFS=$as_save_IFS 5214 test -z "$as_dir" && as_dir=. 5215 for ac_exec_ext in '' $ac_executable_extensions; do 5216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5217 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5219 break 2 5220 fi 5221done 5222 done 5223IFS=$as_save_IFS 5224 5225fi 5226fi 5227ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5228if test -n "$ac_ct_DLLTOOL"; then 5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5230$as_echo "$ac_ct_DLLTOOL" >&6; } 5231else 5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5233$as_echo "no" >&6; } 5234fi 5235 5236 if test "x$ac_ct_DLLTOOL" = x; then 5237 DLLTOOL="false" 5238 else 5239 case $cross_compiling:$ac_tool_warned in 5240yes:) 5241{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5242$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5243ac_tool_warned=yes ;; 5244esac 5245 DLLTOOL=$ac_ct_DLLTOOL 5246 fi 5247else 5248 DLLTOOL="$ac_cv_prog_DLLTOOL" 5249fi 5250 5251test -z "$DLLTOOL" && DLLTOOL=dlltool 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5263$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5264if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5265 $as_echo_n "(cached) " >&6 5266else 5267 lt_cv_sharedlib_from_linklib_cmd='unknown' 5268 5269case $host_os in 5270cygwin* | mingw* | pw32* | cegcc*) 5271 # two different shell functions defined in ltmain.sh 5272 # decide which to use based on capabilities of $DLLTOOL 5273 case `$DLLTOOL --help 2>&1` in 5274 *--identify-strict*) 5275 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5276 ;; 5277 *) 5278 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5279 ;; 5280 esac 5281 ;; 5282*) 5283 # fallback: assume linklib IS sharedlib 5284 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5285 ;; 5286esac 5287 5288fi 5289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5290$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5291sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5292test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5293 5294 5295 5296 5297 5298 5299 5300 5301if test -n "$ac_tool_prefix"; then 5302 for ac_prog in ar 5303 do 5304 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5305set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5307$as_echo_n "checking for $ac_word... " >&6; } 5308if ${ac_cv_prog_AR+:} false; then : 5309 $as_echo_n "(cached) " >&6 5310else 5311 if test -n "$AR"; then 5312 ac_cv_prog_AR="$AR" # Let the user override the test. 5313else 5314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5315for as_dir in $PATH 5316do 5317 IFS=$as_save_IFS 5318 test -z "$as_dir" && as_dir=. 5319 for ac_exec_ext in '' $ac_executable_extensions; do 5320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5321 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5323 break 2 5324 fi 5325done 5326 done 5327IFS=$as_save_IFS 5328 5329fi 5330fi 5331AR=$ac_cv_prog_AR 5332if test -n "$AR"; then 5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5334$as_echo "$AR" >&6; } 5335else 5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5337$as_echo "no" >&6; } 5338fi 5339 5340 5341 test -n "$AR" && break 5342 done 5343fi 5344if test -z "$AR"; then 5345 ac_ct_AR=$AR 5346 for ac_prog in ar 5347do 5348 # Extract the first word of "$ac_prog", so it can be a program name with args. 5349set dummy $ac_prog; ac_word=$2 5350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5351$as_echo_n "checking for $ac_word... " >&6; } 5352if ${ac_cv_prog_ac_ct_AR+:} false; then : 5353 $as_echo_n "(cached) " >&6 5354else 5355 if test -n "$ac_ct_AR"; then 5356 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5357else 5358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5359for as_dir in $PATH 5360do 5361 IFS=$as_save_IFS 5362 test -z "$as_dir" && as_dir=. 5363 for ac_exec_ext in '' $ac_executable_extensions; do 5364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5365 ac_cv_prog_ac_ct_AR="$ac_prog" 5366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5367 break 2 5368 fi 5369done 5370 done 5371IFS=$as_save_IFS 5372 5373fi 5374fi 5375ac_ct_AR=$ac_cv_prog_ac_ct_AR 5376if test -n "$ac_ct_AR"; then 5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5378$as_echo "$ac_ct_AR" >&6; } 5379else 5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5381$as_echo "no" >&6; } 5382fi 5383 5384 5385 test -n "$ac_ct_AR" && break 5386done 5387 5388 if test "x$ac_ct_AR" = x; then 5389 AR="false" 5390 else 5391 case $cross_compiling:$ac_tool_warned in 5392yes:) 5393{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5394$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5395ac_tool_warned=yes ;; 5396esac 5397 AR=$ac_ct_AR 5398 fi 5399fi 5400 5401: ${AR=ar} 5402: ${AR_FLAGS=cru} 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5415$as_echo_n "checking for archiver @FILE support... " >&6; } 5416if ${lt_cv_ar_at_file+:} false; then : 5417 $as_echo_n "(cached) " >&6 5418else 5419 lt_cv_ar_at_file=no 5420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5421/* end confdefs.h. */ 5422 5423int 5424main () 5425{ 5426 5427 ; 5428 return 0; 5429} 5430_ACEOF 5431if ac_fn_c_try_compile "$LINENO"; then : 5432 echo conftest.$ac_objext > conftest.lst 5433 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5434 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5435 (eval $lt_ar_try) 2>&5 5436 ac_status=$? 5437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5438 test $ac_status = 0; } 5439 if test "$ac_status" -eq 0; then 5440 # Ensure the archiver fails upon bogus file names. 5441 rm -f conftest.$ac_objext libconftest.a 5442 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5443 (eval $lt_ar_try) 2>&5 5444 ac_status=$? 5445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5446 test $ac_status = 0; } 5447 if test "$ac_status" -ne 0; then 5448 lt_cv_ar_at_file=@ 5449 fi 5450 fi 5451 rm -f conftest.* libconftest.a 5452 5453fi 5454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5455 5456fi 5457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5458$as_echo "$lt_cv_ar_at_file" >&6; } 5459 5460if test "x$lt_cv_ar_at_file" = xno; then 5461 archiver_list_spec= 5462else 5463 archiver_list_spec=$lt_cv_ar_at_file 5464fi 5465 5466 5467 5468 5469 5470 5471 5472if test -n "$ac_tool_prefix"; then 5473 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5474set dummy ${ac_tool_prefix}strip; ac_word=$2 5475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5476$as_echo_n "checking for $ac_word... " >&6; } 5477if ${ac_cv_prog_STRIP+:} false; then : 5478 $as_echo_n "(cached) " >&6 5479else 5480 if test -n "$STRIP"; then 5481 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5482else 5483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5484for as_dir in $PATH 5485do 5486 IFS=$as_save_IFS 5487 test -z "$as_dir" && as_dir=. 5488 for ac_exec_ext in '' $ac_executable_extensions; do 5489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5490 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5492 break 2 5493 fi 5494done 5495 done 5496IFS=$as_save_IFS 5497 5498fi 5499fi 5500STRIP=$ac_cv_prog_STRIP 5501if test -n "$STRIP"; then 5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5503$as_echo "$STRIP" >&6; } 5504else 5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5506$as_echo "no" >&6; } 5507fi 5508 5509 5510fi 5511if test -z "$ac_cv_prog_STRIP"; then 5512 ac_ct_STRIP=$STRIP 5513 # Extract the first word of "strip", so it can be a program name with args. 5514set dummy strip; ac_word=$2 5515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5516$as_echo_n "checking for $ac_word... " >&6; } 5517if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5518 $as_echo_n "(cached) " >&6 5519else 5520 if test -n "$ac_ct_STRIP"; then 5521 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5522else 5523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5524for as_dir in $PATH 5525do 5526 IFS=$as_save_IFS 5527 test -z "$as_dir" && as_dir=. 5528 for ac_exec_ext in '' $ac_executable_extensions; do 5529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5530 ac_cv_prog_ac_ct_STRIP="strip" 5531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5532 break 2 5533 fi 5534done 5535 done 5536IFS=$as_save_IFS 5537 5538fi 5539fi 5540ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5541if test -n "$ac_ct_STRIP"; then 5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5543$as_echo "$ac_ct_STRIP" >&6; } 5544else 5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5546$as_echo "no" >&6; } 5547fi 5548 5549 if test "x$ac_ct_STRIP" = x; then 5550 STRIP=":" 5551 else 5552 case $cross_compiling:$ac_tool_warned in 5553yes:) 5554{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5555$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5556ac_tool_warned=yes ;; 5557esac 5558 STRIP=$ac_ct_STRIP 5559 fi 5560else 5561 STRIP="$ac_cv_prog_STRIP" 5562fi 5563 5564test -z "$STRIP" && STRIP=: 5565 5566 5567 5568 5569 5570 5571if test -n "$ac_tool_prefix"; then 5572 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5573set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5575$as_echo_n "checking for $ac_word... " >&6; } 5576if ${ac_cv_prog_RANLIB+:} false; then : 5577 $as_echo_n "(cached) " >&6 5578else 5579 if test -n "$RANLIB"; then 5580 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5581else 5582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5583for as_dir in $PATH 5584do 5585 IFS=$as_save_IFS 5586 test -z "$as_dir" && as_dir=. 5587 for ac_exec_ext in '' $ac_executable_extensions; do 5588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5589 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5591 break 2 5592 fi 5593done 5594 done 5595IFS=$as_save_IFS 5596 5597fi 5598fi 5599RANLIB=$ac_cv_prog_RANLIB 5600if test -n "$RANLIB"; then 5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5602$as_echo "$RANLIB" >&6; } 5603else 5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5605$as_echo "no" >&6; } 5606fi 5607 5608 5609fi 5610if test -z "$ac_cv_prog_RANLIB"; then 5611 ac_ct_RANLIB=$RANLIB 5612 # Extract the first word of "ranlib", so it can be a program name with args. 5613set dummy ranlib; ac_word=$2 5614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5615$as_echo_n "checking for $ac_word... " >&6; } 5616if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5617 $as_echo_n "(cached) " >&6 5618else 5619 if test -n "$ac_ct_RANLIB"; then 5620 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5621else 5622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5623for as_dir in $PATH 5624do 5625 IFS=$as_save_IFS 5626 test -z "$as_dir" && as_dir=. 5627 for ac_exec_ext in '' $ac_executable_extensions; do 5628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5629 ac_cv_prog_ac_ct_RANLIB="ranlib" 5630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5631 break 2 5632 fi 5633done 5634 done 5635IFS=$as_save_IFS 5636 5637fi 5638fi 5639ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5640if test -n "$ac_ct_RANLIB"; then 5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5642$as_echo "$ac_ct_RANLIB" >&6; } 5643else 5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5645$as_echo "no" >&6; } 5646fi 5647 5648 if test "x$ac_ct_RANLIB" = x; then 5649 RANLIB=":" 5650 else 5651 case $cross_compiling:$ac_tool_warned in 5652yes:) 5653{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5654$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5655ac_tool_warned=yes ;; 5656esac 5657 RANLIB=$ac_ct_RANLIB 5658 fi 5659else 5660 RANLIB="$ac_cv_prog_RANLIB" 5661fi 5662 5663test -z "$RANLIB" && RANLIB=: 5664 5665 5666 5667 5668 5669 5670# Determine commands to create old-style static archives. 5671old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5672old_postinstall_cmds='chmod 644 $oldlib' 5673old_postuninstall_cmds= 5674 5675if test -n "$RANLIB"; then 5676 case $host_os in 5677 openbsd*) 5678 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5679 ;; 5680 *) 5681 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5682 ;; 5683 esac 5684 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5685fi 5686 5687case $host_os in 5688 darwin*) 5689 lock_old_archive_extraction=yes ;; 5690 *) 5691 lock_old_archive_extraction=no ;; 5692esac 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732# If no C compiler was specified, use CC. 5733LTCC=${LTCC-"$CC"} 5734 5735# If no C compiler flags were specified, use CFLAGS. 5736LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5737 5738# Allow CC to be a program name with arguments. 5739compiler=$CC 5740 5741 5742# Check for command to grab the raw symbol name followed by C symbol from nm. 5743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5744$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5745if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5746 $as_echo_n "(cached) " >&6 5747else 5748 5749# These are sane defaults that work on at least a few old systems. 5750# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5751 5752# Character class describing NM global symbol codes. 5753symcode='[BCDEGRST]' 5754 5755# Regexp to match symbols that can be accessed directly from C. 5756sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5757 5758# Define system-specific variables. 5759case $host_os in 5760aix*) 5761 symcode='[BCDT]' 5762 ;; 5763cygwin* | mingw* | pw32* | cegcc*) 5764 symcode='[ABCDGISTW]' 5765 ;; 5766hpux*) 5767 if test "$host_cpu" = ia64; then 5768 symcode='[ABCDEGRST]' 5769 fi 5770 ;; 5771irix* | nonstopux*) 5772 symcode='[BCDEGRST]' 5773 ;; 5774osf*) 5775 symcode='[BCDEGQRST]' 5776 ;; 5777solaris*) 5778 symcode='[BDRT]' 5779 ;; 5780sco3.2v5*) 5781 symcode='[DT]' 5782 ;; 5783sysv4.2uw2*) 5784 symcode='[DT]' 5785 ;; 5786sysv5* | sco5v6* | unixware* | OpenUNIX*) 5787 symcode='[ABDT]' 5788 ;; 5789sysv4) 5790 symcode='[DFNSTU]' 5791 ;; 5792esac 5793 5794# If we're using GNU nm, then use its standard symbol codes. 5795case `$NM -V 2>&1` in 5796*GNU* | *'with BFD'*) 5797 symcode='[ABCDGIRSTW]' ;; 5798esac 5799 5800# Transform an extracted symbol line into a proper C declaration. 5801# Some systems (esp. on ia64) link data and code symbols differently, 5802# so use this general approach. 5803lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5804 5805# Transform an extracted symbol line into symbol name and symbol address 5806lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5807lt_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'" 5808 5809# Handle CRLF in mingw tool chain 5810opt_cr= 5811case $build_os in 5812mingw*) 5813 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5814 ;; 5815esac 5816 5817# Try without a prefix underscore, then with it. 5818for ac_symprfx in "" "_"; do 5819 5820 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5821 symxfrm="\\1 $ac_symprfx\\2 \\2" 5822 5823 # Write the raw and C identifiers. 5824 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5825 # Fake it for dumpbin and say T for any non-static function 5826 # and D for any global variable. 5827 # Also find C++ and __fastcall symbols from MSVC++, 5828 # which start with @ or ?. 5829 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5830" {last_section=section; section=\$ 3};"\ 5831" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5832" \$ 0!~/External *\|/{next};"\ 5833" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5834" {if(hide[section]) next};"\ 5835" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5836" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5837" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5838" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5839" ' prfx=^$ac_symprfx" 5840 else 5841 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5842 fi 5843 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 5844 5845 # Check to see that the pipe works correctly. 5846 pipe_works=no 5847 5848 rm -f conftest* 5849 cat > conftest.$ac_ext <<_LT_EOF 5850#ifdef __cplusplus 5851extern "C" { 5852#endif 5853char nm_test_var; 5854void nm_test_func(void); 5855void nm_test_func(void){} 5856#ifdef __cplusplus 5857} 5858#endif 5859int main(){nm_test_var='a';nm_test_func();return(0);} 5860_LT_EOF 5861 5862 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5863 (eval $ac_compile) 2>&5 5864 ac_status=$? 5865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5866 test $ac_status = 0; }; then 5867 # Now try to grab the symbols. 5868 nlist=conftest.nm 5869 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 5870 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 5871 ac_status=$? 5872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5873 test $ac_status = 0; } && test -s "$nlist"; then 5874 # Try sorting and uniquifying the output. 5875 if sort "$nlist" | uniq > "$nlist"T; then 5876 mv -f "$nlist"T "$nlist" 5877 else 5878 rm -f "$nlist"T 5879 fi 5880 5881 # Make sure that we snagged all the symbols we need. 5882 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5883 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5884 cat <<_LT_EOF > conftest.$ac_ext 5885/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 5886#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 5887/* DATA imports from DLLs on WIN32 con't be const, because runtime 5888 relocations are performed -- see ld's documentation on pseudo-relocs. */ 5889# define LT_DLSYM_CONST 5890#elif defined(__osf__) 5891/* This system does not cope well with relocations in const data. */ 5892# define LT_DLSYM_CONST 5893#else 5894# define LT_DLSYM_CONST const 5895#endif 5896 5897#ifdef __cplusplus 5898extern "C" { 5899#endif 5900 5901_LT_EOF 5902 # Now generate the symbol file. 5903 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5904 5905 cat <<_LT_EOF >> conftest.$ac_ext 5906 5907/* The mapping between symbol names and symbols. */ 5908LT_DLSYM_CONST struct { 5909 const char *name; 5910 void *address; 5911} 5912lt__PROGRAM__LTX_preloaded_symbols[] = 5913{ 5914 { "@PROGRAM@", (void *) 0 }, 5915_LT_EOF 5916 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5917 cat <<\_LT_EOF >> conftest.$ac_ext 5918 {0, (void *) 0} 5919}; 5920 5921/* This works around a problem in FreeBSD linker */ 5922#ifdef FREEBSD_WORKAROUND 5923static const void *lt_preloaded_setup() { 5924 return lt__PROGRAM__LTX_preloaded_symbols; 5925} 5926#endif 5927 5928#ifdef __cplusplus 5929} 5930#endif 5931_LT_EOF 5932 # Now try linking the two files. 5933 mv conftest.$ac_objext conftstm.$ac_objext 5934 lt_globsym_save_LIBS=$LIBS 5935 lt_globsym_save_CFLAGS=$CFLAGS 5936 LIBS="conftstm.$ac_objext" 5937 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5938 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 5939 (eval $ac_link) 2>&5 5940 ac_status=$? 5941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5942 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 5943 pipe_works=yes 5944 fi 5945 LIBS=$lt_globsym_save_LIBS 5946 CFLAGS=$lt_globsym_save_CFLAGS 5947 else 5948 echo "cannot find nm_test_func in $nlist" >&5 5949 fi 5950 else 5951 echo "cannot find nm_test_var in $nlist" >&5 5952 fi 5953 else 5954 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5955 fi 5956 else 5957 echo "$progname: failed program was:" >&5 5958 cat conftest.$ac_ext >&5 5959 fi 5960 rm -rf conftest* conftst* 5961 5962 # Do not use the global_symbol_pipe unless it works. 5963 if test "$pipe_works" = yes; then 5964 break 5965 else 5966 lt_cv_sys_global_symbol_pipe= 5967 fi 5968done 5969 5970fi 5971 5972if test -z "$lt_cv_sys_global_symbol_pipe"; then 5973 lt_cv_sys_global_symbol_to_cdecl= 5974fi 5975if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5977$as_echo "failed" >&6; } 5978else 5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 5980$as_echo "ok" >&6; } 5981fi 5982 5983# Response file support. 5984if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5985 nm_file_list_spec='@' 5986elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 5987 nm_file_list_spec='@' 5988fi 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6017$as_echo_n "checking for sysroot... " >&6; } 6018 6019# Check whether --with-sysroot was given. 6020if test "${with_sysroot+set}" = set; then : 6021 withval=$with_sysroot; 6022else 6023 with_sysroot=no 6024fi 6025 6026 6027lt_sysroot= 6028case ${with_sysroot} in #( 6029 yes) 6030 if test "$GCC" = yes; then 6031 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6032 fi 6033 ;; #( 6034 /*) 6035 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6036 ;; #( 6037 no|'') 6038 ;; #( 6039 *) 6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6041$as_echo "${with_sysroot}" >&6; } 6042 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6043 ;; 6044esac 6045 6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6047$as_echo "${lt_sysroot:-no}" >&6; } 6048 6049 6050 6051 6052 6053# Check whether --enable-libtool-lock was given. 6054if test "${enable_libtool_lock+set}" = set; then : 6055 enableval=$enable_libtool_lock; 6056fi 6057 6058test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6059 6060# Some flags need to be propagated to the compiler or linker for good 6061# libtool support. 6062case $host in 6063ia64-*-hpux*) 6064 # Find out which ABI we are using. 6065 echo 'int i;' > conftest.$ac_ext 6066 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6067 (eval $ac_compile) 2>&5 6068 ac_status=$? 6069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6070 test $ac_status = 0; }; then 6071 case `/usr/bin/file conftest.$ac_objext` in 6072 *ELF-32*) 6073 HPUX_IA64_MODE="32" 6074 ;; 6075 *ELF-64*) 6076 HPUX_IA64_MODE="64" 6077 ;; 6078 esac 6079 fi 6080 rm -rf conftest* 6081 ;; 6082*-*-irix6*) 6083 # Find out which ABI we are using. 6084 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6085 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6086 (eval $ac_compile) 2>&5 6087 ac_status=$? 6088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6089 test $ac_status = 0; }; then 6090 if test "$lt_cv_prog_gnu_ld" = yes; then 6091 case `/usr/bin/file conftest.$ac_objext` in 6092 *32-bit*) 6093 LD="${LD-ld} -melf32bsmip" 6094 ;; 6095 *N32*) 6096 LD="${LD-ld} -melf32bmipn32" 6097 ;; 6098 *64-bit*) 6099 LD="${LD-ld} -melf64bmip" 6100 ;; 6101 esac 6102 else 6103 case `/usr/bin/file conftest.$ac_objext` in 6104 *32-bit*) 6105 LD="${LD-ld} -32" 6106 ;; 6107 *N32*) 6108 LD="${LD-ld} -n32" 6109 ;; 6110 *64-bit*) 6111 LD="${LD-ld} -64" 6112 ;; 6113 esac 6114 fi 6115 fi 6116 rm -rf conftest* 6117 ;; 6118 6119x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6120s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6121 # Find out which ABI we are using. 6122 echo 'int i;' > conftest.$ac_ext 6123 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6124 (eval $ac_compile) 2>&5 6125 ac_status=$? 6126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6127 test $ac_status = 0; }; then 6128 case `/usr/bin/file conftest.o` in 6129 *32-bit*) 6130 case $host in 6131 x86_64-*kfreebsd*-gnu) 6132 LD="${LD-ld} -m elf_i386_fbsd" 6133 ;; 6134 x86_64-*linux*) 6135 LD="${LD-ld} -m elf_i386" 6136 ;; 6137 ppc64-*linux*|powerpc64-*linux*) 6138 LD="${LD-ld} -m elf32ppclinux" 6139 ;; 6140 s390x-*linux*) 6141 LD="${LD-ld} -m elf_s390" 6142 ;; 6143 sparc64-*linux*) 6144 LD="${LD-ld} -m elf32_sparc" 6145 ;; 6146 esac 6147 ;; 6148 *64-bit*) 6149 case $host in 6150 x86_64-*kfreebsd*-gnu) 6151 LD="${LD-ld} -m elf_x86_64_fbsd" 6152 ;; 6153 x86_64-*linux*) 6154 LD="${LD-ld} -m elf_x86_64" 6155 ;; 6156 ppc*-*linux*|powerpc*-*linux*) 6157 LD="${LD-ld} -m elf64ppc" 6158 ;; 6159 s390*-*linux*|s390*-*tpf*) 6160 LD="${LD-ld} -m elf64_s390" 6161 ;; 6162 sparc*-*linux*) 6163 LD="${LD-ld} -m elf64_sparc" 6164 ;; 6165 esac 6166 ;; 6167 esac 6168 fi 6169 rm -rf conftest* 6170 ;; 6171 6172*-*-sco3.2v5*) 6173 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6174 SAVE_CFLAGS="$CFLAGS" 6175 CFLAGS="$CFLAGS -belf" 6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6177$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6178if ${lt_cv_cc_needs_belf+:} false; then : 6179 $as_echo_n "(cached) " >&6 6180else 6181 ac_ext=c 6182ac_cpp='$CPP $CPPFLAGS' 6183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6185ac_compiler_gnu=$ac_cv_c_compiler_gnu 6186 6187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6188/* end confdefs.h. */ 6189 6190int 6191main () 6192{ 6193 6194 ; 6195 return 0; 6196} 6197_ACEOF 6198if ac_fn_c_try_link "$LINENO"; then : 6199 lt_cv_cc_needs_belf=yes 6200else 6201 lt_cv_cc_needs_belf=no 6202fi 6203rm -f core conftest.err conftest.$ac_objext \ 6204 conftest$ac_exeext conftest.$ac_ext 6205 ac_ext=c 6206ac_cpp='$CPP $CPPFLAGS' 6207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6209ac_compiler_gnu=$ac_cv_c_compiler_gnu 6210 6211fi 6212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6213$as_echo "$lt_cv_cc_needs_belf" >&6; } 6214 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6215 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6216 CFLAGS="$SAVE_CFLAGS" 6217 fi 6218 ;; 6219sparc*-*solaris*) 6220 # Find out which ABI we are using. 6221 echo 'int i;' > conftest.$ac_ext 6222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6223 (eval $ac_compile) 2>&5 6224 ac_status=$? 6225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6226 test $ac_status = 0; }; then 6227 case `/usr/bin/file conftest.o` in 6228 *64-bit*) 6229 case $lt_cv_prog_gnu_ld in 6230 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6231 *) 6232 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6233 LD="${LD-ld} -64" 6234 fi 6235 ;; 6236 esac 6237 ;; 6238 esac 6239 fi 6240 rm -rf conftest* 6241 ;; 6242esac 6243 6244need_locks="$enable_libtool_lock" 6245 6246if test -n "$ac_tool_prefix"; then 6247 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6248set dummy ${ac_tool_prefix}mt; ac_word=$2 6249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6250$as_echo_n "checking for $ac_word... " >&6; } 6251if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6252 $as_echo_n "(cached) " >&6 6253else 6254 if test -n "$MANIFEST_TOOL"; then 6255 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6256else 6257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6258for as_dir in $PATH 6259do 6260 IFS=$as_save_IFS 6261 test -z "$as_dir" && as_dir=. 6262 for ac_exec_ext in '' $ac_executable_extensions; do 6263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6264 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6266 break 2 6267 fi 6268done 6269 done 6270IFS=$as_save_IFS 6271 6272fi 6273fi 6274MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6275if test -n "$MANIFEST_TOOL"; then 6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6277$as_echo "$MANIFEST_TOOL" >&6; } 6278else 6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6280$as_echo "no" >&6; } 6281fi 6282 6283 6284fi 6285if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6286 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6287 # Extract the first word of "mt", so it can be a program name with args. 6288set dummy mt; ac_word=$2 6289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6290$as_echo_n "checking for $ac_word... " >&6; } 6291if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6292 $as_echo_n "(cached) " >&6 6293else 6294 if test -n "$ac_ct_MANIFEST_TOOL"; then 6295 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6296else 6297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6298for as_dir in $PATH 6299do 6300 IFS=$as_save_IFS 6301 test -z "$as_dir" && as_dir=. 6302 for ac_exec_ext in '' $ac_executable_extensions; do 6303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6304 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6306 break 2 6307 fi 6308done 6309 done 6310IFS=$as_save_IFS 6311 6312fi 6313fi 6314ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6315if test -n "$ac_ct_MANIFEST_TOOL"; then 6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6317$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6318else 6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6320$as_echo "no" >&6; } 6321fi 6322 6323 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6324 MANIFEST_TOOL=":" 6325 else 6326 case $cross_compiling:$ac_tool_warned in 6327yes:) 6328{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6329$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6330ac_tool_warned=yes ;; 6331esac 6332 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6333 fi 6334else 6335 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6336fi 6337 6338test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6340$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6341if ${lt_cv_path_mainfest_tool+:} false; then : 6342 $as_echo_n "(cached) " >&6 6343else 6344 lt_cv_path_mainfest_tool=no 6345 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6346 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6347 cat conftest.err >&5 6348 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6349 lt_cv_path_mainfest_tool=yes 6350 fi 6351 rm -f conftest* 6352fi 6353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6354$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6355if test "x$lt_cv_path_mainfest_tool" != xyes; then 6356 MANIFEST_TOOL=: 6357fi 6358 6359 6360 6361 6362 6363 6364 case $host_os in 6365 rhapsody* | darwin*) 6366 if test -n "$ac_tool_prefix"; then 6367 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6368set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6370$as_echo_n "checking for $ac_word... " >&6; } 6371if ${ac_cv_prog_DSYMUTIL+:} false; then : 6372 $as_echo_n "(cached) " >&6 6373else 6374 if test -n "$DSYMUTIL"; then 6375 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6376else 6377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6378for as_dir in $PATH 6379do 6380 IFS=$as_save_IFS 6381 test -z "$as_dir" && as_dir=. 6382 for ac_exec_ext in '' $ac_executable_extensions; do 6383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6384 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6386 break 2 6387 fi 6388done 6389 done 6390IFS=$as_save_IFS 6391 6392fi 6393fi 6394DSYMUTIL=$ac_cv_prog_DSYMUTIL 6395if test -n "$DSYMUTIL"; then 6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6397$as_echo "$DSYMUTIL" >&6; } 6398else 6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6400$as_echo "no" >&6; } 6401fi 6402 6403 6404fi 6405if test -z "$ac_cv_prog_DSYMUTIL"; then 6406 ac_ct_DSYMUTIL=$DSYMUTIL 6407 # Extract the first word of "dsymutil", so it can be a program name with args. 6408set dummy dsymutil; ac_word=$2 6409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6410$as_echo_n "checking for $ac_word... " >&6; } 6411if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6412 $as_echo_n "(cached) " >&6 6413else 6414 if test -n "$ac_ct_DSYMUTIL"; then 6415 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6416else 6417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6418for as_dir in $PATH 6419do 6420 IFS=$as_save_IFS 6421 test -z "$as_dir" && as_dir=. 6422 for ac_exec_ext in '' $ac_executable_extensions; do 6423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6424 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6426 break 2 6427 fi 6428done 6429 done 6430IFS=$as_save_IFS 6431 6432fi 6433fi 6434ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6435if test -n "$ac_ct_DSYMUTIL"; then 6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6437$as_echo "$ac_ct_DSYMUTIL" >&6; } 6438else 6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6440$as_echo "no" >&6; } 6441fi 6442 6443 if test "x$ac_ct_DSYMUTIL" = x; then 6444 DSYMUTIL=":" 6445 else 6446 case $cross_compiling:$ac_tool_warned in 6447yes:) 6448{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6449$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6450ac_tool_warned=yes ;; 6451esac 6452 DSYMUTIL=$ac_ct_DSYMUTIL 6453 fi 6454else 6455 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6456fi 6457 6458 if test -n "$ac_tool_prefix"; then 6459 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6460set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6462$as_echo_n "checking for $ac_word... " >&6; } 6463if ${ac_cv_prog_NMEDIT+:} false; then : 6464 $as_echo_n "(cached) " >&6 6465else 6466 if test -n "$NMEDIT"; then 6467 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6468else 6469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6470for as_dir in $PATH 6471do 6472 IFS=$as_save_IFS 6473 test -z "$as_dir" && as_dir=. 6474 for ac_exec_ext in '' $ac_executable_extensions; do 6475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6476 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6478 break 2 6479 fi 6480done 6481 done 6482IFS=$as_save_IFS 6483 6484fi 6485fi 6486NMEDIT=$ac_cv_prog_NMEDIT 6487if test -n "$NMEDIT"; then 6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6489$as_echo "$NMEDIT" >&6; } 6490else 6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6492$as_echo "no" >&6; } 6493fi 6494 6495 6496fi 6497if test -z "$ac_cv_prog_NMEDIT"; then 6498 ac_ct_NMEDIT=$NMEDIT 6499 # Extract the first word of "nmedit", so it can be a program name with args. 6500set dummy nmedit; ac_word=$2 6501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6502$as_echo_n "checking for $ac_word... " >&6; } 6503if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6504 $as_echo_n "(cached) " >&6 6505else 6506 if test -n "$ac_ct_NMEDIT"; then 6507 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6508else 6509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6510for as_dir in $PATH 6511do 6512 IFS=$as_save_IFS 6513 test -z "$as_dir" && as_dir=. 6514 for ac_exec_ext in '' $ac_executable_extensions; do 6515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6516 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6518 break 2 6519 fi 6520done 6521 done 6522IFS=$as_save_IFS 6523 6524fi 6525fi 6526ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6527if test -n "$ac_ct_NMEDIT"; then 6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6529$as_echo "$ac_ct_NMEDIT" >&6; } 6530else 6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6532$as_echo "no" >&6; } 6533fi 6534 6535 if test "x$ac_ct_NMEDIT" = x; then 6536 NMEDIT=":" 6537 else 6538 case $cross_compiling:$ac_tool_warned in 6539yes:) 6540{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6541$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6542ac_tool_warned=yes ;; 6543esac 6544 NMEDIT=$ac_ct_NMEDIT 6545 fi 6546else 6547 NMEDIT="$ac_cv_prog_NMEDIT" 6548fi 6549 6550 if test -n "$ac_tool_prefix"; then 6551 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6552set dummy ${ac_tool_prefix}lipo; ac_word=$2 6553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6554$as_echo_n "checking for $ac_word... " >&6; } 6555if ${ac_cv_prog_LIPO+:} false; then : 6556 $as_echo_n "(cached) " >&6 6557else 6558 if test -n "$LIPO"; then 6559 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6560else 6561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6562for as_dir in $PATH 6563do 6564 IFS=$as_save_IFS 6565 test -z "$as_dir" && as_dir=. 6566 for ac_exec_ext in '' $ac_executable_extensions; do 6567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6568 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6570 break 2 6571 fi 6572done 6573 done 6574IFS=$as_save_IFS 6575 6576fi 6577fi 6578LIPO=$ac_cv_prog_LIPO 6579if test -n "$LIPO"; then 6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6581$as_echo "$LIPO" >&6; } 6582else 6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6584$as_echo "no" >&6; } 6585fi 6586 6587 6588fi 6589if test -z "$ac_cv_prog_LIPO"; then 6590 ac_ct_LIPO=$LIPO 6591 # Extract the first word of "lipo", so it can be a program name with args. 6592set dummy lipo; ac_word=$2 6593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6594$as_echo_n "checking for $ac_word... " >&6; } 6595if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6596 $as_echo_n "(cached) " >&6 6597else 6598 if test -n "$ac_ct_LIPO"; then 6599 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6600else 6601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6602for as_dir in $PATH 6603do 6604 IFS=$as_save_IFS 6605 test -z "$as_dir" && as_dir=. 6606 for ac_exec_ext in '' $ac_executable_extensions; do 6607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6608 ac_cv_prog_ac_ct_LIPO="lipo" 6609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6610 break 2 6611 fi 6612done 6613 done 6614IFS=$as_save_IFS 6615 6616fi 6617fi 6618ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6619if test -n "$ac_ct_LIPO"; then 6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6621$as_echo "$ac_ct_LIPO" >&6; } 6622else 6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6624$as_echo "no" >&6; } 6625fi 6626 6627 if test "x$ac_ct_LIPO" = x; then 6628 LIPO=":" 6629 else 6630 case $cross_compiling:$ac_tool_warned in 6631yes:) 6632{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6633$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6634ac_tool_warned=yes ;; 6635esac 6636 LIPO=$ac_ct_LIPO 6637 fi 6638else 6639 LIPO="$ac_cv_prog_LIPO" 6640fi 6641 6642 if test -n "$ac_tool_prefix"; then 6643 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6644set dummy ${ac_tool_prefix}otool; ac_word=$2 6645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6646$as_echo_n "checking for $ac_word... " >&6; } 6647if ${ac_cv_prog_OTOOL+:} false; then : 6648 $as_echo_n "(cached) " >&6 6649else 6650 if test -n "$OTOOL"; then 6651 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6652else 6653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6654for as_dir in $PATH 6655do 6656 IFS=$as_save_IFS 6657 test -z "$as_dir" && as_dir=. 6658 for ac_exec_ext in '' $ac_executable_extensions; do 6659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6660 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6662 break 2 6663 fi 6664done 6665 done 6666IFS=$as_save_IFS 6667 6668fi 6669fi 6670OTOOL=$ac_cv_prog_OTOOL 6671if test -n "$OTOOL"; then 6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6673$as_echo "$OTOOL" >&6; } 6674else 6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6676$as_echo "no" >&6; } 6677fi 6678 6679 6680fi 6681if test -z "$ac_cv_prog_OTOOL"; then 6682 ac_ct_OTOOL=$OTOOL 6683 # Extract the first word of "otool", so it can be a program name with args. 6684set dummy otool; ac_word=$2 6685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6686$as_echo_n "checking for $ac_word... " >&6; } 6687if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6688 $as_echo_n "(cached) " >&6 6689else 6690 if test -n "$ac_ct_OTOOL"; then 6691 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6692else 6693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6694for as_dir in $PATH 6695do 6696 IFS=$as_save_IFS 6697 test -z "$as_dir" && as_dir=. 6698 for ac_exec_ext in '' $ac_executable_extensions; do 6699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6700 ac_cv_prog_ac_ct_OTOOL="otool" 6701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6702 break 2 6703 fi 6704done 6705 done 6706IFS=$as_save_IFS 6707 6708fi 6709fi 6710ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6711if test -n "$ac_ct_OTOOL"; then 6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6713$as_echo "$ac_ct_OTOOL" >&6; } 6714else 6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6716$as_echo "no" >&6; } 6717fi 6718 6719 if test "x$ac_ct_OTOOL" = x; then 6720 OTOOL=":" 6721 else 6722 case $cross_compiling:$ac_tool_warned in 6723yes:) 6724{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6725$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6726ac_tool_warned=yes ;; 6727esac 6728 OTOOL=$ac_ct_OTOOL 6729 fi 6730else 6731 OTOOL="$ac_cv_prog_OTOOL" 6732fi 6733 6734 if test -n "$ac_tool_prefix"; then 6735 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6736set dummy ${ac_tool_prefix}otool64; ac_word=$2 6737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6738$as_echo_n "checking for $ac_word... " >&6; } 6739if ${ac_cv_prog_OTOOL64+:} false; then : 6740 $as_echo_n "(cached) " >&6 6741else 6742 if test -n "$OTOOL64"; then 6743 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6744else 6745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6746for as_dir in $PATH 6747do 6748 IFS=$as_save_IFS 6749 test -z "$as_dir" && as_dir=. 6750 for ac_exec_ext in '' $ac_executable_extensions; do 6751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6752 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6754 break 2 6755 fi 6756done 6757 done 6758IFS=$as_save_IFS 6759 6760fi 6761fi 6762OTOOL64=$ac_cv_prog_OTOOL64 6763if test -n "$OTOOL64"; then 6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6765$as_echo "$OTOOL64" >&6; } 6766else 6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6768$as_echo "no" >&6; } 6769fi 6770 6771 6772fi 6773if test -z "$ac_cv_prog_OTOOL64"; then 6774 ac_ct_OTOOL64=$OTOOL64 6775 # Extract the first word of "otool64", so it can be a program name with args. 6776set dummy otool64; ac_word=$2 6777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6778$as_echo_n "checking for $ac_word... " >&6; } 6779if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 6780 $as_echo_n "(cached) " >&6 6781else 6782 if test -n "$ac_ct_OTOOL64"; then 6783 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6784else 6785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6786for as_dir in $PATH 6787do 6788 IFS=$as_save_IFS 6789 test -z "$as_dir" && as_dir=. 6790 for ac_exec_ext in '' $ac_executable_extensions; do 6791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6792 ac_cv_prog_ac_ct_OTOOL64="otool64" 6793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6794 break 2 6795 fi 6796done 6797 done 6798IFS=$as_save_IFS 6799 6800fi 6801fi 6802ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6803if test -n "$ac_ct_OTOOL64"; then 6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6805$as_echo "$ac_ct_OTOOL64" >&6; } 6806else 6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6808$as_echo "no" >&6; } 6809fi 6810 6811 if test "x$ac_ct_OTOOL64" = x; then 6812 OTOOL64=":" 6813 else 6814 case $cross_compiling:$ac_tool_warned in 6815yes:) 6816{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6817$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6818ac_tool_warned=yes ;; 6819esac 6820 OTOOL64=$ac_ct_OTOOL64 6821 fi 6822else 6823 OTOOL64="$ac_cv_prog_OTOOL64" 6824fi 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 6853$as_echo_n "checking for -single_module linker flag... " >&6; } 6854if ${lt_cv_apple_cc_single_mod+:} false; then : 6855 $as_echo_n "(cached) " >&6 6856else 6857 lt_cv_apple_cc_single_mod=no 6858 if test -z "${LT_MULTI_MODULE}"; then 6859 # By default we will add the -single_module flag. You can override 6860 # by either setting the environment variable LT_MULTI_MODULE 6861 # non-empty at configure time, or by adding -multi_module to the 6862 # link flags. 6863 rm -rf libconftest.dylib* 6864 echo "int foo(void){return 1;}" > conftest.c 6865 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6866-dynamiclib -Wl,-single_module conftest.c" >&5 6867 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6868 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6869 _lt_result=$? 6870 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6871 lt_cv_apple_cc_single_mod=yes 6872 else 6873 cat conftest.err >&5 6874 fi 6875 rm -rf libconftest.dylib* 6876 rm -f conftest.* 6877 fi 6878fi 6879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 6880$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 6882$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6883if ${lt_cv_ld_exported_symbols_list+:} false; then : 6884 $as_echo_n "(cached) " >&6 6885else 6886 lt_cv_ld_exported_symbols_list=no 6887 save_LDFLAGS=$LDFLAGS 6888 echo "_main" > conftest.sym 6889 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6891/* end confdefs.h. */ 6892 6893int 6894main () 6895{ 6896 6897 ; 6898 return 0; 6899} 6900_ACEOF 6901if ac_fn_c_try_link "$LINENO"; then : 6902 lt_cv_ld_exported_symbols_list=yes 6903else 6904 lt_cv_ld_exported_symbols_list=no 6905fi 6906rm -f core conftest.err conftest.$ac_objext \ 6907 conftest$ac_exeext conftest.$ac_ext 6908 LDFLAGS="$save_LDFLAGS" 6909 6910fi 6911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 6912$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 6914$as_echo_n "checking for -force_load linker flag... " >&6; } 6915if ${lt_cv_ld_force_load+:} false; then : 6916 $as_echo_n "(cached) " >&6 6917else 6918 lt_cv_ld_force_load=no 6919 cat > conftest.c << _LT_EOF 6920int forced_loaded() { return 2;} 6921_LT_EOF 6922 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 6923 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 6924 echo "$AR cru libconftest.a conftest.o" >&5 6925 $AR cru libconftest.a conftest.o 2>&5 6926 echo "$RANLIB libconftest.a" >&5 6927 $RANLIB libconftest.a 2>&5 6928 cat > conftest.c << _LT_EOF 6929int main() { return 0;} 6930_LT_EOF 6931 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 6932 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 6933 _lt_result=$? 6934 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 6935 lt_cv_ld_force_load=yes 6936 else 6937 cat conftest.err >&5 6938 fi 6939 rm -f conftest.err libconftest.a conftest conftest.c 6940 rm -rf conftest.dSYM 6941 6942fi 6943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 6944$as_echo "$lt_cv_ld_force_load" >&6; } 6945 case $host_os in 6946 rhapsody* | darwin1.[012]) 6947 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6948 darwin1.*) 6949 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6950 darwin*) # darwin 5.x on 6951 # if running on 10.5 or later, the deployment target defaults 6952 # to the OS version, if on x86, and 10.4, the deployment 6953 # target defaults to 10.4. Don't you love it? 6954 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6955 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6956 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6957 10.[012]*) 6958 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6959 10.*) 6960 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6961 esac 6962 ;; 6963 esac 6964 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6965 _lt_dar_single_mod='$single_module' 6966 fi 6967 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6968 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6969 else 6970 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6971 fi 6972 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 6973 _lt_dsymutil='~$DSYMUTIL $lib || :' 6974 else 6975 _lt_dsymutil= 6976 fi 6977 ;; 6978 esac 6979 6980ac_ext=c 6981ac_cpp='$CPP $CPPFLAGS' 6982ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6983ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6984ac_compiler_gnu=$ac_cv_c_compiler_gnu 6985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6986$as_echo_n "checking how to run the C preprocessor... " >&6; } 6987# On Suns, sometimes $CPP names a directory. 6988if test -n "$CPP" && test -d "$CPP"; then 6989 CPP= 6990fi 6991if test -z "$CPP"; then 6992 if ${ac_cv_prog_CPP+:} false; then : 6993 $as_echo_n "(cached) " >&6 6994else 6995 # Double quotes because CPP needs to be expanded 6996 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6997 do 6998 ac_preproc_ok=false 6999for ac_c_preproc_warn_flag in '' yes 7000do 7001 # Use a header file that comes with gcc, so configuring glibc 7002 # with a fresh cross-compiler works. 7003 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7004 # <limits.h> exists even on freestanding compilers. 7005 # On the NeXT, cc -E runs the code through the compiler's parser, 7006 # not just through cpp. "Syntax error" is here to catch this case. 7007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7008/* end confdefs.h. */ 7009#ifdef __STDC__ 7010# include <limits.h> 7011#else 7012# include <assert.h> 7013#endif 7014 Syntax error 7015_ACEOF 7016if ac_fn_c_try_cpp "$LINENO"; then : 7017 7018else 7019 # Broken: fails on valid input. 7020continue 7021fi 7022rm -f conftest.err conftest.i conftest.$ac_ext 7023 7024 # OK, works on sane cases. Now check whether nonexistent headers 7025 # can be detected and how. 7026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7027/* end confdefs.h. */ 7028#include <ac_nonexistent.h> 7029_ACEOF 7030if ac_fn_c_try_cpp "$LINENO"; then : 7031 # Broken: success on invalid input. 7032continue 7033else 7034 # Passes both tests. 7035ac_preproc_ok=: 7036break 7037fi 7038rm -f conftest.err conftest.i conftest.$ac_ext 7039 7040done 7041# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7042rm -f conftest.i conftest.err conftest.$ac_ext 7043if $ac_preproc_ok; then : 7044 break 7045fi 7046 7047 done 7048 ac_cv_prog_CPP=$CPP 7049 7050fi 7051 CPP=$ac_cv_prog_CPP 7052else 7053 ac_cv_prog_CPP=$CPP 7054fi 7055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7056$as_echo "$CPP" >&6; } 7057ac_preproc_ok=false 7058for ac_c_preproc_warn_flag in '' yes 7059do 7060 # Use a header file that comes with gcc, so configuring glibc 7061 # with a fresh cross-compiler works. 7062 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7063 # <limits.h> exists even on freestanding compilers. 7064 # On the NeXT, cc -E runs the code through the compiler's parser, 7065 # not just through cpp. "Syntax error" is here to catch this case. 7066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7067/* end confdefs.h. */ 7068#ifdef __STDC__ 7069# include <limits.h> 7070#else 7071# include <assert.h> 7072#endif 7073 Syntax error 7074_ACEOF 7075if ac_fn_c_try_cpp "$LINENO"; then : 7076 7077else 7078 # Broken: fails on valid input. 7079continue 7080fi 7081rm -f conftest.err conftest.i conftest.$ac_ext 7082 7083 # OK, works on sane cases. Now check whether nonexistent headers 7084 # can be detected and how. 7085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7086/* end confdefs.h. */ 7087#include <ac_nonexistent.h> 7088_ACEOF 7089if ac_fn_c_try_cpp "$LINENO"; then : 7090 # Broken: success on invalid input. 7091continue 7092else 7093 # Passes both tests. 7094ac_preproc_ok=: 7095break 7096fi 7097rm -f conftest.err conftest.i conftest.$ac_ext 7098 7099done 7100# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7101rm -f conftest.i conftest.err conftest.$ac_ext 7102if $ac_preproc_ok; then : 7103 7104else 7105 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7106$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7107as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7108See \`config.log' for more details" "$LINENO" 5; } 7109fi 7110 7111ac_ext=c 7112ac_cpp='$CPP $CPPFLAGS' 7113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7115ac_compiler_gnu=$ac_cv_c_compiler_gnu 7116 7117 7118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7119$as_echo_n "checking for ANSI C header files... " >&6; } 7120if ${ac_cv_header_stdc+:} false; then : 7121 $as_echo_n "(cached) " >&6 7122else 7123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7124/* end confdefs.h. */ 7125#include <stdlib.h> 7126#include <stdarg.h> 7127#include <string.h> 7128#include <float.h> 7129 7130int 7131main () 7132{ 7133 7134 ; 7135 return 0; 7136} 7137_ACEOF 7138if ac_fn_c_try_compile "$LINENO"; then : 7139 ac_cv_header_stdc=yes 7140else 7141 ac_cv_header_stdc=no 7142fi 7143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7144 7145if test $ac_cv_header_stdc = yes; then 7146 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7148/* end confdefs.h. */ 7149#include <string.h> 7150 7151_ACEOF 7152if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7153 $EGREP "memchr" >/dev/null 2>&1; then : 7154 7155else 7156 ac_cv_header_stdc=no 7157fi 7158rm -f conftest* 7159 7160fi 7161 7162if test $ac_cv_header_stdc = yes; then 7163 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7165/* end confdefs.h. */ 7166#include <stdlib.h> 7167 7168_ACEOF 7169if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7170 $EGREP "free" >/dev/null 2>&1; then : 7171 7172else 7173 ac_cv_header_stdc=no 7174fi 7175rm -f conftest* 7176 7177fi 7178 7179if test $ac_cv_header_stdc = yes; then 7180 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7181 if test "$cross_compiling" = yes; then : 7182 : 7183else 7184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7185/* end confdefs.h. */ 7186#include <ctype.h> 7187#include <stdlib.h> 7188#if ((' ' & 0x0FF) == 0x020) 7189# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7190# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7191#else 7192# define ISLOWER(c) \ 7193 (('a' <= (c) && (c) <= 'i') \ 7194 || ('j' <= (c) && (c) <= 'r') \ 7195 || ('s' <= (c) && (c) <= 'z')) 7196# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7197#endif 7198 7199#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7200int 7201main () 7202{ 7203 int i; 7204 for (i = 0; i < 256; i++) 7205 if (XOR (islower (i), ISLOWER (i)) 7206 || toupper (i) != TOUPPER (i)) 7207 return 2; 7208 return 0; 7209} 7210_ACEOF 7211if ac_fn_c_try_run "$LINENO"; then : 7212 7213else 7214 ac_cv_header_stdc=no 7215fi 7216rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7217 conftest.$ac_objext conftest.beam conftest.$ac_ext 7218fi 7219 7220fi 7221fi 7222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7223$as_echo "$ac_cv_header_stdc" >&6; } 7224if test $ac_cv_header_stdc = yes; then 7225 7226$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7227 7228fi 7229 7230# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7231for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7232 inttypes.h stdint.h unistd.h 7233do : 7234 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7235ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7236" 7237if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7238 cat >>confdefs.h <<_ACEOF 7239#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7240_ACEOF 7241 7242fi 7243 7244done 7245 7246 7247for ac_header in dlfcn.h 7248do : 7249 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7250" 7251if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7252 cat >>confdefs.h <<_ACEOF 7253#define HAVE_DLFCN_H 1 7254_ACEOF 7255 7256fi 7257 7258done 7259 7260 7261 7262 7263 7264# Set options 7265 7266 7267 7268 enable_dlopen=no 7269 7270 7271 enable_win32_dll=no 7272 7273 7274 # Check whether --enable-shared was given. 7275if test "${enable_shared+set}" = set; then : 7276 enableval=$enable_shared; p=${PACKAGE-default} 7277 case $enableval in 7278 yes) enable_shared=yes ;; 7279 no) enable_shared=no ;; 7280 *) 7281 enable_shared=no 7282 # Look at the argument we got. We use all the common list separators. 7283 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7284 for pkg in $enableval; do 7285 IFS="$lt_save_ifs" 7286 if test "X$pkg" = "X$p"; then 7287 enable_shared=yes 7288 fi 7289 done 7290 IFS="$lt_save_ifs" 7291 ;; 7292 esac 7293else 7294 enable_shared=yes 7295fi 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 # Check whether --enable-static was given. 7306if test "${enable_static+set}" = set; then : 7307 enableval=$enable_static; p=${PACKAGE-default} 7308 case $enableval in 7309 yes) enable_static=yes ;; 7310 no) enable_static=no ;; 7311 *) 7312 enable_static=no 7313 # Look at the argument we got. We use all the common list separators. 7314 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7315 for pkg in $enableval; do 7316 IFS="$lt_save_ifs" 7317 if test "X$pkg" = "X$p"; then 7318 enable_static=yes 7319 fi 7320 done 7321 IFS="$lt_save_ifs" 7322 ;; 7323 esac 7324else 7325 enable_static=yes 7326fi 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337# Check whether --with-pic was given. 7338if test "${with_pic+set}" = set; then : 7339 withval=$with_pic; pic_mode="$withval" 7340else 7341 pic_mode=default 7342fi 7343 7344 7345test -z "$pic_mode" && pic_mode=default 7346 7347 7348 7349 7350 7351 7352 7353 # Check whether --enable-fast-install was given. 7354if test "${enable_fast_install+set}" = set; then : 7355 enableval=$enable_fast_install; p=${PACKAGE-default} 7356 case $enableval in 7357 yes) enable_fast_install=yes ;; 7358 no) enable_fast_install=no ;; 7359 *) 7360 enable_fast_install=no 7361 # Look at the argument we got. We use all the common list separators. 7362 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7363 for pkg in $enableval; do 7364 IFS="$lt_save_ifs" 7365 if test "X$pkg" = "X$p"; then 7366 enable_fast_install=yes 7367 fi 7368 done 7369 IFS="$lt_save_ifs" 7370 ;; 7371 esac 7372else 7373 enable_fast_install=yes 7374fi 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386# This can be used to rebuild libtool when needed 7387LIBTOOL_DEPS="$ltmain" 7388 7389# Always use our own libtool. 7390LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417test -z "$LN_S" && LN_S="ln -s" 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432if test -n "${ZSH_VERSION+set}" ; then 7433 setopt NO_GLOB_SUBST 7434fi 7435 7436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7437$as_echo_n "checking for objdir... " >&6; } 7438if ${lt_cv_objdir+:} false; then : 7439 $as_echo_n "(cached) " >&6 7440else 7441 rm -f .libs 2>/dev/null 7442mkdir .libs 2>/dev/null 7443if test -d .libs; then 7444 lt_cv_objdir=.libs 7445else 7446 # MS-DOS does not allow filenames that begin with a dot. 7447 lt_cv_objdir=_libs 7448fi 7449rmdir .libs 2>/dev/null 7450fi 7451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7452$as_echo "$lt_cv_objdir" >&6; } 7453objdir=$lt_cv_objdir 7454 7455 7456 7457 7458 7459cat >>confdefs.h <<_ACEOF 7460#define LT_OBJDIR "$lt_cv_objdir/" 7461_ACEOF 7462 7463 7464 7465 7466case $host_os in 7467aix3*) 7468 # AIX sometimes has problems with the GCC collect2 program. For some 7469 # reason, if we set the COLLECT_NAMES environment variable, the problems 7470 # vanish in a puff of smoke. 7471 if test "X${COLLECT_NAMES+set}" != Xset; then 7472 COLLECT_NAMES= 7473 export COLLECT_NAMES 7474 fi 7475 ;; 7476esac 7477 7478# Global variables: 7479ofile=libtool 7480can_build_shared=yes 7481 7482# All known linkers require a `.a' archive for static linking (except MSVC, 7483# which needs '.lib'). 7484libext=a 7485 7486with_gnu_ld="$lt_cv_prog_gnu_ld" 7487 7488old_CC="$CC" 7489old_CFLAGS="$CFLAGS" 7490 7491# Set sane defaults for various variables 7492test -z "$CC" && CC=cc 7493test -z "$LTCC" && LTCC=$CC 7494test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7495test -z "$LD" && LD=ld 7496test -z "$ac_objext" && ac_objext=o 7497 7498for cc_temp in $compiler""; do 7499 case $cc_temp in 7500 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7501 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7502 \-*) ;; 7503 *) break;; 7504 esac 7505done 7506cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7507 7508 7509# Only perform the check for file, if the check method requires it 7510test -z "$MAGIC_CMD" && MAGIC_CMD=file 7511case $deplibs_check_method in 7512file_magic*) 7513 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7515$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7516if ${lt_cv_path_MAGIC_CMD+:} false; then : 7517 $as_echo_n "(cached) " >&6 7518else 7519 case $MAGIC_CMD in 7520[\\/*] | ?:[\\/]*) 7521 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7522 ;; 7523*) 7524 lt_save_MAGIC_CMD="$MAGIC_CMD" 7525 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7526 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7527 for ac_dir in $ac_dummy; do 7528 IFS="$lt_save_ifs" 7529 test -z "$ac_dir" && ac_dir=. 7530 if test -f $ac_dir/${ac_tool_prefix}file; then 7531 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7532 if test -n "$file_magic_test_file"; then 7533 case $deplibs_check_method in 7534 "file_magic "*) 7535 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7536 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7537 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7538 $EGREP "$file_magic_regex" > /dev/null; then 7539 : 7540 else 7541 cat <<_LT_EOF 1>&2 7542 7543*** Warning: the command libtool uses to detect shared libraries, 7544*** $file_magic_cmd, produces output that libtool cannot recognize. 7545*** The result is that libtool may fail to recognize shared libraries 7546*** as such. This will affect the creation of libtool libraries that 7547*** depend on shared libraries, but programs linked with such libtool 7548*** libraries will work regardless of this problem. Nevertheless, you 7549*** may want to report the problem to your system manager and/or to 7550*** bug-libtool@gnu.org 7551 7552_LT_EOF 7553 fi ;; 7554 esac 7555 fi 7556 break 7557 fi 7558 done 7559 IFS="$lt_save_ifs" 7560 MAGIC_CMD="$lt_save_MAGIC_CMD" 7561 ;; 7562esac 7563fi 7564 7565MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7566if test -n "$MAGIC_CMD"; then 7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7568$as_echo "$MAGIC_CMD" >&6; } 7569else 7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7571$as_echo "no" >&6; } 7572fi 7573 7574 7575 7576 7577 7578if test -z "$lt_cv_path_MAGIC_CMD"; then 7579 if test -n "$ac_tool_prefix"; then 7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7581$as_echo_n "checking for file... " >&6; } 7582if ${lt_cv_path_MAGIC_CMD+:} false; then : 7583 $as_echo_n "(cached) " >&6 7584else 7585 case $MAGIC_CMD in 7586[\\/*] | ?:[\\/]*) 7587 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7588 ;; 7589*) 7590 lt_save_MAGIC_CMD="$MAGIC_CMD" 7591 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7592 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7593 for ac_dir in $ac_dummy; do 7594 IFS="$lt_save_ifs" 7595 test -z "$ac_dir" && ac_dir=. 7596 if test -f $ac_dir/file; then 7597 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7598 if test -n "$file_magic_test_file"; then 7599 case $deplibs_check_method in 7600 "file_magic "*) 7601 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7602 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7603 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7604 $EGREP "$file_magic_regex" > /dev/null; then 7605 : 7606 else 7607 cat <<_LT_EOF 1>&2 7608 7609*** Warning: the command libtool uses to detect shared libraries, 7610*** $file_magic_cmd, produces output that libtool cannot recognize. 7611*** The result is that libtool may fail to recognize shared libraries 7612*** as such. This will affect the creation of libtool libraries that 7613*** depend on shared libraries, but programs linked with such libtool 7614*** libraries will work regardless of this problem. Nevertheless, you 7615*** may want to report the problem to your system manager and/or to 7616*** bug-libtool@gnu.org 7617 7618_LT_EOF 7619 fi ;; 7620 esac 7621 fi 7622 break 7623 fi 7624 done 7625 IFS="$lt_save_ifs" 7626 MAGIC_CMD="$lt_save_MAGIC_CMD" 7627 ;; 7628esac 7629fi 7630 7631MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7632if test -n "$MAGIC_CMD"; then 7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7634$as_echo "$MAGIC_CMD" >&6; } 7635else 7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7637$as_echo "no" >&6; } 7638fi 7639 7640 7641 else 7642 MAGIC_CMD=: 7643 fi 7644fi 7645 7646 fi 7647 ;; 7648esac 7649 7650# Use C for the default configuration in the libtool script 7651 7652lt_save_CC="$CC" 7653ac_ext=c 7654ac_cpp='$CPP $CPPFLAGS' 7655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7657ac_compiler_gnu=$ac_cv_c_compiler_gnu 7658 7659 7660# Source file extension for C test sources. 7661ac_ext=c 7662 7663# Object file extension for compiled C test sources. 7664objext=o 7665objext=$objext 7666 7667# Code to be used in simple compile tests 7668lt_simple_compile_test_code="int some_variable = 0;" 7669 7670# Code to be used in simple link tests 7671lt_simple_link_test_code='int main(){return(0);}' 7672 7673 7674 7675 7676 7677 7678 7679# If no C compiler was specified, use CC. 7680LTCC=${LTCC-"$CC"} 7681 7682# If no C compiler flags were specified, use CFLAGS. 7683LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7684 7685# Allow CC to be a program name with arguments. 7686compiler=$CC 7687 7688# Save the default compiler, since it gets overwritten when the other 7689# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7690compiler_DEFAULT=$CC 7691 7692# save warnings/boilerplate of simple test code 7693ac_outfile=conftest.$ac_objext 7694echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7695eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7696_lt_compiler_boilerplate=`cat conftest.err` 7697$RM conftest* 7698 7699ac_outfile=conftest.$ac_objext 7700echo "$lt_simple_link_test_code" >conftest.$ac_ext 7701eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7702_lt_linker_boilerplate=`cat conftest.err` 7703$RM -r conftest* 7704 7705 7706if test -n "$compiler"; then 7707 7708lt_prog_compiler_no_builtin_flag= 7709 7710if test "$GCC" = yes; then 7711 case $cc_basename in 7712 nvcc*) 7713 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7714 *) 7715 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7716 esac 7717 7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7719$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7720if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7721 $as_echo_n "(cached) " >&6 7722else 7723 lt_cv_prog_compiler_rtti_exceptions=no 7724 ac_outfile=conftest.$ac_objext 7725 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7726 lt_compiler_flag="-fno-rtti -fno-exceptions" 7727 # Insert the option either (1) after the last *FLAGS variable, or 7728 # (2) before a word containing "conftest.", or (3) at the end. 7729 # Note that $ac_compile itself does not contain backslashes and begins 7730 # with a dollar sign (not a hyphen), so the echo should work correctly. 7731 # The option is referenced via a variable to avoid confusing sed. 7732 lt_compile=`echo "$ac_compile" | $SED \ 7733 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7734 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7735 -e 's:$: $lt_compiler_flag:'` 7736 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7737 (eval "$lt_compile" 2>conftest.err) 7738 ac_status=$? 7739 cat conftest.err >&5 7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7741 if (exit $ac_status) && test -s "$ac_outfile"; then 7742 # The compiler can only warn and ignore the option if not recognized 7743 # So say no if there are warnings other than the usual output. 7744 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7745 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7746 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7747 lt_cv_prog_compiler_rtti_exceptions=yes 7748 fi 7749 fi 7750 $RM conftest* 7751 7752fi 7753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7754$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7755 7756if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7757 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7758else 7759 : 7760fi 7761 7762fi 7763 7764 7765 7766 7767 7768 7769 lt_prog_compiler_wl= 7770lt_prog_compiler_pic= 7771lt_prog_compiler_static= 7772 7773 7774 if test "$GCC" = yes; then 7775 lt_prog_compiler_wl='-Wl,' 7776 lt_prog_compiler_static='-static' 7777 7778 case $host_os in 7779 aix*) 7780 # All AIX code is PIC. 7781 if test "$host_cpu" = ia64; then 7782 # AIX 5 now supports IA64 processor 7783 lt_prog_compiler_static='-Bstatic' 7784 fi 7785 ;; 7786 7787 amigaos*) 7788 case $host_cpu in 7789 powerpc) 7790 # see comment about AmigaOS4 .so support 7791 lt_prog_compiler_pic='-fPIC' 7792 ;; 7793 m68k) 7794 # FIXME: we need at least 68020 code to build shared libraries, but 7795 # adding the `-m68020' flag to GCC prevents building anything better, 7796 # like `-m68040'. 7797 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7798 ;; 7799 esac 7800 ;; 7801 7802 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7803 # PIC is the default for these OSes. 7804 ;; 7805 7806 mingw* | cygwin* | pw32* | os2* | cegcc*) 7807 # This hack is so that the source file can tell whether it is being 7808 # built for inclusion in a dll (and should export symbols for example). 7809 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7810 # (--disable-auto-import) libraries 7811 lt_prog_compiler_pic='-DDLL_EXPORT' 7812 ;; 7813 7814 darwin* | rhapsody*) 7815 # PIC is the default on this platform 7816 # Common symbols not allowed in MH_DYLIB files 7817 lt_prog_compiler_pic='-fno-common' 7818 ;; 7819 7820 haiku*) 7821 # PIC is the default for Haiku. 7822 # The "-static" flag exists, but is broken. 7823 lt_prog_compiler_static= 7824 ;; 7825 7826 hpux*) 7827 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7828 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7829 # sets the default TLS model and affects inlining. 7830 case $host_cpu in 7831 hppa*64*) 7832 # +Z the default 7833 ;; 7834 *) 7835 lt_prog_compiler_pic='-fPIC' 7836 ;; 7837 esac 7838 ;; 7839 7840 interix[3-9]*) 7841 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7842 # Instead, we relocate shared libraries at runtime. 7843 ;; 7844 7845 msdosdjgpp*) 7846 # Just because we use GCC doesn't mean we suddenly get shared libraries 7847 # on systems that don't support them. 7848 lt_prog_compiler_can_build_shared=no 7849 enable_shared=no 7850 ;; 7851 7852 *nto* | *qnx*) 7853 # QNX uses GNU C++, but need to define -shared option too, otherwise 7854 # it will coredump. 7855 lt_prog_compiler_pic='-fPIC -shared' 7856 ;; 7857 7858 sysv4*MP*) 7859 if test -d /usr/nec; then 7860 lt_prog_compiler_pic=-Kconform_pic 7861 fi 7862 ;; 7863 7864 *) 7865 lt_prog_compiler_pic='-fPIC' 7866 ;; 7867 esac 7868 7869 case $cc_basename in 7870 nvcc*) # Cuda Compiler Driver 2.2 7871 lt_prog_compiler_wl='-Xlinker ' 7872 lt_prog_compiler_pic='-Xcompiler -fPIC' 7873 ;; 7874 esac 7875 else 7876 # PORTME Check for flag to pass linker flags through the system compiler. 7877 case $host_os in 7878 aix*) 7879 lt_prog_compiler_wl='-Wl,' 7880 if test "$host_cpu" = ia64; then 7881 # AIX 5 now supports IA64 processor 7882 lt_prog_compiler_static='-Bstatic' 7883 else 7884 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7885 fi 7886 ;; 7887 7888 mingw* | cygwin* | pw32* | os2* | cegcc*) 7889 # This hack is so that the source file can tell whether it is being 7890 # built for inclusion in a dll (and should export symbols for example). 7891 lt_prog_compiler_pic='-DDLL_EXPORT' 7892 ;; 7893 7894 hpux9* | hpux10* | hpux11*) 7895 lt_prog_compiler_wl='-Wl,' 7896 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7897 # not for PA HP-UX. 7898 case $host_cpu in 7899 hppa*64*|ia64*) 7900 # +Z the default 7901 ;; 7902 *) 7903 lt_prog_compiler_pic='+Z' 7904 ;; 7905 esac 7906 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7907 lt_prog_compiler_static='${wl}-a ${wl}archive' 7908 ;; 7909 7910 irix5* | irix6* | nonstopux*) 7911 lt_prog_compiler_wl='-Wl,' 7912 # PIC (with -KPIC) is the default. 7913 lt_prog_compiler_static='-non_shared' 7914 ;; 7915 7916 linux* | k*bsd*-gnu | kopensolaris*-gnu) 7917 case $cc_basename in 7918 # old Intel for x86_64 which still supported -KPIC. 7919 ecc*) 7920 lt_prog_compiler_wl='-Wl,' 7921 lt_prog_compiler_pic='-KPIC' 7922 lt_prog_compiler_static='-static' 7923 ;; 7924 # icc used to be incompatible with GCC. 7925 # ICC 10 doesn't accept -KPIC any more. 7926 icc* | ifort*) 7927 lt_prog_compiler_wl='-Wl,' 7928 lt_prog_compiler_pic='-fPIC' 7929 lt_prog_compiler_static='-static' 7930 ;; 7931 # Lahey Fortran 8.1. 7932 lf95*) 7933 lt_prog_compiler_wl='-Wl,' 7934 lt_prog_compiler_pic='--shared' 7935 lt_prog_compiler_static='--static' 7936 ;; 7937 nagfor*) 7938 # NAG Fortran compiler 7939 lt_prog_compiler_wl='-Wl,-Wl,,' 7940 lt_prog_compiler_pic='-PIC' 7941 lt_prog_compiler_static='-Bstatic' 7942 ;; 7943 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 7944 # Portland Group compilers (*not* the Pentium gcc compiler, 7945 # which looks to be a dead project) 7946 lt_prog_compiler_wl='-Wl,' 7947 lt_prog_compiler_pic='-fpic' 7948 lt_prog_compiler_static='-Bstatic' 7949 ;; 7950 ccc*) 7951 lt_prog_compiler_wl='-Wl,' 7952 # All Alpha code is PIC. 7953 lt_prog_compiler_static='-non_shared' 7954 ;; 7955 xl* | bgxl* | bgf* | mpixl*) 7956 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 7957 lt_prog_compiler_wl='-Wl,' 7958 lt_prog_compiler_pic='-qpic' 7959 lt_prog_compiler_static='-qstaticlink' 7960 ;; 7961 *) 7962 case `$CC -V 2>&1 | sed 5q` in 7963 *Sun\ F* | *Sun*Fortran*) 7964 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7965 lt_prog_compiler_pic='-KPIC' 7966 lt_prog_compiler_static='-Bstatic' 7967 lt_prog_compiler_wl='' 7968 ;; 7969 *Sun\ C*) 7970 # Sun C 5.9 7971 lt_prog_compiler_pic='-KPIC' 7972 lt_prog_compiler_static='-Bstatic' 7973 lt_prog_compiler_wl='-Wl,' 7974 ;; 7975 esac 7976 ;; 7977 esac 7978 ;; 7979 7980 newsos6) 7981 lt_prog_compiler_pic='-KPIC' 7982 lt_prog_compiler_static='-Bstatic' 7983 ;; 7984 7985 *nto* | *qnx*) 7986 # QNX uses GNU C++, but need to define -shared option too, otherwise 7987 # it will coredump. 7988 lt_prog_compiler_pic='-fPIC -shared' 7989 ;; 7990 7991 osf3* | osf4* | osf5*) 7992 lt_prog_compiler_wl='-Wl,' 7993 # All OSF/1 code is PIC. 7994 lt_prog_compiler_static='-non_shared' 7995 ;; 7996 7997 rdos*) 7998 lt_prog_compiler_static='-non_shared' 7999 ;; 8000 8001 solaris*) 8002 lt_prog_compiler_pic='-KPIC' 8003 lt_prog_compiler_static='-Bstatic' 8004 case $cc_basename in 8005 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8006 lt_prog_compiler_wl='-Qoption ld ';; 8007 *) 8008 lt_prog_compiler_wl='-Wl,';; 8009 esac 8010 ;; 8011 8012 sunos4*) 8013 lt_prog_compiler_wl='-Qoption ld ' 8014 lt_prog_compiler_pic='-PIC' 8015 lt_prog_compiler_static='-Bstatic' 8016 ;; 8017 8018 sysv4 | sysv4.2uw2* | sysv4.3*) 8019 lt_prog_compiler_wl='-Wl,' 8020 lt_prog_compiler_pic='-KPIC' 8021 lt_prog_compiler_static='-Bstatic' 8022 ;; 8023 8024 sysv4*MP*) 8025 if test -d /usr/nec ;then 8026 lt_prog_compiler_pic='-Kconform_pic' 8027 lt_prog_compiler_static='-Bstatic' 8028 fi 8029 ;; 8030 8031 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8032 lt_prog_compiler_wl='-Wl,' 8033 lt_prog_compiler_pic='-KPIC' 8034 lt_prog_compiler_static='-Bstatic' 8035 ;; 8036 8037 unicos*) 8038 lt_prog_compiler_wl='-Wl,' 8039 lt_prog_compiler_can_build_shared=no 8040 ;; 8041 8042 uts4*) 8043 lt_prog_compiler_pic='-pic' 8044 lt_prog_compiler_static='-Bstatic' 8045 ;; 8046 8047 *) 8048 lt_prog_compiler_can_build_shared=no 8049 ;; 8050 esac 8051 fi 8052 8053case $host_os in 8054 # For platforms which do not support PIC, -DPIC is meaningless: 8055 *djgpp*) 8056 lt_prog_compiler_pic= 8057 ;; 8058 *) 8059 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8060 ;; 8061esac 8062 8063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8064$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8065if ${lt_cv_prog_compiler_pic+:} false; then : 8066 $as_echo_n "(cached) " >&6 8067else 8068 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8069fi 8070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8071$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8072lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8073 8074# 8075# Check to make sure the PIC flag actually works. 8076# 8077if test -n "$lt_prog_compiler_pic"; then 8078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8079$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8080if ${lt_cv_prog_compiler_pic_works+:} false; then : 8081 $as_echo_n "(cached) " >&6 8082else 8083 lt_cv_prog_compiler_pic_works=no 8084 ac_outfile=conftest.$ac_objext 8085 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8086 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8087 # Insert the option either (1) after the last *FLAGS variable, or 8088 # (2) before a word containing "conftest.", or (3) at the end. 8089 # Note that $ac_compile itself does not contain backslashes and begins 8090 # with a dollar sign (not a hyphen), so the echo should work correctly. 8091 # The option is referenced via a variable to avoid confusing sed. 8092 lt_compile=`echo "$ac_compile" | $SED \ 8093 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8094 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8095 -e 's:$: $lt_compiler_flag:'` 8096 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8097 (eval "$lt_compile" 2>conftest.err) 8098 ac_status=$? 8099 cat conftest.err >&5 8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8101 if (exit $ac_status) && test -s "$ac_outfile"; then 8102 # The compiler can only warn and ignore the option if not recognized 8103 # So say no if there are warnings other than the usual output. 8104 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8105 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8106 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8107 lt_cv_prog_compiler_pic_works=yes 8108 fi 8109 fi 8110 $RM conftest* 8111 8112fi 8113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8114$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8115 8116if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8117 case $lt_prog_compiler_pic in 8118 "" | " "*) ;; 8119 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8120 esac 8121else 8122 lt_prog_compiler_pic= 8123 lt_prog_compiler_can_build_shared=no 8124fi 8125 8126fi 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138# 8139# Check to make sure the static flag actually works. 8140# 8141wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8143$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8144if ${lt_cv_prog_compiler_static_works+:} false; then : 8145 $as_echo_n "(cached) " >&6 8146else 8147 lt_cv_prog_compiler_static_works=no 8148 save_LDFLAGS="$LDFLAGS" 8149 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8150 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8151 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8152 # The linker can only warn and ignore the option if not recognized 8153 # So say no if there are warnings 8154 if test -s conftest.err; then 8155 # Append any errors to the config.log. 8156 cat conftest.err 1>&5 8157 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8158 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8159 if diff conftest.exp conftest.er2 >/dev/null; then 8160 lt_cv_prog_compiler_static_works=yes 8161 fi 8162 else 8163 lt_cv_prog_compiler_static_works=yes 8164 fi 8165 fi 8166 $RM -r conftest* 8167 LDFLAGS="$save_LDFLAGS" 8168 8169fi 8170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8171$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8172 8173if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8174 : 8175else 8176 lt_prog_compiler_static= 8177fi 8178 8179 8180 8181 8182 8183 8184 8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8186$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8187if ${lt_cv_prog_compiler_c_o+:} false; then : 8188 $as_echo_n "(cached) " >&6 8189else 8190 lt_cv_prog_compiler_c_o=no 8191 $RM -r conftest 2>/dev/null 8192 mkdir conftest 8193 cd conftest 8194 mkdir out 8195 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8196 8197 lt_compiler_flag="-o out/conftest2.$ac_objext" 8198 # Insert the option either (1) after the last *FLAGS variable, or 8199 # (2) before a word containing "conftest.", or (3) at the end. 8200 # Note that $ac_compile itself does not contain backslashes and begins 8201 # with a dollar sign (not a hyphen), so the echo should work correctly. 8202 lt_compile=`echo "$ac_compile" | $SED \ 8203 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8204 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8205 -e 's:$: $lt_compiler_flag:'` 8206 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8207 (eval "$lt_compile" 2>out/conftest.err) 8208 ac_status=$? 8209 cat out/conftest.err >&5 8210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8211 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8212 then 8213 # The compiler can only warn and ignore the option if not recognized 8214 # So say no if there are warnings 8215 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8216 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8217 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8218 lt_cv_prog_compiler_c_o=yes 8219 fi 8220 fi 8221 chmod u+w . 2>&5 8222 $RM conftest* 8223 # SGI C++ compiler will create directory out/ii_files/ for 8224 # template instantiation 8225 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8226 $RM out/* && rmdir out 8227 cd .. 8228 $RM -r conftest 8229 $RM conftest* 8230 8231fi 8232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8233$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8234 8235 8236 8237 8238 8239 8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8241$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8242if ${lt_cv_prog_compiler_c_o+:} false; then : 8243 $as_echo_n "(cached) " >&6 8244else 8245 lt_cv_prog_compiler_c_o=no 8246 $RM -r conftest 2>/dev/null 8247 mkdir conftest 8248 cd conftest 8249 mkdir out 8250 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8251 8252 lt_compiler_flag="-o out/conftest2.$ac_objext" 8253 # Insert the option either (1) after the last *FLAGS variable, or 8254 # (2) before a word containing "conftest.", or (3) at the end. 8255 # Note that $ac_compile itself does not contain backslashes and begins 8256 # with a dollar sign (not a hyphen), so the echo should work correctly. 8257 lt_compile=`echo "$ac_compile" | $SED \ 8258 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8259 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8260 -e 's:$: $lt_compiler_flag:'` 8261 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8262 (eval "$lt_compile" 2>out/conftest.err) 8263 ac_status=$? 8264 cat out/conftest.err >&5 8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8266 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8267 then 8268 # The compiler can only warn and ignore the option if not recognized 8269 # So say no if there are warnings 8270 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8271 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8272 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8273 lt_cv_prog_compiler_c_o=yes 8274 fi 8275 fi 8276 chmod u+w . 2>&5 8277 $RM conftest* 8278 # SGI C++ compiler will create directory out/ii_files/ for 8279 # template instantiation 8280 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8281 $RM out/* && rmdir out 8282 cd .. 8283 $RM -r conftest 8284 $RM conftest* 8285 8286fi 8287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8288$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8289 8290 8291 8292 8293hard_links="nottested" 8294if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8295 # do not overwrite the value of need_locks provided by the user 8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8297$as_echo_n "checking if we can lock with hard links... " >&6; } 8298 hard_links=yes 8299 $RM conftest* 8300 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8301 touch conftest.a 8302 ln conftest.a conftest.b 2>&5 || hard_links=no 8303 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8305$as_echo "$hard_links" >&6; } 8306 if test "$hard_links" = no; then 8307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8308$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8309 need_locks=warn 8310 fi 8311else 8312 need_locks=no 8313fi 8314 8315 8316 8317 8318 8319 8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8321$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8322 8323 runpath_var= 8324 allow_undefined_flag= 8325 always_export_symbols=no 8326 archive_cmds= 8327 archive_expsym_cmds= 8328 compiler_needs_object=no 8329 enable_shared_with_static_runtimes=no 8330 export_dynamic_flag_spec= 8331 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8332 hardcode_automatic=no 8333 hardcode_direct=no 8334 hardcode_direct_absolute=no 8335 hardcode_libdir_flag_spec= 8336 hardcode_libdir_flag_spec_ld= 8337 hardcode_libdir_separator= 8338 hardcode_minus_L=no 8339 hardcode_shlibpath_var=unsupported 8340 inherit_rpath=no 8341 link_all_deplibs=unknown 8342 module_cmds= 8343 module_expsym_cmds= 8344 old_archive_from_new_cmds= 8345 old_archive_from_expsyms_cmds= 8346 thread_safe_flag_spec= 8347 whole_archive_flag_spec= 8348 # include_expsyms should be a list of space-separated symbols to be *always* 8349 # included in the symbol list 8350 include_expsyms= 8351 # exclude_expsyms can be an extended regexp of symbols to exclude 8352 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8353 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8354 # as well as any symbol that contains `d'. 8355 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8356 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8357 # platforms (ab)use it in PIC code, but their linkers get confused if 8358 # the symbol is explicitly referenced. Since portable code cannot 8359 # rely on this symbol name, it's probably fine to never include it in 8360 # preloaded symbol tables. 8361 # Exclude shared library initialization/finalization symbols. 8362 extract_expsyms_cmds= 8363 8364 case $host_os in 8365 cygwin* | mingw* | pw32* | cegcc*) 8366 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8367 # When not using gcc, we currently assume that we are using 8368 # Microsoft Visual C++. 8369 if test "$GCC" != yes; then 8370 with_gnu_ld=no 8371 fi 8372 ;; 8373 interix*) 8374 # we just hope/assume this is gcc and not c89 (= MSVC++) 8375 with_gnu_ld=yes 8376 ;; 8377 openbsd*) 8378 with_gnu_ld=no 8379 ;; 8380 esac 8381 8382 ld_shlibs=yes 8383 8384 # On some targets, GNU ld is compatible enough with the native linker 8385 # that we're better off using the native interface for both. 8386 lt_use_gnu_ld_interface=no 8387 if test "$with_gnu_ld" = yes; then 8388 case $host_os in 8389 aix*) 8390 # The AIX port of GNU ld has always aspired to compatibility 8391 # with the native linker. However, as the warning in the GNU ld 8392 # block says, versions before 2.19.5* couldn't really create working 8393 # shared libraries, regardless of the interface used. 8394 case `$LD -v 2>&1` in 8395 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8396 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8397 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8398 *) 8399 lt_use_gnu_ld_interface=yes 8400 ;; 8401 esac 8402 ;; 8403 *) 8404 lt_use_gnu_ld_interface=yes 8405 ;; 8406 esac 8407 fi 8408 8409 if test "$lt_use_gnu_ld_interface" = yes; then 8410 # If archive_cmds runs LD, not CC, wlarc should be empty 8411 wlarc='${wl}' 8412 8413 # Set some defaults for GNU ld with shared library support. These 8414 # are reset later if shared libraries are not supported. Putting them 8415 # here allows them to be overridden if necessary. 8416 runpath_var=LD_RUN_PATH 8417 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8418 export_dynamic_flag_spec='${wl}--export-dynamic' 8419 # ancient GNU ld didn't support --whole-archive et. al. 8420 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8421 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8422 else 8423 whole_archive_flag_spec= 8424 fi 8425 supports_anon_versioning=no 8426 case `$LD -v 2>&1` in 8427 *GNU\ gold*) supports_anon_versioning=yes ;; 8428 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8429 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8430 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8431 *\ 2.11.*) ;; # other 2.11 versions 8432 *) supports_anon_versioning=yes ;; 8433 esac 8434 8435 # See if GNU ld supports shared libraries. 8436 case $host_os in 8437 aix[3-9]*) 8438 # On AIX/PPC, the GNU linker is very broken 8439 if test "$host_cpu" != ia64; then 8440 ld_shlibs=no 8441 cat <<_LT_EOF 1>&2 8442 8443*** Warning: the GNU linker, at least up to release 2.19, is reported 8444*** to be unable to reliably create shared libraries on AIX. 8445*** Therefore, libtool is disabling shared libraries support. If you 8446*** really care for shared libraries, you may want to install binutils 8447*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8448*** You will then need to restart the configuration process. 8449 8450_LT_EOF 8451 fi 8452 ;; 8453 8454 amigaos*) 8455 case $host_cpu in 8456 powerpc) 8457 # see comment about AmigaOS4 .so support 8458 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8459 archive_expsym_cmds='' 8460 ;; 8461 m68k) 8462 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)' 8463 hardcode_libdir_flag_spec='-L$libdir' 8464 hardcode_minus_L=yes 8465 ;; 8466 esac 8467 ;; 8468 8469 beos*) 8470 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8471 allow_undefined_flag=unsupported 8472 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8473 # support --undefined. This deserves some investigation. FIXME 8474 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8475 else 8476 ld_shlibs=no 8477 fi 8478 ;; 8479 8480 cygwin* | mingw* | pw32* | cegcc*) 8481 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8482 # as there is no search path for DLLs. 8483 hardcode_libdir_flag_spec='-L$libdir' 8484 export_dynamic_flag_spec='${wl}--export-all-symbols' 8485 allow_undefined_flag=unsupported 8486 always_export_symbols=no 8487 enable_shared_with_static_runtimes=yes 8488 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' 8489 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8490 8491 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8492 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8493 # If the export-symbols file already is a .def file (1st line 8494 # is EXPORTS), use it as is; otherwise, prepend... 8495 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8496 cp $export_symbols $output_objdir/$soname.def; 8497 else 8498 echo EXPORTS > $output_objdir/$soname.def; 8499 cat $export_symbols >> $output_objdir/$soname.def; 8500 fi~ 8501 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8502 else 8503 ld_shlibs=no 8504 fi 8505 ;; 8506 8507 haiku*) 8508 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8509 link_all_deplibs=yes 8510 ;; 8511 8512 interix[3-9]*) 8513 hardcode_direct=no 8514 hardcode_shlibpath_var=no 8515 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8516 export_dynamic_flag_spec='${wl}-E' 8517 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8518 # Instead, shared libraries are loaded at an image base (0x10000000 by 8519 # default) and relocated if they conflict, which is a slow very memory 8520 # consuming and fragmenting process. To avoid this, we pick a random, 8521 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8522 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8523 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8524 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' 8525 ;; 8526 8527 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8528 tmp_diet=no 8529 if test "$host_os" = linux-dietlibc; then 8530 case $cc_basename in 8531 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8532 esac 8533 fi 8534 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8535 && test "$tmp_diet" = no 8536 then 8537 tmp_addflag=' $pic_flag' 8538 tmp_sharedflag='-shared' 8539 case $cc_basename,$host_cpu in 8540 pgcc*) # Portland Group C compiler 8541 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' 8542 tmp_addflag=' $pic_flag' 8543 ;; 8544 pgf77* | pgf90* | pgf95* | pgfortran*) 8545 # Portland Group f77 and f90 compilers 8546 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' 8547 tmp_addflag=' $pic_flag -Mnomain' ;; 8548 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8549 tmp_addflag=' -i_dynamic' ;; 8550 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8551 tmp_addflag=' -i_dynamic -nofor_main' ;; 8552 ifc* | ifort*) # Intel Fortran compiler 8553 tmp_addflag=' -nofor_main' ;; 8554 lf95*) # Lahey Fortran 8.1 8555 whole_archive_flag_spec= 8556 tmp_sharedflag='--shared' ;; 8557 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8558 tmp_sharedflag='-qmkshrobj' 8559 tmp_addflag= ;; 8560 nvcc*) # Cuda Compiler Driver 2.2 8561 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' 8562 compiler_needs_object=yes 8563 ;; 8564 esac 8565 case `$CC -V 2>&1 | sed 5q` in 8566 *Sun\ C*) # Sun C 5.9 8567 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' 8568 compiler_needs_object=yes 8569 tmp_sharedflag='-G' ;; 8570 *Sun\ F*) # Sun Fortran 8.3 8571 tmp_sharedflag='-G' ;; 8572 esac 8573 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8574 8575 if test "x$supports_anon_versioning" = xyes; then 8576 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8577 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8578 echo "local: *; };" >> $output_objdir/$libname.ver~ 8579 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8580 fi 8581 8582 case $cc_basename in 8583 xlf* | bgf* | bgxlf* | mpixlf*) 8584 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8585 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8586 hardcode_libdir_flag_spec= 8587 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8588 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8589 if test "x$supports_anon_versioning" = xyes; then 8590 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8591 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8592 echo "local: *; };" >> $output_objdir/$libname.ver~ 8593 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8594 fi 8595 ;; 8596 esac 8597 else 8598 ld_shlibs=no 8599 fi 8600 ;; 8601 8602 netbsd*) 8603 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8604 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8605 wlarc= 8606 else 8607 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8608 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8609 fi 8610 ;; 8611 8612 solaris*) 8613 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8614 ld_shlibs=no 8615 cat <<_LT_EOF 1>&2 8616 8617*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8618*** create shared libraries on Solaris systems. Therefore, libtool 8619*** is disabling shared libraries support. We urge you to upgrade GNU 8620*** binutils to release 2.9.1 or newer. Another option is to modify 8621*** your PATH or compiler configuration so that the native linker is 8622*** used, and then restart. 8623 8624_LT_EOF 8625 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8626 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8627 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8628 else 8629 ld_shlibs=no 8630 fi 8631 ;; 8632 8633 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8634 case `$LD -v 2>&1` in 8635 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8636 ld_shlibs=no 8637 cat <<_LT_EOF 1>&2 8638 8639*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8640*** reliably create shared libraries on SCO systems. Therefore, libtool 8641*** is disabling shared libraries support. We urge you to upgrade GNU 8642*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8643*** your PATH or compiler configuration so that the native linker is 8644*** used, and then restart. 8645 8646_LT_EOF 8647 ;; 8648 *) 8649 # For security reasons, it is highly recommended that you always 8650 # use absolute paths for naming shared libraries, and exclude the 8651 # DT_RUNPATH tag from executables and libraries. But doing so 8652 # requires that you compile everything twice, which is a pain. 8653 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8654 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8655 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8656 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8657 else 8658 ld_shlibs=no 8659 fi 8660 ;; 8661 esac 8662 ;; 8663 8664 sunos4*) 8665 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8666 wlarc= 8667 hardcode_direct=yes 8668 hardcode_shlibpath_var=no 8669 ;; 8670 8671 *) 8672 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8673 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8674 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8675 else 8676 ld_shlibs=no 8677 fi 8678 ;; 8679 esac 8680 8681 if test "$ld_shlibs" = no; then 8682 runpath_var= 8683 hardcode_libdir_flag_spec= 8684 export_dynamic_flag_spec= 8685 whole_archive_flag_spec= 8686 fi 8687 else 8688 # PORTME fill in a description of your system's linker (not GNU ld) 8689 case $host_os in 8690 aix3*) 8691 allow_undefined_flag=unsupported 8692 always_export_symbols=yes 8693 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' 8694 # Note: this linker hardcodes the directories in LIBPATH if there 8695 # are no directories specified by -L. 8696 hardcode_minus_L=yes 8697 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8698 # Neither direct hardcoding nor static linking is supported with a 8699 # broken collect2. 8700 hardcode_direct=unsupported 8701 fi 8702 ;; 8703 8704 aix[4-9]*) 8705 if test "$host_cpu" = ia64; then 8706 # On IA64, the linker does run time linking by default, so we don't 8707 # have to do anything special. 8708 aix_use_runtimelinking=no 8709 exp_sym_flag='-Bexport' 8710 no_entry_flag="" 8711 else 8712 # If we're using GNU nm, then we don't want the "-C" option. 8713 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8714 # Also, AIX nm treats weak defined symbols like other global 8715 # defined symbols, whereas GNU nm marks them as "W". 8716 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8717 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' 8718 else 8719 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' 8720 fi 8721 aix_use_runtimelinking=no 8722 8723 # Test if we are trying to use run time linking or normal 8724 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8725 # need to do runtime linking. 8726 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8727 for ld_flag in $LDFLAGS; do 8728 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8729 aix_use_runtimelinking=yes 8730 break 8731 fi 8732 done 8733 ;; 8734 esac 8735 8736 exp_sym_flag='-bexport' 8737 no_entry_flag='-bnoentry' 8738 fi 8739 8740 # When large executables or shared objects are built, AIX ld can 8741 # have problems creating the table of contents. If linking a library 8742 # or program results in "error TOC overflow" add -mminimal-toc to 8743 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8744 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8745 8746 archive_cmds='' 8747 hardcode_direct=yes 8748 hardcode_direct_absolute=yes 8749 hardcode_libdir_separator=':' 8750 link_all_deplibs=yes 8751 file_list_spec='${wl}-f,' 8752 8753 if test "$GCC" = yes; then 8754 case $host_os in aix4.[012]|aix4.[012].*) 8755 # We only want to do this on AIX 4.2 and lower, the check 8756 # below for broken collect2 doesn't work under 4.3+ 8757 collect2name=`${CC} -print-prog-name=collect2` 8758 if test -f "$collect2name" && 8759 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8760 then 8761 # We have reworked collect2 8762 : 8763 else 8764 # We have old collect2 8765 hardcode_direct=unsupported 8766 # It fails to find uninstalled libraries when the uninstalled 8767 # path is not listed in the libpath. Setting hardcode_minus_L 8768 # to unsupported forces relinking 8769 hardcode_minus_L=yes 8770 hardcode_libdir_flag_spec='-L$libdir' 8771 hardcode_libdir_separator= 8772 fi 8773 ;; 8774 esac 8775 shared_flag='-shared' 8776 if test "$aix_use_runtimelinking" = yes; then 8777 shared_flag="$shared_flag "'${wl}-G' 8778 fi 8779 else 8780 # not using gcc 8781 if test "$host_cpu" = ia64; then 8782 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8783 # chokes on -Wl,-G. The following line is correct: 8784 shared_flag='-G' 8785 else 8786 if test "$aix_use_runtimelinking" = yes; then 8787 shared_flag='${wl}-G' 8788 else 8789 shared_flag='${wl}-bM:SRE' 8790 fi 8791 fi 8792 fi 8793 8794 export_dynamic_flag_spec='${wl}-bexpall' 8795 # It seems that -bexpall does not export symbols beginning with 8796 # underscore (_), so it is better to generate a list of symbols to export. 8797 always_export_symbols=yes 8798 if test "$aix_use_runtimelinking" = yes; then 8799 # Warning - without using the other runtime loading flags (-brtl), 8800 # -berok will link without error, but may produce a broken library. 8801 allow_undefined_flag='-berok' 8802 # Determine the default libpath from the value encoded in an 8803 # empty executable. 8804 if test "${lt_cv_aix_libpath+set}" = set; then 8805 aix_libpath=$lt_cv_aix_libpath 8806else 8807 if ${lt_cv_aix_libpath_+:} false; then : 8808 $as_echo_n "(cached) " >&6 8809else 8810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8811/* end confdefs.h. */ 8812 8813int 8814main () 8815{ 8816 8817 ; 8818 return 0; 8819} 8820_ACEOF 8821if ac_fn_c_try_link "$LINENO"; then : 8822 8823 lt_aix_libpath_sed=' 8824 /Import File Strings/,/^$/ { 8825 /^0/ { 8826 s/^0 *\([^ ]*\) *$/\1/ 8827 p 8828 } 8829 }' 8830 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8831 # Check for a 64-bit object if we didn't find anything. 8832 if test -z "$lt_cv_aix_libpath_"; then 8833 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8834 fi 8835fi 8836rm -f core conftest.err conftest.$ac_objext \ 8837 conftest$ac_exeext conftest.$ac_ext 8838 if test -z "$lt_cv_aix_libpath_"; then 8839 lt_cv_aix_libpath_="/usr/lib:/lib" 8840 fi 8841 8842fi 8843 8844 aix_libpath=$lt_cv_aix_libpath_ 8845fi 8846 8847 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8848 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" 8849 else 8850 if test "$host_cpu" = ia64; then 8851 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8852 allow_undefined_flag="-z nodefs" 8853 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" 8854 else 8855 # Determine the default libpath from the value encoded in an 8856 # empty executable. 8857 if test "${lt_cv_aix_libpath+set}" = set; then 8858 aix_libpath=$lt_cv_aix_libpath 8859else 8860 if ${lt_cv_aix_libpath_+:} false; then : 8861 $as_echo_n "(cached) " >&6 8862else 8863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8864/* end confdefs.h. */ 8865 8866int 8867main () 8868{ 8869 8870 ; 8871 return 0; 8872} 8873_ACEOF 8874if ac_fn_c_try_link "$LINENO"; then : 8875 8876 lt_aix_libpath_sed=' 8877 /Import File Strings/,/^$/ { 8878 /^0/ { 8879 s/^0 *\([^ ]*\) *$/\1/ 8880 p 8881 } 8882 }' 8883 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8884 # Check for a 64-bit object if we didn't find anything. 8885 if test -z "$lt_cv_aix_libpath_"; then 8886 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8887 fi 8888fi 8889rm -f core conftest.err conftest.$ac_objext \ 8890 conftest$ac_exeext conftest.$ac_ext 8891 if test -z "$lt_cv_aix_libpath_"; then 8892 lt_cv_aix_libpath_="/usr/lib:/lib" 8893 fi 8894 8895fi 8896 8897 aix_libpath=$lt_cv_aix_libpath_ 8898fi 8899 8900 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8901 # Warning - without using the other run time loading flags, 8902 # -berok will link without error, but may produce a broken library. 8903 no_undefined_flag=' ${wl}-bernotok' 8904 allow_undefined_flag=' ${wl}-berok' 8905 if test "$with_gnu_ld" = yes; then 8906 # We only use this code for GNU lds that support --whole-archive. 8907 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 8908 else 8909 # Exported symbols can be pulled into shared objects from archives 8910 whole_archive_flag_spec='$convenience' 8911 fi 8912 archive_cmds_need_lc=yes 8913 # This is similar to how AIX traditionally builds its shared libraries. 8914 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' 8915 fi 8916 fi 8917 ;; 8918 8919 amigaos*) 8920 case $host_cpu in 8921 powerpc) 8922 # see comment about AmigaOS4 .so support 8923 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8924 archive_expsym_cmds='' 8925 ;; 8926 m68k) 8927 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)' 8928 hardcode_libdir_flag_spec='-L$libdir' 8929 hardcode_minus_L=yes 8930 ;; 8931 esac 8932 ;; 8933 8934 bsdi[45]*) 8935 export_dynamic_flag_spec=-rdynamic 8936 ;; 8937 8938 cygwin* | mingw* | pw32* | cegcc*) 8939 # When not using gcc, we currently assume that we are using 8940 # Microsoft Visual C++. 8941 # hardcode_libdir_flag_spec is actually meaningless, as there is 8942 # no search path for DLLs. 8943 case $cc_basename in 8944 cl*) 8945 # Native MSVC 8946 hardcode_libdir_flag_spec=' ' 8947 allow_undefined_flag=unsupported 8948 always_export_symbols=yes 8949 file_list_spec='@' 8950 # Tell ltmain to make .lib files, not .a files. 8951 libext=lib 8952 # Tell ltmain to make .dll files, not .so files. 8953 shrext_cmds=".dll" 8954 # FIXME: Setting linknames here is a bad hack. 8955 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 8956 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8957 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 8958 else 8959 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 8960 fi~ 8961 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 8962 linknames=' 8963 # The linker will not automatically build a static lib if we build a DLL. 8964 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 8965 enable_shared_with_static_runtimes=yes 8966 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8967 # Don't use ranlib 8968 old_postinstall_cmds='chmod 644 $oldlib' 8969 postlink_cmds='lt_outputfile="@OUTPUT@"~ 8970 lt_tool_outputfile="@TOOL_OUTPUT@"~ 8971 case $lt_outputfile in 8972 *.exe|*.EXE) ;; 8973 *) 8974 lt_outputfile="$lt_outputfile.exe" 8975 lt_tool_outputfile="$lt_tool_outputfile.exe" 8976 ;; 8977 esac~ 8978 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 8979 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 8980 $RM "$lt_outputfile.manifest"; 8981 fi' 8982 ;; 8983 *) 8984 # Assume MSVC wrapper 8985 hardcode_libdir_flag_spec=' ' 8986 allow_undefined_flag=unsupported 8987 # Tell ltmain to make .lib files, not .a files. 8988 libext=lib 8989 # Tell ltmain to make .dll files, not .so files. 8990 shrext_cmds=".dll" 8991 # FIXME: Setting linknames here is a bad hack. 8992 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 8993 # The linker will automatically build a .lib file if we build a DLL. 8994 old_archive_from_new_cmds='true' 8995 # FIXME: Should let the user specify the lib program. 8996 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8997 enable_shared_with_static_runtimes=yes 8998 ;; 8999 esac 9000 ;; 9001 9002 darwin* | rhapsody*) 9003 9004 9005 archive_cmds_need_lc=no 9006 hardcode_direct=no 9007 hardcode_automatic=yes 9008 hardcode_shlibpath_var=unsupported 9009 if test "$lt_cv_ld_force_load" = "yes"; then 9010 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\"`' 9011 else 9012 whole_archive_flag_spec='' 9013 fi 9014 link_all_deplibs=yes 9015 allow_undefined_flag="$_lt_dar_allow_undefined" 9016 case $cc_basename in 9017 ifort*) _lt_dar_can_shared=yes ;; 9018 *) _lt_dar_can_shared=$GCC ;; 9019 esac 9020 if test "$_lt_dar_can_shared" = "yes"; then 9021 output_verbose_link_cmd=func_echo_all 9022 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9023 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9024 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}" 9025 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}" 9026 9027 else 9028 ld_shlibs=no 9029 fi 9030 9031 ;; 9032 9033 dgux*) 9034 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9035 hardcode_libdir_flag_spec='-L$libdir' 9036 hardcode_shlibpath_var=no 9037 ;; 9038 9039 freebsd1*) 9040 ld_shlibs=no 9041 ;; 9042 9043 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9044 # support. Future versions do this automatically, but an explicit c++rt0.o 9045 # does not break anything, and helps significantly (at the cost of a little 9046 # extra space). 9047 freebsd2.2*) 9048 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9049 hardcode_libdir_flag_spec='-R$libdir' 9050 hardcode_direct=yes 9051 hardcode_shlibpath_var=no 9052 ;; 9053 9054 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9055 freebsd2*) 9056 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9057 hardcode_direct=yes 9058 hardcode_minus_L=yes 9059 hardcode_shlibpath_var=no 9060 ;; 9061 9062 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9063 freebsd* | dragonfly*) 9064 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9065 hardcode_libdir_flag_spec='-R$libdir' 9066 hardcode_direct=yes 9067 hardcode_shlibpath_var=no 9068 ;; 9069 9070 hpux9*) 9071 if test "$GCC" = yes; then 9072 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' 9073 else 9074 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' 9075 fi 9076 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9077 hardcode_libdir_separator=: 9078 hardcode_direct=yes 9079 9080 # hardcode_minus_L: Not really in the search PATH, 9081 # but as the default location of the library. 9082 hardcode_minus_L=yes 9083 export_dynamic_flag_spec='${wl}-E' 9084 ;; 9085 9086 hpux10*) 9087 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9088 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9089 else 9090 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9091 fi 9092 if test "$with_gnu_ld" = no; then 9093 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9094 hardcode_libdir_flag_spec_ld='+b $libdir' 9095 hardcode_libdir_separator=: 9096 hardcode_direct=yes 9097 hardcode_direct_absolute=yes 9098 export_dynamic_flag_spec='${wl}-E' 9099 # hardcode_minus_L: Not really in the search PATH, 9100 # but as the default location of the library. 9101 hardcode_minus_L=yes 9102 fi 9103 ;; 9104 9105 hpux11*) 9106 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9107 case $host_cpu in 9108 hppa*64*) 9109 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9110 ;; 9111 ia64*) 9112 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9113 ;; 9114 *) 9115 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9116 ;; 9117 esac 9118 else 9119 case $host_cpu in 9120 hppa*64*) 9121 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9122 ;; 9123 ia64*) 9124 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9125 ;; 9126 *) 9127 9128 # Older versions of the 11.00 compiler do not understand -b yet 9129 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9131$as_echo_n "checking if $CC understands -b... " >&6; } 9132if ${lt_cv_prog_compiler__b+:} false; then : 9133 $as_echo_n "(cached) " >&6 9134else 9135 lt_cv_prog_compiler__b=no 9136 save_LDFLAGS="$LDFLAGS" 9137 LDFLAGS="$LDFLAGS -b" 9138 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9139 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9140 # The linker can only warn and ignore the option if not recognized 9141 # So say no if there are warnings 9142 if test -s conftest.err; then 9143 # Append any errors to the config.log. 9144 cat conftest.err 1>&5 9145 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9146 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9147 if diff conftest.exp conftest.er2 >/dev/null; then 9148 lt_cv_prog_compiler__b=yes 9149 fi 9150 else 9151 lt_cv_prog_compiler__b=yes 9152 fi 9153 fi 9154 $RM -r conftest* 9155 LDFLAGS="$save_LDFLAGS" 9156 9157fi 9158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9159$as_echo "$lt_cv_prog_compiler__b" >&6; } 9160 9161if test x"$lt_cv_prog_compiler__b" = xyes; then 9162 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9163else 9164 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9165fi 9166 9167 ;; 9168 esac 9169 fi 9170 if test "$with_gnu_ld" = no; then 9171 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9172 hardcode_libdir_separator=: 9173 9174 case $host_cpu in 9175 hppa*64*|ia64*) 9176 hardcode_direct=no 9177 hardcode_shlibpath_var=no 9178 ;; 9179 *) 9180 hardcode_direct=yes 9181 hardcode_direct_absolute=yes 9182 export_dynamic_flag_spec='${wl}-E' 9183 9184 # hardcode_minus_L: Not really in the search PATH, 9185 # but as the default location of the library. 9186 hardcode_minus_L=yes 9187 ;; 9188 esac 9189 fi 9190 ;; 9191 9192 irix5* | irix6* | nonstopux*) 9193 if test "$GCC" = yes; then 9194 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' 9195 # Try to use the -exported_symbol ld option, if it does not 9196 # work, assume that -exports_file does not work either and 9197 # implicitly export all symbols. 9198 # This should be the same for all languages, so no per-tag cache variable. 9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9200$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9201if ${lt_cv_irix_exported_symbol+:} false; then : 9202 $as_echo_n "(cached) " >&6 9203else 9204 save_LDFLAGS="$LDFLAGS" 9205 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9207/* end confdefs.h. */ 9208int foo (void) { return 0; } 9209_ACEOF 9210if ac_fn_c_try_link "$LINENO"; then : 9211 lt_cv_irix_exported_symbol=yes 9212else 9213 lt_cv_irix_exported_symbol=no 9214fi 9215rm -f core conftest.err conftest.$ac_objext \ 9216 conftest$ac_exeext conftest.$ac_ext 9217 LDFLAGS="$save_LDFLAGS" 9218fi 9219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9220$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9221 if test "$lt_cv_irix_exported_symbol" = yes; then 9222 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' 9223 fi 9224 else 9225 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' 9226 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' 9227 fi 9228 archive_cmds_need_lc='no' 9229 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9230 hardcode_libdir_separator=: 9231 inherit_rpath=yes 9232 link_all_deplibs=yes 9233 ;; 9234 9235 netbsd*) 9236 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9237 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9238 else 9239 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9240 fi 9241 hardcode_libdir_flag_spec='-R$libdir' 9242 hardcode_direct=yes 9243 hardcode_shlibpath_var=no 9244 ;; 9245 9246 newsos6) 9247 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9248 hardcode_direct=yes 9249 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9250 hardcode_libdir_separator=: 9251 hardcode_shlibpath_var=no 9252 ;; 9253 9254 *nto* | *qnx*) 9255 ;; 9256 9257 openbsd*) 9258 if test -f /usr/libexec/ld.so; then 9259 hardcode_direct=yes 9260 hardcode_shlibpath_var=no 9261 hardcode_direct_absolute=yes 9262 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9263 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9264 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9265 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9266 export_dynamic_flag_spec='${wl}-E' 9267 else 9268 case $host_os in 9269 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9270 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9271 hardcode_libdir_flag_spec='-R$libdir' 9272 ;; 9273 *) 9274 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9275 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9276 ;; 9277 esac 9278 fi 9279 else 9280 ld_shlibs=no 9281 fi 9282 ;; 9283 9284 os2*) 9285 hardcode_libdir_flag_spec='-L$libdir' 9286 hardcode_minus_L=yes 9287 allow_undefined_flag=unsupported 9288 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' 9289 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9290 ;; 9291 9292 osf3*) 9293 if test "$GCC" = yes; then 9294 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9295 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' 9296 else 9297 allow_undefined_flag=' -expect_unresolved \*' 9298 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' 9299 fi 9300 archive_cmds_need_lc='no' 9301 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9302 hardcode_libdir_separator=: 9303 ;; 9304 9305 osf4* | osf5*) # as osf3* with the addition of -msym flag 9306 if test "$GCC" = yes; then 9307 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9308 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' 9309 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9310 else 9311 allow_undefined_flag=' -expect_unresolved \*' 9312 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' 9313 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~ 9314 $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' 9315 9316 # Both c and cxx compiler support -rpath directly 9317 hardcode_libdir_flag_spec='-rpath $libdir' 9318 fi 9319 archive_cmds_need_lc='no' 9320 hardcode_libdir_separator=: 9321 ;; 9322 9323 solaris*) 9324 no_undefined_flag=' -z defs' 9325 if test "$GCC" = yes; then 9326 wlarc='${wl}' 9327 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9328 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9329 $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' 9330 else 9331 case `$CC -V 2>&1` in 9332 *"Compilers 5.0"*) 9333 wlarc='' 9334 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9335 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9336 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9337 ;; 9338 *) 9339 wlarc='${wl}' 9340 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9341 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9342 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9343 ;; 9344 esac 9345 fi 9346 hardcode_libdir_flag_spec='-R$libdir' 9347 hardcode_shlibpath_var=no 9348 case $host_os in 9349 solaris2.[0-5] | solaris2.[0-5].*) ;; 9350 *) 9351 # The compiler driver will combine and reorder linker options, 9352 # but understands `-z linker_flag'. GCC discards it without `$wl', 9353 # but is careful enough not to reorder. 9354 # Supported since Solaris 2.6 (maybe 2.5.1?) 9355 if test "$GCC" = yes; then 9356 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9357 else 9358 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9359 fi 9360 ;; 9361 esac 9362 link_all_deplibs=yes 9363 ;; 9364 9365 sunos4*) 9366 if test "x$host_vendor" = xsequent; then 9367 # Use $CC to link under sequent, because it throws in some extra .o 9368 # files that make .init and .fini sections work. 9369 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9370 else 9371 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9372 fi 9373 hardcode_libdir_flag_spec='-L$libdir' 9374 hardcode_direct=yes 9375 hardcode_minus_L=yes 9376 hardcode_shlibpath_var=no 9377 ;; 9378 9379 sysv4) 9380 case $host_vendor in 9381 sni) 9382 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9383 hardcode_direct=yes # is this really true??? 9384 ;; 9385 siemens) 9386 ## LD is ld it makes a PLAMLIB 9387 ## CC just makes a GrossModule. 9388 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9389 reload_cmds='$CC -r -o $output$reload_objs' 9390 hardcode_direct=no 9391 ;; 9392 motorola) 9393 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9394 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9395 ;; 9396 esac 9397 runpath_var='LD_RUN_PATH' 9398 hardcode_shlibpath_var=no 9399 ;; 9400 9401 sysv4.3*) 9402 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9403 hardcode_shlibpath_var=no 9404 export_dynamic_flag_spec='-Bexport' 9405 ;; 9406 9407 sysv4*MP*) 9408 if test -d /usr/nec; then 9409 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9410 hardcode_shlibpath_var=no 9411 runpath_var=LD_RUN_PATH 9412 hardcode_runpath_var=yes 9413 ld_shlibs=yes 9414 fi 9415 ;; 9416 9417 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9418 no_undefined_flag='${wl}-z,text' 9419 archive_cmds_need_lc=no 9420 hardcode_shlibpath_var=no 9421 runpath_var='LD_RUN_PATH' 9422 9423 if test "$GCC" = yes; then 9424 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9425 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9426 else 9427 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9428 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9429 fi 9430 ;; 9431 9432 sysv5* | sco3.2v5* | sco5v6*) 9433 # Note: We can NOT use -z defs as we might desire, because we do not 9434 # link with -lc, and that would cause any symbols used from libc to 9435 # always be unresolved, which means just about no library would 9436 # ever link correctly. If we're not using GNU ld we use -z text 9437 # though, which does catch some bad symbols but isn't as heavy-handed 9438 # as -z defs. 9439 no_undefined_flag='${wl}-z,text' 9440 allow_undefined_flag='${wl}-z,nodefs' 9441 archive_cmds_need_lc=no 9442 hardcode_shlibpath_var=no 9443 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9444 hardcode_libdir_separator=':' 9445 link_all_deplibs=yes 9446 export_dynamic_flag_spec='${wl}-Bexport' 9447 runpath_var='LD_RUN_PATH' 9448 9449 if test "$GCC" = yes; then 9450 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9451 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9452 else 9453 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9454 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9455 fi 9456 ;; 9457 9458 uts4*) 9459 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9460 hardcode_libdir_flag_spec='-L$libdir' 9461 hardcode_shlibpath_var=no 9462 ;; 9463 9464 *) 9465 ld_shlibs=no 9466 ;; 9467 esac 9468 9469 if test x$host_vendor = xsni; then 9470 case $host in 9471 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9472 export_dynamic_flag_spec='${wl}-Blargedynsym' 9473 ;; 9474 esac 9475 fi 9476 fi 9477 9478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9479$as_echo "$ld_shlibs" >&6; } 9480test "$ld_shlibs" = no && can_build_shared=no 9481 9482with_gnu_ld=$with_gnu_ld 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498# 9499# Do we need to explicitly link libc? 9500# 9501case "x$archive_cmds_need_lc" in 9502x|xyes) 9503 # Assume -lc should be added 9504 archive_cmds_need_lc=yes 9505 9506 if test "$enable_shared" = yes && test "$GCC" = yes; then 9507 case $archive_cmds in 9508 *'~'*) 9509 # FIXME: we may have to deal with multi-command sequences. 9510 ;; 9511 '$CC '*) 9512 # Test whether the compiler implicitly links with -lc since on some 9513 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9514 # to ld, don't add -lc before -lgcc. 9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9516$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9517if ${lt_cv_archive_cmds_need_lc+:} false; then : 9518 $as_echo_n "(cached) " >&6 9519else 9520 $RM conftest* 9521 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9522 9523 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9524 (eval $ac_compile) 2>&5 9525 ac_status=$? 9526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9527 test $ac_status = 0; } 2>conftest.err; then 9528 soname=conftest 9529 lib=conftest 9530 libobjs=conftest.$ac_objext 9531 deplibs= 9532 wl=$lt_prog_compiler_wl 9533 pic_flag=$lt_prog_compiler_pic 9534 compiler_flags=-v 9535 linker_flags=-v 9536 verstring= 9537 output_objdir=. 9538 libname=conftest 9539 lt_save_allow_undefined_flag=$allow_undefined_flag 9540 allow_undefined_flag= 9541 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9542 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9543 ac_status=$? 9544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9545 test $ac_status = 0; } 9546 then 9547 lt_cv_archive_cmds_need_lc=no 9548 else 9549 lt_cv_archive_cmds_need_lc=yes 9550 fi 9551 allow_undefined_flag=$lt_save_allow_undefined_flag 9552 else 9553 cat conftest.err 1>&5 9554 fi 9555 $RM conftest* 9556 9557fi 9558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9559$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9560 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9561 ;; 9562 esac 9563 fi 9564 ;; 9565esac 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9724$as_echo_n "checking dynamic linker characteristics... " >&6; } 9725 9726if test "$GCC" = yes; then 9727 case $host_os in 9728 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9729 *) lt_awk_arg="/^libraries:/" ;; 9730 esac 9731 case $host_os in 9732 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9733 *) lt_sed_strip_eq="s,=/,/,g" ;; 9734 esac 9735 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9736 case $lt_search_path_spec in 9737 *\;*) 9738 # if the path contains ";" then we assume it to be the separator 9739 # otherwise default to the standard path separator (i.e. ":") - it is 9740 # assumed that no part of a normal pathname contains ";" but that should 9741 # okay in the real world where ";" in dirpaths is itself problematic. 9742 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9743 ;; 9744 *) 9745 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9746 ;; 9747 esac 9748 # Ok, now we have the path, separated by spaces, we can step through it 9749 # and add multilib dir if necessary. 9750 lt_tmp_lt_search_path_spec= 9751 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9752 for lt_sys_path in $lt_search_path_spec; do 9753 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9754 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9755 else 9756 test -d "$lt_sys_path" && \ 9757 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9758 fi 9759 done 9760 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9761BEGIN {RS=" "; FS="/|\n";} { 9762 lt_foo=""; 9763 lt_count=0; 9764 for (lt_i = NF; lt_i > 0; lt_i--) { 9765 if ($lt_i != "" && $lt_i != ".") { 9766 if ($lt_i == "..") { 9767 lt_count++; 9768 } else { 9769 if (lt_count == 0) { 9770 lt_foo="/" $lt_i lt_foo; 9771 } else { 9772 lt_count--; 9773 } 9774 } 9775 } 9776 } 9777 if (lt_foo != "") { lt_freq[lt_foo]++; } 9778 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9779}'` 9780 # AWK program above erroneously prepends '/' to C:/dos/paths 9781 # for these hosts. 9782 case $host_os in 9783 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 9784 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 9785 esac 9786 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 9787else 9788 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9789fi 9790library_names_spec= 9791libname_spec='lib$name' 9792soname_spec= 9793shrext_cmds=".so" 9794postinstall_cmds= 9795postuninstall_cmds= 9796finish_cmds= 9797finish_eval= 9798shlibpath_var= 9799shlibpath_overrides_runpath=unknown 9800version_type=none 9801dynamic_linker="$host_os ld.so" 9802sys_lib_dlsearch_path_spec="/lib /usr/lib" 9803need_lib_prefix=unknown 9804hardcode_into_libs=no 9805 9806# when you set need_version to no, make sure it does not cause -set_version 9807# flags to be left without arguments 9808need_version=unknown 9809 9810case $host_os in 9811aix3*) 9812 version_type=linux 9813 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9814 shlibpath_var=LIBPATH 9815 9816 # AIX 3 has no versioning support, so we append a major version to the name. 9817 soname_spec='${libname}${release}${shared_ext}$major' 9818 ;; 9819 9820aix[4-9]*) 9821 version_type=linux 9822 need_lib_prefix=no 9823 need_version=no 9824 hardcode_into_libs=yes 9825 if test "$host_cpu" = ia64; then 9826 # AIX 5 supports IA64 9827 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9828 shlibpath_var=LD_LIBRARY_PATH 9829 else 9830 # With GCC up to 2.95.x, collect2 would create an import file 9831 # for dependence libraries. The import file would start with 9832 # the line `#! .'. This would cause the generated library to 9833 # depend on `.', always an invalid library. This was fixed in 9834 # development snapshots of GCC prior to 3.0. 9835 case $host_os in 9836 aix4 | aix4.[01] | aix4.[01].*) 9837 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9838 echo ' yes ' 9839 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9840 : 9841 else 9842 can_build_shared=no 9843 fi 9844 ;; 9845 esac 9846 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9847 # soname into executable. Probably we can add versioning support to 9848 # collect2, so additional links can be useful in future. 9849 if test "$aix_use_runtimelinking" = yes; then 9850 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9851 # instead of lib<name>.a to let people know that these are not 9852 # typical AIX shared libraries. 9853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9854 else 9855 # We preserve .a as extension for shared libraries through AIX4.2 9856 # and later when we are not doing run time linking. 9857 library_names_spec='${libname}${release}.a $libname.a' 9858 soname_spec='${libname}${release}${shared_ext}$major' 9859 fi 9860 shlibpath_var=LIBPATH 9861 fi 9862 ;; 9863 9864amigaos*) 9865 case $host_cpu in 9866 powerpc) 9867 # Since July 2007 AmigaOS4 officially supports .so libraries. 9868 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9870 ;; 9871 m68k) 9872 library_names_spec='$libname.ixlibrary $libname.a' 9873 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9874 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' 9875 ;; 9876 esac 9877 ;; 9878 9879beos*) 9880 library_names_spec='${libname}${shared_ext}' 9881 dynamic_linker="$host_os ld.so" 9882 shlibpath_var=LIBRARY_PATH 9883 ;; 9884 9885bsdi[45]*) 9886 version_type=linux 9887 need_version=no 9888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9889 soname_spec='${libname}${release}${shared_ext}$major' 9890 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9891 shlibpath_var=LD_LIBRARY_PATH 9892 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9893 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9894 # the default ld.so.conf also contains /usr/contrib/lib and 9895 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9896 # libtool to hard-code these into programs 9897 ;; 9898 9899cygwin* | mingw* | pw32* | cegcc*) 9900 version_type=windows 9901 shrext_cmds=".dll" 9902 need_version=no 9903 need_lib_prefix=no 9904 9905 case $GCC,$cc_basename in 9906 yes,*) 9907 # gcc 9908 library_names_spec='$libname.dll.a' 9909 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9910 postinstall_cmds='base_file=`basename \${file}`~ 9911 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9912 dldir=$destdir/`dirname \$dlpath`~ 9913 test -d \$dldir || mkdir -p \$dldir~ 9914 $install_prog $dir/$dlname \$dldir/$dlname~ 9915 chmod a+x \$dldir/$dlname~ 9916 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9917 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9918 fi' 9919 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9920 dlpath=$dir/\$dldll~ 9921 $RM \$dlpath' 9922 shlibpath_overrides_runpath=yes 9923 9924 case $host_os in 9925 cygwin*) 9926 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9927 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9928 9929 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 9930 ;; 9931 mingw* | cegcc*) 9932 # MinGW DLLs use traditional 'lib' prefix 9933 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9934 ;; 9935 pw32*) 9936 # pw32 DLLs use 'pw' prefix rather than 'lib' 9937 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9938 ;; 9939 esac 9940 dynamic_linker='Win32 ld.exe' 9941 ;; 9942 9943 *,cl*) 9944 # Native MSVC 9945 libname_spec='$name' 9946 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9947 library_names_spec='${libname}.dll.lib' 9948 9949 case $build_os in 9950 mingw*) 9951 sys_lib_search_path_spec= 9952 lt_save_ifs=$IFS 9953 IFS=';' 9954 for lt_path in $LIB 9955 do 9956 IFS=$lt_save_ifs 9957 # Let DOS variable expansion print the short 8.3 style file name. 9958 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 9959 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 9960 done 9961 IFS=$lt_save_ifs 9962 # Convert to MSYS style. 9963 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 9964 ;; 9965 cygwin*) 9966 # Convert to unix form, then to dos form, then back to unix form 9967 # but this time dos style (no spaces!) so that the unix form looks 9968 # like /cygdrive/c/PROGRA~1:/cygdr... 9969 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 9970 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 9971 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9972 ;; 9973 *) 9974 sys_lib_search_path_spec="$LIB" 9975 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9976 # It is most probably a Windows format PATH. 9977 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9978 else 9979 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9980 fi 9981 # FIXME: find the short name or the path components, as spaces are 9982 # common. (e.g. "Program Files" -> "PROGRA~1") 9983 ;; 9984 esac 9985 9986 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9987 postinstall_cmds='base_file=`basename \${file}`~ 9988 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9989 dldir=$destdir/`dirname \$dlpath`~ 9990 test -d \$dldir || mkdir -p \$dldir~ 9991 $install_prog $dir/$dlname \$dldir/$dlname' 9992 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9993 dlpath=$dir/\$dldll~ 9994 $RM \$dlpath' 9995 shlibpath_overrides_runpath=yes 9996 dynamic_linker='Win32 link.exe' 9997 ;; 9998 9999 *) 10000 # Assume MSVC wrapper 10001 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10002 dynamic_linker='Win32 ld.exe' 10003 ;; 10004 esac 10005 # FIXME: first we should search . and the directory the executable is in 10006 shlibpath_var=PATH 10007 ;; 10008 10009darwin* | rhapsody*) 10010 dynamic_linker="$host_os dyld" 10011 version_type=darwin 10012 need_lib_prefix=no 10013 need_version=no 10014 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10015 soname_spec='${libname}${release}${major}$shared_ext' 10016 shlibpath_overrides_runpath=yes 10017 shlibpath_var=DYLD_LIBRARY_PATH 10018 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10019 10020 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10021 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10022 ;; 10023 10024dgux*) 10025 version_type=linux 10026 need_lib_prefix=no 10027 need_version=no 10028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10029 soname_spec='${libname}${release}${shared_ext}$major' 10030 shlibpath_var=LD_LIBRARY_PATH 10031 ;; 10032 10033freebsd1*) 10034 dynamic_linker=no 10035 ;; 10036 10037freebsd* | dragonfly*) 10038 # DragonFly does not have aout. When/if they implement a new 10039 # versioning mechanism, adjust this. 10040 if test -x /usr/bin/objformat; then 10041 objformat=`/usr/bin/objformat` 10042 else 10043 case $host_os in 10044 freebsd[123]*) objformat=aout ;; 10045 *) objformat=elf ;; 10046 esac 10047 fi 10048 version_type=freebsd-$objformat 10049 case $version_type in 10050 freebsd-elf*) 10051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10052 need_version=no 10053 need_lib_prefix=no 10054 ;; 10055 freebsd-*) 10056 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10057 need_version=yes 10058 ;; 10059 esac 10060 shlibpath_var=LD_LIBRARY_PATH 10061 case $host_os in 10062 freebsd2*) 10063 shlibpath_overrides_runpath=yes 10064 ;; 10065 freebsd3.[01]* | freebsdelf3.[01]*) 10066 shlibpath_overrides_runpath=yes 10067 hardcode_into_libs=yes 10068 ;; 10069 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10070 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10071 shlibpath_overrides_runpath=no 10072 hardcode_into_libs=yes 10073 ;; 10074 *) # from 4.6 on, and DragonFly 10075 shlibpath_overrides_runpath=yes 10076 hardcode_into_libs=yes 10077 ;; 10078 esac 10079 ;; 10080 10081gnu*) 10082 version_type=linux 10083 need_lib_prefix=no 10084 need_version=no 10085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10086 soname_spec='${libname}${release}${shared_ext}$major' 10087 shlibpath_var=LD_LIBRARY_PATH 10088 hardcode_into_libs=yes 10089 ;; 10090 10091haiku*) 10092 version_type=linux 10093 need_lib_prefix=no 10094 need_version=no 10095 dynamic_linker="$host_os runtime_loader" 10096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10097 soname_spec='${libname}${release}${shared_ext}$major' 10098 shlibpath_var=LIBRARY_PATH 10099 shlibpath_overrides_runpath=yes 10100 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10101 hardcode_into_libs=yes 10102 ;; 10103 10104hpux9* | hpux10* | hpux11*) 10105 # Give a soname corresponding to the major version so that dld.sl refuses to 10106 # link against other versions. 10107 version_type=sunos 10108 need_lib_prefix=no 10109 need_version=no 10110 case $host_cpu in 10111 ia64*) 10112 shrext_cmds='.so' 10113 hardcode_into_libs=yes 10114 dynamic_linker="$host_os dld.so" 10115 shlibpath_var=LD_LIBRARY_PATH 10116 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10118 soname_spec='${libname}${release}${shared_ext}$major' 10119 if test "X$HPUX_IA64_MODE" = X32; then 10120 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10121 else 10122 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10123 fi 10124 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10125 ;; 10126 hppa*64*) 10127 shrext_cmds='.sl' 10128 hardcode_into_libs=yes 10129 dynamic_linker="$host_os dld.sl" 10130 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10131 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10133 soname_spec='${libname}${release}${shared_ext}$major' 10134 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10135 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10136 ;; 10137 *) 10138 shrext_cmds='.sl' 10139 dynamic_linker="$host_os dld.sl" 10140 shlibpath_var=SHLIB_PATH 10141 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10143 soname_spec='${libname}${release}${shared_ext}$major' 10144 ;; 10145 esac 10146 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10147 postinstall_cmds='chmod 555 $lib' 10148 # or fails outright, so override atomically: 10149 install_override_mode=555 10150 ;; 10151 10152interix[3-9]*) 10153 version_type=linux 10154 need_lib_prefix=no 10155 need_version=no 10156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10157 soname_spec='${libname}${release}${shared_ext}$major' 10158 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10159 shlibpath_var=LD_LIBRARY_PATH 10160 shlibpath_overrides_runpath=no 10161 hardcode_into_libs=yes 10162 ;; 10163 10164irix5* | irix6* | nonstopux*) 10165 case $host_os in 10166 nonstopux*) version_type=nonstopux ;; 10167 *) 10168 if test "$lt_cv_prog_gnu_ld" = yes; then 10169 version_type=linux 10170 else 10171 version_type=irix 10172 fi ;; 10173 esac 10174 need_lib_prefix=no 10175 need_version=no 10176 soname_spec='${libname}${release}${shared_ext}$major' 10177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10178 case $host_os in 10179 irix5* | nonstopux*) 10180 libsuff= shlibsuff= 10181 ;; 10182 *) 10183 case $LD in # libtool.m4 will add one of these switches to LD 10184 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10185 libsuff= shlibsuff= libmagic=32-bit;; 10186 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10187 libsuff=32 shlibsuff=N32 libmagic=N32;; 10188 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10189 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10190 *) libsuff= shlibsuff= libmagic=never-match;; 10191 esac 10192 ;; 10193 esac 10194 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10195 shlibpath_overrides_runpath=no 10196 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10197 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10198 hardcode_into_libs=yes 10199 ;; 10200 10201# No shared lib support for Linux oldld, aout, or coff. 10202linux*oldld* | linux*aout* | linux*coff*) 10203 dynamic_linker=no 10204 ;; 10205 10206# This must be Linux ELF. 10207linux* | k*bsd*-gnu | kopensolaris*-gnu) 10208 version_type=linux 10209 need_lib_prefix=no 10210 need_version=no 10211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10212 soname_spec='${libname}${release}${shared_ext}$major' 10213 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10214 shlibpath_var=LD_LIBRARY_PATH 10215 shlibpath_overrides_runpath=no 10216 10217 # Some binutils ld are patched to set DT_RUNPATH 10218 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10219 $as_echo_n "(cached) " >&6 10220else 10221 lt_cv_shlibpath_overrides_runpath=no 10222 save_LDFLAGS=$LDFLAGS 10223 save_libdir=$libdir 10224 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10225 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10227/* end confdefs.h. */ 10228 10229int 10230main () 10231{ 10232 10233 ; 10234 return 0; 10235} 10236_ACEOF 10237if ac_fn_c_try_link "$LINENO"; then : 10238 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10239 lt_cv_shlibpath_overrides_runpath=yes 10240fi 10241fi 10242rm -f core conftest.err conftest.$ac_objext \ 10243 conftest$ac_exeext conftest.$ac_ext 10244 LDFLAGS=$save_LDFLAGS 10245 libdir=$save_libdir 10246 10247fi 10248 10249 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10250 10251 # This implies no fast_install, which is unacceptable. 10252 # Some rework will be needed to allow for fast_install 10253 # before this can be enabled. 10254 hardcode_into_libs=yes 10255 10256 # Append ld.so.conf contents to the search path 10257 if test -f /etc/ld.so.conf; then 10258 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' ' '` 10259 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10260 fi 10261 10262 # We used to test for /lib/ld.so.1 and disable shared libraries on 10263 # powerpc, because MkLinux only supported shared libraries with the 10264 # GNU dynamic linker. Since this was broken with cross compilers, 10265 # most powerpc-linux boxes support dynamic linking these days and 10266 # people can always --disable-shared, the test was removed, and we 10267 # assume the GNU/Linux dynamic linker is in use. 10268 dynamic_linker='GNU/Linux ld.so' 10269 ;; 10270 10271netbsd*) 10272 version_type=sunos 10273 need_lib_prefix=no 10274 need_version=no 10275 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10277 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10278 dynamic_linker='NetBSD (a.out) ld.so' 10279 else 10280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10281 soname_spec='${libname}${release}${shared_ext}$major' 10282 dynamic_linker='NetBSD ld.elf_so' 10283 fi 10284 shlibpath_var=LD_LIBRARY_PATH 10285 shlibpath_overrides_runpath=yes 10286 hardcode_into_libs=yes 10287 ;; 10288 10289newsos6) 10290 version_type=linux 10291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10292 shlibpath_var=LD_LIBRARY_PATH 10293 shlibpath_overrides_runpath=yes 10294 ;; 10295 10296*nto* | *qnx*) 10297 version_type=qnx 10298 need_lib_prefix=no 10299 need_version=no 10300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10301 soname_spec='${libname}${release}${shared_ext}$major' 10302 shlibpath_var=LD_LIBRARY_PATH 10303 shlibpath_overrides_runpath=no 10304 hardcode_into_libs=yes 10305 dynamic_linker='ldqnx.so' 10306 ;; 10307 10308openbsd*) 10309 version_type=sunos 10310 sys_lib_dlsearch_path_spec="/usr/lib" 10311 need_lib_prefix=no 10312 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10313 case $host_os in 10314 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10315 *) need_version=no ;; 10316 esac 10317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10318 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10319 shlibpath_var=LD_LIBRARY_PATH 10320 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10321 case $host_os in 10322 openbsd2.[89] | openbsd2.[89].*) 10323 shlibpath_overrides_runpath=no 10324 ;; 10325 *) 10326 shlibpath_overrides_runpath=yes 10327 ;; 10328 esac 10329 else 10330 shlibpath_overrides_runpath=yes 10331 fi 10332 ;; 10333 10334os2*) 10335 libname_spec='$name' 10336 shrext_cmds=".dll" 10337 need_lib_prefix=no 10338 library_names_spec='$libname${shared_ext} $libname.a' 10339 dynamic_linker='OS/2 ld.exe' 10340 shlibpath_var=LIBPATH 10341 ;; 10342 10343osf3* | osf4* | osf5*) 10344 version_type=osf 10345 need_lib_prefix=no 10346 need_version=no 10347 soname_spec='${libname}${release}${shared_ext}$major' 10348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10349 shlibpath_var=LD_LIBRARY_PATH 10350 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10351 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10352 ;; 10353 10354rdos*) 10355 dynamic_linker=no 10356 ;; 10357 10358solaris*) 10359 version_type=linux 10360 need_lib_prefix=no 10361 need_version=no 10362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10363 soname_spec='${libname}${release}${shared_ext}$major' 10364 shlibpath_var=LD_LIBRARY_PATH 10365 shlibpath_overrides_runpath=yes 10366 hardcode_into_libs=yes 10367 # ldd complains unless libraries are executable 10368 postinstall_cmds='chmod +x $lib' 10369 ;; 10370 10371sunos4*) 10372 version_type=sunos 10373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10374 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10375 shlibpath_var=LD_LIBRARY_PATH 10376 shlibpath_overrides_runpath=yes 10377 if test "$with_gnu_ld" = yes; then 10378 need_lib_prefix=no 10379 fi 10380 need_version=yes 10381 ;; 10382 10383sysv4 | sysv4.3*) 10384 version_type=linux 10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10386 soname_spec='${libname}${release}${shared_ext}$major' 10387 shlibpath_var=LD_LIBRARY_PATH 10388 case $host_vendor in 10389 sni) 10390 shlibpath_overrides_runpath=no 10391 need_lib_prefix=no 10392 runpath_var=LD_RUN_PATH 10393 ;; 10394 siemens) 10395 need_lib_prefix=no 10396 ;; 10397 motorola) 10398 need_lib_prefix=no 10399 need_version=no 10400 shlibpath_overrides_runpath=no 10401 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10402 ;; 10403 esac 10404 ;; 10405 10406sysv4*MP*) 10407 if test -d /usr/nec ;then 10408 version_type=linux 10409 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10410 soname_spec='$libname${shared_ext}.$major' 10411 shlibpath_var=LD_LIBRARY_PATH 10412 fi 10413 ;; 10414 10415sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10416 version_type=freebsd-elf 10417 need_lib_prefix=no 10418 need_version=no 10419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10420 soname_spec='${libname}${release}${shared_ext}$major' 10421 shlibpath_var=LD_LIBRARY_PATH 10422 shlibpath_overrides_runpath=yes 10423 hardcode_into_libs=yes 10424 if test "$with_gnu_ld" = yes; then 10425 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10426 else 10427 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10428 case $host_os in 10429 sco3.2v5*) 10430 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10431 ;; 10432 esac 10433 fi 10434 sys_lib_dlsearch_path_spec='/usr/lib' 10435 ;; 10436 10437tpf*) 10438 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10439 version_type=linux 10440 need_lib_prefix=no 10441 need_version=no 10442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10443 shlibpath_var=LD_LIBRARY_PATH 10444 shlibpath_overrides_runpath=no 10445 hardcode_into_libs=yes 10446 ;; 10447 10448uts4*) 10449 version_type=linux 10450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10451 soname_spec='${libname}${release}${shared_ext}$major' 10452 shlibpath_var=LD_LIBRARY_PATH 10453 ;; 10454 10455*) 10456 dynamic_linker=no 10457 ;; 10458esac 10459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10460$as_echo "$dynamic_linker" >&6; } 10461test "$dynamic_linker" = no && can_build_shared=no 10462 10463variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10464if test "$GCC" = yes; then 10465 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10466fi 10467 10468if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10469 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10470fi 10471if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10472 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10473fi 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10567$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10568hardcode_action= 10569if test -n "$hardcode_libdir_flag_spec" || 10570 test -n "$runpath_var" || 10571 test "X$hardcode_automatic" = "Xyes" ; then 10572 10573 # We can hardcode non-existent directories. 10574 if test "$hardcode_direct" != no && 10575 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10576 # have to relink, otherwise we might link with an installed library 10577 # when we should be linking with a yet-to-be-installed one 10578 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10579 test "$hardcode_minus_L" != no; then 10580 # Linking always hardcodes the temporary library directory. 10581 hardcode_action=relink 10582 else 10583 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10584 hardcode_action=immediate 10585 fi 10586else 10587 # We cannot hardcode anything, or else we can only hardcode existing 10588 # directories. 10589 hardcode_action=unsupported 10590fi 10591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10592$as_echo "$hardcode_action" >&6; } 10593 10594if test "$hardcode_action" = relink || 10595 test "$inherit_rpath" = yes; then 10596 # Fast installation is not supported 10597 enable_fast_install=no 10598elif test "$shlibpath_overrides_runpath" = yes || 10599 test "$enable_shared" = no; then 10600 # Fast installation is not necessary 10601 enable_fast_install=needless 10602fi 10603 10604 10605 10606 10607 10608 10609 if test "x$enable_dlopen" != xyes; then 10610 enable_dlopen=unknown 10611 enable_dlopen_self=unknown 10612 enable_dlopen_self_static=unknown 10613else 10614 lt_cv_dlopen=no 10615 lt_cv_dlopen_libs= 10616 10617 case $host_os in 10618 beos*) 10619 lt_cv_dlopen="load_add_on" 10620 lt_cv_dlopen_libs= 10621 lt_cv_dlopen_self=yes 10622 ;; 10623 10624 mingw* | pw32* | cegcc*) 10625 lt_cv_dlopen="LoadLibrary" 10626 lt_cv_dlopen_libs= 10627 ;; 10628 10629 cygwin*) 10630 lt_cv_dlopen="dlopen" 10631 lt_cv_dlopen_libs= 10632 ;; 10633 10634 darwin*) 10635 # if libdl is installed we need to link against it 10636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10637$as_echo_n "checking for dlopen in -ldl... " >&6; } 10638if ${ac_cv_lib_dl_dlopen+:} false; then : 10639 $as_echo_n "(cached) " >&6 10640else 10641 ac_check_lib_save_LIBS=$LIBS 10642LIBS="-ldl $LIBS" 10643cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10644/* end confdefs.h. */ 10645 10646/* Override any GCC internal prototype to avoid an error. 10647 Use char because int might match the return type of a GCC 10648 builtin and then its argument prototype would still apply. */ 10649#ifdef __cplusplus 10650extern "C" 10651#endif 10652char dlopen (); 10653int 10654main () 10655{ 10656return dlopen (); 10657 ; 10658 return 0; 10659} 10660_ACEOF 10661if ac_fn_c_try_link "$LINENO"; then : 10662 ac_cv_lib_dl_dlopen=yes 10663else 10664 ac_cv_lib_dl_dlopen=no 10665fi 10666rm -f core conftest.err conftest.$ac_objext \ 10667 conftest$ac_exeext conftest.$ac_ext 10668LIBS=$ac_check_lib_save_LIBS 10669fi 10670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10671$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10672if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10673 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10674else 10675 10676 lt_cv_dlopen="dyld" 10677 lt_cv_dlopen_libs= 10678 lt_cv_dlopen_self=yes 10679 10680fi 10681 10682 ;; 10683 10684 *) 10685 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10686if test "x$ac_cv_func_shl_load" = xyes; then : 10687 lt_cv_dlopen="shl_load" 10688else 10689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10690$as_echo_n "checking for shl_load in -ldld... " >&6; } 10691if ${ac_cv_lib_dld_shl_load+:} false; then : 10692 $as_echo_n "(cached) " >&6 10693else 10694 ac_check_lib_save_LIBS=$LIBS 10695LIBS="-ldld $LIBS" 10696cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10697/* end confdefs.h. */ 10698 10699/* Override any GCC internal prototype to avoid an error. 10700 Use char because int might match the return type of a GCC 10701 builtin and then its argument prototype would still apply. */ 10702#ifdef __cplusplus 10703extern "C" 10704#endif 10705char shl_load (); 10706int 10707main () 10708{ 10709return shl_load (); 10710 ; 10711 return 0; 10712} 10713_ACEOF 10714if ac_fn_c_try_link "$LINENO"; then : 10715 ac_cv_lib_dld_shl_load=yes 10716else 10717 ac_cv_lib_dld_shl_load=no 10718fi 10719rm -f core conftest.err conftest.$ac_objext \ 10720 conftest$ac_exeext conftest.$ac_ext 10721LIBS=$ac_check_lib_save_LIBS 10722fi 10723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10724$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10725if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10726 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10727else 10728 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10729if test "x$ac_cv_func_dlopen" = xyes; then : 10730 lt_cv_dlopen="dlopen" 10731else 10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10733$as_echo_n "checking for dlopen in -ldl... " >&6; } 10734if ${ac_cv_lib_dl_dlopen+:} false; then : 10735 $as_echo_n "(cached) " >&6 10736else 10737 ac_check_lib_save_LIBS=$LIBS 10738LIBS="-ldl $LIBS" 10739cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10740/* end confdefs.h. */ 10741 10742/* Override any GCC internal prototype to avoid an error. 10743 Use char because int might match the return type of a GCC 10744 builtin and then its argument prototype would still apply. */ 10745#ifdef __cplusplus 10746extern "C" 10747#endif 10748char dlopen (); 10749int 10750main () 10751{ 10752return dlopen (); 10753 ; 10754 return 0; 10755} 10756_ACEOF 10757if ac_fn_c_try_link "$LINENO"; then : 10758 ac_cv_lib_dl_dlopen=yes 10759else 10760 ac_cv_lib_dl_dlopen=no 10761fi 10762rm -f core conftest.err conftest.$ac_objext \ 10763 conftest$ac_exeext conftest.$ac_ext 10764LIBS=$ac_check_lib_save_LIBS 10765fi 10766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10767$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10768if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10769 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10770else 10771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10772$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10773if ${ac_cv_lib_svld_dlopen+:} false; then : 10774 $as_echo_n "(cached) " >&6 10775else 10776 ac_check_lib_save_LIBS=$LIBS 10777LIBS="-lsvld $LIBS" 10778cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10779/* end confdefs.h. */ 10780 10781/* Override any GCC internal prototype to avoid an error. 10782 Use char because int might match the return type of a GCC 10783 builtin and then its argument prototype would still apply. */ 10784#ifdef __cplusplus 10785extern "C" 10786#endif 10787char dlopen (); 10788int 10789main () 10790{ 10791return dlopen (); 10792 ; 10793 return 0; 10794} 10795_ACEOF 10796if ac_fn_c_try_link "$LINENO"; then : 10797 ac_cv_lib_svld_dlopen=yes 10798else 10799 ac_cv_lib_svld_dlopen=no 10800fi 10801rm -f core conftest.err conftest.$ac_objext \ 10802 conftest$ac_exeext conftest.$ac_ext 10803LIBS=$ac_check_lib_save_LIBS 10804fi 10805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10806$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10807if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 10808 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10809else 10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10811$as_echo_n "checking for dld_link in -ldld... " >&6; } 10812if ${ac_cv_lib_dld_dld_link+:} false; then : 10813 $as_echo_n "(cached) " >&6 10814else 10815 ac_check_lib_save_LIBS=$LIBS 10816LIBS="-ldld $LIBS" 10817cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10818/* end confdefs.h. */ 10819 10820/* Override any GCC internal prototype to avoid an error. 10821 Use char because int might match the return type of a GCC 10822 builtin and then its argument prototype would still apply. */ 10823#ifdef __cplusplus 10824extern "C" 10825#endif 10826char dld_link (); 10827int 10828main () 10829{ 10830return dld_link (); 10831 ; 10832 return 0; 10833} 10834_ACEOF 10835if ac_fn_c_try_link "$LINENO"; then : 10836 ac_cv_lib_dld_dld_link=yes 10837else 10838 ac_cv_lib_dld_dld_link=no 10839fi 10840rm -f core conftest.err conftest.$ac_objext \ 10841 conftest$ac_exeext conftest.$ac_ext 10842LIBS=$ac_check_lib_save_LIBS 10843fi 10844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10845$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10846if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 10847 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10848fi 10849 10850 10851fi 10852 10853 10854fi 10855 10856 10857fi 10858 10859 10860fi 10861 10862 10863fi 10864 10865 ;; 10866 esac 10867 10868 if test "x$lt_cv_dlopen" != xno; then 10869 enable_dlopen=yes 10870 else 10871 enable_dlopen=no 10872 fi 10873 10874 case $lt_cv_dlopen in 10875 dlopen) 10876 save_CPPFLAGS="$CPPFLAGS" 10877 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10878 10879 save_LDFLAGS="$LDFLAGS" 10880 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10881 10882 save_LIBS="$LIBS" 10883 LIBS="$lt_cv_dlopen_libs $LIBS" 10884 10885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10886$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10887if ${lt_cv_dlopen_self+:} false; then : 10888 $as_echo_n "(cached) " >&6 10889else 10890 if test "$cross_compiling" = yes; then : 10891 lt_cv_dlopen_self=cross 10892else 10893 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10894 lt_status=$lt_dlunknown 10895 cat > conftest.$ac_ext <<_LT_EOF 10896#line $LINENO "configure" 10897#include "confdefs.h" 10898 10899#if HAVE_DLFCN_H 10900#include <dlfcn.h> 10901#endif 10902 10903#include <stdio.h> 10904 10905#ifdef RTLD_GLOBAL 10906# define LT_DLGLOBAL RTLD_GLOBAL 10907#else 10908# ifdef DL_GLOBAL 10909# define LT_DLGLOBAL DL_GLOBAL 10910# else 10911# define LT_DLGLOBAL 0 10912# endif 10913#endif 10914 10915/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10916 find out it does not work in some platform. */ 10917#ifndef LT_DLLAZY_OR_NOW 10918# ifdef RTLD_LAZY 10919# define LT_DLLAZY_OR_NOW RTLD_LAZY 10920# else 10921# ifdef DL_LAZY 10922# define LT_DLLAZY_OR_NOW DL_LAZY 10923# else 10924# ifdef RTLD_NOW 10925# define LT_DLLAZY_OR_NOW RTLD_NOW 10926# else 10927# ifdef DL_NOW 10928# define LT_DLLAZY_OR_NOW DL_NOW 10929# else 10930# define LT_DLLAZY_OR_NOW 0 10931# endif 10932# endif 10933# endif 10934# endif 10935#endif 10936 10937/* When -fvisbility=hidden is used, assume the code has been annotated 10938 correspondingly for the symbols needed. */ 10939#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 10940int fnord () __attribute__((visibility("default"))); 10941#endif 10942 10943int fnord () { return 42; } 10944int main () 10945{ 10946 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10947 int status = $lt_dlunknown; 10948 10949 if (self) 10950 { 10951 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10952 else 10953 { 10954 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10955 else puts (dlerror ()); 10956 } 10957 /* dlclose (self); */ 10958 } 10959 else 10960 puts (dlerror ()); 10961 10962 return status; 10963} 10964_LT_EOF 10965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10966 (eval $ac_link) 2>&5 10967 ac_status=$? 10968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10969 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10970 (./conftest; exit; ) >&5 2>/dev/null 10971 lt_status=$? 10972 case x$lt_status in 10973 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10974 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10975 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10976 esac 10977 else : 10978 # compilation failed 10979 lt_cv_dlopen_self=no 10980 fi 10981fi 10982rm -fr conftest* 10983 10984 10985fi 10986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 10987$as_echo "$lt_cv_dlopen_self" >&6; } 10988 10989 if test "x$lt_cv_dlopen_self" = xyes; then 10990 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 10992$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10993if ${lt_cv_dlopen_self_static+:} false; then : 10994 $as_echo_n "(cached) " >&6 10995else 10996 if test "$cross_compiling" = yes; then : 10997 lt_cv_dlopen_self_static=cross 10998else 10999 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11000 lt_status=$lt_dlunknown 11001 cat > conftest.$ac_ext <<_LT_EOF 11002#line $LINENO "configure" 11003#include "confdefs.h" 11004 11005#if HAVE_DLFCN_H 11006#include <dlfcn.h> 11007#endif 11008 11009#include <stdio.h> 11010 11011#ifdef RTLD_GLOBAL 11012# define LT_DLGLOBAL RTLD_GLOBAL 11013#else 11014# ifdef DL_GLOBAL 11015# define LT_DLGLOBAL DL_GLOBAL 11016# else 11017# define LT_DLGLOBAL 0 11018# endif 11019#endif 11020 11021/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11022 find out it does not work in some platform. */ 11023#ifndef LT_DLLAZY_OR_NOW 11024# ifdef RTLD_LAZY 11025# define LT_DLLAZY_OR_NOW RTLD_LAZY 11026# else 11027# ifdef DL_LAZY 11028# define LT_DLLAZY_OR_NOW DL_LAZY 11029# else 11030# ifdef RTLD_NOW 11031# define LT_DLLAZY_OR_NOW RTLD_NOW 11032# else 11033# ifdef DL_NOW 11034# define LT_DLLAZY_OR_NOW DL_NOW 11035# else 11036# define LT_DLLAZY_OR_NOW 0 11037# endif 11038# endif 11039# endif 11040# endif 11041#endif 11042 11043/* When -fvisbility=hidden is used, assume the code has been annotated 11044 correspondingly for the symbols needed. */ 11045#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11046int fnord () __attribute__((visibility("default"))); 11047#endif 11048 11049int fnord () { return 42; } 11050int main () 11051{ 11052 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11053 int status = $lt_dlunknown; 11054 11055 if (self) 11056 { 11057 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11058 else 11059 { 11060 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11061 else puts (dlerror ()); 11062 } 11063 /* dlclose (self); */ 11064 } 11065 else 11066 puts (dlerror ()); 11067 11068 return status; 11069} 11070_LT_EOF 11071 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11072 (eval $ac_link) 2>&5 11073 ac_status=$? 11074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11075 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11076 (./conftest; exit; ) >&5 2>/dev/null 11077 lt_status=$? 11078 case x$lt_status in 11079 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11080 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11081 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11082 esac 11083 else : 11084 # compilation failed 11085 lt_cv_dlopen_self_static=no 11086 fi 11087fi 11088rm -fr conftest* 11089 11090 11091fi 11092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11093$as_echo "$lt_cv_dlopen_self_static" >&6; } 11094 fi 11095 11096 CPPFLAGS="$save_CPPFLAGS" 11097 LDFLAGS="$save_LDFLAGS" 11098 LIBS="$save_LIBS" 11099 ;; 11100 esac 11101 11102 case $lt_cv_dlopen_self in 11103 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11104 *) enable_dlopen_self=unknown ;; 11105 esac 11106 11107 case $lt_cv_dlopen_self_static in 11108 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11109 *) enable_dlopen_self_static=unknown ;; 11110 esac 11111fi 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129striplib= 11130old_striplib= 11131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11132$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11133if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11134 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11135 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11137$as_echo "yes" >&6; } 11138else 11139# FIXME - insert some real tests, host_os isn't really good enough 11140 case $host_os in 11141 darwin*) 11142 if test -n "$STRIP" ; then 11143 striplib="$STRIP -x" 11144 old_striplib="$STRIP -S" 11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11146$as_echo "yes" >&6; } 11147 else 11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11149$as_echo "no" >&6; } 11150 fi 11151 ;; 11152 *) 11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11154$as_echo "no" >&6; } 11155 ;; 11156 esac 11157fi 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 # Report which library types will actually be built 11171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11172$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11174$as_echo "$can_build_shared" >&6; } 11175 11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11177$as_echo_n "checking whether to build shared libraries... " >&6; } 11178 test "$can_build_shared" = "no" && enable_shared=no 11179 11180 # On AIX, shared libraries and static libraries use the same namespace, and 11181 # are all built from PIC. 11182 case $host_os in 11183 aix3*) 11184 test "$enable_shared" = yes && enable_static=no 11185 if test -n "$RANLIB"; then 11186 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11187 postinstall_cmds='$RANLIB $lib' 11188 fi 11189 ;; 11190 11191 aix[4-9]*) 11192 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11193 test "$enable_shared" = yes && enable_static=no 11194 fi 11195 ;; 11196 esac 11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11198$as_echo "$enable_shared" >&6; } 11199 11200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11201$as_echo_n "checking whether to build static libraries... " >&6; } 11202 # Make sure either enable_shared or enable_static is yes. 11203 test "$enable_shared" = yes || enable_static=yes 11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11205$as_echo "$enable_static" >&6; } 11206 11207 11208 11209 11210fi 11211ac_ext=c 11212ac_cpp='$CPP $CPPFLAGS' 11213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11215ac_compiler_gnu=$ac_cv_c_compiler_gnu 11216 11217CC="$lt_save_CC" 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 ac_config_commands="$ac_config_commands libtool" 11232 11233 11234 11235 11236# Only expand once: 11237 11238 11239 11240# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11253$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11254if ${ac_cv_prog_cc_c99+:} false; then : 11255 $as_echo_n "(cached) " >&6 11256else 11257 ac_cv_prog_cc_c99=no 11258ac_save_CC=$CC 11259cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11260/* end confdefs.h. */ 11261#include <stdarg.h> 11262#include <stdbool.h> 11263#include <stdlib.h> 11264#include <wchar.h> 11265#include <stdio.h> 11266 11267// Check varargs macros. These examples are taken from C99 6.10.3.5. 11268#define debug(...) fprintf (stderr, __VA_ARGS__) 11269#define showlist(...) puts (#__VA_ARGS__) 11270#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11271static void 11272test_varargs_macros (void) 11273{ 11274 int x = 1234; 11275 int y = 5678; 11276 debug ("Flag"); 11277 debug ("X = %d\n", x); 11278 showlist (The first, second, and third items.); 11279 report (x>y, "x is %d but y is %d", x, y); 11280} 11281 11282// Check long long types. 11283#define BIG64 18446744073709551615ull 11284#define BIG32 4294967295ul 11285#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 11286#if !BIG_OK 11287 your preprocessor is broken; 11288#endif 11289#if BIG_OK 11290#else 11291 your preprocessor is broken; 11292#endif 11293static long long int bignum = -9223372036854775807LL; 11294static unsigned long long int ubignum = BIG64; 11295 11296struct incomplete_array 11297{ 11298 int datasize; 11299 double data[]; 11300}; 11301 11302struct named_init { 11303 int number; 11304 const wchar_t *name; 11305 double average; 11306}; 11307 11308typedef const char *ccp; 11309 11310static inline int 11311test_restrict (ccp restrict text) 11312{ 11313 // See if C++-style comments work. 11314 // Iterate through items via the restricted pointer. 11315 // Also check for declarations in for loops. 11316 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 11317 continue; 11318 return 0; 11319} 11320 11321// Check varargs and va_copy. 11322static void 11323test_varargs (const char *format, ...) 11324{ 11325 va_list args; 11326 va_start (args, format); 11327 va_list args_copy; 11328 va_copy (args_copy, args); 11329 11330 const char *str; 11331 int number; 11332 float fnumber; 11333 11334 while (*format) 11335 { 11336 switch (*format++) 11337 { 11338 case 's': // string 11339 str = va_arg (args_copy, const char *); 11340 break; 11341 case 'd': // int 11342 number = va_arg (args_copy, int); 11343 break; 11344 case 'f': // float 11345 fnumber = va_arg (args_copy, double); 11346 break; 11347 default: 11348 break; 11349 } 11350 } 11351 va_end (args_copy); 11352 va_end (args); 11353} 11354 11355int 11356main () 11357{ 11358 11359 // Check bool. 11360 _Bool success = false; 11361 11362 // Check restrict. 11363 if (test_restrict ("String literal") == 0) 11364 success = true; 11365 char *restrict newvar = "Another string"; 11366 11367 // Check varargs. 11368 test_varargs ("s, d' f .", "string", 65, 34.234); 11369 test_varargs_macros (); 11370 11371 // Check flexible array members. 11372 struct incomplete_array *ia = 11373 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 11374 ia->datasize = 10; 11375 for (int i = 0; i < ia->datasize; ++i) 11376 ia->data[i] = i * 1.234; 11377 11378 // Check named initializers. 11379 struct named_init ni = { 11380 .number = 34, 11381 .name = L"Test wide string", 11382 .average = 543.34343, 11383 }; 11384 11385 ni.number = 58; 11386 11387 int dynamic_array[ni.number]; 11388 dynamic_array[ni.number - 1] = 543; 11389 11390 // work around unused variable warnings 11391 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 11392 || dynamic_array[ni.number - 1] != 543); 11393 11394 ; 11395 return 0; 11396} 11397_ACEOF 11398for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 11399do 11400 CC="$ac_save_CC $ac_arg" 11401 if ac_fn_c_try_compile "$LINENO"; then : 11402 ac_cv_prog_cc_c99=$ac_arg 11403fi 11404rm -f core conftest.err conftest.$ac_objext 11405 test "x$ac_cv_prog_cc_c99" != "xno" && break 11406done 11407rm -f conftest.$ac_ext 11408CC=$ac_save_CC 11409 11410fi 11411# AC_CACHE_VAL 11412case "x$ac_cv_prog_cc_c99" in 11413 x) 11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11415$as_echo "none needed" >&6; } ;; 11416 xno) 11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11418$as_echo "unsupported" >&6; } ;; 11419 *) 11420 CC="$CC $ac_cv_prog_cc_c99" 11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 11422$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 11423esac 11424if test "x$ac_cv_prog_cc_c99" != xno; then : 11425 11426fi 11427 11428 11429 11430 11431 11432 11433ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 11434if test "x$ac_cv_have_decl___clang__" = xyes; then : 11435 CLANGCC="yes" 11436else 11437 CLANGCC="no" 11438fi 11439 11440ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 11441if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 11442 INTELCC="yes" 11443else 11444 INTELCC="no" 11445fi 11446 11447ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 11448if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 11449 SUNCC="yes" 11450else 11451 SUNCC="no" 11452fi 11453 11454 11455 11456 11457if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11458 if test -n "$ac_tool_prefix"; then 11459 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11460set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11462$as_echo_n "checking for $ac_word... " >&6; } 11463if ${ac_cv_path_PKG_CONFIG+:} false; then : 11464 $as_echo_n "(cached) " >&6 11465else 11466 case $PKG_CONFIG in 11467 [\\/]* | ?:[\\/]*) 11468 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11469 ;; 11470 *) 11471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11472for as_dir in $PATH 11473do 11474 IFS=$as_save_IFS 11475 test -z "$as_dir" && as_dir=. 11476 for ac_exec_ext in '' $ac_executable_extensions; do 11477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11478 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11480 break 2 11481 fi 11482done 11483 done 11484IFS=$as_save_IFS 11485 11486 ;; 11487esac 11488fi 11489PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11490if test -n "$PKG_CONFIG"; then 11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11492$as_echo "$PKG_CONFIG" >&6; } 11493else 11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11495$as_echo "no" >&6; } 11496fi 11497 11498 11499fi 11500if test -z "$ac_cv_path_PKG_CONFIG"; then 11501 ac_pt_PKG_CONFIG=$PKG_CONFIG 11502 # Extract the first word of "pkg-config", so it can be a program name with args. 11503set dummy pkg-config; ac_word=$2 11504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11505$as_echo_n "checking for $ac_word... " >&6; } 11506if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 11507 $as_echo_n "(cached) " >&6 11508else 11509 case $ac_pt_PKG_CONFIG in 11510 [\\/]* | ?:[\\/]*) 11511 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11512 ;; 11513 *) 11514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11515for as_dir in $PATH 11516do 11517 IFS=$as_save_IFS 11518 test -z "$as_dir" && as_dir=. 11519 for ac_exec_ext in '' $ac_executable_extensions; do 11520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11521 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11523 break 2 11524 fi 11525done 11526 done 11527IFS=$as_save_IFS 11528 11529 ;; 11530esac 11531fi 11532ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 11533if test -n "$ac_pt_PKG_CONFIG"; then 11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 11535$as_echo "$ac_pt_PKG_CONFIG" >&6; } 11536else 11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11538$as_echo "no" >&6; } 11539fi 11540 11541 if test "x$ac_pt_PKG_CONFIG" = x; then 11542 PKG_CONFIG="" 11543 else 11544 case $cross_compiling:$ac_tool_warned in 11545yes:) 11546{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11547$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11548ac_tool_warned=yes ;; 11549esac 11550 PKG_CONFIG=$ac_pt_PKG_CONFIG 11551 fi 11552else 11553 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 11554fi 11555 11556fi 11557if test -n "$PKG_CONFIG"; then 11558 _pkg_min_version=0.9.0 11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 11560$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 11561 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11563$as_echo "yes" >&6; } 11564 else 11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11566$as_echo "no" >&6; } 11567 PKG_CONFIG="" 11568 fi 11569 11570fi 11571 11572 11573 11574 11575 11576# Check whether --enable-selective-werror was given. 11577if test "${enable_selective_werror+set}" = set; then : 11578 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 11579else 11580 SELECTIVE_WERROR=yes 11581fi 11582 11583 11584 11585 11586 11587# -v is too short to test reliably with XORG_TESTSET_CFLAG 11588if test "x$SUNCC" = "xyes"; then 11589 BASE_CFLAGS="-v" 11590else 11591 BASE_CFLAGS="" 11592fi 11593 11594# This chunk of warnings were those that existed in the legacy CWARNFLAGS 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606xorg_testset_save_CFLAGS="$CFLAGS" 11607 11608if test "x$xorg_testset_unknown_warning_option" = "x" ; then 11609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 11611$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 11612if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 11613 $as_echo_n "(cached) " >&6 11614else 11615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11616/* end confdefs.h. */ 11617int i; 11618_ACEOF 11619if ac_fn_c_try_compile "$LINENO"; then : 11620 xorg_cv_compiler_flag_unknown_warning_option=yes 11621else 11622 xorg_cv_compiler_flag_unknown_warning_option=no 11623fi 11624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11625fi 11626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 11627$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 11628 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 11629 CFLAGS="$xorg_testset_save_CFLAGS" 11630fi 11631 11632if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 11633 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11634 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11635 fi 11636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 11638$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 11639if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 11640 $as_echo_n "(cached) " >&6 11641else 11642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11643/* end confdefs.h. */ 11644int i; 11645_ACEOF 11646if ac_fn_c_try_compile "$LINENO"; then : 11647 xorg_cv_compiler_flag_unused_command_line_argument=yes 11648else 11649 xorg_cv_compiler_flag_unused_command_line_argument=no 11650fi 11651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11652fi 11653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 11654$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 11655 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 11656 CFLAGS="$xorg_testset_save_CFLAGS" 11657fi 11658 11659found="no" 11660 11661 if test $found = "no" ; then 11662 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11664 fi 11665 11666 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 11667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11668 fi 11669 11670 CFLAGS="$CFLAGS -Wall" 11671 11672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 11673$as_echo_n "checking if $CC supports -Wall... " >&6; } 11674 cacheid=`$as_echo xorg_cv_cc_flag_-Wall` 11675 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 11676 $as_echo_n "(cached) " >&6 11677else 11678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11679/* end confdefs.h. */ 11680int i; 11681int 11682main () 11683{ 11684 11685 ; 11686 return 0; 11687} 11688_ACEOF 11689if ac_fn_c_try_link "$LINENO"; then : 11690 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 11691else 11692 eval `$as_echo "$cacheid" | $as_tr_sh`=no 11693fi 11694rm -f core conftest.err conftest.$ac_objext \ 11695 conftest$ac_exeext conftest.$ac_ext 11696fi 11697 11698 11699 CFLAGS="$xorg_testset_save_CFLAGS" 11700 11701 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11703$as_echo "$supported" >&6; } 11704 if test "$supported" = "yes" ; then 11705 BASE_CFLAGS="$BASE_CFLAGS -Wall" 11706 found="yes" 11707 fi 11708 fi 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722xorg_testset_save_CFLAGS="$CFLAGS" 11723 11724if test "x$xorg_testset_unknown_warning_option" = "x" ; then 11725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 11727$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 11728if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 11729 $as_echo_n "(cached) " >&6 11730else 11731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11732/* end confdefs.h. */ 11733int i; 11734_ACEOF 11735if ac_fn_c_try_compile "$LINENO"; then : 11736 xorg_cv_compiler_flag_unknown_warning_option=yes 11737else 11738 xorg_cv_compiler_flag_unknown_warning_option=no 11739fi 11740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11741fi 11742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 11743$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 11744 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 11745 CFLAGS="$xorg_testset_save_CFLAGS" 11746fi 11747 11748if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 11749 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11750 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11751 fi 11752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 11754$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 11755if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 11756 $as_echo_n "(cached) " >&6 11757else 11758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11759/* end confdefs.h. */ 11760int i; 11761_ACEOF 11762if ac_fn_c_try_compile "$LINENO"; then : 11763 xorg_cv_compiler_flag_unused_command_line_argument=yes 11764else 11765 xorg_cv_compiler_flag_unused_command_line_argument=no 11766fi 11767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11768fi 11769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 11770$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 11771 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 11772 CFLAGS="$xorg_testset_save_CFLAGS" 11773fi 11774 11775found="no" 11776 11777 if test $found = "no" ; then 11778 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11779 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11780 fi 11781 11782 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 11783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11784 fi 11785 11786 CFLAGS="$CFLAGS -Wpointer-arith" 11787 11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 11789$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 11790 cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-arith` 11791 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 11792 $as_echo_n "(cached) " >&6 11793else 11794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11795/* end confdefs.h. */ 11796int i; 11797int 11798main () 11799{ 11800 11801 ; 11802 return 0; 11803} 11804_ACEOF 11805if ac_fn_c_try_link "$LINENO"; then : 11806 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 11807else 11808 eval `$as_echo "$cacheid" | $as_tr_sh`=no 11809fi 11810rm -f core conftest.err conftest.$ac_objext \ 11811 conftest$ac_exeext conftest.$ac_ext 11812fi 11813 11814 11815 CFLAGS="$xorg_testset_save_CFLAGS" 11816 11817 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11819$as_echo "$supported" >&6; } 11820 if test "$supported" = "yes" ; then 11821 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 11822 found="yes" 11823 fi 11824 fi 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838xorg_testset_save_CFLAGS="$CFLAGS" 11839 11840if test "x$xorg_testset_unknown_warning_option" = "x" ; then 11841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 11843$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 11844if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 11845 $as_echo_n "(cached) " >&6 11846else 11847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11848/* end confdefs.h. */ 11849int i; 11850_ACEOF 11851if ac_fn_c_try_compile "$LINENO"; then : 11852 xorg_cv_compiler_flag_unknown_warning_option=yes 11853else 11854 xorg_cv_compiler_flag_unknown_warning_option=no 11855fi 11856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11857fi 11858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 11859$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 11860 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 11861 CFLAGS="$xorg_testset_save_CFLAGS" 11862fi 11863 11864if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 11865 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11866 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11867 fi 11868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 11870$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 11871if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 11872 $as_echo_n "(cached) " >&6 11873else 11874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11875/* end confdefs.h. */ 11876int i; 11877_ACEOF 11878if ac_fn_c_try_compile "$LINENO"; then : 11879 xorg_cv_compiler_flag_unused_command_line_argument=yes 11880else 11881 xorg_cv_compiler_flag_unused_command_line_argument=no 11882fi 11883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11884fi 11885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 11886$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 11887 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 11888 CFLAGS="$xorg_testset_save_CFLAGS" 11889fi 11890 11891found="no" 11892 11893 if test $found = "no" ; then 11894 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11895 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11896 fi 11897 11898 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 11899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11900 fi 11901 11902 CFLAGS="$CFLAGS -Wmissing-declarations" 11903 11904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 11905$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 11906 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-declarations` 11907 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 11908 $as_echo_n "(cached) " >&6 11909else 11910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11911/* end confdefs.h. */ 11912int i; 11913int 11914main () 11915{ 11916 11917 ; 11918 return 0; 11919} 11920_ACEOF 11921if ac_fn_c_try_link "$LINENO"; then : 11922 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 11923else 11924 eval `$as_echo "$cacheid" | $as_tr_sh`=no 11925fi 11926rm -f core conftest.err conftest.$ac_objext \ 11927 conftest$ac_exeext conftest.$ac_ext 11928fi 11929 11930 11931 CFLAGS="$xorg_testset_save_CFLAGS" 11932 11933 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11935$as_echo "$supported" >&6; } 11936 if test "$supported" = "yes" ; then 11937 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 11938 found="yes" 11939 fi 11940 fi 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954xorg_testset_save_CFLAGS="$CFLAGS" 11955 11956if test "x$xorg_testset_unknown_warning_option" = "x" ; then 11957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 11959$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 11960if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 11961 $as_echo_n "(cached) " >&6 11962else 11963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11964/* end confdefs.h. */ 11965int i; 11966_ACEOF 11967if ac_fn_c_try_compile "$LINENO"; then : 11968 xorg_cv_compiler_flag_unknown_warning_option=yes 11969else 11970 xorg_cv_compiler_flag_unknown_warning_option=no 11971fi 11972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11973fi 11974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 11975$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 11976 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 11977 CFLAGS="$xorg_testset_save_CFLAGS" 11978fi 11979 11980if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 11981 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11982 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11983 fi 11984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 11986$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 11987if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 11988 $as_echo_n "(cached) " >&6 11989else 11990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11991/* end confdefs.h. */ 11992int i; 11993_ACEOF 11994if ac_fn_c_try_compile "$LINENO"; then : 11995 xorg_cv_compiler_flag_unused_command_line_argument=yes 11996else 11997 xorg_cv_compiler_flag_unused_command_line_argument=no 11998fi 11999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12000fi 12001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 12002$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 12003 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 12004 CFLAGS="$xorg_testset_save_CFLAGS" 12005fi 12006 12007found="no" 12008 12009 if test $found = "no" ; then 12010 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12011 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12012 fi 12013 12014 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12016 fi 12017 12018 CFLAGS="$CFLAGS -Wformat=2" 12019 12020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12021$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12022 cacheid=`$as_echo xorg_cv_cc_flag_-Wformat=2` 12023 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 12024 $as_echo_n "(cached) " >&6 12025else 12026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12027/* end confdefs.h. */ 12028int i; 12029int 12030main () 12031{ 12032 12033 ; 12034 return 0; 12035} 12036_ACEOF 12037if ac_fn_c_try_link "$LINENO"; then : 12038 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 12039else 12040 eval `$as_echo "$cacheid" | $as_tr_sh`=no 12041fi 12042rm -f core conftest.err conftest.$ac_objext \ 12043 conftest$ac_exeext conftest.$ac_ext 12044fi 12045 12046 12047 CFLAGS="$xorg_testset_save_CFLAGS" 12048 12049 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12051$as_echo "$supported" >&6; } 12052 if test "$supported" = "yes" ; then 12053 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12054 found="yes" 12055 fi 12056 fi 12057 12058 if test $found = "no" ; then 12059 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12060 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12061 fi 12062 12063 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12065 fi 12066 12067 CFLAGS="$CFLAGS -Wformat" 12068 12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 12070$as_echo_n "checking if $CC supports -Wformat... " >&6; } 12071 cacheid=`$as_echo xorg_cv_cc_flag_-Wformat` 12072 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 12073 $as_echo_n "(cached) " >&6 12074else 12075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12076/* end confdefs.h. */ 12077int i; 12078int 12079main () 12080{ 12081 12082 ; 12083 return 0; 12084} 12085_ACEOF 12086if ac_fn_c_try_link "$LINENO"; then : 12087 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 12088else 12089 eval `$as_echo "$cacheid" | $as_tr_sh`=no 12090fi 12091rm -f core conftest.err conftest.$ac_objext \ 12092 conftest$ac_exeext conftest.$ac_ext 12093fi 12094 12095 12096 CFLAGS="$xorg_testset_save_CFLAGS" 12097 12098 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12100$as_echo "$supported" >&6; } 12101 if test "$supported" = "yes" ; then 12102 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 12103 found="yes" 12104 fi 12105 fi 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121xorg_testset_save_CFLAGS="$CFLAGS" 12122 12123if test "x$xorg_testset_unknown_warning_option" = "x" ; then 12124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 12126$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 12127if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 12128 $as_echo_n "(cached) " >&6 12129else 12130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12131/* end confdefs.h. */ 12132int i; 12133_ACEOF 12134if ac_fn_c_try_compile "$LINENO"; then : 12135 xorg_cv_compiler_flag_unknown_warning_option=yes 12136else 12137 xorg_cv_compiler_flag_unknown_warning_option=no 12138fi 12139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12140fi 12141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 12142$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 12143 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 12144 CFLAGS="$xorg_testset_save_CFLAGS" 12145fi 12146 12147if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 12148 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12149 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12150 fi 12151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 12153$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 12154if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 12155 $as_echo_n "(cached) " >&6 12156else 12157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12158/* end confdefs.h. */ 12159int i; 12160_ACEOF 12161if ac_fn_c_try_compile "$LINENO"; then : 12162 xorg_cv_compiler_flag_unused_command_line_argument=yes 12163else 12164 xorg_cv_compiler_flag_unused_command_line_argument=no 12165fi 12166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12167fi 12168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 12169$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 12170 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 12171 CFLAGS="$xorg_testset_save_CFLAGS" 12172fi 12173 12174found="no" 12175 12176 if test $found = "no" ; then 12177 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12178 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12179 fi 12180 12181 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12183 fi 12184 12185 CFLAGS="$CFLAGS -Wstrict-prototypes" 12186 12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 12188$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 12189 cacheid=`$as_echo xorg_cv_cc_flag_-Wstrict-prototypes` 12190 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 12191 $as_echo_n "(cached) " >&6 12192else 12193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12194/* end confdefs.h. */ 12195int i; 12196int 12197main () 12198{ 12199 12200 ; 12201 return 0; 12202} 12203_ACEOF 12204if ac_fn_c_try_link "$LINENO"; then : 12205 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 12206else 12207 eval `$as_echo "$cacheid" | $as_tr_sh`=no 12208fi 12209rm -f core conftest.err conftest.$ac_objext \ 12210 conftest$ac_exeext conftest.$ac_ext 12211fi 12212 12213 12214 CFLAGS="$xorg_testset_save_CFLAGS" 12215 12216 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12218$as_echo "$supported" >&6; } 12219 if test "$supported" = "yes" ; then 12220 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 12221 found="yes" 12222 fi 12223 fi 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237xorg_testset_save_CFLAGS="$CFLAGS" 12238 12239if test "x$xorg_testset_unknown_warning_option" = "x" ; then 12240 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 12242$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 12243if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 12244 $as_echo_n "(cached) " >&6 12245else 12246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12247/* end confdefs.h. */ 12248int i; 12249_ACEOF 12250if ac_fn_c_try_compile "$LINENO"; then : 12251 xorg_cv_compiler_flag_unknown_warning_option=yes 12252else 12253 xorg_cv_compiler_flag_unknown_warning_option=no 12254fi 12255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12256fi 12257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 12258$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 12259 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 12260 CFLAGS="$xorg_testset_save_CFLAGS" 12261fi 12262 12263if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 12264 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12265 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12266 fi 12267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 12269$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 12270if ${xorg_cv_compiler_flag_unused_command_line_argument+:} 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_compiler_flag_unused_command_line_argument=yes 12279else 12280 xorg_cv_compiler_flag_unused_command_line_argument=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_compiler_flag_unused_command_line_argument" >&5 12285$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 12286 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 12287 CFLAGS="$xorg_testset_save_CFLAGS" 12288fi 12289 12290found="no" 12291 12292 if test $found = "no" ; then 12293 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12295 fi 12296 12297 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12299 fi 12300 12301 CFLAGS="$CFLAGS -Wmissing-prototypes" 12302 12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 12304$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 12305 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-prototypes` 12306 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 12307 $as_echo_n "(cached) " >&6 12308else 12309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12310/* end confdefs.h. */ 12311int i; 12312int 12313main () 12314{ 12315 12316 ; 12317 return 0; 12318} 12319_ACEOF 12320if ac_fn_c_try_link "$LINENO"; then : 12321 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 12322else 12323 eval `$as_echo "$cacheid" | $as_tr_sh`=no 12324fi 12325rm -f core conftest.err conftest.$ac_objext \ 12326 conftest$ac_exeext conftest.$ac_ext 12327fi 12328 12329 12330 CFLAGS="$xorg_testset_save_CFLAGS" 12331 12332 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12334$as_echo "$supported" >&6; } 12335 if test "$supported" = "yes" ; then 12336 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 12337 found="yes" 12338 fi 12339 fi 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353xorg_testset_save_CFLAGS="$CFLAGS" 12354 12355if test "x$xorg_testset_unknown_warning_option" = "x" ; then 12356 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 12358$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 12359if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 12360 $as_echo_n "(cached) " >&6 12361else 12362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12363/* end confdefs.h. */ 12364int i; 12365_ACEOF 12366if ac_fn_c_try_compile "$LINENO"; then : 12367 xorg_cv_compiler_flag_unknown_warning_option=yes 12368else 12369 xorg_cv_compiler_flag_unknown_warning_option=no 12370fi 12371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12372fi 12373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 12374$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 12375 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 12376 CFLAGS="$xorg_testset_save_CFLAGS" 12377fi 12378 12379if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 12380 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12382 fi 12383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 12385$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 12386if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 12387 $as_echo_n "(cached) " >&6 12388else 12389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12390/* end confdefs.h. */ 12391int i; 12392_ACEOF 12393if ac_fn_c_try_compile "$LINENO"; then : 12394 xorg_cv_compiler_flag_unused_command_line_argument=yes 12395else 12396 xorg_cv_compiler_flag_unused_command_line_argument=no 12397fi 12398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12399fi 12400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 12401$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 12402 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 12403 CFLAGS="$xorg_testset_save_CFLAGS" 12404fi 12405 12406found="no" 12407 12408 if test $found = "no" ; then 12409 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12410 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12411 fi 12412 12413 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12415 fi 12416 12417 CFLAGS="$CFLAGS -Wnested-externs" 12418 12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 12420$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 12421 cacheid=`$as_echo xorg_cv_cc_flag_-Wnested-externs` 12422 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 12423 $as_echo_n "(cached) " >&6 12424else 12425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12426/* end confdefs.h. */ 12427int i; 12428int 12429main () 12430{ 12431 12432 ; 12433 return 0; 12434} 12435_ACEOF 12436if ac_fn_c_try_link "$LINENO"; then : 12437 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 12438else 12439 eval `$as_echo "$cacheid" | $as_tr_sh`=no 12440fi 12441rm -f core conftest.err conftest.$ac_objext \ 12442 conftest$ac_exeext conftest.$ac_ext 12443fi 12444 12445 12446 CFLAGS="$xorg_testset_save_CFLAGS" 12447 12448 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12450$as_echo "$supported" >&6; } 12451 if test "$supported" = "yes" ; then 12452 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 12453 found="yes" 12454 fi 12455 fi 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465 12466 12467 12468 12469xorg_testset_save_CFLAGS="$CFLAGS" 12470 12471if test "x$xorg_testset_unknown_warning_option" = "x" ; then 12472 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 12474$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 12475if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 12476 $as_echo_n "(cached) " >&6 12477else 12478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12479/* end confdefs.h. */ 12480int i; 12481_ACEOF 12482if ac_fn_c_try_compile "$LINENO"; then : 12483 xorg_cv_compiler_flag_unknown_warning_option=yes 12484else 12485 xorg_cv_compiler_flag_unknown_warning_option=no 12486fi 12487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12488fi 12489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 12490$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 12491 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 12492 CFLAGS="$xorg_testset_save_CFLAGS" 12493fi 12494 12495if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 12496 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12497 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12498 fi 12499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 12501$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 12502if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 12503 $as_echo_n "(cached) " >&6 12504else 12505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12506/* end confdefs.h. */ 12507int i; 12508_ACEOF 12509if ac_fn_c_try_compile "$LINENO"; then : 12510 xorg_cv_compiler_flag_unused_command_line_argument=yes 12511else 12512 xorg_cv_compiler_flag_unused_command_line_argument=no 12513fi 12514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12515fi 12516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 12517$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 12518 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 12519 CFLAGS="$xorg_testset_save_CFLAGS" 12520fi 12521 12522found="no" 12523 12524 if test $found = "no" ; then 12525 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12526 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12527 fi 12528 12529 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12531 fi 12532 12533 CFLAGS="$CFLAGS -Wbad-function-cast" 12534 12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 12536$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 12537 cacheid=`$as_echo xorg_cv_cc_flag_-Wbad-function-cast` 12538 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 12539 $as_echo_n "(cached) " >&6 12540else 12541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12542/* end confdefs.h. */ 12543int i; 12544int 12545main () 12546{ 12547 12548 ; 12549 return 0; 12550} 12551_ACEOF 12552if ac_fn_c_try_link "$LINENO"; then : 12553 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 12554else 12555 eval `$as_echo "$cacheid" | $as_tr_sh`=no 12556fi 12557rm -f core conftest.err conftest.$ac_objext \ 12558 conftest$ac_exeext conftest.$ac_ext 12559fi 12560 12561 12562 CFLAGS="$xorg_testset_save_CFLAGS" 12563 12564 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12566$as_echo "$supported" >&6; } 12567 if test "$supported" = "yes" ; then 12568 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 12569 found="yes" 12570 fi 12571 fi 12572 12573 12574 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584 12585xorg_testset_save_CFLAGS="$CFLAGS" 12586 12587if test "x$xorg_testset_unknown_warning_option" = "x" ; then 12588 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 12590$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 12591if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 12592 $as_echo_n "(cached) " >&6 12593else 12594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12595/* end confdefs.h. */ 12596int i; 12597_ACEOF 12598if ac_fn_c_try_compile "$LINENO"; then : 12599 xorg_cv_compiler_flag_unknown_warning_option=yes 12600else 12601 xorg_cv_compiler_flag_unknown_warning_option=no 12602fi 12603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12604fi 12605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 12606$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 12607 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 12608 CFLAGS="$xorg_testset_save_CFLAGS" 12609fi 12610 12611if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 12612 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12613 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12614 fi 12615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 12617$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 12618if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 12619 $as_echo_n "(cached) " >&6 12620else 12621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12622/* end confdefs.h. */ 12623int i; 12624_ACEOF 12625if ac_fn_c_try_compile "$LINENO"; then : 12626 xorg_cv_compiler_flag_unused_command_line_argument=yes 12627else 12628 xorg_cv_compiler_flag_unused_command_line_argument=no 12629fi 12630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12631fi 12632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 12633$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 12634 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 12635 CFLAGS="$xorg_testset_save_CFLAGS" 12636fi 12637 12638found="no" 12639 12640 if test $found = "no" ; then 12641 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12642 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12643 fi 12644 12645 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12647 fi 12648 12649 CFLAGS="$CFLAGS -Wold-style-definition" 12650 12651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 12652$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 12653 cacheid=`$as_echo xorg_cv_cc_flag_-Wold-style-definition` 12654 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 12655 $as_echo_n "(cached) " >&6 12656else 12657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12658/* end confdefs.h. */ 12659int i; 12660int 12661main () 12662{ 12663 12664 ; 12665 return 0; 12666} 12667_ACEOF 12668if ac_fn_c_try_link "$LINENO"; then : 12669 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 12670else 12671 eval `$as_echo "$cacheid" | $as_tr_sh`=no 12672fi 12673rm -f core conftest.err conftest.$ac_objext \ 12674 conftest$ac_exeext conftest.$ac_ext 12675fi 12676 12677 12678 CFLAGS="$xorg_testset_save_CFLAGS" 12679 12680 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12682$as_echo "$supported" >&6; } 12683 if test "$supported" = "yes" ; then 12684 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 12685 found="yes" 12686 fi 12687 fi 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701xorg_testset_save_CFLAGS="$CFLAGS" 12702 12703if test "x$xorg_testset_unknown_warning_option" = "x" ; then 12704 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 12706$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 12707if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 12708 $as_echo_n "(cached) " >&6 12709else 12710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12711/* end confdefs.h. */ 12712int i; 12713_ACEOF 12714if ac_fn_c_try_compile "$LINENO"; then : 12715 xorg_cv_compiler_flag_unknown_warning_option=yes 12716else 12717 xorg_cv_compiler_flag_unknown_warning_option=no 12718fi 12719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12720fi 12721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 12722$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 12723 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 12724 CFLAGS="$xorg_testset_save_CFLAGS" 12725fi 12726 12727if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 12728 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12729 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12730 fi 12731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 12733$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 12734if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 12735 $as_echo_n "(cached) " >&6 12736else 12737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12738/* end confdefs.h. */ 12739int i; 12740_ACEOF 12741if ac_fn_c_try_compile "$LINENO"; then : 12742 xorg_cv_compiler_flag_unused_command_line_argument=yes 12743else 12744 xorg_cv_compiler_flag_unused_command_line_argument=no 12745fi 12746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12747fi 12748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 12749$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 12750 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 12751 CFLAGS="$xorg_testset_save_CFLAGS" 12752fi 12753 12754found="no" 12755 12756 if test $found = "no" ; then 12757 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12758 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12759 fi 12760 12761 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12763 fi 12764 12765 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 12766 12767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 12768$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 12769 cacheid=`$as_echo xorg_cv_cc_flag_-Wdeclaration-after-statement` 12770 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 12771 $as_echo_n "(cached) " >&6 12772else 12773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12774/* end confdefs.h. */ 12775int i; 12776int 12777main () 12778{ 12779 12780 ; 12781 return 0; 12782} 12783_ACEOF 12784if ac_fn_c_try_link "$LINENO"; then : 12785 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 12786else 12787 eval `$as_echo "$cacheid" | $as_tr_sh`=no 12788fi 12789rm -f core conftest.err conftest.$ac_objext \ 12790 conftest$ac_exeext conftest.$ac_ext 12791fi 12792 12793 12794 CFLAGS="$xorg_testset_save_CFLAGS" 12795 12796 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12798$as_echo "$supported" >&6; } 12799 if test "$supported" = "yes" ; then 12800 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 12801 found="yes" 12802 fi 12803 fi 12804 12805 12806 12807 12808 12809# This chunk adds additional warnings that could catch undesired effects. 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821xorg_testset_save_CFLAGS="$CFLAGS" 12822 12823if test "x$xorg_testset_unknown_warning_option" = "x" ; then 12824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 12826$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 12827if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 12828 $as_echo_n "(cached) " >&6 12829else 12830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12831/* end confdefs.h. */ 12832int i; 12833_ACEOF 12834if ac_fn_c_try_compile "$LINENO"; then : 12835 xorg_cv_compiler_flag_unknown_warning_option=yes 12836else 12837 xorg_cv_compiler_flag_unknown_warning_option=no 12838fi 12839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12840fi 12841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 12842$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 12843 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 12844 CFLAGS="$xorg_testset_save_CFLAGS" 12845fi 12846 12847if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 12848 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12850 fi 12851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 12853$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 12854if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 12855 $as_echo_n "(cached) " >&6 12856else 12857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12858/* end confdefs.h. */ 12859int i; 12860_ACEOF 12861if ac_fn_c_try_compile "$LINENO"; then : 12862 xorg_cv_compiler_flag_unused_command_line_argument=yes 12863else 12864 xorg_cv_compiler_flag_unused_command_line_argument=no 12865fi 12866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12867fi 12868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 12869$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 12870 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 12871 CFLAGS="$xorg_testset_save_CFLAGS" 12872fi 12873 12874found="no" 12875 12876 if test $found = "no" ; then 12877 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12878 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12879 fi 12880 12881 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12883 fi 12884 12885 CFLAGS="$CFLAGS -Wunused" 12886 12887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 12888$as_echo_n "checking if $CC supports -Wunused... " >&6; } 12889 cacheid=`$as_echo xorg_cv_cc_flag_-Wunused` 12890 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 12891 $as_echo_n "(cached) " >&6 12892else 12893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12894/* end confdefs.h. */ 12895int i; 12896int 12897main () 12898{ 12899 12900 ; 12901 return 0; 12902} 12903_ACEOF 12904if ac_fn_c_try_link "$LINENO"; then : 12905 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 12906else 12907 eval `$as_echo "$cacheid" | $as_tr_sh`=no 12908fi 12909rm -f core conftest.err conftest.$ac_objext \ 12910 conftest$ac_exeext conftest.$ac_ext 12911fi 12912 12913 12914 CFLAGS="$xorg_testset_save_CFLAGS" 12915 12916 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12918$as_echo "$supported" >&6; } 12919 if test "$supported" = "yes" ; then 12920 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 12921 found="yes" 12922 fi 12923 fi 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 12936 12937xorg_testset_save_CFLAGS="$CFLAGS" 12938 12939if test "x$xorg_testset_unknown_warning_option" = "x" ; then 12940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 12942$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 12943if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 12944 $as_echo_n "(cached) " >&6 12945else 12946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12947/* end confdefs.h. */ 12948int i; 12949_ACEOF 12950if ac_fn_c_try_compile "$LINENO"; then : 12951 xorg_cv_compiler_flag_unknown_warning_option=yes 12952else 12953 xorg_cv_compiler_flag_unknown_warning_option=no 12954fi 12955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12956fi 12957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 12958$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 12959 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 12960 CFLAGS="$xorg_testset_save_CFLAGS" 12961fi 12962 12963if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 12964 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12966 fi 12967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 12969$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 12970if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 12971 $as_echo_n "(cached) " >&6 12972else 12973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12974/* end confdefs.h. */ 12975int i; 12976_ACEOF 12977if ac_fn_c_try_compile "$LINENO"; then : 12978 xorg_cv_compiler_flag_unused_command_line_argument=yes 12979else 12980 xorg_cv_compiler_flag_unused_command_line_argument=no 12981fi 12982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12983fi 12984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 12985$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 12986 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 12987 CFLAGS="$xorg_testset_save_CFLAGS" 12988fi 12989 12990found="no" 12991 12992 if test $found = "no" ; then 12993 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12994 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12995 fi 12996 12997 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12999 fi 13000 13001 CFLAGS="$CFLAGS -Wuninitialized" 13002 13003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 13004$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 13005 cacheid=`$as_echo xorg_cv_cc_flag_-Wuninitialized` 13006 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13007 $as_echo_n "(cached) " >&6 13008else 13009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13010/* end confdefs.h. */ 13011int i; 13012int 13013main () 13014{ 13015 13016 ; 13017 return 0; 13018} 13019_ACEOF 13020if ac_fn_c_try_link "$LINENO"; then : 13021 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 13022else 13023 eval `$as_echo "$cacheid" | $as_tr_sh`=no 13024fi 13025rm -f core conftest.err conftest.$ac_objext \ 13026 conftest$ac_exeext conftest.$ac_ext 13027fi 13028 13029 13030 CFLAGS="$xorg_testset_save_CFLAGS" 13031 13032 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13034$as_echo "$supported" >&6; } 13035 if test "$supported" = "yes" ; then 13036 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13037 found="yes" 13038 fi 13039 fi 13040 13041 13042 13043 13044 13045 13046 13047 13048 13049 13050 13051 13052 13053xorg_testset_save_CFLAGS="$CFLAGS" 13054 13055if test "x$xorg_testset_unknown_warning_option" = "x" ; then 13056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 13058$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 13059if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 13060 $as_echo_n "(cached) " >&6 13061else 13062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13063/* end confdefs.h. */ 13064int i; 13065_ACEOF 13066if ac_fn_c_try_compile "$LINENO"; then : 13067 xorg_cv_compiler_flag_unknown_warning_option=yes 13068else 13069 xorg_cv_compiler_flag_unknown_warning_option=no 13070fi 13071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13072fi 13073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 13074$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 13075 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 13076 CFLAGS="$xorg_testset_save_CFLAGS" 13077fi 13078 13079if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 13080 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13081 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13082 fi 13083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 13085$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 13086if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 13087 $as_echo_n "(cached) " >&6 13088else 13089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13090/* end confdefs.h. */ 13091int i; 13092_ACEOF 13093if ac_fn_c_try_compile "$LINENO"; then : 13094 xorg_cv_compiler_flag_unused_command_line_argument=yes 13095else 13096 xorg_cv_compiler_flag_unused_command_line_argument=no 13097fi 13098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13099fi 13100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 13101$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 13102 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 13103 CFLAGS="$xorg_testset_save_CFLAGS" 13104fi 13105 13106found="no" 13107 13108 if test $found = "no" ; then 13109 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13110 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13111 fi 13112 13113 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13115 fi 13116 13117 CFLAGS="$CFLAGS -Wshadow" 13118 13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 13120$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 13121 cacheid=`$as_echo xorg_cv_cc_flag_-Wshadow` 13122 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13123 $as_echo_n "(cached) " >&6 13124else 13125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13126/* end confdefs.h. */ 13127int i; 13128int 13129main () 13130{ 13131 13132 ; 13133 return 0; 13134} 13135_ACEOF 13136if ac_fn_c_try_link "$LINENO"; then : 13137 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 13138else 13139 eval `$as_echo "$cacheid" | $as_tr_sh`=no 13140fi 13141rm -f core conftest.err conftest.$ac_objext \ 13142 conftest$ac_exeext conftest.$ac_ext 13143fi 13144 13145 13146 CFLAGS="$xorg_testset_save_CFLAGS" 13147 13148 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13150$as_echo "$supported" >&6; } 13151 if test "$supported" = "yes" ; then 13152 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 13153 found="yes" 13154 fi 13155 fi 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169xorg_testset_save_CFLAGS="$CFLAGS" 13170 13171if test "x$xorg_testset_unknown_warning_option" = "x" ; then 13172 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 13174$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 13175if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 13176 $as_echo_n "(cached) " >&6 13177else 13178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13179/* end confdefs.h. */ 13180int i; 13181_ACEOF 13182if ac_fn_c_try_compile "$LINENO"; then : 13183 xorg_cv_compiler_flag_unknown_warning_option=yes 13184else 13185 xorg_cv_compiler_flag_unknown_warning_option=no 13186fi 13187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13188fi 13189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 13190$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 13191 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 13192 CFLAGS="$xorg_testset_save_CFLAGS" 13193fi 13194 13195if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 13196 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13198 fi 13199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 13201$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 13202if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 13203 $as_echo_n "(cached) " >&6 13204else 13205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13206/* end confdefs.h. */ 13207int i; 13208_ACEOF 13209if ac_fn_c_try_compile "$LINENO"; then : 13210 xorg_cv_compiler_flag_unused_command_line_argument=yes 13211else 13212 xorg_cv_compiler_flag_unused_command_line_argument=no 13213fi 13214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13215fi 13216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 13217$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 13218 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 13219 CFLAGS="$xorg_testset_save_CFLAGS" 13220fi 13221 13222found="no" 13223 13224 if test $found = "no" ; then 13225 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13226 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13227 fi 13228 13229 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13231 fi 13232 13233 CFLAGS="$CFLAGS -Wcast-qual" 13234 13235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 13236$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 13237 cacheid=`$as_echo xorg_cv_cc_flag_-Wcast-qual` 13238 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13239 $as_echo_n "(cached) " >&6 13240else 13241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13242/* end confdefs.h. */ 13243int i; 13244int 13245main () 13246{ 13247 13248 ; 13249 return 0; 13250} 13251_ACEOF 13252if ac_fn_c_try_link "$LINENO"; then : 13253 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 13254else 13255 eval `$as_echo "$cacheid" | $as_tr_sh`=no 13256fi 13257rm -f core conftest.err conftest.$ac_objext \ 13258 conftest$ac_exeext conftest.$ac_ext 13259fi 13260 13261 13262 CFLAGS="$xorg_testset_save_CFLAGS" 13263 13264 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13266$as_echo "$supported" >&6; } 13267 if test "$supported" = "yes" ; then 13268 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 13269 found="yes" 13270 fi 13271 fi 13272 13273 13274 13275 13276 13277 13278 13279 13280 13281 13282 13283 13284 13285xorg_testset_save_CFLAGS="$CFLAGS" 13286 13287if test "x$xorg_testset_unknown_warning_option" = "x" ; then 13288 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 13290$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 13291if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 13292 $as_echo_n "(cached) " >&6 13293else 13294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13295/* end confdefs.h. */ 13296int i; 13297_ACEOF 13298if ac_fn_c_try_compile "$LINENO"; then : 13299 xorg_cv_compiler_flag_unknown_warning_option=yes 13300else 13301 xorg_cv_compiler_flag_unknown_warning_option=no 13302fi 13303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13304fi 13305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 13306$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 13307 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 13308 CFLAGS="$xorg_testset_save_CFLAGS" 13309fi 13310 13311if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 13312 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13313 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13314 fi 13315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 13317$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 13318if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 13319 $as_echo_n "(cached) " >&6 13320else 13321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13322/* end confdefs.h. */ 13323int i; 13324_ACEOF 13325if ac_fn_c_try_compile "$LINENO"; then : 13326 xorg_cv_compiler_flag_unused_command_line_argument=yes 13327else 13328 xorg_cv_compiler_flag_unused_command_line_argument=no 13329fi 13330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13331fi 13332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 13333$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 13334 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 13335 CFLAGS="$xorg_testset_save_CFLAGS" 13336fi 13337 13338found="no" 13339 13340 if test $found = "no" ; then 13341 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13342 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13343 fi 13344 13345 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13347 fi 13348 13349 CFLAGS="$CFLAGS -Wmissing-noreturn" 13350 13351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 13352$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 13353 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-noreturn` 13354 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13355 $as_echo_n "(cached) " >&6 13356else 13357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13358/* end confdefs.h. */ 13359int i; 13360int 13361main () 13362{ 13363 13364 ; 13365 return 0; 13366} 13367_ACEOF 13368if ac_fn_c_try_link "$LINENO"; then : 13369 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 13370else 13371 eval `$as_echo "$cacheid" | $as_tr_sh`=no 13372fi 13373rm -f core conftest.err conftest.$ac_objext \ 13374 conftest$ac_exeext conftest.$ac_ext 13375fi 13376 13377 13378 CFLAGS="$xorg_testset_save_CFLAGS" 13379 13380 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13382$as_echo "$supported" >&6; } 13383 if test "$supported" = "yes" ; then 13384 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 13385 found="yes" 13386 fi 13387 fi 13388 13389 13390 13391 13392 13393 13394 13395 13396 13397 13398 13399 13400 13401xorg_testset_save_CFLAGS="$CFLAGS" 13402 13403if test "x$xorg_testset_unknown_warning_option" = "x" ; then 13404 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 13406$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 13407if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 13408 $as_echo_n "(cached) " >&6 13409else 13410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13411/* end confdefs.h. */ 13412int i; 13413_ACEOF 13414if ac_fn_c_try_compile "$LINENO"; then : 13415 xorg_cv_compiler_flag_unknown_warning_option=yes 13416else 13417 xorg_cv_compiler_flag_unknown_warning_option=no 13418fi 13419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13420fi 13421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 13422$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 13423 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 13424 CFLAGS="$xorg_testset_save_CFLAGS" 13425fi 13426 13427if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 13428 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13429 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13430 fi 13431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 13433$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 13434if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 13435 $as_echo_n "(cached) " >&6 13436else 13437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13438/* end confdefs.h. */ 13439int i; 13440_ACEOF 13441if ac_fn_c_try_compile "$LINENO"; then : 13442 xorg_cv_compiler_flag_unused_command_line_argument=yes 13443else 13444 xorg_cv_compiler_flag_unused_command_line_argument=no 13445fi 13446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13447fi 13448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 13449$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 13450 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 13451 CFLAGS="$xorg_testset_save_CFLAGS" 13452fi 13453 13454found="no" 13455 13456 if test $found = "no" ; then 13457 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13458 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13459 fi 13460 13461 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13463 fi 13464 13465 CFLAGS="$CFLAGS -Wmissing-format-attribute" 13466 13467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 13468$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 13469 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-format-attribute` 13470 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13471 $as_echo_n "(cached) " >&6 13472else 13473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13474/* end confdefs.h. */ 13475int i; 13476int 13477main () 13478{ 13479 13480 ; 13481 return 0; 13482} 13483_ACEOF 13484if ac_fn_c_try_link "$LINENO"; then : 13485 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 13486else 13487 eval `$as_echo "$cacheid" | $as_tr_sh`=no 13488fi 13489rm -f core conftest.err conftest.$ac_objext \ 13490 conftest$ac_exeext conftest.$ac_ext 13491fi 13492 13493 13494 CFLAGS="$xorg_testset_save_CFLAGS" 13495 13496 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13498$as_echo "$supported" >&6; } 13499 if test "$supported" = "yes" ; then 13500 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 13501 found="yes" 13502 fi 13503 fi 13504 13505 13506 13507 13508 13509 13510 13511 13512 13513 13514 13515 13516 13517xorg_testset_save_CFLAGS="$CFLAGS" 13518 13519if test "x$xorg_testset_unknown_warning_option" = "x" ; then 13520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 13522$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 13523if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 13524 $as_echo_n "(cached) " >&6 13525else 13526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13527/* end confdefs.h. */ 13528int i; 13529_ACEOF 13530if ac_fn_c_try_compile "$LINENO"; then : 13531 xorg_cv_compiler_flag_unknown_warning_option=yes 13532else 13533 xorg_cv_compiler_flag_unknown_warning_option=no 13534fi 13535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13536fi 13537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 13538$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 13539 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 13540 CFLAGS="$xorg_testset_save_CFLAGS" 13541fi 13542 13543if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 13544 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13545 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13546 fi 13547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 13549$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 13550if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 13551 $as_echo_n "(cached) " >&6 13552else 13553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13554/* end confdefs.h. */ 13555int i; 13556_ACEOF 13557if ac_fn_c_try_compile "$LINENO"; then : 13558 xorg_cv_compiler_flag_unused_command_line_argument=yes 13559else 13560 xorg_cv_compiler_flag_unused_command_line_argument=no 13561fi 13562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13563fi 13564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 13565$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 13566 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 13567 CFLAGS="$xorg_testset_save_CFLAGS" 13568fi 13569 13570found="no" 13571 13572 if test $found = "no" ; then 13573 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13574 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13575 fi 13576 13577 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13579 fi 13580 13581 CFLAGS="$CFLAGS -Wredundant-decls" 13582 13583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 13584$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 13585 cacheid=`$as_echo xorg_cv_cc_flag_-Wredundant-decls` 13586 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13587 $as_echo_n "(cached) " >&6 13588else 13589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13590/* end confdefs.h. */ 13591int i; 13592int 13593main () 13594{ 13595 13596 ; 13597 return 0; 13598} 13599_ACEOF 13600if ac_fn_c_try_link "$LINENO"; then : 13601 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 13602else 13603 eval `$as_echo "$cacheid" | $as_tr_sh`=no 13604fi 13605rm -f core conftest.err conftest.$ac_objext \ 13606 conftest$ac_exeext conftest.$ac_ext 13607fi 13608 13609 13610 CFLAGS="$xorg_testset_save_CFLAGS" 13611 13612 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13614$as_echo "$supported" >&6; } 13615 if test "$supported" = "yes" ; then 13616 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 13617 found="yes" 13618 fi 13619 fi 13620 13621 13622 13623# These are currently disabled because they are noisy. They will be enabled 13624# in the future once the codebase is sufficiently modernized to silence 13625# them. For now, I don't want them to drown out the other warnings. 13626# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 13627# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 13628# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 13629 13630# Turn some warnings into errors, so we don't accidently get successful builds 13631# when there are problems that should be fixed. 13632 13633if test "x$SELECTIVE_WERROR" = "xyes" ; then 13634 13635 13636 13637 13638 13639 13640 13641 13642 13643 13644 13645xorg_testset_save_CFLAGS="$CFLAGS" 13646 13647if test "x$xorg_testset_unknown_warning_option" = "x" ; then 13648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 13650$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 13651if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 13652 $as_echo_n "(cached) " >&6 13653else 13654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13655/* end confdefs.h. */ 13656int i; 13657_ACEOF 13658if ac_fn_c_try_compile "$LINENO"; then : 13659 xorg_cv_compiler_flag_unknown_warning_option=yes 13660else 13661 xorg_cv_compiler_flag_unknown_warning_option=no 13662fi 13663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13664fi 13665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 13666$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 13667 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 13668 CFLAGS="$xorg_testset_save_CFLAGS" 13669fi 13670 13671if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 13672 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13673 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13674 fi 13675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 13677$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 13678if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 13679 $as_echo_n "(cached) " >&6 13680else 13681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13682/* end confdefs.h. */ 13683int i; 13684_ACEOF 13685if ac_fn_c_try_compile "$LINENO"; then : 13686 xorg_cv_compiler_flag_unused_command_line_argument=yes 13687else 13688 xorg_cv_compiler_flag_unused_command_line_argument=no 13689fi 13690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13691fi 13692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 13693$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 13694 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 13695 CFLAGS="$xorg_testset_save_CFLAGS" 13696fi 13697 13698found="no" 13699 13700 if test $found = "no" ; then 13701 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13703 fi 13704 13705 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13706 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13707 fi 13708 13709 CFLAGS="$CFLAGS -Werror=implicit" 13710 13711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 13712$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 13713 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=implicit` 13714 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13715 $as_echo_n "(cached) " >&6 13716else 13717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13718/* end confdefs.h. */ 13719int i; 13720int 13721main () 13722{ 13723 13724 ; 13725 return 0; 13726} 13727_ACEOF 13728if ac_fn_c_try_link "$LINENO"; then : 13729 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 13730else 13731 eval `$as_echo "$cacheid" | $as_tr_sh`=no 13732fi 13733rm -f core conftest.err conftest.$ac_objext \ 13734 conftest$ac_exeext conftest.$ac_ext 13735fi 13736 13737 13738 CFLAGS="$xorg_testset_save_CFLAGS" 13739 13740 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13742$as_echo "$supported" >&6; } 13743 if test "$supported" = "yes" ; then 13744 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 13745 found="yes" 13746 fi 13747 fi 13748 13749 if test $found = "no" ; then 13750 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13751 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13752 fi 13753 13754 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13756 fi 13757 13758 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 13759 13760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 13761$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 13762 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED` 13763 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13764 $as_echo_n "(cached) " >&6 13765else 13766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13767/* end confdefs.h. */ 13768int i; 13769int 13770main () 13771{ 13772 13773 ; 13774 return 0; 13775} 13776_ACEOF 13777if ac_fn_c_try_link "$LINENO"; then : 13778 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 13779else 13780 eval `$as_echo "$cacheid" | $as_tr_sh`=no 13781fi 13782rm -f core conftest.err conftest.$ac_objext \ 13783 conftest$ac_exeext conftest.$ac_ext 13784fi 13785 13786 13787 CFLAGS="$xorg_testset_save_CFLAGS" 13788 13789 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13791$as_echo "$supported" >&6; } 13792 if test "$supported" = "yes" ; then 13793 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 13794 found="yes" 13795 fi 13796 fi 13797 13798 13799 13800 13801 13802 13803 13804 13805 13806 13807 13808 13809 13810xorg_testset_save_CFLAGS="$CFLAGS" 13811 13812if test "x$xorg_testset_unknown_warning_option" = "x" ; then 13813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 13815$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 13816if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 13817 $as_echo_n "(cached) " >&6 13818else 13819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13820/* end confdefs.h. */ 13821int i; 13822_ACEOF 13823if ac_fn_c_try_compile "$LINENO"; then : 13824 xorg_cv_compiler_flag_unknown_warning_option=yes 13825else 13826 xorg_cv_compiler_flag_unknown_warning_option=no 13827fi 13828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13829fi 13830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 13831$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 13832 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 13833 CFLAGS="$xorg_testset_save_CFLAGS" 13834fi 13835 13836if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 13837 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13839 fi 13840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 13842$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 13843if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 13844 $as_echo_n "(cached) " >&6 13845else 13846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13847/* end confdefs.h. */ 13848int i; 13849_ACEOF 13850if ac_fn_c_try_compile "$LINENO"; then : 13851 xorg_cv_compiler_flag_unused_command_line_argument=yes 13852else 13853 xorg_cv_compiler_flag_unused_command_line_argument=no 13854fi 13855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13856fi 13857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 13858$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 13859 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 13860 CFLAGS="$xorg_testset_save_CFLAGS" 13861fi 13862 13863found="no" 13864 13865 if test $found = "no" ; then 13866 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13867 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13868 fi 13869 13870 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13872 fi 13873 13874 CFLAGS="$CFLAGS -Werror=nonnull" 13875 13876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 13877$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 13878 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=nonnull` 13879 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13880 $as_echo_n "(cached) " >&6 13881else 13882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13883/* end confdefs.h. */ 13884int i; 13885int 13886main () 13887{ 13888 13889 ; 13890 return 0; 13891} 13892_ACEOF 13893if ac_fn_c_try_link "$LINENO"; then : 13894 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 13895else 13896 eval `$as_echo "$cacheid" | $as_tr_sh`=no 13897fi 13898rm -f core conftest.err conftest.$ac_objext \ 13899 conftest$ac_exeext conftest.$ac_ext 13900fi 13901 13902 13903 CFLAGS="$xorg_testset_save_CFLAGS" 13904 13905 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13907$as_echo "$supported" >&6; } 13908 if test "$supported" = "yes" ; then 13909 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 13910 found="yes" 13911 fi 13912 fi 13913 13914 13915 13916 13917 13918 13919 13920 13921 13922 13923 13924 13925 13926xorg_testset_save_CFLAGS="$CFLAGS" 13927 13928if test "x$xorg_testset_unknown_warning_option" = "x" ; then 13929 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 13931$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 13932if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 13933 $as_echo_n "(cached) " >&6 13934else 13935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13936/* end confdefs.h. */ 13937int i; 13938_ACEOF 13939if ac_fn_c_try_compile "$LINENO"; then : 13940 xorg_cv_compiler_flag_unknown_warning_option=yes 13941else 13942 xorg_cv_compiler_flag_unknown_warning_option=no 13943fi 13944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13945fi 13946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 13947$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 13948 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 13949 CFLAGS="$xorg_testset_save_CFLAGS" 13950fi 13951 13952if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 13953 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13955 fi 13956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 13958$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 13959if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 13960 $as_echo_n "(cached) " >&6 13961else 13962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13963/* end confdefs.h. */ 13964int i; 13965_ACEOF 13966if ac_fn_c_try_compile "$LINENO"; then : 13967 xorg_cv_compiler_flag_unused_command_line_argument=yes 13968else 13969 xorg_cv_compiler_flag_unused_command_line_argument=no 13970fi 13971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13972fi 13973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 13974$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 13975 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 13976 CFLAGS="$xorg_testset_save_CFLAGS" 13977fi 13978 13979found="no" 13980 13981 if test $found = "no" ; then 13982 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13983 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13984 fi 13985 13986 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13988 fi 13989 13990 CFLAGS="$CFLAGS -Werror=init-self" 13991 13992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 13993$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 13994 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=init-self` 13995 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13996 $as_echo_n "(cached) " >&6 13997else 13998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13999/* end confdefs.h. */ 14000int i; 14001int 14002main () 14003{ 14004 14005 ; 14006 return 0; 14007} 14008_ACEOF 14009if ac_fn_c_try_link "$LINENO"; then : 14010 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 14011else 14012 eval `$as_echo "$cacheid" | $as_tr_sh`=no 14013fi 14014rm -f core conftest.err conftest.$ac_objext \ 14015 conftest$ac_exeext conftest.$ac_ext 14016fi 14017 14018 14019 CFLAGS="$xorg_testset_save_CFLAGS" 14020 14021 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14023$as_echo "$supported" >&6; } 14024 if test "$supported" = "yes" ; then 14025 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 14026 found="yes" 14027 fi 14028 fi 14029 14030 14031 14032 14033 14034 14035 14036 14037 14038 14039 14040 14041 14042xorg_testset_save_CFLAGS="$CFLAGS" 14043 14044if test "x$xorg_testset_unknown_warning_option" = "x" ; then 14045 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 14047$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 14048if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 14049 $as_echo_n "(cached) " >&6 14050else 14051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14052/* end confdefs.h. */ 14053int i; 14054_ACEOF 14055if ac_fn_c_try_compile "$LINENO"; then : 14056 xorg_cv_compiler_flag_unknown_warning_option=yes 14057else 14058 xorg_cv_compiler_flag_unknown_warning_option=no 14059fi 14060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14061fi 14062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 14063$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 14064 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 14065 CFLAGS="$xorg_testset_save_CFLAGS" 14066fi 14067 14068if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 14069 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14071 fi 14072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 14074$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 14075if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 14076 $as_echo_n "(cached) " >&6 14077else 14078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14079/* end confdefs.h. */ 14080int i; 14081_ACEOF 14082if ac_fn_c_try_compile "$LINENO"; then : 14083 xorg_cv_compiler_flag_unused_command_line_argument=yes 14084else 14085 xorg_cv_compiler_flag_unused_command_line_argument=no 14086fi 14087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14088fi 14089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 14090$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 14091 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 14092 CFLAGS="$xorg_testset_save_CFLAGS" 14093fi 14094 14095found="no" 14096 14097 if test $found = "no" ; then 14098 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14099 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14100 fi 14101 14102 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14104 fi 14105 14106 CFLAGS="$CFLAGS -Werror=main" 14107 14108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 14109$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 14110 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=main` 14111 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14112 $as_echo_n "(cached) " >&6 14113else 14114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14115/* end confdefs.h. */ 14116int i; 14117int 14118main () 14119{ 14120 14121 ; 14122 return 0; 14123} 14124_ACEOF 14125if ac_fn_c_try_link "$LINENO"; then : 14126 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 14127else 14128 eval `$as_echo "$cacheid" | $as_tr_sh`=no 14129fi 14130rm -f core conftest.err conftest.$ac_objext \ 14131 conftest$ac_exeext conftest.$ac_ext 14132fi 14133 14134 14135 CFLAGS="$xorg_testset_save_CFLAGS" 14136 14137 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14139$as_echo "$supported" >&6; } 14140 if test "$supported" = "yes" ; then 14141 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 14142 found="yes" 14143 fi 14144 fi 14145 14146 14147 14148 14149 14150 14151 14152 14153 14154 14155 14156 14157 14158xorg_testset_save_CFLAGS="$CFLAGS" 14159 14160if test "x$xorg_testset_unknown_warning_option" = "x" ; then 14161 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 14163$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 14164if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 14165 $as_echo_n "(cached) " >&6 14166else 14167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14168/* end confdefs.h. */ 14169int i; 14170_ACEOF 14171if ac_fn_c_try_compile "$LINENO"; then : 14172 xorg_cv_compiler_flag_unknown_warning_option=yes 14173else 14174 xorg_cv_compiler_flag_unknown_warning_option=no 14175fi 14176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14177fi 14178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 14179$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 14180 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 14181 CFLAGS="$xorg_testset_save_CFLAGS" 14182fi 14183 14184if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 14185 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14187 fi 14188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 14190$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 14191if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 14192 $as_echo_n "(cached) " >&6 14193else 14194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14195/* end confdefs.h. */ 14196int i; 14197_ACEOF 14198if ac_fn_c_try_compile "$LINENO"; then : 14199 xorg_cv_compiler_flag_unused_command_line_argument=yes 14200else 14201 xorg_cv_compiler_flag_unused_command_line_argument=no 14202fi 14203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14204fi 14205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 14206$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 14207 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 14208 CFLAGS="$xorg_testset_save_CFLAGS" 14209fi 14210 14211found="no" 14212 14213 if test $found = "no" ; then 14214 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14215 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14216 fi 14217 14218 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14220 fi 14221 14222 CFLAGS="$CFLAGS -Werror=missing-braces" 14223 14224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 14225$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 14226 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=missing-braces` 14227 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14228 $as_echo_n "(cached) " >&6 14229else 14230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14231/* end confdefs.h. */ 14232int i; 14233int 14234main () 14235{ 14236 14237 ; 14238 return 0; 14239} 14240_ACEOF 14241if ac_fn_c_try_link "$LINENO"; then : 14242 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 14243else 14244 eval `$as_echo "$cacheid" | $as_tr_sh`=no 14245fi 14246rm -f core conftest.err conftest.$ac_objext \ 14247 conftest$ac_exeext conftest.$ac_ext 14248fi 14249 14250 14251 CFLAGS="$xorg_testset_save_CFLAGS" 14252 14253 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14255$as_echo "$supported" >&6; } 14256 if test "$supported" = "yes" ; then 14257 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 14258 found="yes" 14259 fi 14260 fi 14261 14262 14263 14264 14265 14266 14267 14268 14269 14270 14271 14272 14273 14274xorg_testset_save_CFLAGS="$CFLAGS" 14275 14276if test "x$xorg_testset_unknown_warning_option" = "x" ; then 14277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 14279$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 14280if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 14281 $as_echo_n "(cached) " >&6 14282else 14283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14284/* end confdefs.h. */ 14285int i; 14286_ACEOF 14287if ac_fn_c_try_compile "$LINENO"; then : 14288 xorg_cv_compiler_flag_unknown_warning_option=yes 14289else 14290 xorg_cv_compiler_flag_unknown_warning_option=no 14291fi 14292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14293fi 14294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 14295$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 14296 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 14297 CFLAGS="$xorg_testset_save_CFLAGS" 14298fi 14299 14300if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 14301 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14302 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14303 fi 14304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 14306$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 14307if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 14308 $as_echo_n "(cached) " >&6 14309else 14310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14311/* end confdefs.h. */ 14312int i; 14313_ACEOF 14314if ac_fn_c_try_compile "$LINENO"; then : 14315 xorg_cv_compiler_flag_unused_command_line_argument=yes 14316else 14317 xorg_cv_compiler_flag_unused_command_line_argument=no 14318fi 14319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14320fi 14321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 14322$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 14323 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 14324 CFLAGS="$xorg_testset_save_CFLAGS" 14325fi 14326 14327found="no" 14328 14329 if test $found = "no" ; then 14330 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14332 fi 14333 14334 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14336 fi 14337 14338 CFLAGS="$CFLAGS -Werror=sequence-point" 14339 14340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 14341$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 14342 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=sequence-point` 14343 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14344 $as_echo_n "(cached) " >&6 14345else 14346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14347/* end confdefs.h. */ 14348int i; 14349int 14350main () 14351{ 14352 14353 ; 14354 return 0; 14355} 14356_ACEOF 14357if ac_fn_c_try_link "$LINENO"; then : 14358 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 14359else 14360 eval `$as_echo "$cacheid" | $as_tr_sh`=no 14361fi 14362rm -f core conftest.err conftest.$ac_objext \ 14363 conftest$ac_exeext conftest.$ac_ext 14364fi 14365 14366 14367 CFLAGS="$xorg_testset_save_CFLAGS" 14368 14369 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14371$as_echo "$supported" >&6; } 14372 if test "$supported" = "yes" ; then 14373 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 14374 found="yes" 14375 fi 14376 fi 14377 14378 14379 14380 14381 14382 14383 14384 14385 14386 14387 14388 14389 14390xorg_testset_save_CFLAGS="$CFLAGS" 14391 14392if test "x$xorg_testset_unknown_warning_option" = "x" ; then 14393 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 14395$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 14396if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 14397 $as_echo_n "(cached) " >&6 14398else 14399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14400/* end confdefs.h. */ 14401int i; 14402_ACEOF 14403if ac_fn_c_try_compile "$LINENO"; then : 14404 xorg_cv_compiler_flag_unknown_warning_option=yes 14405else 14406 xorg_cv_compiler_flag_unknown_warning_option=no 14407fi 14408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14409fi 14410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 14411$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 14412 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 14413 CFLAGS="$xorg_testset_save_CFLAGS" 14414fi 14415 14416if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 14417 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14418 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14419 fi 14420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 14422$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 14423if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 14424 $as_echo_n "(cached) " >&6 14425else 14426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14427/* end confdefs.h. */ 14428int i; 14429_ACEOF 14430if ac_fn_c_try_compile "$LINENO"; then : 14431 xorg_cv_compiler_flag_unused_command_line_argument=yes 14432else 14433 xorg_cv_compiler_flag_unused_command_line_argument=no 14434fi 14435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14436fi 14437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 14438$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 14439 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 14440 CFLAGS="$xorg_testset_save_CFLAGS" 14441fi 14442 14443found="no" 14444 14445 if test $found = "no" ; then 14446 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14447 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14448 fi 14449 14450 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14452 fi 14453 14454 CFLAGS="$CFLAGS -Werror=return-type" 14455 14456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 14457$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 14458 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=return-type` 14459 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14460 $as_echo_n "(cached) " >&6 14461else 14462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14463/* end confdefs.h. */ 14464int i; 14465int 14466main () 14467{ 14468 14469 ; 14470 return 0; 14471} 14472_ACEOF 14473if ac_fn_c_try_link "$LINENO"; then : 14474 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 14475else 14476 eval `$as_echo "$cacheid" | $as_tr_sh`=no 14477fi 14478rm -f core conftest.err conftest.$ac_objext \ 14479 conftest$ac_exeext conftest.$ac_ext 14480fi 14481 14482 14483 CFLAGS="$xorg_testset_save_CFLAGS" 14484 14485 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14487$as_echo "$supported" >&6; } 14488 if test "$supported" = "yes" ; then 14489 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 14490 found="yes" 14491 fi 14492 fi 14493 14494 if test $found = "no" ; then 14495 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14497 fi 14498 14499 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14501 fi 14502 14503 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14504 14505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 14506$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 14507 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT` 14508 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14509 $as_echo_n "(cached) " >&6 14510else 14511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14512/* end confdefs.h. */ 14513int i; 14514int 14515main () 14516{ 14517 14518 ; 14519 return 0; 14520} 14521_ACEOF 14522if ac_fn_c_try_link "$LINENO"; then : 14523 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 14524else 14525 eval `$as_echo "$cacheid" | $as_tr_sh`=no 14526fi 14527rm -f core conftest.err conftest.$ac_objext \ 14528 conftest$ac_exeext conftest.$ac_ext 14529fi 14530 14531 14532 CFLAGS="$xorg_testset_save_CFLAGS" 14533 14534 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14536$as_echo "$supported" >&6; } 14537 if test "$supported" = "yes" ; then 14538 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14539 found="yes" 14540 fi 14541 fi 14542 14543 14544 14545 14546 14547 14548 14549 14550 14551 14552 14553 14554 14555xorg_testset_save_CFLAGS="$CFLAGS" 14556 14557if test "x$xorg_testset_unknown_warning_option" = "x" ; then 14558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 14560$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 14561if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 14562 $as_echo_n "(cached) " >&6 14563else 14564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14565/* end confdefs.h. */ 14566int i; 14567_ACEOF 14568if ac_fn_c_try_compile "$LINENO"; then : 14569 xorg_cv_compiler_flag_unknown_warning_option=yes 14570else 14571 xorg_cv_compiler_flag_unknown_warning_option=no 14572fi 14573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14574fi 14575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 14576$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 14577 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 14578 CFLAGS="$xorg_testset_save_CFLAGS" 14579fi 14580 14581if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 14582 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14583 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14584 fi 14585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 14587$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 14588if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 14589 $as_echo_n "(cached) " >&6 14590else 14591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14592/* end confdefs.h. */ 14593int i; 14594_ACEOF 14595if ac_fn_c_try_compile "$LINENO"; then : 14596 xorg_cv_compiler_flag_unused_command_line_argument=yes 14597else 14598 xorg_cv_compiler_flag_unused_command_line_argument=no 14599fi 14600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14601fi 14602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 14603$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 14604 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 14605 CFLAGS="$xorg_testset_save_CFLAGS" 14606fi 14607 14608found="no" 14609 14610 if test $found = "no" ; then 14611 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14612 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14613 fi 14614 14615 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14617 fi 14618 14619 CFLAGS="$CFLAGS -Werror=trigraphs" 14620 14621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 14622$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 14623 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=trigraphs` 14624 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14625 $as_echo_n "(cached) " >&6 14626else 14627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14628/* end confdefs.h. */ 14629int i; 14630int 14631main () 14632{ 14633 14634 ; 14635 return 0; 14636} 14637_ACEOF 14638if ac_fn_c_try_link "$LINENO"; then : 14639 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 14640else 14641 eval `$as_echo "$cacheid" | $as_tr_sh`=no 14642fi 14643rm -f core conftest.err conftest.$ac_objext \ 14644 conftest$ac_exeext conftest.$ac_ext 14645fi 14646 14647 14648 CFLAGS="$xorg_testset_save_CFLAGS" 14649 14650 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14652$as_echo "$supported" >&6; } 14653 if test "$supported" = "yes" ; then 14654 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 14655 found="yes" 14656 fi 14657 fi 14658 14659 14660 14661 14662 14663 14664 14665 14666 14667 14668 14669 14670 14671xorg_testset_save_CFLAGS="$CFLAGS" 14672 14673if test "x$xorg_testset_unknown_warning_option" = "x" ; then 14674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 14676$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 14677if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 14678 $as_echo_n "(cached) " >&6 14679else 14680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14681/* end confdefs.h. */ 14682int i; 14683_ACEOF 14684if ac_fn_c_try_compile "$LINENO"; then : 14685 xorg_cv_compiler_flag_unknown_warning_option=yes 14686else 14687 xorg_cv_compiler_flag_unknown_warning_option=no 14688fi 14689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14690fi 14691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 14692$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 14693 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 14694 CFLAGS="$xorg_testset_save_CFLAGS" 14695fi 14696 14697if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 14698 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14699 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14700 fi 14701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 14703$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 14704if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 14705 $as_echo_n "(cached) " >&6 14706else 14707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14708/* end confdefs.h. */ 14709int i; 14710_ACEOF 14711if ac_fn_c_try_compile "$LINENO"; then : 14712 xorg_cv_compiler_flag_unused_command_line_argument=yes 14713else 14714 xorg_cv_compiler_flag_unused_command_line_argument=no 14715fi 14716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14717fi 14718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 14719$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 14720 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 14721 CFLAGS="$xorg_testset_save_CFLAGS" 14722fi 14723 14724found="no" 14725 14726 if test $found = "no" ; then 14727 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14728 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14729 fi 14730 14731 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14733 fi 14734 14735 CFLAGS="$CFLAGS -Werror=array-bounds" 14736 14737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 14738$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 14739 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=array-bounds` 14740 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14741 $as_echo_n "(cached) " >&6 14742else 14743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14744/* end confdefs.h. */ 14745int i; 14746int 14747main () 14748{ 14749 14750 ; 14751 return 0; 14752} 14753_ACEOF 14754if ac_fn_c_try_link "$LINENO"; then : 14755 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 14756else 14757 eval `$as_echo "$cacheid" | $as_tr_sh`=no 14758fi 14759rm -f core conftest.err conftest.$ac_objext \ 14760 conftest$ac_exeext conftest.$ac_ext 14761fi 14762 14763 14764 CFLAGS="$xorg_testset_save_CFLAGS" 14765 14766 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14768$as_echo "$supported" >&6; } 14769 if test "$supported" = "yes" ; then 14770 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 14771 found="yes" 14772 fi 14773 fi 14774 14775 14776 14777 14778 14779 14780 14781 14782 14783 14784 14785 14786 14787xorg_testset_save_CFLAGS="$CFLAGS" 14788 14789if test "x$xorg_testset_unknown_warning_option" = "x" ; then 14790 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 14792$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 14793if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 14794 $as_echo_n "(cached) " >&6 14795else 14796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14797/* end confdefs.h. */ 14798int i; 14799_ACEOF 14800if ac_fn_c_try_compile "$LINENO"; then : 14801 xorg_cv_compiler_flag_unknown_warning_option=yes 14802else 14803 xorg_cv_compiler_flag_unknown_warning_option=no 14804fi 14805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14806fi 14807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 14808$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 14809 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 14810 CFLAGS="$xorg_testset_save_CFLAGS" 14811fi 14812 14813if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 14814 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14815 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14816 fi 14817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 14819$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 14820if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 14821 $as_echo_n "(cached) " >&6 14822else 14823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14824/* end confdefs.h. */ 14825int i; 14826_ACEOF 14827if ac_fn_c_try_compile "$LINENO"; then : 14828 xorg_cv_compiler_flag_unused_command_line_argument=yes 14829else 14830 xorg_cv_compiler_flag_unused_command_line_argument=no 14831fi 14832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14833fi 14834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 14835$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 14836 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 14837 CFLAGS="$xorg_testset_save_CFLAGS" 14838fi 14839 14840found="no" 14841 14842 if test $found = "no" ; then 14843 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14845 fi 14846 14847 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14849 fi 14850 14851 CFLAGS="$CFLAGS -Werror=write-strings" 14852 14853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 14854$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 14855 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=write-strings` 14856 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14857 $as_echo_n "(cached) " >&6 14858else 14859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14860/* end confdefs.h. */ 14861int i; 14862int 14863main () 14864{ 14865 14866 ; 14867 return 0; 14868} 14869_ACEOF 14870if ac_fn_c_try_link "$LINENO"; then : 14871 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 14872else 14873 eval `$as_echo "$cacheid" | $as_tr_sh`=no 14874fi 14875rm -f core conftest.err conftest.$ac_objext \ 14876 conftest$ac_exeext conftest.$ac_ext 14877fi 14878 14879 14880 CFLAGS="$xorg_testset_save_CFLAGS" 14881 14882 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14884$as_echo "$supported" >&6; } 14885 if test "$supported" = "yes" ; then 14886 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 14887 found="yes" 14888 fi 14889 fi 14890 14891 14892 14893 14894 14895 14896 14897 14898 14899 14900 14901 14902 14903xorg_testset_save_CFLAGS="$CFLAGS" 14904 14905if test "x$xorg_testset_unknown_warning_option" = "x" ; then 14906 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 14908$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 14909if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 14910 $as_echo_n "(cached) " >&6 14911else 14912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14913/* end confdefs.h. */ 14914int i; 14915_ACEOF 14916if ac_fn_c_try_compile "$LINENO"; then : 14917 xorg_cv_compiler_flag_unknown_warning_option=yes 14918else 14919 xorg_cv_compiler_flag_unknown_warning_option=no 14920fi 14921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14922fi 14923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 14924$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 14925 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 14926 CFLAGS="$xorg_testset_save_CFLAGS" 14927fi 14928 14929if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 14930 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14932 fi 14933 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 14935$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 14936if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 14937 $as_echo_n "(cached) " >&6 14938else 14939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14940/* end confdefs.h. */ 14941int i; 14942_ACEOF 14943if ac_fn_c_try_compile "$LINENO"; then : 14944 xorg_cv_compiler_flag_unused_command_line_argument=yes 14945else 14946 xorg_cv_compiler_flag_unused_command_line_argument=no 14947fi 14948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14949fi 14950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 14951$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 14952 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 14953 CFLAGS="$xorg_testset_save_CFLAGS" 14954fi 14955 14956found="no" 14957 14958 if test $found = "no" ; then 14959 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14961 fi 14962 14963 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14965 fi 14966 14967 CFLAGS="$CFLAGS -Werror=address" 14968 14969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 14970$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 14971 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=address` 14972 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14973 $as_echo_n "(cached) " >&6 14974else 14975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14976/* end confdefs.h. */ 14977int i; 14978int 14979main () 14980{ 14981 14982 ; 14983 return 0; 14984} 14985_ACEOF 14986if ac_fn_c_try_link "$LINENO"; then : 14987 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 14988else 14989 eval `$as_echo "$cacheid" | $as_tr_sh`=no 14990fi 14991rm -f core conftest.err conftest.$ac_objext \ 14992 conftest$ac_exeext conftest.$ac_ext 14993fi 14994 14995 14996 CFLAGS="$xorg_testset_save_CFLAGS" 14997 14998 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15000$as_echo "$supported" >&6; } 15001 if test "$supported" = "yes" ; then 15002 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 15003 found="yes" 15004 fi 15005 fi 15006 15007 15008 15009 15010 15011 15012 15013 15014 15015 15016 15017 15018 15019xorg_testset_save_CFLAGS="$CFLAGS" 15020 15021if test "x$xorg_testset_unknown_warning_option" = "x" ; then 15022 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 15024$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 15025if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 15026 $as_echo_n "(cached) " >&6 15027else 15028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15029/* end confdefs.h. */ 15030int i; 15031_ACEOF 15032if ac_fn_c_try_compile "$LINENO"; then : 15033 xorg_cv_compiler_flag_unknown_warning_option=yes 15034else 15035 xorg_cv_compiler_flag_unknown_warning_option=no 15036fi 15037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15038fi 15039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 15040$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 15041 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 15042 CFLAGS="$xorg_testset_save_CFLAGS" 15043fi 15044 15045if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 15046 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15047 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15048 fi 15049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 15051$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 15052if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 15053 $as_echo_n "(cached) " >&6 15054else 15055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15056/* end confdefs.h. */ 15057int i; 15058_ACEOF 15059if ac_fn_c_try_compile "$LINENO"; then : 15060 xorg_cv_compiler_flag_unused_command_line_argument=yes 15061else 15062 xorg_cv_compiler_flag_unused_command_line_argument=no 15063fi 15064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15065fi 15066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 15067$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 15068 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 15069 CFLAGS="$xorg_testset_save_CFLAGS" 15070fi 15071 15072found="no" 15073 15074 if test $found = "no" ; then 15075 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15076 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15077 fi 15078 15079 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15081 fi 15082 15083 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 15084 15085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 15086$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 15087 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=int-to-pointer-cast` 15088 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 15089 $as_echo_n "(cached) " >&6 15090else 15091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15092/* end confdefs.h. */ 15093int i; 15094int 15095main () 15096{ 15097 15098 ; 15099 return 0; 15100} 15101_ACEOF 15102if ac_fn_c_try_link "$LINENO"; then : 15103 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 15104else 15105 eval `$as_echo "$cacheid" | $as_tr_sh`=no 15106fi 15107rm -f core conftest.err conftest.$ac_objext \ 15108 conftest$ac_exeext conftest.$ac_ext 15109fi 15110 15111 15112 CFLAGS="$xorg_testset_save_CFLAGS" 15113 15114 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15116$as_echo "$supported" >&6; } 15117 if test "$supported" = "yes" ; then 15118 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 15119 found="yes" 15120 fi 15121 fi 15122 15123 if test $found = "no" ; then 15124 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15125 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15126 fi 15127 15128 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15130 fi 15131 15132 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15133 15134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 15135$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 15136 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION` 15137 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 15138 $as_echo_n "(cached) " >&6 15139else 15140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15141/* end confdefs.h. */ 15142int i; 15143int 15144main () 15145{ 15146 15147 ; 15148 return 0; 15149} 15150_ACEOF 15151if ac_fn_c_try_link "$LINENO"; then : 15152 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 15153else 15154 eval `$as_echo "$cacheid" | $as_tr_sh`=no 15155fi 15156rm -f core conftest.err conftest.$ac_objext \ 15157 conftest$ac_exeext conftest.$ac_ext 15158fi 15159 15160 15161 CFLAGS="$xorg_testset_save_CFLAGS" 15162 15163 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15165$as_echo "$supported" >&6; } 15166 if test "$supported" = "yes" ; then 15167 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15168 found="yes" 15169 fi 15170 fi 15171 15172 15173 15174 15175 15176 15177 15178 15179 15180 15181 15182 15183 15184xorg_testset_save_CFLAGS="$CFLAGS" 15185 15186if test "x$xorg_testset_unknown_warning_option" = "x" ; then 15187 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 15189$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 15190if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 15191 $as_echo_n "(cached) " >&6 15192else 15193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15194/* end confdefs.h. */ 15195int i; 15196_ACEOF 15197if ac_fn_c_try_compile "$LINENO"; then : 15198 xorg_cv_compiler_flag_unknown_warning_option=yes 15199else 15200 xorg_cv_compiler_flag_unknown_warning_option=no 15201fi 15202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15203fi 15204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 15205$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 15206 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 15207 CFLAGS="$xorg_testset_save_CFLAGS" 15208fi 15209 15210if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 15211 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15212 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15213 fi 15214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 15216$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 15217if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 15218 $as_echo_n "(cached) " >&6 15219else 15220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15221/* end confdefs.h. */ 15222int i; 15223_ACEOF 15224if ac_fn_c_try_compile "$LINENO"; then : 15225 xorg_cv_compiler_flag_unused_command_line_argument=yes 15226else 15227 xorg_cv_compiler_flag_unused_command_line_argument=no 15228fi 15229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15230fi 15231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 15232$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 15233 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 15234 CFLAGS="$xorg_testset_save_CFLAGS" 15235fi 15236 15237found="no" 15238 15239 if test $found = "no" ; then 15240 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15242 fi 15243 15244 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15246 fi 15247 15248 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 15249 15250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 15251$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 15252 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=pointer-to-int-cast` 15253 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 15254 $as_echo_n "(cached) " >&6 15255else 15256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15257/* end confdefs.h. */ 15258int i; 15259int 15260main () 15261{ 15262 15263 ; 15264 return 0; 15265} 15266_ACEOF 15267if ac_fn_c_try_link "$LINENO"; then : 15268 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 15269else 15270 eval `$as_echo "$cacheid" | $as_tr_sh`=no 15271fi 15272rm -f core conftest.err conftest.$ac_objext \ 15273 conftest$ac_exeext conftest.$ac_ext 15274fi 15275 15276 15277 CFLAGS="$xorg_testset_save_CFLAGS" 15278 15279 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 15280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15281$as_echo "$supported" >&6; } 15282 if test "$supported" = "yes" ; then 15283 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 15284 found="yes" 15285 fi 15286 fi 15287 15288 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 15289else 15290{ $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 15291$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;} 15292 15293 15294 15295 15296 15297 15298 15299 15300 15301 15302 15303xorg_testset_save_CFLAGS="$CFLAGS" 15304 15305if test "x$xorg_testset_unknown_warning_option" = "x" ; then 15306 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 15308$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 15309if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 15310 $as_echo_n "(cached) " >&6 15311else 15312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15313/* end confdefs.h. */ 15314int i; 15315_ACEOF 15316if ac_fn_c_try_compile "$LINENO"; then : 15317 xorg_cv_compiler_flag_unknown_warning_option=yes 15318else 15319 xorg_cv_compiler_flag_unknown_warning_option=no 15320fi 15321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15322fi 15323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 15324$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 15325 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 15326 CFLAGS="$xorg_testset_save_CFLAGS" 15327fi 15328 15329if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 15330 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15332 fi 15333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 15335$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 15336if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 15337 $as_echo_n "(cached) " >&6 15338else 15339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15340/* end confdefs.h. */ 15341int i; 15342_ACEOF 15343if ac_fn_c_try_compile "$LINENO"; then : 15344 xorg_cv_compiler_flag_unused_command_line_argument=yes 15345else 15346 xorg_cv_compiler_flag_unused_command_line_argument=no 15347fi 15348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15349fi 15350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 15351$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 15352 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 15353 CFLAGS="$xorg_testset_save_CFLAGS" 15354fi 15355 15356found="no" 15357 15358 if test $found = "no" ; then 15359 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15361 fi 15362 15363 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15365 fi 15366 15367 CFLAGS="$CFLAGS -Wimplicit" 15368 15369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 15370$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 15371 cacheid=`$as_echo xorg_cv_cc_flag_-Wimplicit` 15372 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 15373 $as_echo_n "(cached) " >&6 15374else 15375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15376/* end confdefs.h. */ 15377int i; 15378int 15379main () 15380{ 15381 15382 ; 15383 return 0; 15384} 15385_ACEOF 15386if ac_fn_c_try_link "$LINENO"; then : 15387 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 15388else 15389 eval `$as_echo "$cacheid" | $as_tr_sh`=no 15390fi 15391rm -f core conftest.err conftest.$ac_objext \ 15392 conftest$ac_exeext conftest.$ac_ext 15393fi 15394 15395 15396 CFLAGS="$xorg_testset_save_CFLAGS" 15397 15398 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15400$as_echo "$supported" >&6; } 15401 if test "$supported" = "yes" ; then 15402 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 15403 found="yes" 15404 fi 15405 fi 15406 15407 15408 15409 15410 15411 15412 15413 15414 15415 15416 15417 15418 15419xorg_testset_save_CFLAGS="$CFLAGS" 15420 15421if test "x$xorg_testset_unknown_warning_option" = "x" ; then 15422 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 15424$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 15425if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 15426 $as_echo_n "(cached) " >&6 15427else 15428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15429/* end confdefs.h. */ 15430int i; 15431_ACEOF 15432if ac_fn_c_try_compile "$LINENO"; then : 15433 xorg_cv_compiler_flag_unknown_warning_option=yes 15434else 15435 xorg_cv_compiler_flag_unknown_warning_option=no 15436fi 15437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15438fi 15439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 15440$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 15441 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 15442 CFLAGS="$xorg_testset_save_CFLAGS" 15443fi 15444 15445if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 15446 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15447 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15448 fi 15449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 15451$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 15452if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 15453 $as_echo_n "(cached) " >&6 15454else 15455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15456/* end confdefs.h. */ 15457int i; 15458_ACEOF 15459if ac_fn_c_try_compile "$LINENO"; then : 15460 xorg_cv_compiler_flag_unused_command_line_argument=yes 15461else 15462 xorg_cv_compiler_flag_unused_command_line_argument=no 15463fi 15464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15465fi 15466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 15467$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 15468 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 15469 CFLAGS="$xorg_testset_save_CFLAGS" 15470fi 15471 15472found="no" 15473 15474 if test $found = "no" ; then 15475 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15476 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15477 fi 15478 15479 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15481 fi 15482 15483 CFLAGS="$CFLAGS -Wnonnull" 15484 15485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 15486$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 15487 cacheid=`$as_echo xorg_cv_cc_flag_-Wnonnull` 15488 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 15489 $as_echo_n "(cached) " >&6 15490else 15491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15492/* end confdefs.h. */ 15493int i; 15494int 15495main () 15496{ 15497 15498 ; 15499 return 0; 15500} 15501_ACEOF 15502if ac_fn_c_try_link "$LINENO"; then : 15503 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 15504else 15505 eval `$as_echo "$cacheid" | $as_tr_sh`=no 15506fi 15507rm -f core conftest.err conftest.$ac_objext \ 15508 conftest$ac_exeext conftest.$ac_ext 15509fi 15510 15511 15512 CFLAGS="$xorg_testset_save_CFLAGS" 15513 15514 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 15515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15516$as_echo "$supported" >&6; } 15517 if test "$supported" = "yes" ; then 15518 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 15519 found="yes" 15520 fi 15521 fi 15522 15523 15524 15525 15526 15527 15528 15529 15530 15531 15532 15533 15534 15535xorg_testset_save_CFLAGS="$CFLAGS" 15536 15537if test "x$xorg_testset_unknown_warning_option" = "x" ; then 15538 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 15540$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 15541if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 15542 $as_echo_n "(cached) " >&6 15543else 15544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15545/* end confdefs.h. */ 15546int i; 15547_ACEOF 15548if ac_fn_c_try_compile "$LINENO"; then : 15549 xorg_cv_compiler_flag_unknown_warning_option=yes 15550else 15551 xorg_cv_compiler_flag_unknown_warning_option=no 15552fi 15553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15554fi 15555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 15556$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 15557 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 15558 CFLAGS="$xorg_testset_save_CFLAGS" 15559fi 15560 15561if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 15562 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15564 fi 15565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 15567$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 15568if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 15569 $as_echo_n "(cached) " >&6 15570else 15571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15572/* end confdefs.h. */ 15573int i; 15574_ACEOF 15575if ac_fn_c_try_compile "$LINENO"; then : 15576 xorg_cv_compiler_flag_unused_command_line_argument=yes 15577else 15578 xorg_cv_compiler_flag_unused_command_line_argument=no 15579fi 15580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15581fi 15582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 15583$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 15584 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 15585 CFLAGS="$xorg_testset_save_CFLAGS" 15586fi 15587 15588found="no" 15589 15590 if test $found = "no" ; then 15591 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15592 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15593 fi 15594 15595 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15597 fi 15598 15599 CFLAGS="$CFLAGS -Winit-self" 15600 15601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 15602$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 15603 cacheid=`$as_echo xorg_cv_cc_flag_-Winit-self` 15604 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 15605 $as_echo_n "(cached) " >&6 15606else 15607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15608/* end confdefs.h. */ 15609int i; 15610int 15611main () 15612{ 15613 15614 ; 15615 return 0; 15616} 15617_ACEOF 15618if ac_fn_c_try_link "$LINENO"; then : 15619 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 15620else 15621 eval `$as_echo "$cacheid" | $as_tr_sh`=no 15622fi 15623rm -f core conftest.err conftest.$ac_objext \ 15624 conftest$ac_exeext conftest.$ac_ext 15625fi 15626 15627 15628 CFLAGS="$xorg_testset_save_CFLAGS" 15629 15630 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 15631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15632$as_echo "$supported" >&6; } 15633 if test "$supported" = "yes" ; then 15634 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 15635 found="yes" 15636 fi 15637 fi 15638 15639 15640 15641 15642 15643 15644 15645 15646 15647 15648 15649 15650 15651xorg_testset_save_CFLAGS="$CFLAGS" 15652 15653if test "x$xorg_testset_unknown_warning_option" = "x" ; then 15654 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 15656$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 15657if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 15658 $as_echo_n "(cached) " >&6 15659else 15660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15661/* end confdefs.h. */ 15662int i; 15663_ACEOF 15664if ac_fn_c_try_compile "$LINENO"; then : 15665 xorg_cv_compiler_flag_unknown_warning_option=yes 15666else 15667 xorg_cv_compiler_flag_unknown_warning_option=no 15668fi 15669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15670fi 15671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 15672$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 15673 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 15674 CFLAGS="$xorg_testset_save_CFLAGS" 15675fi 15676 15677if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 15678 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15679 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15680 fi 15681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 15683$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 15684if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 15685 $as_echo_n "(cached) " >&6 15686else 15687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15688/* end confdefs.h. */ 15689int i; 15690_ACEOF 15691if ac_fn_c_try_compile "$LINENO"; then : 15692 xorg_cv_compiler_flag_unused_command_line_argument=yes 15693else 15694 xorg_cv_compiler_flag_unused_command_line_argument=no 15695fi 15696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15697fi 15698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 15699$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 15700 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 15701 CFLAGS="$xorg_testset_save_CFLAGS" 15702fi 15703 15704found="no" 15705 15706 if test $found = "no" ; then 15707 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15708 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15709 fi 15710 15711 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15712 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15713 fi 15714 15715 CFLAGS="$CFLAGS -Wmain" 15716 15717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 15718$as_echo_n "checking if $CC supports -Wmain... " >&6; } 15719 cacheid=`$as_echo xorg_cv_cc_flag_-Wmain` 15720 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 15721 $as_echo_n "(cached) " >&6 15722else 15723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15724/* end confdefs.h. */ 15725int i; 15726int 15727main () 15728{ 15729 15730 ; 15731 return 0; 15732} 15733_ACEOF 15734if ac_fn_c_try_link "$LINENO"; then : 15735 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 15736else 15737 eval `$as_echo "$cacheid" | $as_tr_sh`=no 15738fi 15739rm -f core conftest.err conftest.$ac_objext \ 15740 conftest$ac_exeext conftest.$ac_ext 15741fi 15742 15743 15744 CFLAGS="$xorg_testset_save_CFLAGS" 15745 15746 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 15747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15748$as_echo "$supported" >&6; } 15749 if test "$supported" = "yes" ; then 15750 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 15751 found="yes" 15752 fi 15753 fi 15754 15755 15756 15757 15758 15759 15760 15761 15762 15763 15764 15765 15766 15767xorg_testset_save_CFLAGS="$CFLAGS" 15768 15769if test "x$xorg_testset_unknown_warning_option" = "x" ; then 15770 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 15772$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 15773if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 15774 $as_echo_n "(cached) " >&6 15775else 15776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15777/* end confdefs.h. */ 15778int i; 15779_ACEOF 15780if ac_fn_c_try_compile "$LINENO"; then : 15781 xorg_cv_compiler_flag_unknown_warning_option=yes 15782else 15783 xorg_cv_compiler_flag_unknown_warning_option=no 15784fi 15785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15786fi 15787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 15788$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 15789 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 15790 CFLAGS="$xorg_testset_save_CFLAGS" 15791fi 15792 15793if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 15794 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15796 fi 15797 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 15799$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 15800if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 15801 $as_echo_n "(cached) " >&6 15802else 15803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15804/* end confdefs.h. */ 15805int i; 15806_ACEOF 15807if ac_fn_c_try_compile "$LINENO"; then : 15808 xorg_cv_compiler_flag_unused_command_line_argument=yes 15809else 15810 xorg_cv_compiler_flag_unused_command_line_argument=no 15811fi 15812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15813fi 15814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 15815$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 15816 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 15817 CFLAGS="$xorg_testset_save_CFLAGS" 15818fi 15819 15820found="no" 15821 15822 if test $found = "no" ; then 15823 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15825 fi 15826 15827 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15829 fi 15830 15831 CFLAGS="$CFLAGS -Wmissing-braces" 15832 15833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 15834$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 15835 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-braces` 15836 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 15837 $as_echo_n "(cached) " >&6 15838else 15839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15840/* end confdefs.h. */ 15841int i; 15842int 15843main () 15844{ 15845 15846 ; 15847 return 0; 15848} 15849_ACEOF 15850if ac_fn_c_try_link "$LINENO"; then : 15851 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 15852else 15853 eval `$as_echo "$cacheid" | $as_tr_sh`=no 15854fi 15855rm -f core conftest.err conftest.$ac_objext \ 15856 conftest$ac_exeext conftest.$ac_ext 15857fi 15858 15859 15860 CFLAGS="$xorg_testset_save_CFLAGS" 15861 15862 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 15863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15864$as_echo "$supported" >&6; } 15865 if test "$supported" = "yes" ; then 15866 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 15867 found="yes" 15868 fi 15869 fi 15870 15871 15872 15873 15874 15875 15876 15877 15878 15879 15880 15881 15882 15883xorg_testset_save_CFLAGS="$CFLAGS" 15884 15885if test "x$xorg_testset_unknown_warning_option" = "x" ; then 15886 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 15888$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 15889if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 15890 $as_echo_n "(cached) " >&6 15891else 15892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15893/* end confdefs.h. */ 15894int i; 15895_ACEOF 15896if ac_fn_c_try_compile "$LINENO"; then : 15897 xorg_cv_compiler_flag_unknown_warning_option=yes 15898else 15899 xorg_cv_compiler_flag_unknown_warning_option=no 15900fi 15901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15902fi 15903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 15904$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 15905 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 15906 CFLAGS="$xorg_testset_save_CFLAGS" 15907fi 15908 15909if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 15910 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15911 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15912 fi 15913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 15915$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 15916if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 15917 $as_echo_n "(cached) " >&6 15918else 15919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15920/* end confdefs.h. */ 15921int i; 15922_ACEOF 15923if ac_fn_c_try_compile "$LINENO"; then : 15924 xorg_cv_compiler_flag_unused_command_line_argument=yes 15925else 15926 xorg_cv_compiler_flag_unused_command_line_argument=no 15927fi 15928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15929fi 15930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 15931$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 15932 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 15933 CFLAGS="$xorg_testset_save_CFLAGS" 15934fi 15935 15936found="no" 15937 15938 if test $found = "no" ; then 15939 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15941 fi 15942 15943 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15945 fi 15946 15947 CFLAGS="$CFLAGS -Wsequence-point" 15948 15949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 15950$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 15951 cacheid=`$as_echo xorg_cv_cc_flag_-Wsequence-point` 15952 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 15953 $as_echo_n "(cached) " >&6 15954else 15955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15956/* end confdefs.h. */ 15957int i; 15958int 15959main () 15960{ 15961 15962 ; 15963 return 0; 15964} 15965_ACEOF 15966if ac_fn_c_try_link "$LINENO"; then : 15967 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 15968else 15969 eval `$as_echo "$cacheid" | $as_tr_sh`=no 15970fi 15971rm -f core conftest.err conftest.$ac_objext \ 15972 conftest$ac_exeext conftest.$ac_ext 15973fi 15974 15975 15976 CFLAGS="$xorg_testset_save_CFLAGS" 15977 15978 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 15979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15980$as_echo "$supported" >&6; } 15981 if test "$supported" = "yes" ; then 15982 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 15983 found="yes" 15984 fi 15985 fi 15986 15987 15988 15989 15990 15991 15992 15993 15994 15995 15996 15997 15998 15999xorg_testset_save_CFLAGS="$CFLAGS" 16000 16001if test "x$xorg_testset_unknown_warning_option" = "x" ; then 16002 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 16004$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 16005if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 16006 $as_echo_n "(cached) " >&6 16007else 16008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16009/* end confdefs.h. */ 16010int i; 16011_ACEOF 16012if ac_fn_c_try_compile "$LINENO"; then : 16013 xorg_cv_compiler_flag_unknown_warning_option=yes 16014else 16015 xorg_cv_compiler_flag_unknown_warning_option=no 16016fi 16017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16018fi 16019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 16020$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 16021 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 16022 CFLAGS="$xorg_testset_save_CFLAGS" 16023fi 16024 16025if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 16026 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16027 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16028 fi 16029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 16031$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 16032if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 16033 $as_echo_n "(cached) " >&6 16034else 16035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16036/* end confdefs.h. */ 16037int i; 16038_ACEOF 16039if ac_fn_c_try_compile "$LINENO"; then : 16040 xorg_cv_compiler_flag_unused_command_line_argument=yes 16041else 16042 xorg_cv_compiler_flag_unused_command_line_argument=no 16043fi 16044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16045fi 16046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 16047$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 16048 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 16049 CFLAGS="$xorg_testset_save_CFLAGS" 16050fi 16051 16052found="no" 16053 16054 if test $found = "no" ; then 16055 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16057 fi 16058 16059 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16061 fi 16062 16063 CFLAGS="$CFLAGS -Wreturn-type" 16064 16065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 16066$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 16067 cacheid=`$as_echo xorg_cv_cc_flag_-Wreturn-type` 16068 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 16069 $as_echo_n "(cached) " >&6 16070else 16071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16072/* end confdefs.h. */ 16073int i; 16074int 16075main () 16076{ 16077 16078 ; 16079 return 0; 16080} 16081_ACEOF 16082if ac_fn_c_try_link "$LINENO"; then : 16083 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 16084else 16085 eval `$as_echo "$cacheid" | $as_tr_sh`=no 16086fi 16087rm -f core conftest.err conftest.$ac_objext \ 16088 conftest$ac_exeext conftest.$ac_ext 16089fi 16090 16091 16092 CFLAGS="$xorg_testset_save_CFLAGS" 16093 16094 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 16095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16096$as_echo "$supported" >&6; } 16097 if test "$supported" = "yes" ; then 16098 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 16099 found="yes" 16100 fi 16101 fi 16102 16103 16104 16105 16106 16107 16108 16109 16110 16111 16112 16113 16114 16115xorg_testset_save_CFLAGS="$CFLAGS" 16116 16117if test "x$xorg_testset_unknown_warning_option" = "x" ; then 16118 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 16120$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 16121if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 16122 $as_echo_n "(cached) " >&6 16123else 16124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16125/* end confdefs.h. */ 16126int i; 16127_ACEOF 16128if ac_fn_c_try_compile "$LINENO"; then : 16129 xorg_cv_compiler_flag_unknown_warning_option=yes 16130else 16131 xorg_cv_compiler_flag_unknown_warning_option=no 16132fi 16133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16134fi 16135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 16136$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 16137 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 16138 CFLAGS="$xorg_testset_save_CFLAGS" 16139fi 16140 16141if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 16142 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16143 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16144 fi 16145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 16147$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 16148if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 16149 $as_echo_n "(cached) " >&6 16150else 16151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16152/* end confdefs.h. */ 16153int i; 16154_ACEOF 16155if ac_fn_c_try_compile "$LINENO"; then : 16156 xorg_cv_compiler_flag_unused_command_line_argument=yes 16157else 16158 xorg_cv_compiler_flag_unused_command_line_argument=no 16159fi 16160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16161fi 16162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 16163$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 16164 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 16165 CFLAGS="$xorg_testset_save_CFLAGS" 16166fi 16167 16168found="no" 16169 16170 if test $found = "no" ; then 16171 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16172 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16173 fi 16174 16175 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16177 fi 16178 16179 CFLAGS="$CFLAGS -Wtrigraphs" 16180 16181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 16182$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 16183 cacheid=`$as_echo xorg_cv_cc_flag_-Wtrigraphs` 16184 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 16185 $as_echo_n "(cached) " >&6 16186else 16187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16188/* end confdefs.h. */ 16189int i; 16190int 16191main () 16192{ 16193 16194 ; 16195 return 0; 16196} 16197_ACEOF 16198if ac_fn_c_try_link "$LINENO"; then : 16199 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 16200else 16201 eval `$as_echo "$cacheid" | $as_tr_sh`=no 16202fi 16203rm -f core conftest.err conftest.$ac_objext \ 16204 conftest$ac_exeext conftest.$ac_ext 16205fi 16206 16207 16208 CFLAGS="$xorg_testset_save_CFLAGS" 16209 16210 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 16211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16212$as_echo "$supported" >&6; } 16213 if test "$supported" = "yes" ; then 16214 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 16215 found="yes" 16216 fi 16217 fi 16218 16219 16220 16221 16222 16223 16224 16225 16226 16227 16228 16229 16230 16231xorg_testset_save_CFLAGS="$CFLAGS" 16232 16233if test "x$xorg_testset_unknown_warning_option" = "x" ; then 16234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 16236$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 16237if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 16238 $as_echo_n "(cached) " >&6 16239else 16240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16241/* end confdefs.h. */ 16242int i; 16243_ACEOF 16244if ac_fn_c_try_compile "$LINENO"; then : 16245 xorg_cv_compiler_flag_unknown_warning_option=yes 16246else 16247 xorg_cv_compiler_flag_unknown_warning_option=no 16248fi 16249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16250fi 16251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 16252$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 16253 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 16254 CFLAGS="$xorg_testset_save_CFLAGS" 16255fi 16256 16257if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 16258 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16259 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16260 fi 16261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 16263$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 16264if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 16265 $as_echo_n "(cached) " >&6 16266else 16267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16268/* end confdefs.h. */ 16269int i; 16270_ACEOF 16271if ac_fn_c_try_compile "$LINENO"; then : 16272 xorg_cv_compiler_flag_unused_command_line_argument=yes 16273else 16274 xorg_cv_compiler_flag_unused_command_line_argument=no 16275fi 16276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16277fi 16278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 16279$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 16280 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 16281 CFLAGS="$xorg_testset_save_CFLAGS" 16282fi 16283 16284found="no" 16285 16286 if test $found = "no" ; then 16287 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16288 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16289 fi 16290 16291 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16293 fi 16294 16295 CFLAGS="$CFLAGS -Warray-bounds" 16296 16297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 16298$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 16299 cacheid=`$as_echo xorg_cv_cc_flag_-Warray-bounds` 16300 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 16301 $as_echo_n "(cached) " >&6 16302else 16303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16304/* end confdefs.h. */ 16305int i; 16306int 16307main () 16308{ 16309 16310 ; 16311 return 0; 16312} 16313_ACEOF 16314if ac_fn_c_try_link "$LINENO"; then : 16315 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 16316else 16317 eval `$as_echo "$cacheid" | $as_tr_sh`=no 16318fi 16319rm -f core conftest.err conftest.$ac_objext \ 16320 conftest$ac_exeext conftest.$ac_ext 16321fi 16322 16323 16324 CFLAGS="$xorg_testset_save_CFLAGS" 16325 16326 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 16327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16328$as_echo "$supported" >&6; } 16329 if test "$supported" = "yes" ; then 16330 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 16331 found="yes" 16332 fi 16333 fi 16334 16335 16336 16337 16338 16339 16340 16341 16342 16343 16344 16345 16346 16347xorg_testset_save_CFLAGS="$CFLAGS" 16348 16349if test "x$xorg_testset_unknown_warning_option" = "x" ; then 16350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 16352$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 16353if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 16354 $as_echo_n "(cached) " >&6 16355else 16356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16357/* end confdefs.h. */ 16358int i; 16359_ACEOF 16360if ac_fn_c_try_compile "$LINENO"; then : 16361 xorg_cv_compiler_flag_unknown_warning_option=yes 16362else 16363 xorg_cv_compiler_flag_unknown_warning_option=no 16364fi 16365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16366fi 16367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 16368$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 16369 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 16370 CFLAGS="$xorg_testset_save_CFLAGS" 16371fi 16372 16373if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 16374 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16375 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16376 fi 16377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 16379$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 16380if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 16381 $as_echo_n "(cached) " >&6 16382else 16383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16384/* end confdefs.h. */ 16385int i; 16386_ACEOF 16387if ac_fn_c_try_compile "$LINENO"; then : 16388 xorg_cv_compiler_flag_unused_command_line_argument=yes 16389else 16390 xorg_cv_compiler_flag_unused_command_line_argument=no 16391fi 16392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16393fi 16394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 16395$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 16396 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 16397 CFLAGS="$xorg_testset_save_CFLAGS" 16398fi 16399 16400found="no" 16401 16402 if test $found = "no" ; then 16403 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16404 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16405 fi 16406 16407 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16408 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16409 fi 16410 16411 CFLAGS="$CFLAGS -Wwrite-strings" 16412 16413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 16414$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 16415 cacheid=`$as_echo xorg_cv_cc_flag_-Wwrite-strings` 16416 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 16417 $as_echo_n "(cached) " >&6 16418else 16419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16420/* end confdefs.h. */ 16421int i; 16422int 16423main () 16424{ 16425 16426 ; 16427 return 0; 16428} 16429_ACEOF 16430if ac_fn_c_try_link "$LINENO"; then : 16431 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 16432else 16433 eval `$as_echo "$cacheid" | $as_tr_sh`=no 16434fi 16435rm -f core conftest.err conftest.$ac_objext \ 16436 conftest$ac_exeext conftest.$ac_ext 16437fi 16438 16439 16440 CFLAGS="$xorg_testset_save_CFLAGS" 16441 16442 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 16443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16444$as_echo "$supported" >&6; } 16445 if test "$supported" = "yes" ; then 16446 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 16447 found="yes" 16448 fi 16449 fi 16450 16451 16452 16453 16454 16455 16456 16457 16458 16459 16460 16461 16462 16463xorg_testset_save_CFLAGS="$CFLAGS" 16464 16465if test "x$xorg_testset_unknown_warning_option" = "x" ; then 16466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 16468$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 16469if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 16470 $as_echo_n "(cached) " >&6 16471else 16472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16473/* end confdefs.h. */ 16474int i; 16475_ACEOF 16476if ac_fn_c_try_compile "$LINENO"; then : 16477 xorg_cv_compiler_flag_unknown_warning_option=yes 16478else 16479 xorg_cv_compiler_flag_unknown_warning_option=no 16480fi 16481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16482fi 16483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 16484$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 16485 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 16486 CFLAGS="$xorg_testset_save_CFLAGS" 16487fi 16488 16489if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 16490 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16491 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16492 fi 16493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 16495$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 16496if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 16497 $as_echo_n "(cached) " >&6 16498else 16499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16500/* end confdefs.h. */ 16501int i; 16502_ACEOF 16503if ac_fn_c_try_compile "$LINENO"; then : 16504 xorg_cv_compiler_flag_unused_command_line_argument=yes 16505else 16506 xorg_cv_compiler_flag_unused_command_line_argument=no 16507fi 16508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16509fi 16510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 16511$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 16512 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 16513 CFLAGS="$xorg_testset_save_CFLAGS" 16514fi 16515 16516found="no" 16517 16518 if test $found = "no" ; then 16519 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16521 fi 16522 16523 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16525 fi 16526 16527 CFLAGS="$CFLAGS -Waddress" 16528 16529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 16530$as_echo_n "checking if $CC supports -Waddress... " >&6; } 16531 cacheid=`$as_echo xorg_cv_cc_flag_-Waddress` 16532 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 16533 $as_echo_n "(cached) " >&6 16534else 16535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16536/* end confdefs.h. */ 16537int i; 16538int 16539main () 16540{ 16541 16542 ; 16543 return 0; 16544} 16545_ACEOF 16546if ac_fn_c_try_link "$LINENO"; then : 16547 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 16548else 16549 eval `$as_echo "$cacheid" | $as_tr_sh`=no 16550fi 16551rm -f core conftest.err conftest.$ac_objext \ 16552 conftest$ac_exeext conftest.$ac_ext 16553fi 16554 16555 16556 CFLAGS="$xorg_testset_save_CFLAGS" 16557 16558 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 16559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16560$as_echo "$supported" >&6; } 16561 if test "$supported" = "yes" ; then 16562 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 16563 found="yes" 16564 fi 16565 fi 16566 16567 16568 16569 16570 16571 16572 16573 16574 16575 16576 16577 16578 16579xorg_testset_save_CFLAGS="$CFLAGS" 16580 16581if test "x$xorg_testset_unknown_warning_option" = "x" ; then 16582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 16584$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 16585if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 16586 $as_echo_n "(cached) " >&6 16587else 16588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16589/* end confdefs.h. */ 16590int i; 16591_ACEOF 16592if ac_fn_c_try_compile "$LINENO"; then : 16593 xorg_cv_compiler_flag_unknown_warning_option=yes 16594else 16595 xorg_cv_compiler_flag_unknown_warning_option=no 16596fi 16597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16598fi 16599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 16600$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 16601 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 16602 CFLAGS="$xorg_testset_save_CFLAGS" 16603fi 16604 16605if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 16606 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16607 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16608 fi 16609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 16611$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 16612if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 16613 $as_echo_n "(cached) " >&6 16614else 16615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16616/* end confdefs.h. */ 16617int i; 16618_ACEOF 16619if ac_fn_c_try_compile "$LINENO"; then : 16620 xorg_cv_compiler_flag_unused_command_line_argument=yes 16621else 16622 xorg_cv_compiler_flag_unused_command_line_argument=no 16623fi 16624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16625fi 16626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 16627$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 16628 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 16629 CFLAGS="$xorg_testset_save_CFLAGS" 16630fi 16631 16632found="no" 16633 16634 if test $found = "no" ; then 16635 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16636 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16637 fi 16638 16639 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16641 fi 16642 16643 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 16644 16645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 16646$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 16647 cacheid=`$as_echo xorg_cv_cc_flag_-Wint-to-pointer-cast` 16648 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 16649 $as_echo_n "(cached) " >&6 16650else 16651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16652/* end confdefs.h. */ 16653int i; 16654int 16655main () 16656{ 16657 16658 ; 16659 return 0; 16660} 16661_ACEOF 16662if ac_fn_c_try_link "$LINENO"; then : 16663 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 16664else 16665 eval `$as_echo "$cacheid" | $as_tr_sh`=no 16666fi 16667rm -f core conftest.err conftest.$ac_objext \ 16668 conftest$ac_exeext conftest.$ac_ext 16669fi 16670 16671 16672 CFLAGS="$xorg_testset_save_CFLAGS" 16673 16674 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 16675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16676$as_echo "$supported" >&6; } 16677 if test "$supported" = "yes" ; then 16678 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 16679 found="yes" 16680 fi 16681 fi 16682 16683 16684 16685 16686 16687 16688 16689 16690 16691 16692 16693 16694 16695xorg_testset_save_CFLAGS="$CFLAGS" 16696 16697if test "x$xorg_testset_unknown_warning_option" = "x" ; then 16698 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 16700$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 16701if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 16702 $as_echo_n "(cached) " >&6 16703else 16704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16705/* end confdefs.h. */ 16706int i; 16707_ACEOF 16708if ac_fn_c_try_compile "$LINENO"; then : 16709 xorg_cv_compiler_flag_unknown_warning_option=yes 16710else 16711 xorg_cv_compiler_flag_unknown_warning_option=no 16712fi 16713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16714fi 16715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 16716$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 16717 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 16718 CFLAGS="$xorg_testset_save_CFLAGS" 16719fi 16720 16721if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 16722 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16724 fi 16725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 16727$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 16728if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 16729 $as_echo_n "(cached) " >&6 16730else 16731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16732/* end confdefs.h. */ 16733int i; 16734_ACEOF 16735if ac_fn_c_try_compile "$LINENO"; then : 16736 xorg_cv_compiler_flag_unused_command_line_argument=yes 16737else 16738 xorg_cv_compiler_flag_unused_command_line_argument=no 16739fi 16740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16741fi 16742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 16743$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 16744 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 16745 CFLAGS="$xorg_testset_save_CFLAGS" 16746fi 16747 16748found="no" 16749 16750 if test $found = "no" ; then 16751 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16753 fi 16754 16755 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16757 fi 16758 16759 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 16760 16761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 16762$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 16763 cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-to-int-cast` 16764 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 16765 $as_echo_n "(cached) " >&6 16766else 16767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16768/* end confdefs.h. */ 16769int i; 16770int 16771main () 16772{ 16773 16774 ; 16775 return 0; 16776} 16777_ACEOF 16778if ac_fn_c_try_link "$LINENO"; then : 16779 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 16780else 16781 eval `$as_echo "$cacheid" | $as_tr_sh`=no 16782fi 16783rm -f core conftest.err conftest.$ac_objext \ 16784 conftest$ac_exeext conftest.$ac_ext 16785fi 16786 16787 16788 CFLAGS="$xorg_testset_save_CFLAGS" 16789 16790 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 16791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16792$as_echo "$supported" >&6; } 16793 if test "$supported" = "yes" ; then 16794 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 16795 found="yes" 16796 fi 16797 fi 16798 16799 16800fi 16801 16802 16803 16804 16805 16806 16807 16808 CWARNFLAGS="$BASE_CFLAGS" 16809 if test "x$GCC" = xyes ; then 16810 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 16811 fi 16812 16813 16814 16815 16816 16817 16818 16819 16820# Check whether --enable-strict-compilation was given. 16821if test "${enable_strict_compilation+set}" = set; then : 16822 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 16823else 16824 STRICT_COMPILE=no 16825fi 16826 16827 16828 16829 16830 16831 16832STRICT_CFLAGS="" 16833 16834 16835 16836 16837 16838 16839 16840 16841 16842 16843 16844xorg_testset_save_CFLAGS="$CFLAGS" 16845 16846if test "x$xorg_testset_unknown_warning_option" = "x" ; then 16847 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 16849$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 16850if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 16851 $as_echo_n "(cached) " >&6 16852else 16853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16854/* end confdefs.h. */ 16855int i; 16856_ACEOF 16857if ac_fn_c_try_compile "$LINENO"; then : 16858 xorg_cv_compiler_flag_unknown_warning_option=yes 16859else 16860 xorg_cv_compiler_flag_unknown_warning_option=no 16861fi 16862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16863fi 16864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 16865$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 16866 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 16867 CFLAGS="$xorg_testset_save_CFLAGS" 16868fi 16869 16870if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 16871 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16873 fi 16874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 16876$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 16877if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 16878 $as_echo_n "(cached) " >&6 16879else 16880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16881/* end confdefs.h. */ 16882int i; 16883_ACEOF 16884if ac_fn_c_try_compile "$LINENO"; then : 16885 xorg_cv_compiler_flag_unused_command_line_argument=yes 16886else 16887 xorg_cv_compiler_flag_unused_command_line_argument=no 16888fi 16889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16890fi 16891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 16892$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 16893 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 16894 CFLAGS="$xorg_testset_save_CFLAGS" 16895fi 16896 16897found="no" 16898 16899 if test $found = "no" ; then 16900 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16901 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16902 fi 16903 16904 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16906 fi 16907 16908 CFLAGS="$CFLAGS -pedantic" 16909 16910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 16911$as_echo_n "checking if $CC supports -pedantic... " >&6; } 16912 cacheid=`$as_echo xorg_cv_cc_flag_-pedantic` 16913 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 16914 $as_echo_n "(cached) " >&6 16915else 16916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16917/* end confdefs.h. */ 16918int i; 16919int 16920main () 16921{ 16922 16923 ; 16924 return 0; 16925} 16926_ACEOF 16927if ac_fn_c_try_link "$LINENO"; then : 16928 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 16929else 16930 eval `$as_echo "$cacheid" | $as_tr_sh`=no 16931fi 16932rm -f core conftest.err conftest.$ac_objext \ 16933 conftest$ac_exeext conftest.$ac_ext 16934fi 16935 16936 16937 CFLAGS="$xorg_testset_save_CFLAGS" 16938 16939 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 16940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16941$as_echo "$supported" >&6; } 16942 if test "$supported" = "yes" ; then 16943 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 16944 found="yes" 16945 fi 16946 fi 16947 16948 16949 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960xorg_testset_save_CFLAGS="$CFLAGS" 16961 16962if test "x$xorg_testset_unknown_warning_option" = "x" ; then 16963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 16965$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 16966if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 16967 $as_echo_n "(cached) " >&6 16968else 16969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16970/* end confdefs.h. */ 16971int i; 16972_ACEOF 16973if ac_fn_c_try_compile "$LINENO"; then : 16974 xorg_cv_compiler_flag_unknown_warning_option=yes 16975else 16976 xorg_cv_compiler_flag_unknown_warning_option=no 16977fi 16978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16979fi 16980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 16981$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 16982 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 16983 CFLAGS="$xorg_testset_save_CFLAGS" 16984fi 16985 16986if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 16987 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16989 fi 16990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 16992$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 16993if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 16994 $as_echo_n "(cached) " >&6 16995else 16996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16997/* end confdefs.h. */ 16998int i; 16999_ACEOF 17000if ac_fn_c_try_compile "$LINENO"; then : 17001 xorg_cv_compiler_flag_unused_command_line_argument=yes 17002else 17003 xorg_cv_compiler_flag_unused_command_line_argument=no 17004fi 17005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17006fi 17007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 17008$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 17009 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 17010 CFLAGS="$xorg_testset_save_CFLAGS" 17011fi 17012 17013found="no" 17014 17015 if test $found = "no" ; then 17016 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17017 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17018 fi 17019 17020 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17022 fi 17023 17024 CFLAGS="$CFLAGS -Werror" 17025 17026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 17027$as_echo_n "checking if $CC supports -Werror... " >&6; } 17028 cacheid=`$as_echo xorg_cv_cc_flag_-Werror` 17029 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 17030 $as_echo_n "(cached) " >&6 17031else 17032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17033/* end confdefs.h. */ 17034int i; 17035int 17036main () 17037{ 17038 17039 ; 17040 return 0; 17041} 17042_ACEOF 17043if ac_fn_c_try_link "$LINENO"; then : 17044 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 17045else 17046 eval `$as_echo "$cacheid" | $as_tr_sh`=no 17047fi 17048rm -f core conftest.err conftest.$ac_objext \ 17049 conftest$ac_exeext conftest.$ac_ext 17050fi 17051 17052 17053 CFLAGS="$xorg_testset_save_CFLAGS" 17054 17055 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 17056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17057$as_echo "$supported" >&6; } 17058 if test "$supported" = "yes" ; then 17059 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 17060 found="yes" 17061 fi 17062 fi 17063 17064 if test $found = "no" ; then 17065 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17067 fi 17068 17069 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17071 fi 17072 17073 CFLAGS="$CFLAGS -errwarn" 17074 17075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 17076$as_echo_n "checking if $CC supports -errwarn... " >&6; } 17077 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn` 17078 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 17079 $as_echo_n "(cached) " >&6 17080else 17081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17082/* end confdefs.h. */ 17083int i; 17084int 17085main () 17086{ 17087 17088 ; 17089 return 0; 17090} 17091_ACEOF 17092if ac_fn_c_try_link "$LINENO"; then : 17093 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 17094else 17095 eval `$as_echo "$cacheid" | $as_tr_sh`=no 17096fi 17097rm -f core conftest.err conftest.$ac_objext \ 17098 conftest$ac_exeext conftest.$ac_ext 17099fi 17100 17101 17102 CFLAGS="$xorg_testset_save_CFLAGS" 17103 17104 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 17105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17106$as_echo "$supported" >&6; } 17107 if test "$supported" = "yes" ; then 17108 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 17109 found="yes" 17110 fi 17111 fi 17112 17113 17114 17115# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 17116# activate it with -Werror, so we add it here explicitly. 17117 17118 17119 17120 17121 17122 17123 17124 17125 17126 17127 17128xorg_testset_save_CFLAGS="$CFLAGS" 17129 17130if test "x$xorg_testset_unknown_warning_option" = "x" ; then 17131 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 17133$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 17134if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 17135 $as_echo_n "(cached) " >&6 17136else 17137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17138/* end confdefs.h. */ 17139int i; 17140_ACEOF 17141if ac_fn_c_try_compile "$LINENO"; then : 17142 xorg_cv_compiler_flag_unknown_warning_option=yes 17143else 17144 xorg_cv_compiler_flag_unknown_warning_option=no 17145fi 17146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17147fi 17148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 17149$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 17150 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 17151 CFLAGS="$xorg_testset_save_CFLAGS" 17152fi 17153 17154if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 17155 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17156 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17157 fi 17158 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 17160$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 17161if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 17162 $as_echo_n "(cached) " >&6 17163else 17164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17165/* end confdefs.h. */ 17166int i; 17167_ACEOF 17168if ac_fn_c_try_compile "$LINENO"; then : 17169 xorg_cv_compiler_flag_unused_command_line_argument=yes 17170else 17171 xorg_cv_compiler_flag_unused_command_line_argument=no 17172fi 17173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17174fi 17175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 17176$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 17177 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 17178 CFLAGS="$xorg_testset_save_CFLAGS" 17179fi 17180 17181found="no" 17182 17183 if test $found = "no" ; then 17184 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17185 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17186 fi 17187 17188 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17190 fi 17191 17192 CFLAGS="$CFLAGS -Werror=attributes" 17193 17194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 17195$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 17196 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=attributes` 17197 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 17198 $as_echo_n "(cached) " >&6 17199else 17200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17201/* end confdefs.h. */ 17202int i; 17203int 17204main () 17205{ 17206 17207 ; 17208 return 0; 17209} 17210_ACEOF 17211if ac_fn_c_try_link "$LINENO"; then : 17212 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 17213else 17214 eval `$as_echo "$cacheid" | $as_tr_sh`=no 17215fi 17216rm -f core conftest.err conftest.$ac_objext \ 17217 conftest$ac_exeext conftest.$ac_ext 17218fi 17219 17220 17221 CFLAGS="$xorg_testset_save_CFLAGS" 17222 17223 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 17224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17225$as_echo "$supported" >&6; } 17226 if test "$supported" = "yes" ; then 17227 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 17228 found="yes" 17229 fi 17230 fi 17231 17232 17233 17234if test "x$STRICT_COMPILE" = "xyes"; then 17235 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 17236 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 17237fi 17238 17239 17240 17241 17242 17243 17244cat >>confdefs.h <<_ACEOF 17245#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 17246_ACEOF 17247 17248 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 17249 if test "x$PVM" = "x"; then 17250 PVM="0" 17251 fi 17252 17253cat >>confdefs.h <<_ACEOF 17254#define PACKAGE_VERSION_MINOR $PVM 17255_ACEOF 17256 17257 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 17258 if test "x$PVP" = "x"; then 17259 PVP="0" 17260 fi 17261 17262cat >>confdefs.h <<_ACEOF 17263#define PACKAGE_VERSION_PATCHLEVEL $PVP 17264_ACEOF 17265 17266 17267 17268CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 17269mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 17270|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 17271echo 'git directory not found: installing possibly empty changelog.' >&2)" 17272 17273 17274 17275 17276macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 17277INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 17278mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 17279|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 17280echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 17281 17282 17283 17284 17285 17286 17287if test x$APP_MAN_SUFFIX = x ; then 17288 APP_MAN_SUFFIX=1 17289fi 17290if test x$APP_MAN_DIR = x ; then 17291 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 17292fi 17293 17294if test x$LIB_MAN_SUFFIX = x ; then 17295 LIB_MAN_SUFFIX=3 17296fi 17297if test x$LIB_MAN_DIR = x ; then 17298 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 17299fi 17300 17301if test x$FILE_MAN_SUFFIX = x ; then 17302 case $host_os in 17303 solaris*) FILE_MAN_SUFFIX=4 ;; 17304 *) FILE_MAN_SUFFIX=5 ;; 17305 esac 17306fi 17307if test x$FILE_MAN_DIR = x ; then 17308 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 17309fi 17310 17311if test x$MISC_MAN_SUFFIX = x ; then 17312 case $host_os in 17313 solaris*) MISC_MAN_SUFFIX=5 ;; 17314 *) MISC_MAN_SUFFIX=7 ;; 17315 esac 17316fi 17317if test x$MISC_MAN_DIR = x ; then 17318 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 17319fi 17320 17321if test x$DRIVER_MAN_SUFFIX = x ; then 17322 case $host_os in 17323 solaris*) DRIVER_MAN_SUFFIX=7 ;; 17324 *) DRIVER_MAN_SUFFIX=4 ;; 17325 esac 17326fi 17327if test x$DRIVER_MAN_DIR = x ; then 17328 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 17329fi 17330 17331if test x$ADMIN_MAN_SUFFIX = x ; then 17332 case $host_os in 17333 solaris*) ADMIN_MAN_SUFFIX=1m ;; 17334 *) ADMIN_MAN_SUFFIX=8 ;; 17335 esac 17336fi 17337if test x$ADMIN_MAN_DIR = x ; then 17338 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 17339fi 17340 17341 17342 17343 17344 17345 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355XORG_MAN_PAGE="X Version 11" 17356 17357MAN_SUBSTS="\ 17358 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17359 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17360 -e 's|__xservername__|Xorg|g' \ 17361 -e 's|__xconfigfile__|xorg.conf|g' \ 17362 -e 's|__projectroot__|\$(prefix)|g' \ 17363 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 17364 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 17365 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 17366 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 17367 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 17368 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 17369 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 17370 17371 17372 17373# Check whether --enable-silent-rules was given. 17374if test "${enable_silent_rules+set}" = set; then : 17375 enableval=$enable_silent_rules; 17376fi 17377 17378case $enable_silent_rules in 17379yes) AM_DEFAULT_VERBOSITY=0;; 17380no) AM_DEFAULT_VERBOSITY=1;; 17381*) AM_DEFAULT_VERBOSITY=0;; 17382esac 17383AM_BACKSLASH='\' 17384 17385 17386 17387# Check whether --enable-malloc0returnsnull was given. 17388if test "${enable_malloc0returnsnull+set}" = set; then : 17389 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 17390else 17391 MALLOC_ZERO_RETURNS_NULL=auto 17392fi 17393 17394 17395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5 17396$as_echo_n "checking whether malloc(0) returns NULL... " >&6; } 17397if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 17398 if test "$cross_compiling" = yes; then : 17399 MALLOC_ZERO_RETURNS_NULL=yes 17400else 17401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17402/* end confdefs.h. */ 17403 17404#include <stdlib.h> 17405 17406int 17407main () 17408{ 17409 17410 char *m0, *r0, *c0, *p; 17411 m0 = malloc(0); 17412 p = malloc(10); 17413 r0 = realloc(p,0); 17414 c0 = calloc(0,10); 17415 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1); 17416 17417 ; 17418 return 0; 17419} 17420_ACEOF 17421if ac_fn_c_try_run "$LINENO"; then : 17422 MALLOC_ZERO_RETURNS_NULL=yes 17423else 17424 MALLOC_ZERO_RETURNS_NULL=no 17425fi 17426rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17427 conftest.$ac_objext conftest.beam conftest.$ac_ext 17428fi 17429 17430fi 17431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 17432$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; } 17433 17434if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 17435 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 17436 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 17437 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 17438else 17439 MALLOC_ZERO_CFLAGS="" 17440 XMALLOC_ZERO_CFLAGS="" 17441 XTMALLOC_ZERO_CFLAGS="" 17442fi 17443 17444 17445 17446 17447 17448 17449# Obtain compiler/linker options for depedencies 17450 17451pkg_failed=no 17452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XINERAMA" >&5 17453$as_echo_n "checking for XINERAMA... " >&6; } 17454 17455if test -n "$XINERAMA_CFLAGS"; then 17456 pkg_cv_XINERAMA_CFLAGS="$XINERAMA_CFLAGS" 17457 elif test -n "$PKG_CONFIG"; then 17458 if test -n "$PKG_CONFIG" && \ 17459 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto xineramaproto >= 1.1.99.1\""; } >&5 17460 ($PKG_CONFIG --exists --print-errors "x11 xext xextproto xineramaproto >= 1.1.99.1") 2>&5 17461 ac_status=$? 17462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17463 test $ac_status = 0; }; then 17464 pkg_cv_XINERAMA_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xextproto xineramaproto >= 1.1.99.1" 2>/dev/null` 17465else 17466 pkg_failed=yes 17467fi 17468 else 17469 pkg_failed=untried 17470fi 17471if test -n "$XINERAMA_LIBS"; then 17472 pkg_cv_XINERAMA_LIBS="$XINERAMA_LIBS" 17473 elif test -n "$PKG_CONFIG"; then 17474 if test -n "$PKG_CONFIG" && \ 17475 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto xineramaproto >= 1.1.99.1\""; } >&5 17476 ($PKG_CONFIG --exists --print-errors "x11 xext xextproto xineramaproto >= 1.1.99.1") 2>&5 17477 ac_status=$? 17478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17479 test $ac_status = 0; }; then 17480 pkg_cv_XINERAMA_LIBS=`$PKG_CONFIG --libs "x11 xext xextproto xineramaproto >= 1.1.99.1" 2>/dev/null` 17481else 17482 pkg_failed=yes 17483fi 17484 else 17485 pkg_failed=untried 17486fi 17487 17488 17489 17490if test $pkg_failed = yes; then 17491 17492if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17493 _pkg_short_errors_supported=yes 17494else 17495 _pkg_short_errors_supported=no 17496fi 17497 if test $_pkg_short_errors_supported = yes; then 17498 XINERAMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xext xextproto xineramaproto >= 1.1.99.1" 2>&1` 17499 else 17500 XINERAMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xext xextproto xineramaproto >= 1.1.99.1" 2>&1` 17501 fi 17502 # Put the nasty error message in config.log where it belongs 17503 echo "$XINERAMA_PKG_ERRORS" >&5 17504 17505 as_fn_error $? "Package requirements (x11 xext xextproto xineramaproto >= 1.1.99.1) were not met: 17506 17507$XINERAMA_PKG_ERRORS 17508 17509Consider adjusting the PKG_CONFIG_PATH environment variable if you 17510installed software in a non-standard prefix. 17511 17512Alternatively, you may set the environment variables XINERAMA_CFLAGS 17513and XINERAMA_LIBS to avoid the need to call pkg-config. 17514See the pkg-config man page for more details. 17515" "$LINENO" 5 17516elif test $pkg_failed = untried; then 17517 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17518$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17519as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17520is in your PATH or set the PKG_CONFIG environment variable to the full 17521path to pkg-config. 17522 17523Alternatively, you may set the environment variables XINERAMA_CFLAGS 17524and XINERAMA_LIBS to avoid the need to call pkg-config. 17525See the pkg-config man page for more details. 17526 17527To get pkg-config, see <http://pkg-config.freedesktop.org/>. 17528See \`config.log' for more details" "$LINENO" 5; } 17529else 17530 XINERAMA_CFLAGS=$pkg_cv_XINERAMA_CFLAGS 17531 XINERAMA_LIBS=$pkg_cv_XINERAMA_LIBS 17532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17533$as_echo "yes" >&6; } 17534 : 17535fi 17536 17537# Allow checking code with lint, sparse, etc. 17538 17539 17540 17541 17542 17543# Check whether --with-lint was given. 17544if test "${with_lint+set}" = set; then : 17545 withval=$with_lint; use_lint=$withval 17546else 17547 use_lint=no 17548fi 17549 17550 17551# Obtain platform specific info like program name and options 17552# The lint program on FreeBSD and NetBSD is different from the one on Solaris 17553case $host_os in 17554 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 17555 lint_name=splint 17556 lint_options="-badflag" 17557 ;; 17558 *freebsd* | *netbsd*) 17559 lint_name=lint 17560 lint_options="-u -b" 17561 ;; 17562 *solaris*) 17563 lint_name=lint 17564 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 17565 ;; 17566esac 17567 17568# Test for the presence of the program (either guessed by the code or spelled out by the user) 17569if test "x$use_lint" = x"yes" ; then 17570 # Extract the first word of "$lint_name", so it can be a program name with args. 17571set dummy $lint_name; ac_word=$2 17572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17573$as_echo_n "checking for $ac_word... " >&6; } 17574if ${ac_cv_path_LINT+:} false; then : 17575 $as_echo_n "(cached) " >&6 17576else 17577 case $LINT in 17578 [\\/]* | ?:[\\/]*) 17579 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 17580 ;; 17581 *) 17582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17583for as_dir in $PATH 17584do 17585 IFS=$as_save_IFS 17586 test -z "$as_dir" && as_dir=. 17587 for ac_exec_ext in '' $ac_executable_extensions; do 17588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17589 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 17590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17591 break 2 17592 fi 17593done 17594 done 17595IFS=$as_save_IFS 17596 17597 ;; 17598esac 17599fi 17600LINT=$ac_cv_path_LINT 17601if test -n "$LINT"; then 17602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 17603$as_echo "$LINT" >&6; } 17604else 17605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17606$as_echo "no" >&6; } 17607fi 17608 17609 17610 if test "x$LINT" = "x"; then 17611 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 17612 fi 17613elif test "x$use_lint" = x"no" ; then 17614 if test "x$LINT" != "x"; then 17615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 17616$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 17617 fi 17618else 17619 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 17620fi 17621 17622# User supplied flags override default flags 17623if test "x$LINT_FLAGS" != "x"; then 17624 lint_options=$LINT_FLAGS 17625fi 17626 17627LINT_FLAGS=$lint_options 17628 17629 if test "x$LINT" != x; then 17630 LINT_TRUE= 17631 LINT_FALSE='#' 17632else 17633 LINT_TRUE='#' 17634 LINT_FALSE= 17635fi 17636 17637 17638 17639LINT_FLAGS="${LINT_FLAGS} ${XINERAMA_CFLAGS}" 17640 17641ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xinerama.pc" 17642 17643cat >confcache <<\_ACEOF 17644# This file is a shell script that caches the results of configure 17645# tests run on this system so they can be shared between configure 17646# scripts and configure runs, see configure's option --config-cache. 17647# It is not useful on other systems. If it contains results you don't 17648# want to keep, you may remove or edit it. 17649# 17650# config.status only pays attention to the cache file if you give it 17651# the --recheck option to rerun configure. 17652# 17653# `ac_cv_env_foo' variables (set or unset) will be overridden when 17654# loading this file, other *unset* `ac_cv_foo' will be assigned the 17655# following values. 17656 17657_ACEOF 17658 17659# The following way of writing the cache mishandles newlines in values, 17660# but we know of no workaround that is simple, portable, and efficient. 17661# So, we kill variables containing newlines. 17662# Ultrix sh set writes to stderr and can't be redirected directly, 17663# and sets the high bit in the cache file unless we assign to the vars. 17664( 17665 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17666 eval ac_val=\$$ac_var 17667 case $ac_val in #( 17668 *${as_nl}*) 17669 case $ac_var in #( 17670 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17671$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17672 esac 17673 case $ac_var in #( 17674 _ | IFS | as_nl) ;; #( 17675 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17676 *) { eval $ac_var=; unset $ac_var;} ;; 17677 esac ;; 17678 esac 17679 done 17680 17681 (set) 2>&1 | 17682 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17683 *${as_nl}ac_space=\ *) 17684 # `set' does not quote correctly, so add quotes: double-quote 17685 # substitution turns \\\\ into \\, and sed turns \\ into \. 17686 sed -n \ 17687 "s/'/'\\\\''/g; 17688 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17689 ;; #( 17690 *) 17691 # `set' quotes correctly as required by POSIX, so do not add quotes. 17692 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17693 ;; 17694 esac | 17695 sort 17696) | 17697 sed ' 17698 /^ac_cv_env_/b end 17699 t clear 17700 :clear 17701 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17702 t end 17703 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17704 :end' >>confcache 17705if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17706 if test -w "$cache_file"; then 17707 if test "x$cache_file" != "x/dev/null"; then 17708 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17709$as_echo "$as_me: updating cache $cache_file" >&6;} 17710 if test ! -f "$cache_file" || test -h "$cache_file"; then 17711 cat confcache >"$cache_file" 17712 else 17713 case $cache_file in #( 17714 */* | ?:*) 17715 mv -f confcache "$cache_file"$$ && 17716 mv -f "$cache_file"$$ "$cache_file" ;; #( 17717 *) 17718 mv -f confcache "$cache_file" ;; 17719 esac 17720 fi 17721 fi 17722 else 17723 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17724$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17725 fi 17726fi 17727rm -f confcache 17728 17729test "x$prefix" = xNONE && prefix=$ac_default_prefix 17730# Let make expand exec_prefix. 17731test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17732 17733DEFS=-DHAVE_CONFIG_H 17734 17735ac_libobjs= 17736ac_ltlibobjs= 17737U= 17738for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17739 # 1. Remove the extension, and $U if already installed. 17740 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17741 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17742 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17743 # will be set to the directory where LIBOBJS objects are built. 17744 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17745 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17746done 17747LIBOBJS=$ac_libobjs 17748 17749LTLIBOBJS=$ac_ltlibobjs 17750 17751 17752 if test -n "$EXEEXT"; then 17753 am__EXEEXT_TRUE= 17754 am__EXEEXT_FALSE='#' 17755else 17756 am__EXEEXT_TRUE='#' 17757 am__EXEEXT_FALSE= 17758fi 17759 17760if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 17761 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 17762Usually this means the macro was only invoked conditionally." "$LINENO" 5 17763fi 17764if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 17765 as_fn_error $? "conditional \"AMDEP\" was never defined. 17766Usually this means the macro was only invoked conditionally." "$LINENO" 5 17767fi 17768if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17769 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17770Usually this means the macro was only invoked conditionally." "$LINENO" 5 17771fi 17772if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 17773 as_fn_error $? "conditional \"LINT\" was never defined. 17774Usually this means the macro was only invoked conditionally." "$LINENO" 5 17775fi 17776 17777: "${CONFIG_STATUS=./config.status}" 17778ac_write_fail=0 17779ac_clean_files_save=$ac_clean_files 17780ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17781{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17782$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17783as_write_fail=0 17784cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17785#! $SHELL 17786# Generated by $as_me. 17787# Run this file to recreate the current configuration. 17788# Compiler output produced by configure, useful for debugging 17789# configure, is in config.log if it exists. 17790 17791debug=false 17792ac_cs_recheck=false 17793ac_cs_silent=false 17794 17795SHELL=\${CONFIG_SHELL-$SHELL} 17796export SHELL 17797_ASEOF 17798cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17799## -------------------- ## 17800## M4sh Initialization. ## 17801## -------------------- ## 17802 17803# Be more Bourne compatible 17804DUALCASE=1; export DUALCASE # for MKS sh 17805if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 17806 emulate sh 17807 NULLCMD=: 17808 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17809 # is contrary to our usage. Disable this feature. 17810 alias -g '${1+"$@"}'='"$@"' 17811 setopt NO_GLOB_SUBST 17812else 17813 case `(set -o) 2>/dev/null` in #( 17814 *posix*) : 17815 set -o posix ;; #( 17816 *) : 17817 ;; 17818esac 17819fi 17820 17821 17822as_nl=' 17823' 17824export as_nl 17825# Printing a long string crashes Solaris 7 /usr/bin/printf. 17826as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 17827as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 17828as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 17829# Prefer a ksh shell builtin over an external printf program on Solaris, 17830# but without wasting forks for bash or zsh. 17831if test -z "$BASH_VERSION$ZSH_VERSION" \ 17832 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 17833 as_echo='print -r --' 17834 as_echo_n='print -rn --' 17835elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 17836 as_echo='printf %s\n' 17837 as_echo_n='printf %s' 17838else 17839 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 17840 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 17841 as_echo_n='/usr/ucb/echo -n' 17842 else 17843 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 17844 as_echo_n_body='eval 17845 arg=$1; 17846 case $arg in #( 17847 *"$as_nl"*) 17848 expr "X$arg" : "X\\(.*\\)$as_nl"; 17849 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 17850 esac; 17851 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 17852 ' 17853 export as_echo_n_body 17854 as_echo_n='sh -c $as_echo_n_body as_echo' 17855 fi 17856 export as_echo_body 17857 as_echo='sh -c $as_echo_body as_echo' 17858fi 17859 17860# The user is always right. 17861if test "${PATH_SEPARATOR+set}" != set; then 17862 PATH_SEPARATOR=: 17863 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 17864 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 17865 PATH_SEPARATOR=';' 17866 } 17867fi 17868 17869 17870# IFS 17871# We need space, tab and new line, in precisely that order. Quoting is 17872# there to prevent editors from complaining about space-tab. 17873# (If _AS_PATH_WALK were called with IFS unset, it would disable word 17874# splitting by setting IFS to empty value.) 17875IFS=" "" $as_nl" 17876 17877# Find who we are. Look in the path if we contain no directory separator. 17878as_myself= 17879case $0 in #(( 17880 *[\\/]* ) as_myself=$0 ;; 17881 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17882for as_dir in $PATH 17883do 17884 IFS=$as_save_IFS 17885 test -z "$as_dir" && as_dir=. 17886 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 17887 done 17888IFS=$as_save_IFS 17889 17890 ;; 17891esac 17892# We did not find ourselves, most probably we were run as `sh COMMAND' 17893# in which case we are not to be found in the path. 17894if test "x$as_myself" = x; then 17895 as_myself=$0 17896fi 17897if test ! -f "$as_myself"; then 17898 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17899 exit 1 17900fi 17901 17902# Unset variables that we do not need and which cause bugs (e.g. in 17903# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 17904# suppresses any "Segmentation fault" message there. '((' could 17905# trigger a bug in pdksh 5.2.14. 17906for as_var in BASH_ENV ENV MAIL MAILPATH 17907do eval test x\${$as_var+set} = xset \ 17908 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 17909done 17910PS1='$ ' 17911PS2='> ' 17912PS4='+ ' 17913 17914# NLS nuisances. 17915LC_ALL=C 17916export LC_ALL 17917LANGUAGE=C 17918export LANGUAGE 17919 17920# CDPATH. 17921(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17922 17923 17924# as_fn_error STATUS ERROR [LINENO LOG_FD] 17925# ---------------------------------------- 17926# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 17927# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 17928# script with STATUS, using 1 if that was 0. 17929as_fn_error () 17930{ 17931 as_status=$1; test $as_status -eq 0 && as_status=1 17932 if test "$4"; then 17933 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17934 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 17935 fi 17936 $as_echo "$as_me: error: $2" >&2 17937 as_fn_exit $as_status 17938} # as_fn_error 17939 17940 17941# as_fn_set_status STATUS 17942# ----------------------- 17943# Set $? to STATUS, without forking. 17944as_fn_set_status () 17945{ 17946 return $1 17947} # as_fn_set_status 17948 17949# as_fn_exit STATUS 17950# ----------------- 17951# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 17952as_fn_exit () 17953{ 17954 set +e 17955 as_fn_set_status $1 17956 exit $1 17957} # as_fn_exit 17958 17959# as_fn_unset VAR 17960# --------------- 17961# Portably unset VAR. 17962as_fn_unset () 17963{ 17964 { eval $1=; unset $1;} 17965} 17966as_unset=as_fn_unset 17967# as_fn_append VAR VALUE 17968# ---------------------- 17969# Append the text in VALUE to the end of the definition contained in VAR. Take 17970# advantage of any shell optimizations that allow amortized linear growth over 17971# repeated appends, instead of the typical quadratic growth present in naive 17972# implementations. 17973if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 17974 eval 'as_fn_append () 17975 { 17976 eval $1+=\$2 17977 }' 17978else 17979 as_fn_append () 17980 { 17981 eval $1=\$$1\$2 17982 } 17983fi # as_fn_append 17984 17985# as_fn_arith ARG... 17986# ------------------ 17987# Perform arithmetic evaluation on the ARGs, and store the result in the 17988# global $as_val. Take advantage of shells that can avoid forks. The arguments 17989# must be portable across $(()) and expr. 17990if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 17991 eval 'as_fn_arith () 17992 { 17993 as_val=$(( $* )) 17994 }' 17995else 17996 as_fn_arith () 17997 { 17998 as_val=`expr "$@" || test $? -eq 1` 17999 } 18000fi # as_fn_arith 18001 18002 18003if expr a : '\(a\)' >/dev/null 2>&1 && 18004 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18005 as_expr=expr 18006else 18007 as_expr=false 18008fi 18009 18010if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18011 as_basename=basename 18012else 18013 as_basename=false 18014fi 18015 18016if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18017 as_dirname=dirname 18018else 18019 as_dirname=false 18020fi 18021 18022as_me=`$as_basename -- "$0" || 18023$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18024 X"$0" : 'X\(//\)$' \| \ 18025 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18026$as_echo X/"$0" | 18027 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18028 s//\1/ 18029 q 18030 } 18031 /^X\/\(\/\/\)$/{ 18032 s//\1/ 18033 q 18034 } 18035 /^X\/\(\/\).*/{ 18036 s//\1/ 18037 q 18038 } 18039 s/.*/./; q'` 18040 18041# Avoid depending upon Character Ranges. 18042as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18043as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18044as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18045as_cr_digits='0123456789' 18046as_cr_alnum=$as_cr_Letters$as_cr_digits 18047 18048ECHO_C= ECHO_N= ECHO_T= 18049case `echo -n x` in #((((( 18050-n*) 18051 case `echo 'xy\c'` in 18052 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18053 xy) ECHO_C='\c';; 18054 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18055 ECHO_T=' ';; 18056 esac;; 18057*) 18058 ECHO_N='-n';; 18059esac 18060 18061rm -f conf$$ conf$$.exe conf$$.file 18062if test -d conf$$.dir; then 18063 rm -f conf$$.dir/conf$$.file 18064else 18065 rm -f conf$$.dir 18066 mkdir conf$$.dir 2>/dev/null 18067fi 18068if (echo >conf$$.file) 2>/dev/null; then 18069 if ln -s conf$$.file conf$$ 2>/dev/null; then 18070 as_ln_s='ln -s' 18071 # ... but there are two gotchas: 18072 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18073 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18074 # In both cases, we have to default to `cp -p'. 18075 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18076 as_ln_s='cp -p' 18077 elif ln conf$$.file conf$$ 2>/dev/null; then 18078 as_ln_s=ln 18079 else 18080 as_ln_s='cp -p' 18081 fi 18082else 18083 as_ln_s='cp -p' 18084fi 18085rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18086rmdir conf$$.dir 2>/dev/null 18087 18088 18089# as_fn_mkdir_p 18090# ------------- 18091# Create "$as_dir" as a directory, including parents if necessary. 18092as_fn_mkdir_p () 18093{ 18094 18095 case $as_dir in #( 18096 -*) as_dir=./$as_dir;; 18097 esac 18098 test -d "$as_dir" || eval $as_mkdir_p || { 18099 as_dirs= 18100 while :; do 18101 case $as_dir in #( 18102 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18103 *) as_qdir=$as_dir;; 18104 esac 18105 as_dirs="'$as_qdir' $as_dirs" 18106 as_dir=`$as_dirname -- "$as_dir" || 18107$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18108 X"$as_dir" : 'X\(//\)[^/]' \| \ 18109 X"$as_dir" : 'X\(//\)$' \| \ 18110 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18111$as_echo X"$as_dir" | 18112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18113 s//\1/ 18114 q 18115 } 18116 /^X\(\/\/\)[^/].*/{ 18117 s//\1/ 18118 q 18119 } 18120 /^X\(\/\/\)$/{ 18121 s//\1/ 18122 q 18123 } 18124 /^X\(\/\).*/{ 18125 s//\1/ 18126 q 18127 } 18128 s/.*/./; q'` 18129 test -d "$as_dir" && break 18130 done 18131 test -z "$as_dirs" || eval "mkdir $as_dirs" 18132 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18133 18134 18135} # as_fn_mkdir_p 18136if mkdir -p . 2>/dev/null; then 18137 as_mkdir_p='mkdir -p "$as_dir"' 18138else 18139 test -d ./-p && rmdir ./-p 18140 as_mkdir_p=false 18141fi 18142 18143if test -x / >/dev/null 2>&1; then 18144 as_test_x='test -x' 18145else 18146 if ls -dL / >/dev/null 2>&1; then 18147 as_ls_L_option=L 18148 else 18149 as_ls_L_option= 18150 fi 18151 as_test_x=' 18152 eval sh -c '\'' 18153 if test -d "$1"; then 18154 test -d "$1/."; 18155 else 18156 case $1 in #( 18157 -*)set "./$1";; 18158 esac; 18159 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 18160 ???[sx]*):;;*)false;;esac;fi 18161 '\'' sh 18162 ' 18163fi 18164as_executable_p=$as_test_x 18165 18166# Sed expression to map a string onto a valid CPP name. 18167as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18168 18169# Sed expression to map a string onto a valid variable name. 18170as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18171 18172 18173exec 6>&1 18174## ----------------------------------- ## 18175## Main body of $CONFIG_STATUS script. ## 18176## ----------------------------------- ## 18177_ASEOF 18178test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18179 18180cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18181# Save the log message, to keep $0 and so on meaningful, and to 18182# report actual input values of CONFIG_FILES etc. instead of their 18183# values after options handling. 18184ac_log=" 18185This file was extended by libXinerama $as_me 1.1.2, which was 18186generated by GNU Autoconf 2.68. Invocation command line was 18187 18188 CONFIG_FILES = $CONFIG_FILES 18189 CONFIG_HEADERS = $CONFIG_HEADERS 18190 CONFIG_LINKS = $CONFIG_LINKS 18191 CONFIG_COMMANDS = $CONFIG_COMMANDS 18192 $ $0 $@ 18193 18194on `(hostname || uname -n) 2>/dev/null | sed 1q` 18195" 18196 18197_ACEOF 18198 18199case $ac_config_files in *" 18200"*) set x $ac_config_files; shift; ac_config_files=$*;; 18201esac 18202 18203case $ac_config_headers in *" 18204"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18205esac 18206 18207 18208cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18209# Files that config.status was made for. 18210config_files="$ac_config_files" 18211config_headers="$ac_config_headers" 18212config_commands="$ac_config_commands" 18213 18214_ACEOF 18215 18216cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18217ac_cs_usage="\ 18218\`$as_me' instantiates files and other configuration actions 18219from templates according to the current configuration. Unless the files 18220and actions are specified as TAGs, all are instantiated by default. 18221 18222Usage: $0 [OPTION]... [TAG]... 18223 18224 -h, --help print this help, then exit 18225 -V, --version print version number and configuration settings, then exit 18226 --config print configuration, then exit 18227 -q, --quiet, --silent 18228 do not print progress messages 18229 -d, --debug don't remove temporary files 18230 --recheck update $as_me by reconfiguring in the same conditions 18231 --file=FILE[:TEMPLATE] 18232 instantiate the configuration file FILE 18233 --header=FILE[:TEMPLATE] 18234 instantiate the configuration header FILE 18235 18236Configuration files: 18237$config_files 18238 18239Configuration headers: 18240$config_headers 18241 18242Configuration commands: 18243$config_commands 18244 18245Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 18246 18247_ACEOF 18248cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18249ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18250ac_cs_version="\\ 18251libXinerama config.status 1.1.2 18252configured by $0, generated by GNU Autoconf 2.68, 18253 with options \\"\$ac_cs_config\\" 18254 18255Copyright (C) 2010 Free Software Foundation, Inc. 18256This config.status script is free software; the Free Software Foundation 18257gives unlimited permission to copy, distribute and modify it." 18258 18259ac_pwd='$ac_pwd' 18260srcdir='$srcdir' 18261INSTALL='$INSTALL' 18262MKDIR_P='$MKDIR_P' 18263AWK='$AWK' 18264test -n "\$AWK" || AWK=awk 18265_ACEOF 18266 18267cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18268# The default lists apply if the user does not specify any file. 18269ac_need_defaults=: 18270while test $# != 0 18271do 18272 case $1 in 18273 --*=?*) 18274 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18275 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18276 ac_shift=: 18277 ;; 18278 --*=) 18279 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18280 ac_optarg= 18281 ac_shift=: 18282 ;; 18283 *) 18284 ac_option=$1 18285 ac_optarg=$2 18286 ac_shift=shift 18287 ;; 18288 esac 18289 18290 case $ac_option in 18291 # Handling of the options. 18292 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18293 ac_cs_recheck=: ;; 18294 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18295 $as_echo "$ac_cs_version"; exit ;; 18296 --config | --confi | --conf | --con | --co | --c ) 18297 $as_echo "$ac_cs_config"; exit ;; 18298 --debug | --debu | --deb | --de | --d | -d ) 18299 debug=: ;; 18300 --file | --fil | --fi | --f ) 18301 $ac_shift 18302 case $ac_optarg in 18303 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18304 '') as_fn_error $? "missing file argument" ;; 18305 esac 18306 as_fn_append CONFIG_FILES " '$ac_optarg'" 18307 ac_need_defaults=false;; 18308 --header | --heade | --head | --hea ) 18309 $ac_shift 18310 case $ac_optarg in 18311 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18312 esac 18313 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 18314 ac_need_defaults=false;; 18315 --he | --h) 18316 # Conflict between --help and --header 18317 as_fn_error $? "ambiguous option: \`$1' 18318Try \`$0 --help' for more information.";; 18319 --help | --hel | -h ) 18320 $as_echo "$ac_cs_usage"; exit ;; 18321 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18322 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18323 ac_cs_silent=: ;; 18324 18325 # This is an error. 18326 -*) as_fn_error $? "unrecognized option: \`$1' 18327Try \`$0 --help' for more information." ;; 18328 18329 *) as_fn_append ac_config_targets " $1" 18330 ac_need_defaults=false ;; 18331 18332 esac 18333 shift 18334done 18335 18336ac_configure_extra_args= 18337 18338if $ac_cs_silent; then 18339 exec 6>/dev/null 18340 ac_configure_extra_args="$ac_configure_extra_args --silent" 18341fi 18342 18343_ACEOF 18344cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18345if \$ac_cs_recheck; then 18346 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18347 shift 18348 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18349 CONFIG_SHELL='$SHELL' 18350 export CONFIG_SHELL 18351 exec "\$@" 18352fi 18353 18354_ACEOF 18355cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18356exec 5>>config.log 18357{ 18358 echo 18359 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18360## Running $as_me. ## 18361_ASBOX 18362 $as_echo "$ac_log" 18363} >&5 18364 18365_ACEOF 18366cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18367# 18368# INIT-COMMANDS 18369# 18370AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 18371 18372 18373# The HP-UX ksh and POSIX shell print the target directory to stdout 18374# if CDPATH is set. 18375(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18376 18377sed_quote_subst='$sed_quote_subst' 18378double_quote_subst='$double_quote_subst' 18379delay_variable_subst='$delay_variable_subst' 18380macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 18381macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 18382enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 18383enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 18384pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 18385enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 18386SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 18387ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 18388host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 18389host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 18390host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 18391build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 18392build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 18393build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 18394SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 18395Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 18396GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 18397EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 18398FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 18399LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 18400NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 18401LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 18402max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 18403ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 18404exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 18405lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 18406lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 18407lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 18408lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 18409lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 18410reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 18411reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 18412OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 18413deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 18414file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 18415file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 18416want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 18417DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 18418sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 18419AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 18420AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 18421archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 18422STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 18423RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 18424old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18425old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18426old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 18427lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 18428CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 18429CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 18430compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 18431GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 18432lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 18433lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 18434lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 18435lt_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"`' 18436nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 18437lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 18438objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 18439MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 18440lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 18441lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 18442lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 18443lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 18444lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 18445need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 18446MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 18447DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 18448NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 18449LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 18450OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 18451OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 18452libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 18453shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 18454extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18455archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 18456enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 18457export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 18458whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 18459compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 18460old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 18461old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18462archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 18463archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18464module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 18465module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18466with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 18467allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 18468no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 18469hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 18470hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 18471hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 18472hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 18473hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 18474hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 18475hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 18476hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 18477inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 18478link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 18479always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 18480export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 18481exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 18482include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 18483prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 18484postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 18485file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 18486variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 18487need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 18488need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 18489version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 18490runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 18491shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 18492shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 18493libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 18494library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 18495soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 18496install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 18497postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18498postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18499finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 18500finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 18501hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 18502sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 18503sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 18504hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 18505enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 18506enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 18507enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 18508old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 18509striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 18510 18511LTCC='$LTCC' 18512LTCFLAGS='$LTCFLAGS' 18513compiler='$compiler_DEFAULT' 18514 18515# A function that is used when there is no print builtin or printf. 18516func_fallback_echo () 18517{ 18518 eval 'cat <<_LTECHO_EOF 18519\$1 18520_LTECHO_EOF' 18521} 18522 18523# Quote evaled strings. 18524for var in SHELL \ 18525ECHO \ 18526SED \ 18527GREP \ 18528EGREP \ 18529FGREP \ 18530LD \ 18531NM \ 18532LN_S \ 18533lt_SP2NL \ 18534lt_NL2SP \ 18535reload_flag \ 18536OBJDUMP \ 18537deplibs_check_method \ 18538file_magic_cmd \ 18539file_magic_glob \ 18540want_nocaseglob \ 18541DLLTOOL \ 18542sharedlib_from_linklib_cmd \ 18543AR \ 18544AR_FLAGS \ 18545archiver_list_spec \ 18546STRIP \ 18547RANLIB \ 18548CC \ 18549CFLAGS \ 18550compiler \ 18551lt_cv_sys_global_symbol_pipe \ 18552lt_cv_sys_global_symbol_to_cdecl \ 18553lt_cv_sys_global_symbol_to_c_name_address \ 18554lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18555nm_file_list_spec \ 18556lt_prog_compiler_no_builtin_flag \ 18557lt_prog_compiler_pic \ 18558lt_prog_compiler_wl \ 18559lt_prog_compiler_static \ 18560lt_cv_prog_compiler_c_o \ 18561need_locks \ 18562MANIFEST_TOOL \ 18563DSYMUTIL \ 18564NMEDIT \ 18565LIPO \ 18566OTOOL \ 18567OTOOL64 \ 18568shrext_cmds \ 18569export_dynamic_flag_spec \ 18570whole_archive_flag_spec \ 18571compiler_needs_object \ 18572with_gnu_ld \ 18573allow_undefined_flag \ 18574no_undefined_flag \ 18575hardcode_libdir_flag_spec \ 18576hardcode_libdir_flag_spec_ld \ 18577hardcode_libdir_separator \ 18578exclude_expsyms \ 18579include_expsyms \ 18580file_list_spec \ 18581variables_saved_for_relink \ 18582libname_spec \ 18583library_names_spec \ 18584soname_spec \ 18585install_override_mode \ 18586finish_eval \ 18587old_striplib \ 18588striplib; do 18589 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18590 *[\\\\\\\`\\"\\\$]*) 18591 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 18592 ;; 18593 *) 18594 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18595 ;; 18596 esac 18597done 18598 18599# Double-quote double-evaled strings. 18600for var in reload_cmds \ 18601old_postinstall_cmds \ 18602old_postuninstall_cmds \ 18603old_archive_cmds \ 18604extract_expsyms_cmds \ 18605old_archive_from_new_cmds \ 18606old_archive_from_expsyms_cmds \ 18607archive_cmds \ 18608archive_expsym_cmds \ 18609module_cmds \ 18610module_expsym_cmds \ 18611export_symbols_cmds \ 18612prelink_cmds \ 18613postlink_cmds \ 18614postinstall_cmds \ 18615postuninstall_cmds \ 18616finish_cmds \ 18617sys_lib_search_path_spec \ 18618sys_lib_dlsearch_path_spec; do 18619 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18620 *[\\\\\\\`\\"\\\$]*) 18621 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 18622 ;; 18623 *) 18624 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18625 ;; 18626 esac 18627done 18628 18629ac_aux_dir='$ac_aux_dir' 18630xsi_shell='$xsi_shell' 18631lt_shell_append='$lt_shell_append' 18632 18633# See if we are running on zsh, and set the options which allow our 18634# commands through without removal of \ escapes INIT. 18635if test -n "\${ZSH_VERSION+set}" ; then 18636 setopt NO_GLOB_SUBST 18637fi 18638 18639 18640 PACKAGE='$PACKAGE' 18641 VERSION='$VERSION' 18642 TIMESTAMP='$TIMESTAMP' 18643 RM='$RM' 18644 ofile='$ofile' 18645 18646 18647 18648 18649_ACEOF 18650 18651cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18652 18653# Handling of arguments. 18654for ac_config_target in $ac_config_targets 18655do 18656 case $ac_config_target in 18657 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 18658 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18659 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18660 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18661 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 18662 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 18663 "xinerama.pc") CONFIG_FILES="$CONFIG_FILES xinerama.pc" ;; 18664 18665 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18666 esac 18667done 18668 18669 18670# If the user did not use the arguments to specify the items to instantiate, 18671# then the envvar interface is used. Set only those that are not. 18672# We use the long form for the default assignment because of an extremely 18673# bizarre bug on SunOS 4.1.3. 18674if $ac_need_defaults; then 18675 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18676 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18677 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18678fi 18679 18680# Have a temporary directory for convenience. Make it in the build tree 18681# simply because there is no reason against having it here, and in addition, 18682# creating and moving files from /tmp can sometimes cause problems. 18683# Hook for its removal unless debugging. 18684# Note that there is a small window in which the directory will not be cleaned: 18685# after its creation but before its name has been assigned to `$tmp'. 18686$debug || 18687{ 18688 tmp= ac_tmp= 18689 trap 'exit_status=$? 18690 : "${ac_tmp:=$tmp}" 18691 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18692' 0 18693 trap 'as_fn_exit 1' 1 2 13 15 18694} 18695# Create a (secure) tmp directory for tmp files. 18696 18697{ 18698 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18699 test -d "$tmp" 18700} || 18701{ 18702 tmp=./conf$$-$RANDOM 18703 (umask 077 && mkdir "$tmp") 18704} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18705ac_tmp=$tmp 18706 18707# Set up the scripts for CONFIG_FILES section. 18708# No need to generate them if there are no CONFIG_FILES. 18709# This happens for instance with `./config.status config.h'. 18710if test -n "$CONFIG_FILES"; then 18711 18712 18713ac_cr=`echo X | tr X '\015'` 18714# On cygwin, bash can eat \r inside `` if the user requested igncr. 18715# But we know of no other shell where ac_cr would be empty at this 18716# point, so we can use a bashism as a fallback. 18717if test "x$ac_cr" = x; then 18718 eval ac_cr=\$\'\\r\' 18719fi 18720ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18721if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18722 ac_cs_awk_cr='\\r' 18723else 18724 ac_cs_awk_cr=$ac_cr 18725fi 18726 18727echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 18728_ACEOF 18729 18730 18731{ 18732 echo "cat >conf$$subs.awk <<_ACEOF" && 18733 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18734 echo "_ACEOF" 18735} >conf$$subs.sh || 18736 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18737ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 18738ac_delim='%!_!# ' 18739for ac_last_try in false false false false false :; do 18740 . ./conf$$subs.sh || 18741 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18742 18743 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18744 if test $ac_delim_n = $ac_delim_num; then 18745 break 18746 elif $ac_last_try; then 18747 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18748 else 18749 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18750 fi 18751done 18752rm -f conf$$subs.sh 18753 18754cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18755cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 18756_ACEOF 18757sed -n ' 18758h 18759s/^/S["/; s/!.*/"]=/ 18760p 18761g 18762s/^[^!]*!// 18763:repl 18764t repl 18765s/'"$ac_delim"'$// 18766t delim 18767:nl 18768h 18769s/\(.\{148\}\)..*/\1/ 18770t more1 18771s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18772p 18773n 18774b repl 18775:more1 18776s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18777p 18778g 18779s/.\{148\}// 18780t nl 18781:delim 18782h 18783s/\(.\{148\}\)..*/\1/ 18784t more2 18785s/["\\]/\\&/g; s/^/"/; s/$/"/ 18786p 18787b 18788:more2 18789s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18790p 18791g 18792s/.\{148\}// 18793t delim 18794' <conf$$subs.awk | sed ' 18795/^[^""]/{ 18796 N 18797 s/\n// 18798} 18799' >>$CONFIG_STATUS || ac_write_fail=1 18800rm -f conf$$subs.awk 18801cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18802_ACAWK 18803cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 18804 for (key in S) S_is_set[key] = 1 18805 FS = "" 18806 18807} 18808{ 18809 line = $ 0 18810 nfields = split(line, field, "@") 18811 substed = 0 18812 len = length(field[1]) 18813 for (i = 2; i < nfields; i++) { 18814 key = field[i] 18815 keylen = length(key) 18816 if (S_is_set[key]) { 18817 value = S[key] 18818 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 18819 len += length(value) + length(field[++i]) 18820 substed = 1 18821 } else 18822 len += 1 + keylen 18823 } 18824 18825 print line 18826} 18827 18828_ACAWK 18829_ACEOF 18830cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18831if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 18832 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 18833else 18834 cat 18835fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 18836 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 18837_ACEOF 18838 18839# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 18840# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 18841# trailing colons and then remove the whole line if VPATH becomes empty 18842# (actually we leave an empty line to preserve line numbers). 18843if test "x$srcdir" = x.; then 18844 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 18845h 18846s/// 18847s/^/:/ 18848s/[ ]*$/:/ 18849s/:\$(srcdir):/:/g 18850s/:\${srcdir}:/:/g 18851s/:@srcdir@:/:/g 18852s/^:*// 18853s/:*$// 18854x 18855s/\(=[ ]*\).*/\1/ 18856G 18857s/\n// 18858s/^[^=]*=[ ]*$// 18859}' 18860fi 18861 18862cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18863fi # test -n "$CONFIG_FILES" 18864 18865# Set up the scripts for CONFIG_HEADERS section. 18866# No need to generate them if there are no CONFIG_HEADERS. 18867# This happens for instance with `./config.status Makefile'. 18868if test -n "$CONFIG_HEADERS"; then 18869cat >"$ac_tmp/defines.awk" <<\_ACAWK || 18870BEGIN { 18871_ACEOF 18872 18873# Transform confdefs.h into an awk script `defines.awk', embedded as 18874# here-document in config.status, that substitutes the proper values into 18875# config.h.in to produce config.h. 18876 18877# Create a delimiter string that does not exist in confdefs.h, to ease 18878# handling of long lines. 18879ac_delim='%!_!# ' 18880for ac_last_try in false false :; do 18881 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 18882 if test -z "$ac_tt"; then 18883 break 18884 elif $ac_last_try; then 18885 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 18886 else 18887 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18888 fi 18889done 18890 18891# For the awk script, D is an array of macro values keyed by name, 18892# likewise P contains macro parameters if any. Preserve backslash 18893# newline sequences. 18894 18895ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 18896sed -n ' 18897s/.\{148\}/&'"$ac_delim"'/g 18898t rset 18899:rset 18900s/^[ ]*#[ ]*define[ ][ ]*/ / 18901t def 18902d 18903:def 18904s/\\$// 18905t bsnl 18906s/["\\]/\\&/g 18907s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18908D["\1"]=" \3"/p 18909s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 18910d 18911:bsnl 18912s/["\\]/\\&/g 18913s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18914D["\1"]=" \3\\\\\\n"\\/p 18915t cont 18916s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 18917t cont 18918d 18919:cont 18920n 18921s/.\{148\}/&'"$ac_delim"'/g 18922t clear 18923:clear 18924s/\\$// 18925t bsnlc 18926s/["\\]/\\&/g; s/^/"/; s/$/"/p 18927d 18928:bsnlc 18929s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 18930b cont 18931' <confdefs.h | sed ' 18932s/'"$ac_delim"'/"\\\ 18933"/g' >>$CONFIG_STATUS || ac_write_fail=1 18934 18935cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18936 for (key in D) D_is_set[key] = 1 18937 FS = "" 18938} 18939/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 18940 line = \$ 0 18941 split(line, arg, " ") 18942 if (arg[1] == "#") { 18943 defundef = arg[2] 18944 mac1 = arg[3] 18945 } else { 18946 defundef = substr(arg[1], 2) 18947 mac1 = arg[2] 18948 } 18949 split(mac1, mac2, "(") #) 18950 macro = mac2[1] 18951 prefix = substr(line, 1, index(line, defundef) - 1) 18952 if (D_is_set[macro]) { 18953 # Preserve the white space surrounding the "#". 18954 print prefix "define", macro P[macro] D[macro] 18955 next 18956 } else { 18957 # Replace #undef with comments. This is necessary, for example, 18958 # in the case of _POSIX_SOURCE, which is predefined and required 18959 # on some systems where configure will not decide to define it. 18960 if (defundef == "undef") { 18961 print "/*", prefix defundef, macro, "*/" 18962 next 18963 } 18964 } 18965} 18966{ print } 18967_ACAWK 18968_ACEOF 18969cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18970 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 18971fi # test -n "$CONFIG_HEADERS" 18972 18973 18974eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 18975shift 18976for ac_tag 18977do 18978 case $ac_tag in 18979 :[FHLC]) ac_mode=$ac_tag; continue;; 18980 esac 18981 case $ac_mode$ac_tag in 18982 :[FHL]*:*);; 18983 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 18984 :[FH]-) ac_tag=-:-;; 18985 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 18986 esac 18987 ac_save_IFS=$IFS 18988 IFS=: 18989 set x $ac_tag 18990 IFS=$ac_save_IFS 18991 shift 18992 ac_file=$1 18993 shift 18994 18995 case $ac_mode in 18996 :L) ac_source=$1;; 18997 :[FH]) 18998 ac_file_inputs= 18999 for ac_f 19000 do 19001 case $ac_f in 19002 -) ac_f="$ac_tmp/stdin";; 19003 *) # Look for the file first in the build tree, then in the source tree 19004 # (if the path is not absolute). The absolute path cannot be DOS-style, 19005 # because $ac_f cannot contain `:'. 19006 test -f "$ac_f" || 19007 case $ac_f in 19008 [\\/$]*) false;; 19009 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19010 esac || 19011 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19012 esac 19013 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19014 as_fn_append ac_file_inputs " '$ac_f'" 19015 done 19016 19017 # Let's still pretend it is `configure' which instantiates (i.e., don't 19018 # use $as_me), people would be surprised to read: 19019 # /* config.h. Generated by config.status. */ 19020 configure_input='Generated from '` 19021 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19022 `' by configure.' 19023 if test x"$ac_file" != x-; then 19024 configure_input="$ac_file. $configure_input" 19025 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19026$as_echo "$as_me: creating $ac_file" >&6;} 19027 fi 19028 # Neutralize special characters interpreted by sed in replacement strings. 19029 case $configure_input in #( 19030 *\&* | *\|* | *\\* ) 19031 ac_sed_conf_input=`$as_echo "$configure_input" | 19032 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19033 *) ac_sed_conf_input=$configure_input;; 19034 esac 19035 19036 case $ac_tag in 19037 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19038 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19039 esac 19040 ;; 19041 esac 19042 19043 ac_dir=`$as_dirname -- "$ac_file" || 19044$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19045 X"$ac_file" : 'X\(//\)[^/]' \| \ 19046 X"$ac_file" : 'X\(//\)$' \| \ 19047 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19048$as_echo X"$ac_file" | 19049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19050 s//\1/ 19051 q 19052 } 19053 /^X\(\/\/\)[^/].*/{ 19054 s//\1/ 19055 q 19056 } 19057 /^X\(\/\/\)$/{ 19058 s//\1/ 19059 q 19060 } 19061 /^X\(\/\).*/{ 19062 s//\1/ 19063 q 19064 } 19065 s/.*/./; q'` 19066 as_dir="$ac_dir"; as_fn_mkdir_p 19067 ac_builddir=. 19068 19069case "$ac_dir" in 19070.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19071*) 19072 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19073 # A ".." for each directory in $ac_dir_suffix. 19074 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19075 case $ac_top_builddir_sub in 19076 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19077 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19078 esac ;; 19079esac 19080ac_abs_top_builddir=$ac_pwd 19081ac_abs_builddir=$ac_pwd$ac_dir_suffix 19082# for backward compatibility: 19083ac_top_builddir=$ac_top_build_prefix 19084 19085case $srcdir in 19086 .) # We are building in place. 19087 ac_srcdir=. 19088 ac_top_srcdir=$ac_top_builddir_sub 19089 ac_abs_top_srcdir=$ac_pwd ;; 19090 [\\/]* | ?:[\\/]* ) # Absolute name. 19091 ac_srcdir=$srcdir$ac_dir_suffix; 19092 ac_top_srcdir=$srcdir 19093 ac_abs_top_srcdir=$srcdir ;; 19094 *) # Relative name. 19095 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19096 ac_top_srcdir=$ac_top_build_prefix$srcdir 19097 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19098esac 19099ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19100 19101 19102 case $ac_mode in 19103 :F) 19104 # 19105 # CONFIG_FILE 19106 # 19107 19108 case $INSTALL in 19109 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19110 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19111 esac 19112 ac_MKDIR_P=$MKDIR_P 19113 case $MKDIR_P in 19114 [\\/$]* | ?:[\\/]* ) ;; 19115 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19116 esac 19117_ACEOF 19118 19119cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19120# If the template does not know about datarootdir, expand it. 19121# FIXME: This hack should be removed a few years after 2.60. 19122ac_datarootdir_hack=; ac_datarootdir_seen= 19123ac_sed_dataroot=' 19124/datarootdir/ { 19125 p 19126 q 19127} 19128/@datadir@/p 19129/@docdir@/p 19130/@infodir@/p 19131/@localedir@/p 19132/@mandir@/p' 19133case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19134*datarootdir*) ac_datarootdir_seen=yes;; 19135*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19137$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19138_ACEOF 19139cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19140 ac_datarootdir_hack=' 19141 s&@datadir@&$datadir&g 19142 s&@docdir@&$docdir&g 19143 s&@infodir@&$infodir&g 19144 s&@localedir@&$localedir&g 19145 s&@mandir@&$mandir&g 19146 s&\\\${datarootdir}&$datarootdir&g' ;; 19147esac 19148_ACEOF 19149 19150# Neutralize VPATH when `$srcdir' = `.'. 19151# Shell code in configure.ac might set extrasub. 19152# FIXME: do we really want to maintain this feature? 19153cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19154ac_sed_extra="$ac_vpsub 19155$extrasub 19156_ACEOF 19157cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19158:t 19159/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19160s|@configure_input@|$ac_sed_conf_input|;t t 19161s&@top_builddir@&$ac_top_builddir_sub&;t t 19162s&@top_build_prefix@&$ac_top_build_prefix&;t t 19163s&@srcdir@&$ac_srcdir&;t t 19164s&@abs_srcdir@&$ac_abs_srcdir&;t t 19165s&@top_srcdir@&$ac_top_srcdir&;t t 19166s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19167s&@builddir@&$ac_builddir&;t t 19168s&@abs_builddir@&$ac_abs_builddir&;t t 19169s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19170s&@INSTALL@&$ac_INSTALL&;t t 19171s&@MKDIR_P@&$ac_MKDIR_P&;t t 19172$ac_datarootdir_hack 19173" 19174eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19175 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19176 19177test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19178 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19179 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19180 "$ac_tmp/out"`; test -z "$ac_out"; } && 19181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19182which seems to be undefined. Please make sure it is defined" >&5 19183$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19184which seems to be undefined. Please make sure it is defined" >&2;} 19185 19186 rm -f "$ac_tmp/stdin" 19187 case $ac_file in 19188 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19189 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19190 esac \ 19191 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19192 ;; 19193 :H) 19194 # 19195 # CONFIG_HEADER 19196 # 19197 if test x"$ac_file" != x-; then 19198 { 19199 $as_echo "/* $configure_input */" \ 19200 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 19201 } >"$ac_tmp/config.h" \ 19202 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19203 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 19204 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 19205$as_echo "$as_me: $ac_file is unchanged" >&6;} 19206 else 19207 rm -f "$ac_file" 19208 mv "$ac_tmp/config.h" "$ac_file" \ 19209 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19210 fi 19211 else 19212 $as_echo "/* $configure_input */" \ 19213 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 19214 || as_fn_error $? "could not create -" "$LINENO" 5 19215 fi 19216# Compute "$ac_file"'s index in $config_headers. 19217_am_arg="$ac_file" 19218_am_stamp_count=1 19219for _am_header in $config_headers :; do 19220 case $_am_header in 19221 $_am_arg | $_am_arg:* ) 19222 break ;; 19223 * ) 19224 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 19225 esac 19226done 19227echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 19228$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19229 X"$_am_arg" : 'X\(//\)[^/]' \| \ 19230 X"$_am_arg" : 'X\(//\)$' \| \ 19231 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 19232$as_echo X"$_am_arg" | 19233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19234 s//\1/ 19235 q 19236 } 19237 /^X\(\/\/\)[^/].*/{ 19238 s//\1/ 19239 q 19240 } 19241 /^X\(\/\/\)$/{ 19242 s//\1/ 19243 q 19244 } 19245 /^X\(\/\).*/{ 19246 s//\1/ 19247 q 19248 } 19249 s/.*/./; q'`/stamp-h$_am_stamp_count 19250 ;; 19251 19252 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19253$as_echo "$as_me: executing $ac_file commands" >&6;} 19254 ;; 19255 esac 19256 19257 19258 case $ac_file$ac_mode in 19259 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19260 # Autoconf 2.62 quotes --file arguments for eval, but not when files 19261 # are listed without --file. Let's play safe and only enable the eval 19262 # if we detect the quoting. 19263 case $CONFIG_FILES in 19264 *\'*) eval set x "$CONFIG_FILES" ;; 19265 *) set x $CONFIG_FILES ;; 19266 esac 19267 shift 19268 for mf 19269 do 19270 # Strip MF so we end up with the name of the file. 19271 mf=`echo "$mf" | sed -e 's/:.*$//'` 19272 # Check whether this is an Automake generated Makefile or not. 19273 # We used to match only the files named `Makefile.in', but 19274 # some people rename them; so instead we look at the file content. 19275 # Grep'ing the first line is not enough: some people post-process 19276 # each Makefile.in and add a new line on top of each file to say so. 19277 # Grep'ing the whole file is not good either: AIX grep has a line 19278 # limit of 2048, but all sed's we know have understand at least 4000. 19279 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 19280 dirpart=`$as_dirname -- "$mf" || 19281$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19282 X"$mf" : 'X\(//\)[^/]' \| \ 19283 X"$mf" : 'X\(//\)$' \| \ 19284 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 19285$as_echo X"$mf" | 19286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19287 s//\1/ 19288 q 19289 } 19290 /^X\(\/\/\)[^/].*/{ 19291 s//\1/ 19292 q 19293 } 19294 /^X\(\/\/\)$/{ 19295 s//\1/ 19296 q 19297 } 19298 /^X\(\/\).*/{ 19299 s//\1/ 19300 q 19301 } 19302 s/.*/./; q'` 19303 else 19304 continue 19305 fi 19306 # Extract the definition of DEPDIR, am__include, and am__quote 19307 # from the Makefile without running `make'. 19308 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 19309 test -z "$DEPDIR" && continue 19310 am__include=`sed -n 's/^am__include = //p' < "$mf"` 19311 test -z "am__include" && continue 19312 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 19313 # When using ansi2knr, U may be empty or an underscore; expand it 19314 U=`sed -n 's/^U = //p' < "$mf"` 19315 # Find all dependency output files, they are included files with 19316 # $(DEPDIR) in their names. We invoke sed twice because it is the 19317 # simplest approach to changing $(DEPDIR) to its actual value in the 19318 # expansion. 19319 for file in `sed -n " 19320 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 19321 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 19322 # Make sure the directory exists. 19323 test -f "$dirpart/$file" && continue 19324 fdir=`$as_dirname -- "$file" || 19325$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19326 X"$file" : 'X\(//\)[^/]' \| \ 19327 X"$file" : 'X\(//\)$' \| \ 19328 X"$file" : 'X\(/\)' \| . 2>/dev/null || 19329$as_echo X"$file" | 19330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19331 s//\1/ 19332 q 19333 } 19334 /^X\(\/\/\)[^/].*/{ 19335 s//\1/ 19336 q 19337 } 19338 /^X\(\/\/\)$/{ 19339 s//\1/ 19340 q 19341 } 19342 /^X\(\/\).*/{ 19343 s//\1/ 19344 q 19345 } 19346 s/.*/./; q'` 19347 as_dir=$dirpart/$fdir; as_fn_mkdir_p 19348 # echo "creating $dirpart/$file" 19349 echo '# dummy' > "$dirpart/$file" 19350 done 19351 done 19352} 19353 ;; 19354 "libtool":C) 19355 19356 # See if we are running on zsh, and set the options which allow our 19357 # commands through without removal of \ escapes. 19358 if test -n "${ZSH_VERSION+set}" ; then 19359 setopt NO_GLOB_SUBST 19360 fi 19361 19362 cfgfile="${ofile}T" 19363 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19364 $RM "$cfgfile" 19365 19366 cat <<_LT_EOF >> "$cfgfile" 19367#! $SHELL 19368 19369# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 19370# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 19371# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19372# NOTE: Changes made to this file will be lost: look at ltmain.sh. 19373# 19374# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 19375# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 19376# Inc. 19377# Written by Gordon Matzigkeit, 1996 19378# 19379# This file is part of GNU Libtool. 19380# 19381# GNU Libtool is free software; you can redistribute it and/or 19382# modify it under the terms of the GNU General Public License as 19383# published by the Free Software Foundation; either version 2 of 19384# the License, or (at your option) any later version. 19385# 19386# As a special exception to the GNU General Public License, 19387# if you distribute this file as part of a program or library that 19388# is built using GNU Libtool, you may include this file under the 19389# same distribution terms that you use for the rest of that program. 19390# 19391# GNU Libtool is distributed in the hope that it will be useful, 19392# but WITHOUT ANY WARRANTY; without even the implied warranty of 19393# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19394# GNU General Public License for more details. 19395# 19396# You should have received a copy of the GNU General Public License 19397# along with GNU Libtool; see the file COPYING. If not, a copy 19398# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 19399# obtained by writing to the Free Software Foundation, Inc., 19400# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 19401 19402 19403# The names of the tagged configurations supported by this script. 19404available_tags="" 19405 19406# ### BEGIN LIBTOOL CONFIG 19407 19408# Which release of libtool.m4 was used? 19409macro_version=$macro_version 19410macro_revision=$macro_revision 19411 19412# Whether or not to build shared libraries. 19413build_libtool_libs=$enable_shared 19414 19415# Whether or not to build static libraries. 19416build_old_libs=$enable_static 19417 19418# What type of objects to build. 19419pic_mode=$pic_mode 19420 19421# Whether or not to optimize for fast installation. 19422fast_install=$enable_fast_install 19423 19424# Shell to use when invoking shell scripts. 19425SHELL=$lt_SHELL 19426 19427# An echo program that protects backslashes. 19428ECHO=$lt_ECHO 19429 19430# The host system. 19431host_alias=$host_alias 19432host=$host 19433host_os=$host_os 19434 19435# The build system. 19436build_alias=$build_alias 19437build=$build 19438build_os=$build_os 19439 19440# A sed program that does not truncate output. 19441SED=$lt_SED 19442 19443# Sed that helps us avoid accidentally triggering echo(1) options like -n. 19444Xsed="\$SED -e 1s/^X//" 19445 19446# A grep program that handles long lines. 19447GREP=$lt_GREP 19448 19449# An ERE matcher. 19450EGREP=$lt_EGREP 19451 19452# A literal string matcher. 19453FGREP=$lt_FGREP 19454 19455# A BSD- or MS-compatible name lister. 19456NM=$lt_NM 19457 19458# Whether we need soft or hard links. 19459LN_S=$lt_LN_S 19460 19461# What is the maximum length of a command? 19462max_cmd_len=$max_cmd_len 19463 19464# Object file suffix (normally "o"). 19465objext=$ac_objext 19466 19467# Executable file suffix (normally ""). 19468exeext=$exeext 19469 19470# whether the shell understands "unset". 19471lt_unset=$lt_unset 19472 19473# turn spaces into newlines. 19474SP2NL=$lt_lt_SP2NL 19475 19476# turn newlines into spaces. 19477NL2SP=$lt_lt_NL2SP 19478 19479# convert \$build file names to \$host format. 19480to_host_file_cmd=$lt_cv_to_host_file_cmd 19481 19482# convert \$build files to toolchain format. 19483to_tool_file_cmd=$lt_cv_to_tool_file_cmd 19484 19485# An object symbol dumper. 19486OBJDUMP=$lt_OBJDUMP 19487 19488# Method to check whether dependent libraries are shared objects. 19489deplibs_check_method=$lt_deplibs_check_method 19490 19491# Command to use when deplibs_check_method = "file_magic". 19492file_magic_cmd=$lt_file_magic_cmd 19493 19494# How to find potential files when deplibs_check_method = "file_magic". 19495file_magic_glob=$lt_file_magic_glob 19496 19497# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 19498want_nocaseglob=$lt_want_nocaseglob 19499 19500# DLL creation program. 19501DLLTOOL=$lt_DLLTOOL 19502 19503# Command to associate shared and link libraries. 19504sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 19505 19506# The archiver. 19507AR=$lt_AR 19508 19509# Flags to create an archive. 19510AR_FLAGS=$lt_AR_FLAGS 19511 19512# How to feed a file listing to the archiver. 19513archiver_list_spec=$lt_archiver_list_spec 19514 19515# A symbol stripping program. 19516STRIP=$lt_STRIP 19517 19518# Commands used to install an old-style archive. 19519RANLIB=$lt_RANLIB 19520old_postinstall_cmds=$lt_old_postinstall_cmds 19521old_postuninstall_cmds=$lt_old_postuninstall_cmds 19522 19523# Whether to use a lock for old archive extraction. 19524lock_old_archive_extraction=$lock_old_archive_extraction 19525 19526# A C compiler. 19527LTCC=$lt_CC 19528 19529# LTCC compiler flags. 19530LTCFLAGS=$lt_CFLAGS 19531 19532# Take the output of nm and produce a listing of raw symbols and C names. 19533global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19534 19535# Transform the output of nm in a proper C declaration. 19536global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19537 19538# Transform the output of nm in a C name address pair. 19539global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19540 19541# Transform the output of nm in a C name address pair when lib prefix is needed. 19542global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19543 19544# Specify filename containing input files for \$NM. 19545nm_file_list_spec=$lt_nm_file_list_spec 19546 19547# The root where to search for dependent libraries,and in which our libraries should be installed. 19548lt_sysroot=$lt_sysroot 19549 19550# The name of the directory that contains temporary libtool files. 19551objdir=$objdir 19552 19553# Used to examine libraries when file_magic_cmd begins with "file". 19554MAGIC_CMD=$MAGIC_CMD 19555 19556# Must we lock files when doing compilation? 19557need_locks=$lt_need_locks 19558 19559# Manifest tool. 19560MANIFEST_TOOL=$lt_MANIFEST_TOOL 19561 19562# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19563DSYMUTIL=$lt_DSYMUTIL 19564 19565# Tool to change global to local symbols on Mac OS X. 19566NMEDIT=$lt_NMEDIT 19567 19568# Tool to manipulate fat objects and archives on Mac OS X. 19569LIPO=$lt_LIPO 19570 19571# ldd/readelf like tool for Mach-O binaries on Mac OS X. 19572OTOOL=$lt_OTOOL 19573 19574# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19575OTOOL64=$lt_OTOOL64 19576 19577# Old archive suffix (normally "a"). 19578libext=$libext 19579 19580# Shared library suffix (normally ".so"). 19581shrext_cmds=$lt_shrext_cmds 19582 19583# The commands to extract the exported symbol list from a shared archive. 19584extract_expsyms_cmds=$lt_extract_expsyms_cmds 19585 19586# Variables whose values should be saved in libtool wrapper scripts and 19587# restored at link time. 19588variables_saved_for_relink=$lt_variables_saved_for_relink 19589 19590# Do we need the "lib" prefix for modules? 19591need_lib_prefix=$need_lib_prefix 19592 19593# Do we need a version for libraries? 19594need_version=$need_version 19595 19596# Library versioning type. 19597version_type=$version_type 19598 19599# Shared library runtime path variable. 19600runpath_var=$runpath_var 19601 19602# Shared library path variable. 19603shlibpath_var=$shlibpath_var 19604 19605# Is shlibpath searched before the hard-coded library search path? 19606shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19607 19608# Format of library name prefix. 19609libname_spec=$lt_libname_spec 19610 19611# List of archive names. First name is the real one, the rest are links. 19612# The last name is the one that the linker finds with -lNAME 19613library_names_spec=$lt_library_names_spec 19614 19615# The coded name of the library, if different from the real name. 19616soname_spec=$lt_soname_spec 19617 19618# Permission mode override for installation of shared libraries. 19619install_override_mode=$lt_install_override_mode 19620 19621# Command to use after installation of a shared archive. 19622postinstall_cmds=$lt_postinstall_cmds 19623 19624# Command to use after uninstallation of a shared archive. 19625postuninstall_cmds=$lt_postuninstall_cmds 19626 19627# Commands used to finish a libtool library installation in a directory. 19628finish_cmds=$lt_finish_cmds 19629 19630# As "finish_cmds", except a single script fragment to be evaled but 19631# not shown. 19632finish_eval=$lt_finish_eval 19633 19634# Whether we should hardcode library paths into libraries. 19635hardcode_into_libs=$hardcode_into_libs 19636 19637# Compile-time system search path for libraries. 19638sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19639 19640# Run-time system search path for libraries. 19641sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19642 19643# Whether dlopen is supported. 19644dlopen_support=$enable_dlopen 19645 19646# Whether dlopen of programs is supported. 19647dlopen_self=$enable_dlopen_self 19648 19649# Whether dlopen of statically linked programs is supported. 19650dlopen_self_static=$enable_dlopen_self_static 19651 19652# Commands to strip libraries. 19653old_striplib=$lt_old_striplib 19654striplib=$lt_striplib 19655 19656 19657# The linker used to build libraries. 19658LD=$lt_LD 19659 19660# How to create reloadable object files. 19661reload_flag=$lt_reload_flag 19662reload_cmds=$lt_reload_cmds 19663 19664# Commands used to build an old-style archive. 19665old_archive_cmds=$lt_old_archive_cmds 19666 19667# A language specific compiler. 19668CC=$lt_compiler 19669 19670# Is the compiler the GNU compiler? 19671with_gcc=$GCC 19672 19673# Compiler flag to turn off builtin functions. 19674no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19675 19676# Additional compiler flags for building library objects. 19677pic_flag=$lt_lt_prog_compiler_pic 19678 19679# How to pass a linker flag through the compiler. 19680wl=$lt_lt_prog_compiler_wl 19681 19682# Compiler flag to prevent dynamic linking. 19683link_static_flag=$lt_lt_prog_compiler_static 19684 19685# Does compiler simultaneously support -c and -o options? 19686compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19687 19688# Whether or not to add -lc for building shared libraries. 19689build_libtool_need_lc=$archive_cmds_need_lc 19690 19691# Whether or not to disallow shared libs when runtime libs are static. 19692allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19693 19694# Compiler flag to allow reflexive dlopens. 19695export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19696 19697# Compiler flag to generate shared objects directly from archives. 19698whole_archive_flag_spec=$lt_whole_archive_flag_spec 19699 19700# Whether the compiler copes with passing no objects directly. 19701compiler_needs_object=$lt_compiler_needs_object 19702 19703# Create an old-style archive from a shared archive. 19704old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19705 19706# Create a temporary old-style archive to link instead of a shared archive. 19707old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19708 19709# Commands used to build a shared archive. 19710archive_cmds=$lt_archive_cmds 19711archive_expsym_cmds=$lt_archive_expsym_cmds 19712 19713# Commands used to build a loadable module if different from building 19714# a shared archive. 19715module_cmds=$lt_module_cmds 19716module_expsym_cmds=$lt_module_expsym_cmds 19717 19718# Whether we are building with GNU ld or not. 19719with_gnu_ld=$lt_with_gnu_ld 19720 19721# Flag that allows shared libraries with undefined symbols to be built. 19722allow_undefined_flag=$lt_allow_undefined_flag 19723 19724# Flag that enforces no undefined symbols. 19725no_undefined_flag=$lt_no_undefined_flag 19726 19727# Flag to hardcode \$libdir into a binary during linking. 19728# This must work even if \$libdir does not exist 19729hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19730 19731# If ld is used when linking, flag to hardcode \$libdir into a binary 19732# during linking. This must work even if \$libdir does not exist. 19733hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 19734 19735# Whether we need a single "-rpath" flag with a separated argument. 19736hardcode_libdir_separator=$lt_hardcode_libdir_separator 19737 19738# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19739# DIR into the resulting binary. 19740hardcode_direct=$hardcode_direct 19741 19742# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19743# DIR into the resulting binary and the resulting library dependency is 19744# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 19745# library is relocated. 19746hardcode_direct_absolute=$hardcode_direct_absolute 19747 19748# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19749# into the resulting binary. 19750hardcode_minus_L=$hardcode_minus_L 19751 19752# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19753# into the resulting binary. 19754hardcode_shlibpath_var=$hardcode_shlibpath_var 19755 19756# Set to "yes" if building a shared library automatically hardcodes DIR 19757# into the library and all subsequent libraries and executables linked 19758# against it. 19759hardcode_automatic=$hardcode_automatic 19760 19761# Set to yes if linker adds runtime paths of dependent libraries 19762# to runtime path list. 19763inherit_rpath=$inherit_rpath 19764 19765# Whether libtool must link a program against all its dependency libraries. 19766link_all_deplibs=$link_all_deplibs 19767 19768# Set to "yes" if exported symbols are required. 19769always_export_symbols=$always_export_symbols 19770 19771# The commands to list exported symbols. 19772export_symbols_cmds=$lt_export_symbols_cmds 19773 19774# Symbols that should not be listed in the preloaded symbols. 19775exclude_expsyms=$lt_exclude_expsyms 19776 19777# Symbols that must always be exported. 19778include_expsyms=$lt_include_expsyms 19779 19780# Commands necessary for linking programs (against libraries) with templates. 19781prelink_cmds=$lt_prelink_cmds 19782 19783# Commands necessary for finishing linking programs. 19784postlink_cmds=$lt_postlink_cmds 19785 19786# Specify filename containing input files. 19787file_list_spec=$lt_file_list_spec 19788 19789# How to hardcode a shared library path into an executable. 19790hardcode_action=$hardcode_action 19791 19792# ### END LIBTOOL CONFIG 19793 19794_LT_EOF 19795 19796 case $host_os in 19797 aix3*) 19798 cat <<\_LT_EOF >> "$cfgfile" 19799# AIX sometimes has problems with the GCC collect2 program. For some 19800# reason, if we set the COLLECT_NAMES environment variable, the problems 19801# vanish in a puff of smoke. 19802if test "X${COLLECT_NAMES+set}" != Xset; then 19803 COLLECT_NAMES= 19804 export COLLECT_NAMES 19805fi 19806_LT_EOF 19807 ;; 19808 esac 19809 19810 19811ltmain="$ac_aux_dir/ltmain.sh" 19812 19813 19814 # We use sed instead of cat because bash on DJGPP gets confused if 19815 # if finds mixed CR/LF and LF-only lines. Since sed operates in 19816 # text mode, it properly converts lines to CR/LF. This bash problem 19817 # is reportedly fixed, but why not run on old versions too? 19818 sed '$q' "$ltmain" >> "$cfgfile" \ 19819 || (rm -f "$cfgfile"; exit 1) 19820 19821 if test x"$xsi_shell" = xyes; then 19822 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 19823func_dirname ()\ 19824{\ 19825\ case ${1} in\ 19826\ */*) func_dirname_result="${1%/*}${2}" ;;\ 19827\ * ) func_dirname_result="${3}" ;;\ 19828\ esac\ 19829} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 19830 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19831 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19832test 0 -eq $? || _lt_function_replace_fail=: 19833 19834 19835 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 19836func_basename ()\ 19837{\ 19838\ func_basename_result="${1##*/}"\ 19839} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 19840 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19841 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19842test 0 -eq $? || _lt_function_replace_fail=: 19843 19844 19845 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 19846func_dirname_and_basename ()\ 19847{\ 19848\ case ${1} in\ 19849\ */*) func_dirname_result="${1%/*}${2}" ;;\ 19850\ * ) func_dirname_result="${3}" ;;\ 19851\ esac\ 19852\ func_basename_result="${1##*/}"\ 19853} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 19854 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19855 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19856test 0 -eq $? || _lt_function_replace_fail=: 19857 19858 19859 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 19860func_stripname ()\ 19861{\ 19862\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 19863\ # positional parameters, so assign one to ordinary parameter first.\ 19864\ func_stripname_result=${3}\ 19865\ func_stripname_result=${func_stripname_result#"${1}"}\ 19866\ func_stripname_result=${func_stripname_result%"${2}"}\ 19867} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 19868 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19869 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19870test 0 -eq $? || _lt_function_replace_fail=: 19871 19872 19873 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 19874func_split_long_opt ()\ 19875{\ 19876\ func_split_long_opt_name=${1%%=*}\ 19877\ func_split_long_opt_arg=${1#*=}\ 19878} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 19879 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19880 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19881test 0 -eq $? || _lt_function_replace_fail=: 19882 19883 19884 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 19885func_split_short_opt ()\ 19886{\ 19887\ func_split_short_opt_arg=${1#??}\ 19888\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 19889} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 19890 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19891 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19892test 0 -eq $? || _lt_function_replace_fail=: 19893 19894 19895 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 19896func_lo2o ()\ 19897{\ 19898\ case ${1} in\ 19899\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 19900\ *) func_lo2o_result=${1} ;;\ 19901\ esac\ 19902} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 19903 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19904 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19905test 0 -eq $? || _lt_function_replace_fail=: 19906 19907 19908 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 19909func_xform ()\ 19910{\ 19911 func_xform_result=${1%.*}.lo\ 19912} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 19913 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19914 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19915test 0 -eq $? || _lt_function_replace_fail=: 19916 19917 19918 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 19919func_arith ()\ 19920{\ 19921 func_arith_result=$(( $* ))\ 19922} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 19923 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19924 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19925test 0 -eq $? || _lt_function_replace_fail=: 19926 19927 19928 sed -e '/^func_len ()$/,/^} # func_len /c\ 19929func_len ()\ 19930{\ 19931 func_len_result=${#1}\ 19932} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 19933 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19934 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19935test 0 -eq $? || _lt_function_replace_fail=: 19936 19937fi 19938 19939if test x"$lt_shell_append" = xyes; then 19940 sed -e '/^func_append ()$/,/^} # func_append /c\ 19941func_append ()\ 19942{\ 19943 eval "${1}+=\\${2}"\ 19944} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 19945 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19946 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19947test 0 -eq $? || _lt_function_replace_fail=: 19948 19949 19950 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 19951func_append_quoted ()\ 19952{\ 19953\ func_quote_for_eval "${2}"\ 19954\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 19955} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 19956 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19957 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19958test 0 -eq $? || _lt_function_replace_fail=: 19959 19960 19961 # Save a `func_append' function call where possible by direct use of '+=' 19962 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 19963 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19964 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19965 test 0 -eq $? || _lt_function_replace_fail=: 19966else 19967 # Save a `func_append' function call even when '+=' is not available 19968 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 19969 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19970 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19971 test 0 -eq $? || _lt_function_replace_fail=: 19972fi 19973 19974if test x"$_lt_function_replace_fail" = x":"; then 19975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 19976$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 19977fi 19978 19979 19980 mv -f "$cfgfile" "$ofile" || 19981 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 19982 chmod +x "$ofile" 19983 19984 ;; 19985 19986 esac 19987done # for ac_tag 19988 19989 19990as_fn_exit 0 19991_ACEOF 19992ac_clean_files=$ac_clean_files_save 19993 19994test $ac_write_fail = 0 || 19995 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 19996 19997 19998# configure is writing to config.log, and then calls config.status. 19999# config.status does its own redirection, appending to config.log. 20000# Unfortunately, on DOS this fails, as config.log is still kept open 20001# by configure, so config.status won't be able to write to it; its 20002# output is simply discarded. So we exec the FD to /dev/null, 20003# effectively closing config.log, so it can be properly (re)opened and 20004# appended to by config.status. When coming back to configure, we 20005# need to make the FD available again. 20006if test "$no_create" != yes; then 20007 ac_cs_success=: 20008 ac_config_status_args= 20009 test "$silent" = yes && 20010 ac_config_status_args="$ac_config_status_args --quiet" 20011 exec 5>/dev/null 20012 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20013 exec 5>>config.log 20014 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20015 # would make configure fail if this is the last instruction. 20016 $ac_cs_success || as_fn_exit 1 20017fi 20018if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20020$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20021fi 20022 20023