configure revision dff01e5a
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for libXft 2.3.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='libXft' 573PACKAGE_TARNAME='libXft' 574PACKAGE_VERSION='2.3.2' 575PACKAGE_STRING='libXft 2.3.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 620FONTCONFIG_LIBS 621FONTCONFIG_CFLAGS 622FREETYPE_LIBS 623FREETYPE_CFLAGS 624XRENDER_LIBS 625XRENDER_CFLAGS 626XFT_LT_VERSION 627MAN_SUBSTS 628XORG_MAN_PAGE 629ADMIN_MAN_DIR 630DRIVER_MAN_DIR 631MISC_MAN_DIR 632FILE_MAN_DIR 633LIB_MAN_DIR 634APP_MAN_DIR 635ADMIN_MAN_SUFFIX 636DRIVER_MAN_SUFFIX 637MISC_MAN_SUFFIX 638FILE_MAN_SUFFIX 639LIB_MAN_SUFFIX 640APP_MAN_SUFFIX 641INSTALL_CMD 642PKG_CONFIG 643CHANGELOG_CMD 644STRICT_CFLAGS 645CWARNFLAGS 646BASE_CFLAGS 647CPP 648OTOOL64 649OTOOL 650LIPO 651NMEDIT 652DSYMUTIL 653MANIFEST_TOOL 654RANLIB 655ac_ct_AR 656AR 657DLLTOOL 658OBJDUMP 659LN_S 660NM 661ac_ct_DUMPBIN 662DUMPBIN 663LD 664FGREP 665EGREP 666GREP 667SED 668am__fastdepCC_FALSE 669am__fastdepCC_TRUE 670CCDEPMODE 671am__nodep 672AMDEPBACKSLASH 673AMDEP_FALSE 674AMDEP_TRUE 675am__quote 676am__include 677DEPDIR 678OBJEXT 679EXEEXT 680ac_ct_CC 681CPPFLAGS 682LDFLAGS 683CFLAGS 684CC 685host_os 686host_vendor 687host_cpu 688host 689build_os 690build_vendor 691build_cpu 692build 693LIBTOOL 694AM_BACKSLASH 695AM_DEFAULT_VERBOSITY 696AM_DEFAULT_V 697AM_V 698am__untar 699am__tar 700AMTAR 701am__leading_dot 702SET_MAKE 703AWK 704mkdir_p 705MKDIR_P 706INSTALL_STRIP_PROGRAM 707STRIP 708install_sh 709MAKEINFO 710AUTOHEADER 711AUTOMAKE 712AUTOCONF 713ACLOCAL 714VERSION 715PACKAGE 716CYGPATH_W 717am__isrc 718INSTALL_DATA 719INSTALL_SCRIPT 720INSTALL_PROGRAM 721target_alias 722host_alias 723build_alias 724LIBS 725ECHO_T 726ECHO_N 727ECHO_C 728DEFS 729mandir 730localedir 731libdir 732psdir 733pdfdir 734dvidir 735htmldir 736infodir 737docdir 738oldincludedir 739includedir 740localstatedir 741sharedstatedir 742sysconfdir 743datadir 744datarootdir 745libexecdir 746sbindir 747bindir 748program_transform_name 749prefix 750exec_prefix 751PACKAGE_URL 752PACKAGE_BUGREPORT 753PACKAGE_STRING 754PACKAGE_VERSION 755PACKAGE_TARNAME 756PACKAGE_NAME 757PATH_SEPARATOR 758SHELL' 759ac_subst_files='' 760ac_user_opts=' 761enable_option_checking 762enable_silent_rules 763enable_shared 764enable_static 765with_pic 766enable_fast_install 767enable_dependency_tracking 768with_gnu_ld 769with_sysroot 770enable_libtool_lock 771enable_selective_werror 772enable_strict_compilation 773' 774 ac_precious_vars='build_alias 775host_alias 776target_alias 777CC 778CFLAGS 779LDFLAGS 780LIBS 781CPPFLAGS 782CPP 783PKG_CONFIG 784XRENDER_CFLAGS 785XRENDER_LIBS 786FREETYPE_CFLAGS 787FREETYPE_LIBS 788FONTCONFIG_CFLAGS 789FONTCONFIG_LIBS' 790 791 792# Initialize some variables set by options. 793ac_init_help= 794ac_init_version=false 795ac_unrecognized_opts= 796ac_unrecognized_sep= 797# The variables have the same names as the options, with 798# dashes changed to underlines. 799cache_file=/dev/null 800exec_prefix=NONE 801no_create= 802no_recursion= 803prefix=NONE 804program_prefix=NONE 805program_suffix=NONE 806program_transform_name=s,x,x, 807silent= 808site= 809srcdir= 810verbose= 811x_includes=NONE 812x_libraries=NONE 813 814# Installation directory options. 815# These are left unexpanded so users can "make install exec_prefix=/foo" 816# and all the variables that are supposed to be based on exec_prefix 817# by default will actually change. 818# Use braces instead of parens because sh, perl, etc. also accept them. 819# (The list follows the same order as the GNU Coding Standards.) 820bindir='${exec_prefix}/bin' 821sbindir='${exec_prefix}/sbin' 822libexecdir='${exec_prefix}/libexec' 823datarootdir='${prefix}/share' 824datadir='${datarootdir}' 825sysconfdir='${prefix}/etc' 826sharedstatedir='${prefix}/com' 827localstatedir='${prefix}/var' 828includedir='${prefix}/include' 829oldincludedir='/usr/include' 830docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 831infodir='${datarootdir}/info' 832htmldir='${docdir}' 833dvidir='${docdir}' 834pdfdir='${docdir}' 835psdir='${docdir}' 836libdir='${exec_prefix}/lib' 837localedir='${datarootdir}/locale' 838mandir='${datarootdir}/man' 839 840ac_prev= 841ac_dashdash= 842for ac_option 843do 844 # If the previous option needs an argument, assign it. 845 if test -n "$ac_prev"; then 846 eval $ac_prev=\$ac_option 847 ac_prev= 848 continue 849 fi 850 851 case $ac_option in 852 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 853 *=) ac_optarg= ;; 854 *) ac_optarg=yes ;; 855 esac 856 857 # Accept the important Cygnus configure options, so we can diagnose typos. 858 859 case $ac_dashdash$ac_option in 860 --) 861 ac_dashdash=yes ;; 862 863 -bindir | --bindir | --bindi | --bind | --bin | --bi) 864 ac_prev=bindir ;; 865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 866 bindir=$ac_optarg ;; 867 868 -build | --build | --buil | --bui | --bu) 869 ac_prev=build_alias ;; 870 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 871 build_alias=$ac_optarg ;; 872 873 -cache-file | --cache-file | --cache-fil | --cache-fi \ 874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 875 ac_prev=cache_file ;; 876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 878 cache_file=$ac_optarg ;; 879 880 --config-cache | -C) 881 cache_file=config.cache ;; 882 883 -datadir | --datadir | --datadi | --datad) 884 ac_prev=datadir ;; 885 -datadir=* | --datadir=* | --datadi=* | --datad=*) 886 datadir=$ac_optarg ;; 887 888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 889 | --dataroo | --dataro | --datar) 890 ac_prev=datarootdir ;; 891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 893 datarootdir=$ac_optarg ;; 894 895 -disable-* | --disable-*) 896 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 897 # Reject names that are not valid shell variable names. 898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 899 as_fn_error $? "invalid feature name: $ac_useropt" 900 ac_useropt_orig=$ac_useropt 901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 902 case $ac_user_opts in 903 *" 904"enable_$ac_useropt" 905"*) ;; 906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 907 ac_unrecognized_sep=', ';; 908 esac 909 eval enable_$ac_useropt=no ;; 910 911 -docdir | --docdir | --docdi | --doc | --do) 912 ac_prev=docdir ;; 913 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 914 docdir=$ac_optarg ;; 915 916 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 917 ac_prev=dvidir ;; 918 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 919 dvidir=$ac_optarg ;; 920 921 -enable-* | --enable-*) 922 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 923 # Reject names that are not valid shell variable names. 924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 925 as_fn_error $? "invalid feature name: $ac_useropt" 926 ac_useropt_orig=$ac_useropt 927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 928 case $ac_user_opts in 929 *" 930"enable_$ac_useropt" 931"*) ;; 932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 933 ac_unrecognized_sep=', ';; 934 esac 935 eval enable_$ac_useropt=\$ac_optarg ;; 936 937 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 938 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 939 | --exec | --exe | --ex) 940 ac_prev=exec_prefix ;; 941 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 942 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 943 | --exec=* | --exe=* | --ex=*) 944 exec_prefix=$ac_optarg ;; 945 946 -gas | --gas | --ga | --g) 947 # Obsolete; use --with-gas. 948 with_gas=yes ;; 949 950 -help | --help | --hel | --he | -h) 951 ac_init_help=long ;; 952 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 953 ac_init_help=recursive ;; 954 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 955 ac_init_help=short ;; 956 957 -host | --host | --hos | --ho) 958 ac_prev=host_alias ;; 959 -host=* | --host=* | --hos=* | --ho=*) 960 host_alias=$ac_optarg ;; 961 962 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 963 ac_prev=htmldir ;; 964 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 965 | --ht=*) 966 htmldir=$ac_optarg ;; 967 968 -includedir | --includedir | --includedi | --included | --include \ 969 | --includ | --inclu | --incl | --inc) 970 ac_prev=includedir ;; 971 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 972 | --includ=* | --inclu=* | --incl=* | --inc=*) 973 includedir=$ac_optarg ;; 974 975 -infodir | --infodir | --infodi | --infod | --info | --inf) 976 ac_prev=infodir ;; 977 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 978 infodir=$ac_optarg ;; 979 980 -libdir | --libdir | --libdi | --libd) 981 ac_prev=libdir ;; 982 -libdir=* | --libdir=* | --libdi=* | --libd=*) 983 libdir=$ac_optarg ;; 984 985 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 986 | --libexe | --libex | --libe) 987 ac_prev=libexecdir ;; 988 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 989 | --libexe=* | --libex=* | --libe=*) 990 libexecdir=$ac_optarg ;; 991 992 -localedir | --localedir | --localedi | --localed | --locale) 993 ac_prev=localedir ;; 994 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 995 localedir=$ac_optarg ;; 996 997 -localstatedir | --localstatedir | --localstatedi | --localstated \ 998 | --localstate | --localstat | --localsta | --localst | --locals) 999 ac_prev=localstatedir ;; 1000 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1001 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1002 localstatedir=$ac_optarg ;; 1003 1004 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1005 ac_prev=mandir ;; 1006 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1007 mandir=$ac_optarg ;; 1008 1009 -nfp | --nfp | --nf) 1010 # Obsolete; use --without-fp. 1011 with_fp=no ;; 1012 1013 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1014 | --no-cr | --no-c | -n) 1015 no_create=yes ;; 1016 1017 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1018 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1019 no_recursion=yes ;; 1020 1021 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1022 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1023 | --oldin | --oldi | --old | --ol | --o) 1024 ac_prev=oldincludedir ;; 1025 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1026 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1027 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1028 oldincludedir=$ac_optarg ;; 1029 1030 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1031 ac_prev=prefix ;; 1032 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1033 prefix=$ac_optarg ;; 1034 1035 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1036 | --program-pre | --program-pr | --program-p) 1037 ac_prev=program_prefix ;; 1038 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1039 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1040 program_prefix=$ac_optarg ;; 1041 1042 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1043 | --program-suf | --program-su | --program-s) 1044 ac_prev=program_suffix ;; 1045 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1046 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1047 program_suffix=$ac_optarg ;; 1048 1049 -program-transform-name | --program-transform-name \ 1050 | --program-transform-nam | --program-transform-na \ 1051 | --program-transform-n | --program-transform- \ 1052 | --program-transform | --program-transfor \ 1053 | --program-transfo | --program-transf \ 1054 | --program-trans | --program-tran \ 1055 | --progr-tra | --program-tr | --program-t) 1056 ac_prev=program_transform_name ;; 1057 -program-transform-name=* | --program-transform-name=* \ 1058 | --program-transform-nam=* | --program-transform-na=* \ 1059 | --program-transform-n=* | --program-transform-=* \ 1060 | --program-transform=* | --program-transfor=* \ 1061 | --program-transfo=* | --program-transf=* \ 1062 | --program-trans=* | --program-tran=* \ 1063 | --progr-tra=* | --program-tr=* | --program-t=*) 1064 program_transform_name=$ac_optarg ;; 1065 1066 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1067 ac_prev=pdfdir ;; 1068 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1069 pdfdir=$ac_optarg ;; 1070 1071 -psdir | --psdir | --psdi | --psd | --ps) 1072 ac_prev=psdir ;; 1073 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1074 psdir=$ac_optarg ;; 1075 1076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1077 | -silent | --silent | --silen | --sile | --sil) 1078 silent=yes ;; 1079 1080 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1081 ac_prev=sbindir ;; 1082 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1083 | --sbi=* | --sb=*) 1084 sbindir=$ac_optarg ;; 1085 1086 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1087 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1088 | --sharedst | --shareds | --shared | --share | --shar \ 1089 | --sha | --sh) 1090 ac_prev=sharedstatedir ;; 1091 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1092 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1093 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1094 | --sha=* | --sh=*) 1095 sharedstatedir=$ac_optarg ;; 1096 1097 -site | --site | --sit) 1098 ac_prev=site ;; 1099 -site=* | --site=* | --sit=*) 1100 site=$ac_optarg ;; 1101 1102 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1103 ac_prev=srcdir ;; 1104 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1105 srcdir=$ac_optarg ;; 1106 1107 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1108 | --syscon | --sysco | --sysc | --sys | --sy) 1109 ac_prev=sysconfdir ;; 1110 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1111 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1112 sysconfdir=$ac_optarg ;; 1113 1114 -target | --target | --targe | --targ | --tar | --ta | --t) 1115 ac_prev=target_alias ;; 1116 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1117 target_alias=$ac_optarg ;; 1118 1119 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1120 verbose=yes ;; 1121 1122 -version | --version | --versio | --versi | --vers | -V) 1123 ac_init_version=: ;; 1124 1125 -with-* | --with-*) 1126 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1127 # Reject names that are not valid shell variable names. 1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1129 as_fn_error $? "invalid package name: $ac_useropt" 1130 ac_useropt_orig=$ac_useropt 1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1132 case $ac_user_opts in 1133 *" 1134"with_$ac_useropt" 1135"*) ;; 1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1137 ac_unrecognized_sep=', ';; 1138 esac 1139 eval with_$ac_useropt=\$ac_optarg ;; 1140 1141 -without-* | --without-*) 1142 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1143 # Reject names that are not valid shell variable names. 1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1145 as_fn_error $? "invalid package name: $ac_useropt" 1146 ac_useropt_orig=$ac_useropt 1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1148 case $ac_user_opts in 1149 *" 1150"with_$ac_useropt" 1151"*) ;; 1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1153 ac_unrecognized_sep=', ';; 1154 esac 1155 eval with_$ac_useropt=no ;; 1156 1157 --x) 1158 # Obsolete; use --with-x. 1159 with_x=yes ;; 1160 1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1162 | --x-incl | --x-inc | --x-in | --x-i) 1163 ac_prev=x_includes ;; 1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1166 x_includes=$ac_optarg ;; 1167 1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1170 ac_prev=x_libraries ;; 1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1173 x_libraries=$ac_optarg ;; 1174 1175 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1176Try \`$0 --help' for more information" 1177 ;; 1178 1179 *=*) 1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1181 # Reject names that are not valid shell variable names. 1182 case $ac_envvar in #( 1183 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1184 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1185 esac 1186 eval $ac_envvar=\$ac_optarg 1187 export $ac_envvar ;; 1188 1189 *) 1190 # FIXME: should be removed in autoconf 3.0. 1191 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1193 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1194 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1195 ;; 1196 1197 esac 1198done 1199 1200if test -n "$ac_prev"; then 1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1202 as_fn_error $? "missing argument to $ac_option" 1203fi 1204 1205if test -n "$ac_unrecognized_opts"; then 1206 case $enable_option_checking in 1207 no) ;; 1208 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1209 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1210 esac 1211fi 1212 1213# Check all directory arguments for consistency. 1214for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1215 datadir sysconfdir sharedstatedir localstatedir includedir \ 1216 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1217 libdir localedir mandir 1218do 1219 eval ac_val=\$$ac_var 1220 # Remove trailing slashes. 1221 case $ac_val in 1222 */ ) 1223 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1224 eval $ac_var=\$ac_val;; 1225 esac 1226 # Be sure to have absolute directory names. 1227 case $ac_val in 1228 [\\/$]* | ?:[\\/]* ) continue;; 1229 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1230 esac 1231 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1232done 1233 1234# There might be people who depend on the old broken behavior: `$host' 1235# used to hold the argument of --host etc. 1236# FIXME: To remove some day. 1237build=$build_alias 1238host=$host_alias 1239target=$target_alias 1240 1241# FIXME: To remove some day. 1242if test "x$host_alias" != x; then 1243 if test "x$build_alias" = x; then 1244 cross_compiling=maybe 1245 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1246 If a cross compiler is detected then cross compile mode will be used" >&2 1247 elif test "x$build_alias" != "x$host_alias"; then 1248 cross_compiling=yes 1249 fi 1250fi 1251 1252ac_tool_prefix= 1253test -n "$host_alias" && ac_tool_prefix=$host_alias- 1254 1255test "$silent" = yes && exec 6>/dev/null 1256 1257 1258ac_pwd=`pwd` && test -n "$ac_pwd" && 1259ac_ls_di=`ls -di .` && 1260ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1261 as_fn_error $? "working directory cannot be determined" 1262test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1263 as_fn_error $? "pwd does not report name of working directory" 1264 1265 1266# Find the source files, if location was not specified. 1267if test -z "$srcdir"; then 1268 ac_srcdir_defaulted=yes 1269 # Try the directory containing this script, then the parent directory. 1270 ac_confdir=`$as_dirname -- "$as_myself" || 1271$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1272 X"$as_myself" : 'X\(//\)[^/]' \| \ 1273 X"$as_myself" : 'X\(//\)$' \| \ 1274 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1275$as_echo X"$as_myself" | 1276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1277 s//\1/ 1278 q 1279 } 1280 /^X\(\/\/\)[^/].*/{ 1281 s//\1/ 1282 q 1283 } 1284 /^X\(\/\/\)$/{ 1285 s//\1/ 1286 q 1287 } 1288 /^X\(\/\).*/{ 1289 s//\1/ 1290 q 1291 } 1292 s/.*/./; q'` 1293 srcdir=$ac_confdir 1294 if test ! -r "$srcdir/$ac_unique_file"; then 1295 srcdir=.. 1296 fi 1297else 1298 ac_srcdir_defaulted=no 1299fi 1300if test ! -r "$srcdir/$ac_unique_file"; then 1301 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1302 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1303fi 1304ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1305ac_abs_confdir=`( 1306 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1307 pwd)` 1308# When building in place, set srcdir=. 1309if test "$ac_abs_confdir" = "$ac_pwd"; then 1310 srcdir=. 1311fi 1312# Remove unnecessary trailing slashes from srcdir. 1313# Double slashes in file names in object file debugging info 1314# mess up M-x gdb in Emacs. 1315case $srcdir in 1316*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1317esac 1318for ac_var in $ac_precious_vars; do 1319 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1320 eval ac_env_${ac_var}_value=\$${ac_var} 1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1322 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1323done 1324 1325# 1326# Report the --help message. 1327# 1328if test "$ac_init_help" = "long"; then 1329 # Omit some internal or obsolete options to make the list less imposing. 1330 # This message is too long to be a string in the A/UX 3.1 sh. 1331 cat <<_ACEOF 1332\`configure' configures libXft 2.3.2 to adapt to many kinds of systems. 1333 1334Usage: $0 [OPTION]... [VAR=VALUE]... 1335 1336To assign environment variables (e.g., CC, CFLAGS...), specify them as 1337VAR=VALUE. See below for descriptions of some of the useful variables. 1338 1339Defaults for the options are specified in brackets. 1340 1341Configuration: 1342 -h, --help display this help and exit 1343 --help=short display options specific to this package 1344 --help=recursive display the short help of all the included packages 1345 -V, --version display version information and exit 1346 -q, --quiet, --silent do not print \`checking ...' messages 1347 --cache-file=FILE cache test results in FILE [disabled] 1348 -C, --config-cache alias for \`--cache-file=config.cache' 1349 -n, --no-create do not create output files 1350 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1351 1352Installation directories: 1353 --prefix=PREFIX install architecture-independent files in PREFIX 1354 [$ac_default_prefix] 1355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1356 [PREFIX] 1357 1358By default, \`make install' will install all the files in 1359\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1360an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1361for instance \`--prefix=\$HOME'. 1362 1363For better control, use the options below. 1364 1365Fine tuning of the installation directories: 1366 --bindir=DIR user executables [EPREFIX/bin] 1367 --sbindir=DIR system admin executables [EPREFIX/sbin] 1368 --libexecdir=DIR program executables [EPREFIX/libexec] 1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1372 --libdir=DIR object code libraries [EPREFIX/lib] 1373 --includedir=DIR C header files [PREFIX/include] 1374 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1377 --infodir=DIR info documentation [DATAROOTDIR/info] 1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1379 --mandir=DIR man documentation [DATAROOTDIR/man] 1380 --docdir=DIR documentation root [DATAROOTDIR/doc/libXft] 1381 --htmldir=DIR html documentation [DOCDIR] 1382 --dvidir=DIR dvi documentation [DOCDIR] 1383 --pdfdir=DIR pdf documentation [DOCDIR] 1384 --psdir=DIR ps documentation [DOCDIR] 1385_ACEOF 1386 1387 cat <<\_ACEOF 1388 1389Program names: 1390 --program-prefix=PREFIX prepend PREFIX to installed program names 1391 --program-suffix=SUFFIX append SUFFIX to installed program names 1392 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1393 1394System types: 1395 --build=BUILD configure for building on BUILD [guessed] 1396 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1397_ACEOF 1398fi 1399 1400if test -n "$ac_init_help"; then 1401 case $ac_init_help in 1402 short | recursive ) echo "Configuration of libXft 2.3.2:";; 1403 esac 1404 cat <<\_ACEOF 1405 1406Optional Features: 1407 --disable-option-checking ignore unrecognized --enable/--with options 1408 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1409 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1410 --enable-silent-rules less verbose build output (undo: "make V=1") 1411 --disable-silent-rules verbose build output (undo: "make V=0") 1412 --enable-shared[=PKGS] build shared libraries [default=yes] 1413 --enable-static[=PKGS] build static libraries [default=yes] 1414 --enable-fast-install[=PKGS] 1415 optimize for fast installation [default=yes] 1416 --enable-dependency-tracking 1417 do not reject slow dependency extractors 1418 --disable-dependency-tracking 1419 speeds up one-time build 1420 --disable-libtool-lock avoid locking (might break parallel builds) 1421 --disable-selective-werror 1422 Turn off selective compiler errors. (default: 1423 enabled) 1424 --enable-strict-compilation 1425 Enable all warnings from compiler and make them 1426 errors (default: disabled) 1427 1428Optional Packages: 1429 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1430 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1431 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1432 both] 1433 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1434 --with-sysroot=DIR Search for dependent libraries within DIR 1435 (or the compiler's sysroot if not specified). 1436 1437Some influential environment variables: 1438 CC C compiler command 1439 CFLAGS C compiler flags 1440 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1441 nonstandard directory <lib dir> 1442 LIBS libraries to pass to the linker, e.g. -l<library> 1443 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1444 you have headers in a nonstandard directory <include dir> 1445 CPP C preprocessor 1446 PKG_CONFIG path to pkg-config utility 1447 XRENDER_CFLAGS 1448 C compiler flags for XRENDER, overriding pkg-config 1449 XRENDER_LIBS 1450 linker flags for XRENDER, overriding pkg-config 1451 FREETYPE_CFLAGS 1452 C compiler flags for FREETYPE, overriding pkg-config 1453 FREETYPE_LIBS 1454 linker flags for FREETYPE, overriding pkg-config 1455 FONTCONFIG_CFLAGS 1456 C compiler flags for FONTCONFIG, overriding pkg-config 1457 FONTCONFIG_LIBS 1458 linker flags for FONTCONFIG, overriding pkg-config 1459 1460Use these variables to override the choices made by `configure' or to help 1461it to find libraries and programs with nonstandard names/locations. 1462 1463Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1464_ACEOF 1465ac_status=$? 1466fi 1467 1468if test "$ac_init_help" = "recursive"; then 1469 # If there are subdirs, report their specific --help. 1470 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1471 test -d "$ac_dir" || 1472 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1473 continue 1474 ac_builddir=. 1475 1476case "$ac_dir" in 1477.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1478*) 1479 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1480 # A ".." for each directory in $ac_dir_suffix. 1481 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1482 case $ac_top_builddir_sub in 1483 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1484 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1485 esac ;; 1486esac 1487ac_abs_top_builddir=$ac_pwd 1488ac_abs_builddir=$ac_pwd$ac_dir_suffix 1489# for backward compatibility: 1490ac_top_builddir=$ac_top_build_prefix 1491 1492case $srcdir in 1493 .) # We are building in place. 1494 ac_srcdir=. 1495 ac_top_srcdir=$ac_top_builddir_sub 1496 ac_abs_top_srcdir=$ac_pwd ;; 1497 [\\/]* | ?:[\\/]* ) # Absolute name. 1498 ac_srcdir=$srcdir$ac_dir_suffix; 1499 ac_top_srcdir=$srcdir 1500 ac_abs_top_srcdir=$srcdir ;; 1501 *) # Relative name. 1502 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1503 ac_top_srcdir=$ac_top_build_prefix$srcdir 1504 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1505esac 1506ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1507 1508 cd "$ac_dir" || { ac_status=$?; continue; } 1509 # Check for guested configure. 1510 if test -f "$ac_srcdir/configure.gnu"; then 1511 echo && 1512 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1513 elif test -f "$ac_srcdir/configure"; then 1514 echo && 1515 $SHELL "$ac_srcdir/configure" --help=recursive 1516 else 1517 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1518 fi || ac_status=$? 1519 cd "$ac_pwd" || { ac_status=$?; break; } 1520 done 1521fi 1522 1523test -n "$ac_init_help" && exit $ac_status 1524if $ac_init_version; then 1525 cat <<\_ACEOF 1526libXft configure 2.3.2 1527generated by GNU Autoconf 2.68 1528 1529Copyright (C) 2010 Free Software Foundation, Inc. 1530This configure script is free software; the Free Software Foundation 1531gives unlimited permission to copy, distribute and modify it. 1532_ACEOF 1533 exit 1534fi 1535 1536## ------------------------ ## 1537## Autoconf initialization. ## 1538## ------------------------ ## 1539 1540# ac_fn_c_try_compile LINENO 1541# -------------------------- 1542# Try to compile conftest.$ac_ext, and return whether this succeeded. 1543ac_fn_c_try_compile () 1544{ 1545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1546 rm -f conftest.$ac_objext 1547 if { { ac_try="$ac_compile" 1548case "(($ac_try" in 1549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1550 *) ac_try_echo=$ac_try;; 1551esac 1552eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1553$as_echo "$ac_try_echo"; } >&5 1554 (eval "$ac_compile") 2>conftest.err 1555 ac_status=$? 1556 if test -s conftest.err; then 1557 grep -v '^ *+' conftest.err >conftest.er1 1558 cat conftest.er1 >&5 1559 mv -f conftest.er1 conftest.err 1560 fi 1561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1562 test $ac_status = 0; } && { 1563 test -z "$ac_c_werror_flag" || 1564 test ! -s conftest.err 1565 } && test -s conftest.$ac_objext; then : 1566 ac_retval=0 1567else 1568 $as_echo "$as_me: failed program was:" >&5 1569sed 's/^/| /' conftest.$ac_ext >&5 1570 1571 ac_retval=1 1572fi 1573 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1574 as_fn_set_status $ac_retval 1575 1576} # ac_fn_c_try_compile 1577 1578# ac_fn_c_try_link LINENO 1579# ----------------------- 1580# Try to link conftest.$ac_ext, and return whether this succeeded. 1581ac_fn_c_try_link () 1582{ 1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1584 rm -f conftest.$ac_objext conftest$ac_exeext 1585 if { { ac_try="$ac_link" 1586case "(($ac_try" in 1587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1588 *) ac_try_echo=$ac_try;; 1589esac 1590eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1591$as_echo "$ac_try_echo"; } >&5 1592 (eval "$ac_link") 2>conftest.err 1593 ac_status=$? 1594 if test -s conftest.err; then 1595 grep -v '^ *+' conftest.err >conftest.er1 1596 cat conftest.er1 >&5 1597 mv -f conftest.er1 conftest.err 1598 fi 1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1600 test $ac_status = 0; } && { 1601 test -z "$ac_c_werror_flag" || 1602 test ! -s conftest.err 1603 } && test -s conftest$ac_exeext && { 1604 test "$cross_compiling" = yes || 1605 $as_test_x conftest$ac_exeext 1606 }; then : 1607 ac_retval=0 1608else 1609 $as_echo "$as_me: failed program was:" >&5 1610sed 's/^/| /' conftest.$ac_ext >&5 1611 1612 ac_retval=1 1613fi 1614 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1615 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1616 # interfere with the next link command; also delete a directory that is 1617 # left behind by Apple's compiler. We do this before executing the actions. 1618 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1619 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1620 as_fn_set_status $ac_retval 1621 1622} # ac_fn_c_try_link 1623 1624# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1625# ------------------------------------------------------- 1626# Tests whether HEADER exists and can be compiled using the include files in 1627# INCLUDES, setting the cache variable VAR accordingly. 1628ac_fn_c_check_header_compile () 1629{ 1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1632$as_echo_n "checking for $2... " >&6; } 1633if eval \${$3+:} false; then : 1634 $as_echo_n "(cached) " >&6 1635else 1636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1637/* end confdefs.h. */ 1638$4 1639#include <$2> 1640_ACEOF 1641if ac_fn_c_try_compile "$LINENO"; then : 1642 eval "$3=yes" 1643else 1644 eval "$3=no" 1645fi 1646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1647fi 1648eval ac_res=\$$3 1649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1650$as_echo "$ac_res" >&6; } 1651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1652 1653} # ac_fn_c_check_header_compile 1654 1655# ac_fn_c_try_cpp LINENO 1656# ---------------------- 1657# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1658ac_fn_c_try_cpp () 1659{ 1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1661 if { { ac_try="$ac_cpp conftest.$ac_ext" 1662case "(($ac_try" in 1663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1664 *) ac_try_echo=$ac_try;; 1665esac 1666eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1667$as_echo "$ac_try_echo"; } >&5 1668 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1669 ac_status=$? 1670 if test -s conftest.err; then 1671 grep -v '^ *+' conftest.err >conftest.er1 1672 cat conftest.er1 >&5 1673 mv -f conftest.er1 conftest.err 1674 fi 1675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1676 test $ac_status = 0; } > conftest.i && { 1677 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1678 test ! -s conftest.err 1679 }; then : 1680 ac_retval=0 1681else 1682 $as_echo "$as_me: failed program was:" >&5 1683sed 's/^/| /' conftest.$ac_ext >&5 1684 1685 ac_retval=1 1686fi 1687 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1688 as_fn_set_status $ac_retval 1689 1690} # ac_fn_c_try_cpp 1691 1692# ac_fn_c_try_run LINENO 1693# ---------------------- 1694# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1695# that executables *can* be run. 1696ac_fn_c_try_run () 1697{ 1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1699 if { { ac_try="$ac_link" 1700case "(($ac_try" in 1701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1702 *) ac_try_echo=$ac_try;; 1703esac 1704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1705$as_echo "$ac_try_echo"; } >&5 1706 (eval "$ac_link") 2>&5 1707 ac_status=$? 1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1709 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1710 { { case "(($ac_try" in 1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1712 *) ac_try_echo=$ac_try;; 1713esac 1714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1715$as_echo "$ac_try_echo"; } >&5 1716 (eval "$ac_try") 2>&5 1717 ac_status=$? 1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1719 test $ac_status = 0; }; }; then : 1720 ac_retval=0 1721else 1722 $as_echo "$as_me: program exited with status $ac_status" >&5 1723 $as_echo "$as_me: failed program was:" >&5 1724sed 's/^/| /' conftest.$ac_ext >&5 1725 1726 ac_retval=$ac_status 1727fi 1728 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1730 as_fn_set_status $ac_retval 1731 1732} # ac_fn_c_try_run 1733 1734# ac_fn_c_check_func LINENO FUNC VAR 1735# ---------------------------------- 1736# Tests whether FUNC exists, setting the cache variable VAR accordingly 1737ac_fn_c_check_func () 1738{ 1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1741$as_echo_n "checking for $2... " >&6; } 1742if eval \${$3+:} false; then : 1743 $as_echo_n "(cached) " >&6 1744else 1745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1746/* end confdefs.h. */ 1747/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1748 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1749#define $2 innocuous_$2 1750 1751/* System header to define __stub macros and hopefully few prototypes, 1752 which can conflict with char $2 (); below. 1753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1754 <limits.h> exists even on freestanding compilers. */ 1755 1756#ifdef __STDC__ 1757# include <limits.h> 1758#else 1759# include <assert.h> 1760#endif 1761 1762#undef $2 1763 1764/* Override any GCC internal prototype to avoid an error. 1765 Use char because int might match the return type of a GCC 1766 builtin and then its argument prototype would still apply. */ 1767#ifdef __cplusplus 1768extern "C" 1769#endif 1770char $2 (); 1771/* The GNU C library defines this for functions which it implements 1772 to always fail with ENOSYS. Some functions are actually named 1773 something starting with __ and the normal name is an alias. */ 1774#if defined __stub_$2 || defined __stub___$2 1775choke me 1776#endif 1777 1778int 1779main () 1780{ 1781return $2 (); 1782 ; 1783 return 0; 1784} 1785_ACEOF 1786if ac_fn_c_try_link "$LINENO"; then : 1787 eval "$3=yes" 1788else 1789 eval "$3=no" 1790fi 1791rm -f core conftest.err conftest.$ac_objext \ 1792 conftest$ac_exeext conftest.$ac_ext 1793fi 1794eval ac_res=\$$3 1795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1796$as_echo "$ac_res" >&6; } 1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1798 1799} # ac_fn_c_check_func 1800 1801# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1802# --------------------------------------------- 1803# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1804# accordingly. 1805ac_fn_c_check_decl () 1806{ 1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1808 as_decl_name=`echo $2|sed 's/ *(.*//'` 1809 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1811$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1812if eval \${$3+:} false; then : 1813 $as_echo_n "(cached) " >&6 1814else 1815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1816/* end confdefs.h. */ 1817$4 1818int 1819main () 1820{ 1821#ifndef $as_decl_name 1822#ifdef __cplusplus 1823 (void) $as_decl_use; 1824#else 1825 (void) $as_decl_name; 1826#endif 1827#endif 1828 1829 ; 1830 return 0; 1831} 1832_ACEOF 1833if ac_fn_c_try_compile "$LINENO"; then : 1834 eval "$3=yes" 1835else 1836 eval "$3=no" 1837fi 1838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1839fi 1840eval ac_res=\$$3 1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1842$as_echo "$ac_res" >&6; } 1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1844 1845} # ac_fn_c_check_decl 1846cat >config.log <<_ACEOF 1847This file contains any messages produced by compilers while 1848running configure, to aid debugging if configure makes a mistake. 1849 1850It was created by libXft $as_me 2.3.2, which was 1851generated by GNU Autoconf 2.68. Invocation command line was 1852 1853 $ $0 $@ 1854 1855_ACEOF 1856exec 5>>config.log 1857{ 1858cat <<_ASUNAME 1859## --------- ## 1860## Platform. ## 1861## --------- ## 1862 1863hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1864uname -m = `(uname -m) 2>/dev/null || echo unknown` 1865uname -r = `(uname -r) 2>/dev/null || echo unknown` 1866uname -s = `(uname -s) 2>/dev/null || echo unknown` 1867uname -v = `(uname -v) 2>/dev/null || echo unknown` 1868 1869/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1870/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1871 1872/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1873/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1874/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1875/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1876/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1877/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1878/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1879 1880_ASUNAME 1881 1882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1883for as_dir in $PATH 1884do 1885 IFS=$as_save_IFS 1886 test -z "$as_dir" && as_dir=. 1887 $as_echo "PATH: $as_dir" 1888 done 1889IFS=$as_save_IFS 1890 1891} >&5 1892 1893cat >&5 <<_ACEOF 1894 1895 1896## ----------- ## 1897## Core tests. ## 1898## ----------- ## 1899 1900_ACEOF 1901 1902 1903# Keep a trace of the command line. 1904# Strip out --no-create and --no-recursion so they do not pile up. 1905# Strip out --silent because we don't want to record it for future runs. 1906# Also quote any args containing shell meta-characters. 1907# Make two passes to allow for proper duplicate-argument suppression. 1908ac_configure_args= 1909ac_configure_args0= 1910ac_configure_args1= 1911ac_must_keep_next=false 1912for ac_pass in 1 2 1913do 1914 for ac_arg 1915 do 1916 case $ac_arg in 1917 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1918 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1919 | -silent | --silent | --silen | --sile | --sil) 1920 continue ;; 1921 *\'*) 1922 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1923 esac 1924 case $ac_pass in 1925 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1926 2) 1927 as_fn_append ac_configure_args1 " '$ac_arg'" 1928 if test $ac_must_keep_next = true; then 1929 ac_must_keep_next=false # Got value, back to normal. 1930 else 1931 case $ac_arg in 1932 *=* | --config-cache | -C | -disable-* | --disable-* \ 1933 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1934 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1935 | -with-* | --with-* | -without-* | --without-* | --x) 1936 case "$ac_configure_args0 " in 1937 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1938 esac 1939 ;; 1940 -* ) ac_must_keep_next=true ;; 1941 esac 1942 fi 1943 as_fn_append ac_configure_args " '$ac_arg'" 1944 ;; 1945 esac 1946 done 1947done 1948{ ac_configure_args0=; unset ac_configure_args0;} 1949{ ac_configure_args1=; unset ac_configure_args1;} 1950 1951# When interrupted or exit'd, cleanup temporary files, and complete 1952# config.log. We remove comments because anyway the quotes in there 1953# would cause problems or look ugly. 1954# WARNING: Use '\'' to represent an apostrophe within the trap. 1955# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1956trap 'exit_status=$? 1957 # Save into config.log some information that might help in debugging. 1958 { 1959 echo 1960 1961 $as_echo "## ---------------- ## 1962## Cache variables. ## 1963## ---------------- ##" 1964 echo 1965 # The following way of writing the cache mishandles newlines in values, 1966( 1967 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1968 eval ac_val=\$$ac_var 1969 case $ac_val in #( 1970 *${as_nl}*) 1971 case $ac_var in #( 1972 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1973$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1974 esac 1975 case $ac_var in #( 1976 _ | IFS | as_nl) ;; #( 1977 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1978 *) { eval $ac_var=; unset $ac_var;} ;; 1979 esac ;; 1980 esac 1981 done 1982 (set) 2>&1 | 1983 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1984 *${as_nl}ac_space=\ *) 1985 sed -n \ 1986 "s/'\''/'\''\\\\'\'''\''/g; 1987 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1988 ;; #( 1989 *) 1990 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1991 ;; 1992 esac | 1993 sort 1994) 1995 echo 1996 1997 $as_echo "## ----------------- ## 1998## Output variables. ## 1999## ----------------- ##" 2000 echo 2001 for ac_var in $ac_subst_vars 2002 do 2003 eval ac_val=\$$ac_var 2004 case $ac_val in 2005 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2006 esac 2007 $as_echo "$ac_var='\''$ac_val'\''" 2008 done | sort 2009 echo 2010 2011 if test -n "$ac_subst_files"; then 2012 $as_echo "## ------------------- ## 2013## File substitutions. ## 2014## ------------------- ##" 2015 echo 2016 for ac_var in $ac_subst_files 2017 do 2018 eval ac_val=\$$ac_var 2019 case $ac_val in 2020 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2021 esac 2022 $as_echo "$ac_var='\''$ac_val'\''" 2023 done | sort 2024 echo 2025 fi 2026 2027 if test -s confdefs.h; then 2028 $as_echo "## ----------- ## 2029## confdefs.h. ## 2030## ----------- ##" 2031 echo 2032 cat confdefs.h 2033 echo 2034 fi 2035 test "$ac_signal" != 0 && 2036 $as_echo "$as_me: caught signal $ac_signal" 2037 $as_echo "$as_me: exit $exit_status" 2038 } >&5 2039 rm -f core *.core core.conftest.* && 2040 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2041 exit $exit_status 2042' 0 2043for ac_signal in 1 2 13 15; do 2044 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2045done 2046ac_signal=0 2047 2048# confdefs.h avoids OS command line length limits that DEFS can exceed. 2049rm -f -r conftest* confdefs.h 2050 2051$as_echo "/* confdefs.h */" > confdefs.h 2052 2053# Predefined preprocessor variables. 2054 2055cat >>confdefs.h <<_ACEOF 2056#define PACKAGE_NAME "$PACKAGE_NAME" 2057_ACEOF 2058 2059cat >>confdefs.h <<_ACEOF 2060#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2061_ACEOF 2062 2063cat >>confdefs.h <<_ACEOF 2064#define PACKAGE_VERSION "$PACKAGE_VERSION" 2065_ACEOF 2066 2067cat >>confdefs.h <<_ACEOF 2068#define PACKAGE_STRING "$PACKAGE_STRING" 2069_ACEOF 2070 2071cat >>confdefs.h <<_ACEOF 2072#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2073_ACEOF 2074 2075cat >>confdefs.h <<_ACEOF 2076#define PACKAGE_URL "$PACKAGE_URL" 2077_ACEOF 2078 2079 2080# Let the site file select an alternate cache file if it wants to. 2081# Prefer an explicitly selected file to automatically selected ones. 2082ac_site_file1=NONE 2083ac_site_file2=NONE 2084if test -n "$CONFIG_SITE"; then 2085 # We do not want a PATH search for config.site. 2086 case $CONFIG_SITE in #(( 2087 -*) ac_site_file1=./$CONFIG_SITE;; 2088 */*) ac_site_file1=$CONFIG_SITE;; 2089 *) ac_site_file1=./$CONFIG_SITE;; 2090 esac 2091elif test "x$prefix" != xNONE; then 2092 ac_site_file1=$prefix/share/config.site 2093 ac_site_file2=$prefix/etc/config.site 2094else 2095 ac_site_file1=$ac_default_prefix/share/config.site 2096 ac_site_file2=$ac_default_prefix/etc/config.site 2097fi 2098for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2099do 2100 test "x$ac_site_file" = xNONE && continue 2101 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2102 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2103$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2104 sed 's/^/| /' "$ac_site_file" >&5 2105 . "$ac_site_file" \ 2106 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2107$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2108as_fn_error $? "failed to load site script $ac_site_file 2109See \`config.log' for more details" "$LINENO" 5; } 2110 fi 2111done 2112 2113if test -r "$cache_file"; then 2114 # Some versions of bash will fail to source /dev/null (special files 2115 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2116 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2117 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2118$as_echo "$as_me: loading cache $cache_file" >&6;} 2119 case $cache_file in 2120 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2121 *) . "./$cache_file";; 2122 esac 2123 fi 2124else 2125 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2126$as_echo "$as_me: creating cache $cache_file" >&6;} 2127 >$cache_file 2128fi 2129 2130# Check that the precious variables saved in the cache have kept the same 2131# value. 2132ac_cache_corrupted=false 2133for ac_var in $ac_precious_vars; do 2134 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2135 eval ac_new_set=\$ac_env_${ac_var}_set 2136 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2137 eval ac_new_val=\$ac_env_${ac_var}_value 2138 case $ac_old_set,$ac_new_set in 2139 set,) 2140 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2141$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2142 ac_cache_corrupted=: ;; 2143 ,set) 2144 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2145$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2146 ac_cache_corrupted=: ;; 2147 ,);; 2148 *) 2149 if test "x$ac_old_val" != "x$ac_new_val"; then 2150 # differences in whitespace do not lead to failure. 2151 ac_old_val_w=`echo x $ac_old_val` 2152 ac_new_val_w=`echo x $ac_new_val` 2153 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2154 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2155$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2156 ac_cache_corrupted=: 2157 else 2158 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2159$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2160 eval $ac_var=\$ac_old_val 2161 fi 2162 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2163$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2164 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2165$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2166 fi;; 2167 esac 2168 # Pass precious variables to config.status. 2169 if test "$ac_new_set" = set; then 2170 case $ac_new_val in 2171 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2172 *) ac_arg=$ac_var=$ac_new_val ;; 2173 esac 2174 case " $ac_configure_args " in 2175 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2176 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2177 esac 2178 fi 2179done 2180if $ac_cache_corrupted; then 2181 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2182$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2183 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2184$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2185 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2186fi 2187## -------------------- ## 2188## Main body of script. ## 2189## -------------------- ## 2190 2191ac_ext=c 2192ac_cpp='$CPP $CPPFLAGS' 2193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2195ac_compiler_gnu=$ac_cv_c_compiler_gnu 2196 2197 2198 2199ac_config_headers="$ac_config_headers config.h" 2200 2201 2202# Initialize Automake 2203am__api_version='1.14' 2204 2205ac_aux_dir= 2206for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2207 if test -f "$ac_dir/install-sh"; then 2208 ac_aux_dir=$ac_dir 2209 ac_install_sh="$ac_aux_dir/install-sh -c" 2210 break 2211 elif test -f "$ac_dir/install.sh"; then 2212 ac_aux_dir=$ac_dir 2213 ac_install_sh="$ac_aux_dir/install.sh -c" 2214 break 2215 elif test -f "$ac_dir/shtool"; then 2216 ac_aux_dir=$ac_dir 2217 ac_install_sh="$ac_aux_dir/shtool install -c" 2218 break 2219 fi 2220done 2221if test -z "$ac_aux_dir"; then 2222 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2223fi 2224 2225# These three variables are undocumented and unsupported, 2226# and are intended to be withdrawn in a future Autoconf release. 2227# They can cause serious problems if a builder's source tree is in a directory 2228# whose full name contains unusual characters. 2229ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2230ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2231ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2232 2233 2234# Find a good install program. We prefer a C program (faster), 2235# so one script is as good as another. But avoid the broken or 2236# incompatible versions: 2237# SysV /etc/install, /usr/sbin/install 2238# SunOS /usr/etc/install 2239# IRIX /sbin/install 2240# AIX /bin/install 2241# AmigaOS /C/install, which installs bootblocks on floppy discs 2242# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2243# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2244# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2245# OS/2's system install, which has a completely different semantic 2246# ./install, which can be erroneously created by make from ./install.sh. 2247# Reject install programs that cannot install multiple files. 2248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2249$as_echo_n "checking for a BSD-compatible install... " >&6; } 2250if test -z "$INSTALL"; then 2251if ${ac_cv_path_install+:} false; then : 2252 $as_echo_n "(cached) " >&6 2253else 2254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2255for as_dir in $PATH 2256do 2257 IFS=$as_save_IFS 2258 test -z "$as_dir" && as_dir=. 2259 # Account for people who put trailing slashes in PATH elements. 2260case $as_dir/ in #(( 2261 ./ | .// | /[cC]/* | \ 2262 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2263 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2264 /usr/ucb/* ) ;; 2265 *) 2266 # OSF1 and SCO ODT 3.0 have their own names for install. 2267 # Don't use installbsd from OSF since it installs stuff as root 2268 # by default. 2269 for ac_prog in ginstall scoinst install; do 2270 for ac_exec_ext in '' $ac_executable_extensions; do 2271 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2272 if test $ac_prog = install && 2273 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2274 # AIX install. It has an incompatible calling convention. 2275 : 2276 elif test $ac_prog = install && 2277 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2278 # program-specific install script used by HP pwplus--don't use. 2279 : 2280 else 2281 rm -rf conftest.one conftest.two conftest.dir 2282 echo one > conftest.one 2283 echo two > conftest.two 2284 mkdir conftest.dir 2285 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2286 test -s conftest.one && test -s conftest.two && 2287 test -s conftest.dir/conftest.one && 2288 test -s conftest.dir/conftest.two 2289 then 2290 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2291 break 3 2292 fi 2293 fi 2294 fi 2295 done 2296 done 2297 ;; 2298esac 2299 2300 done 2301IFS=$as_save_IFS 2302 2303rm -rf conftest.one conftest.two conftest.dir 2304 2305fi 2306 if test "${ac_cv_path_install+set}" = set; then 2307 INSTALL=$ac_cv_path_install 2308 else 2309 # As a last resort, use the slow shell script. Don't cache a 2310 # value for INSTALL within a source directory, because that will 2311 # break other packages using the cache if that directory is 2312 # removed, or if the value is a relative name. 2313 INSTALL=$ac_install_sh 2314 fi 2315fi 2316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2317$as_echo "$INSTALL" >&6; } 2318 2319# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2320# It thinks the first close brace ends the variable substitution. 2321test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2322 2323test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2324 2325test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2326 2327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2328$as_echo_n "checking whether build environment is sane... " >&6; } 2329# Reject unsafe characters in $srcdir or the absolute working directory 2330# name. Accept space and tab only in the latter. 2331am_lf=' 2332' 2333case `pwd` in 2334 *[\\\"\#\$\&\'\`$am_lf]*) 2335 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2336esac 2337case $srcdir in 2338 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2339 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2340esac 2341 2342# Do 'set' in a subshell so we don't clobber the current shell's 2343# arguments. Must try -L first in case configure is actually a 2344# symlink; some systems play weird games with the mod time of symlinks 2345# (eg FreeBSD returns the mod time of the symlink's containing 2346# directory). 2347if ( 2348 am_has_slept=no 2349 for am_try in 1 2; do 2350 echo "timestamp, slept: $am_has_slept" > conftest.file 2351 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2352 if test "$*" = "X"; then 2353 # -L didn't work. 2354 set X `ls -t "$srcdir/configure" conftest.file` 2355 fi 2356 if test "$*" != "X $srcdir/configure conftest.file" \ 2357 && test "$*" != "X conftest.file $srcdir/configure"; then 2358 2359 # If neither matched, then we have a broken ls. This can happen 2360 # if, for instance, CONFIG_SHELL is bash and it inherits a 2361 # broken ls alias from the environment. This has actually 2362 # happened. Such a system could not be considered "sane". 2363 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2364 alias in your environment" "$LINENO" 5 2365 fi 2366 if test "$2" = conftest.file || test $am_try -eq 2; then 2367 break 2368 fi 2369 # Just in case. 2370 sleep 1 2371 am_has_slept=yes 2372 done 2373 test "$2" = conftest.file 2374 ) 2375then 2376 # Ok. 2377 : 2378else 2379 as_fn_error $? "newly created file is older than distributed files! 2380Check your system clock" "$LINENO" 5 2381fi 2382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2383$as_echo "yes" >&6; } 2384# If we didn't sleep, we still need to ensure time stamps of config.status and 2385# generated files are strictly newer. 2386am_sleep_pid= 2387if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2388 ( sleep 1 ) & 2389 am_sleep_pid=$! 2390fi 2391 2392rm -f conftest.file 2393 2394test "$program_prefix" != NONE && 2395 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2396# Use a double $ so make ignores it. 2397test "$program_suffix" != NONE && 2398 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2399# Double any \ or $. 2400# By default was `s,x,x', remove it if useless. 2401ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2402program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2403 2404# expand $ac_aux_dir to an absolute path 2405am_aux_dir=`cd $ac_aux_dir && pwd` 2406 2407if test x"${MISSING+set}" != xset; then 2408 case $am_aux_dir in 2409 *\ * | *\ *) 2410 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2411 *) 2412 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2413 esac 2414fi 2415# Use eval to expand $SHELL 2416if eval "$MISSING --is-lightweight"; then 2417 am_missing_run="$MISSING " 2418else 2419 am_missing_run= 2420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2421$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2422fi 2423 2424if test x"${install_sh}" != xset; then 2425 case $am_aux_dir in 2426 *\ * | *\ *) 2427 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2428 *) 2429 install_sh="\${SHELL} $am_aux_dir/install-sh" 2430 esac 2431fi 2432 2433# Installed binaries are usually stripped using 'strip' when the user 2434# run "make install-strip". However 'strip' might not be the right 2435# tool to use in cross-compilation environments, therefore Automake 2436# will honor the 'STRIP' environment variable to overrule this program. 2437if test "$cross_compiling" != no; then 2438 if test -n "$ac_tool_prefix"; then 2439 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2440set dummy ${ac_tool_prefix}strip; ac_word=$2 2441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2442$as_echo_n "checking for $ac_word... " >&6; } 2443if ${ac_cv_prog_STRIP+:} false; then : 2444 $as_echo_n "(cached) " >&6 2445else 2446 if test -n "$STRIP"; then 2447 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2448else 2449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2450for as_dir in $PATH 2451do 2452 IFS=$as_save_IFS 2453 test -z "$as_dir" && as_dir=. 2454 for ac_exec_ext in '' $ac_executable_extensions; do 2455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2456 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2458 break 2 2459 fi 2460done 2461 done 2462IFS=$as_save_IFS 2463 2464fi 2465fi 2466STRIP=$ac_cv_prog_STRIP 2467if test -n "$STRIP"; then 2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2469$as_echo "$STRIP" >&6; } 2470else 2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2472$as_echo "no" >&6; } 2473fi 2474 2475 2476fi 2477if test -z "$ac_cv_prog_STRIP"; then 2478 ac_ct_STRIP=$STRIP 2479 # Extract the first word of "strip", so it can be a program name with args. 2480set dummy strip; ac_word=$2 2481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2482$as_echo_n "checking for $ac_word... " >&6; } 2483if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2484 $as_echo_n "(cached) " >&6 2485else 2486 if test -n "$ac_ct_STRIP"; then 2487 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2488else 2489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2490for as_dir in $PATH 2491do 2492 IFS=$as_save_IFS 2493 test -z "$as_dir" && as_dir=. 2494 for ac_exec_ext in '' $ac_executable_extensions; do 2495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2496 ac_cv_prog_ac_ct_STRIP="strip" 2497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2498 break 2 2499 fi 2500done 2501 done 2502IFS=$as_save_IFS 2503 2504fi 2505fi 2506ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2507if test -n "$ac_ct_STRIP"; then 2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2509$as_echo "$ac_ct_STRIP" >&6; } 2510else 2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2512$as_echo "no" >&6; } 2513fi 2514 2515 if test "x$ac_ct_STRIP" = x; then 2516 STRIP=":" 2517 else 2518 case $cross_compiling:$ac_tool_warned in 2519yes:) 2520{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2521$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2522ac_tool_warned=yes ;; 2523esac 2524 STRIP=$ac_ct_STRIP 2525 fi 2526else 2527 STRIP="$ac_cv_prog_STRIP" 2528fi 2529 2530fi 2531INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2532 2533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2534$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2535if test -z "$MKDIR_P"; then 2536 if ${ac_cv_path_mkdir+:} false; then : 2537 $as_echo_n "(cached) " >&6 2538else 2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2540for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2541do 2542 IFS=$as_save_IFS 2543 test -z "$as_dir" && as_dir=. 2544 for ac_prog in mkdir gmkdir; do 2545 for ac_exec_ext in '' $ac_executable_extensions; do 2546 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2547 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2548 'mkdir (GNU coreutils) '* | \ 2549 'mkdir (coreutils) '* | \ 2550 'mkdir (fileutils) '4.1*) 2551 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2552 break 3;; 2553 esac 2554 done 2555 done 2556 done 2557IFS=$as_save_IFS 2558 2559fi 2560 2561 test -d ./--version && rmdir ./--version 2562 if test "${ac_cv_path_mkdir+set}" = set; then 2563 MKDIR_P="$ac_cv_path_mkdir -p" 2564 else 2565 # As a last resort, use the slow shell script. Don't cache a 2566 # value for MKDIR_P within a source directory, because that will 2567 # break other packages using the cache if that directory is 2568 # removed, or if the value is a relative name. 2569 MKDIR_P="$ac_install_sh -d" 2570 fi 2571fi 2572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2573$as_echo "$MKDIR_P" >&6; } 2574 2575for ac_prog in gawk mawk nawk awk 2576do 2577 # Extract the first word of "$ac_prog", so it can be a program name with args. 2578set dummy $ac_prog; ac_word=$2 2579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2580$as_echo_n "checking for $ac_word... " >&6; } 2581if ${ac_cv_prog_AWK+:} false; then : 2582 $as_echo_n "(cached) " >&6 2583else 2584 if test -n "$AWK"; then 2585 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2586else 2587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2588for as_dir in $PATH 2589do 2590 IFS=$as_save_IFS 2591 test -z "$as_dir" && as_dir=. 2592 for ac_exec_ext in '' $ac_executable_extensions; do 2593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2594 ac_cv_prog_AWK="$ac_prog" 2595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2596 break 2 2597 fi 2598done 2599 done 2600IFS=$as_save_IFS 2601 2602fi 2603fi 2604AWK=$ac_cv_prog_AWK 2605if test -n "$AWK"; then 2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2607$as_echo "$AWK" >&6; } 2608else 2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2610$as_echo "no" >&6; } 2611fi 2612 2613 2614 test -n "$AWK" && break 2615done 2616 2617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2618$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2619set x ${MAKE-make} 2620ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2621if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2622 $as_echo_n "(cached) " >&6 2623else 2624 cat >conftest.make <<\_ACEOF 2625SHELL = /bin/sh 2626all: 2627 @echo '@@@%%%=$(MAKE)=@@@%%%' 2628_ACEOF 2629# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2630case `${MAKE-make} -f conftest.make 2>/dev/null` in 2631 *@@@%%%=?*=@@@%%%*) 2632 eval ac_cv_prog_make_${ac_make}_set=yes;; 2633 *) 2634 eval ac_cv_prog_make_${ac_make}_set=no;; 2635esac 2636rm -f conftest.make 2637fi 2638if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2640$as_echo "yes" >&6; } 2641 SET_MAKE= 2642else 2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2644$as_echo "no" >&6; } 2645 SET_MAKE="MAKE=${MAKE-make}" 2646fi 2647 2648rm -rf .tst 2>/dev/null 2649mkdir .tst 2>/dev/null 2650if test -d .tst; then 2651 am__leading_dot=. 2652else 2653 am__leading_dot=_ 2654fi 2655rmdir .tst 2>/dev/null 2656 2657# Check whether --enable-silent-rules was given. 2658if test "${enable_silent_rules+set}" = set; then : 2659 enableval=$enable_silent_rules; 2660fi 2661 2662case $enable_silent_rules in # ((( 2663 yes) AM_DEFAULT_VERBOSITY=0;; 2664 no) AM_DEFAULT_VERBOSITY=1;; 2665 *) AM_DEFAULT_VERBOSITY=1;; 2666esac 2667am_make=${MAKE-make} 2668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2669$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2670if ${am_cv_make_support_nested_variables+:} false; then : 2671 $as_echo_n "(cached) " >&6 2672else 2673 if $as_echo 'TRUE=$(BAR$(V)) 2674BAR0=false 2675BAR1=true 2676V=1 2677am__doit: 2678 @$(TRUE) 2679.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2680 am_cv_make_support_nested_variables=yes 2681else 2682 am_cv_make_support_nested_variables=no 2683fi 2684fi 2685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2686$as_echo "$am_cv_make_support_nested_variables" >&6; } 2687if test $am_cv_make_support_nested_variables = yes; then 2688 AM_V='$(V)' 2689 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2690else 2691 AM_V=$AM_DEFAULT_VERBOSITY 2692 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2693fi 2694AM_BACKSLASH='\' 2695 2696if test "`cd $srcdir && pwd`" != "`pwd`"; then 2697 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2698 # is not polluted with repeated "-I." 2699 am__isrc=' -I$(srcdir)' 2700 # test to see if srcdir already configured 2701 if test -f $srcdir/config.status; then 2702 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2703 fi 2704fi 2705 2706# test whether we have cygpath 2707if test -z "$CYGPATH_W"; then 2708 if (cygpath --version) >/dev/null 2>/dev/null; then 2709 CYGPATH_W='cygpath -w' 2710 else 2711 CYGPATH_W=echo 2712 fi 2713fi 2714 2715 2716# Define the identity of the package. 2717 PACKAGE='libXft' 2718 VERSION='2.3.2' 2719 2720 2721cat >>confdefs.h <<_ACEOF 2722#define PACKAGE "$PACKAGE" 2723_ACEOF 2724 2725 2726cat >>confdefs.h <<_ACEOF 2727#define VERSION "$VERSION" 2728_ACEOF 2729 2730# Some tools Automake needs. 2731 2732ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2733 2734 2735AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2736 2737 2738AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2739 2740 2741AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2742 2743 2744MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2745 2746# For better backward compatibility. To be removed once Automake 1.9.x 2747# dies out for good. For more background, see: 2748# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2749# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2750mkdir_p='$(MKDIR_P)' 2751 2752# We need awk for the "check" target. The system "awk" is bad on 2753# some platforms. 2754# Always define AMTAR for backward compatibility. Yes, it's still used 2755# in the wild :-( We should find a proper way to deprecate it ... 2756AMTAR='$${TAR-tar}' 2757 2758 2759# We'll loop over all known methods to create a tar archive until one works. 2760_am_tools='gnutar pax cpio none' 2761 2762am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2763 2764 2765 2766 2767 2768 2769# POSIX will say in a future version that running "rm -f" with no argument 2770# is OK; and we want to be able to make that assumption in our Makefile 2771# recipes. So use an aggressive probe to check that the usage we want is 2772# actually supported "in the wild" to an acceptable degree. 2773# See automake bug#10828. 2774# To make any issue more visible, cause the running configure to be aborted 2775# by default if the 'rm' program in use doesn't match our expectations; the 2776# user can still override this though. 2777if rm -f && rm -fr && rm -rf; then : OK; else 2778 cat >&2 <<'END' 2779Oops! 2780 2781Your 'rm' program seems unable to run without file operands specified 2782on the command line, even when the '-f' option is present. This is contrary 2783to the behaviour of most rm programs out there, and not conforming with 2784the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2785 2786Please tell bug-automake@gnu.org about your system, including the value 2787of your $PATH and any error possibly output before this message. This 2788can help us improve future automake versions. 2789 2790END 2791 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2792 echo 'Configuration will proceed anyway, since you have set the' >&2 2793 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2794 echo >&2 2795 else 2796 cat >&2 <<'END' 2797Aborting the configuration process, to ensure you take notice of the issue. 2798 2799You can download and install GNU coreutils to get an 'rm' implementation 2800that behaves properly: <http://www.gnu.org/software/coreutils/>. 2801 2802If you want to complete the configuration process using your problematic 2803'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2804to "yes", and re-run configure. 2805 2806END 2807 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2808 fi 2809fi 2810 2811# Initialize libtool 2812case `pwd` in 2813 *\ * | *\ *) 2814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2815$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2816esac 2817 2818 2819 2820macro_version='2.4.2' 2821macro_revision='1.3337' 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835ltmain="$ac_aux_dir/ltmain.sh" 2836 2837# Make sure we can run config.sub. 2838$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2839 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2840 2841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2842$as_echo_n "checking build system type... " >&6; } 2843if ${ac_cv_build+:} false; then : 2844 $as_echo_n "(cached) " >&6 2845else 2846 ac_build_alias=$build_alias 2847test "x$ac_build_alias" = x && 2848 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2849test "x$ac_build_alias" = x && 2850 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2851ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2852 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2853 2854fi 2855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2856$as_echo "$ac_cv_build" >&6; } 2857case $ac_cv_build in 2858*-*-*) ;; 2859*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2860esac 2861build=$ac_cv_build 2862ac_save_IFS=$IFS; IFS='-' 2863set x $ac_cv_build 2864shift 2865build_cpu=$1 2866build_vendor=$2 2867shift; shift 2868# Remember, the first character of IFS is used to create $*, 2869# except with old shells: 2870build_os=$* 2871IFS=$ac_save_IFS 2872case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2873 2874 2875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2876$as_echo_n "checking host system type... " >&6; } 2877if ${ac_cv_host+:} false; then : 2878 $as_echo_n "(cached) " >&6 2879else 2880 if test "x$host_alias" = x; then 2881 ac_cv_host=$ac_cv_build 2882else 2883 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2884 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2885fi 2886 2887fi 2888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2889$as_echo "$ac_cv_host" >&6; } 2890case $ac_cv_host in 2891*-*-*) ;; 2892*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2893esac 2894host=$ac_cv_host 2895ac_save_IFS=$IFS; IFS='-' 2896set x $ac_cv_host 2897shift 2898host_cpu=$1 2899host_vendor=$2 2900shift; shift 2901# Remember, the first character of IFS is used to create $*, 2902# except with old shells: 2903host_os=$* 2904IFS=$ac_save_IFS 2905case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2906 2907 2908# Backslashify metacharacters that are still active within 2909# double-quoted strings. 2910sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 2911 2912# Same as above, but do not quote variable references. 2913double_quote_subst='s/\(["`\\]\)/\\\1/g' 2914 2915# Sed substitution to delay expansion of an escaped shell variable in a 2916# double_quote_subst'ed string. 2917delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2918 2919# Sed substitution to delay expansion of an escaped single quote. 2920delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2921 2922# Sed substitution to avoid accidental globbing in evaled expressions 2923no_glob_subst='s/\*/\\\*/g' 2924 2925ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2926ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 2927ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 2928 2929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 2930$as_echo_n "checking how to print strings... " >&6; } 2931# Test print first, because it will be a builtin if present. 2932if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 2933 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 2934 ECHO='print -r --' 2935elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 2936 ECHO='printf %s\n' 2937else 2938 # Use this function as a fallback that always works. 2939 func_fallback_echo () 2940 { 2941 eval 'cat <<_LTECHO_EOF 2942$1 2943_LTECHO_EOF' 2944 } 2945 ECHO='func_fallback_echo' 2946fi 2947 2948# func_echo_all arg... 2949# Invoke $ECHO with all args, space-separated. 2950func_echo_all () 2951{ 2952 $ECHO "" 2953} 2954 2955case "$ECHO" in 2956 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 2957$as_echo "printf" >&6; } ;; 2958 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 2959$as_echo "print -r" >&6; } ;; 2960 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 2961$as_echo "cat" >&6; } ;; 2962esac 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977DEPDIR="${am__leading_dot}deps" 2978 2979ac_config_commands="$ac_config_commands depfiles" 2980 2981 2982am_make=${MAKE-make} 2983cat > confinc << 'END' 2984am__doit: 2985 @echo this is the am__doit target 2986.PHONY: am__doit 2987END 2988# If we don't find an include directive, just comment out the code. 2989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2990$as_echo_n "checking for style of include used by $am_make... " >&6; } 2991am__include="#" 2992am__quote= 2993_am_result=none 2994# First try GNU make style include. 2995echo "include confinc" > confmf 2996# Ignore all kinds of additional output from 'make'. 2997case `$am_make -s -f confmf 2> /dev/null` in #( 2998*the\ am__doit\ target*) 2999 am__include=include 3000 am__quote= 3001 _am_result=GNU 3002 ;; 3003esac 3004# Now try BSD make style include. 3005if test "$am__include" = "#"; then 3006 echo '.include "confinc"' > confmf 3007 case `$am_make -s -f confmf 2> /dev/null` in #( 3008 *the\ am__doit\ target*) 3009 am__include=.include 3010 am__quote="\"" 3011 _am_result=BSD 3012 ;; 3013 esac 3014fi 3015 3016 3017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3018$as_echo "$_am_result" >&6; } 3019rm -f confinc confmf 3020 3021# Check whether --enable-dependency-tracking was given. 3022if test "${enable_dependency_tracking+set}" = set; then : 3023 enableval=$enable_dependency_tracking; 3024fi 3025 3026if test "x$enable_dependency_tracking" != xno; then 3027 am_depcomp="$ac_aux_dir/depcomp" 3028 AMDEPBACKSLASH='\' 3029 am__nodep='_no' 3030fi 3031 if test "x$enable_dependency_tracking" != xno; then 3032 AMDEP_TRUE= 3033 AMDEP_FALSE='#' 3034else 3035 AMDEP_TRUE='#' 3036 AMDEP_FALSE= 3037fi 3038 3039 3040ac_ext=c 3041ac_cpp='$CPP $CPPFLAGS' 3042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3044ac_compiler_gnu=$ac_cv_c_compiler_gnu 3045if test -n "$ac_tool_prefix"; then 3046 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3047set dummy ${ac_tool_prefix}gcc; ac_word=$2 3048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3049$as_echo_n "checking for $ac_word... " >&6; } 3050if ${ac_cv_prog_CC+:} false; then : 3051 $as_echo_n "(cached) " >&6 3052else 3053 if test -n "$CC"; then 3054 ac_cv_prog_CC="$CC" # Let the user override the test. 3055else 3056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3057for as_dir in $PATH 3058do 3059 IFS=$as_save_IFS 3060 test -z "$as_dir" && as_dir=. 3061 for ac_exec_ext in '' $ac_executable_extensions; do 3062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3063 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3065 break 2 3066 fi 3067done 3068 done 3069IFS=$as_save_IFS 3070 3071fi 3072fi 3073CC=$ac_cv_prog_CC 3074if test -n "$CC"; then 3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3076$as_echo "$CC" >&6; } 3077else 3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3079$as_echo "no" >&6; } 3080fi 3081 3082 3083fi 3084if test -z "$ac_cv_prog_CC"; then 3085 ac_ct_CC=$CC 3086 # Extract the first word of "gcc", so it can be a program name with args. 3087set dummy gcc; ac_word=$2 3088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3089$as_echo_n "checking for $ac_word... " >&6; } 3090if ${ac_cv_prog_ac_ct_CC+:} false; then : 3091 $as_echo_n "(cached) " >&6 3092else 3093 if test -n "$ac_ct_CC"; then 3094 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3095else 3096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3097for as_dir in $PATH 3098do 3099 IFS=$as_save_IFS 3100 test -z "$as_dir" && as_dir=. 3101 for ac_exec_ext in '' $ac_executable_extensions; do 3102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3103 ac_cv_prog_ac_ct_CC="gcc" 3104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3105 break 2 3106 fi 3107done 3108 done 3109IFS=$as_save_IFS 3110 3111fi 3112fi 3113ac_ct_CC=$ac_cv_prog_ac_ct_CC 3114if test -n "$ac_ct_CC"; then 3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3116$as_echo "$ac_ct_CC" >&6; } 3117else 3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3119$as_echo "no" >&6; } 3120fi 3121 3122 if test "x$ac_ct_CC" = x; then 3123 CC="" 3124 else 3125 case $cross_compiling:$ac_tool_warned in 3126yes:) 3127{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3128$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3129ac_tool_warned=yes ;; 3130esac 3131 CC=$ac_ct_CC 3132 fi 3133else 3134 CC="$ac_cv_prog_CC" 3135fi 3136 3137if test -z "$CC"; then 3138 if test -n "$ac_tool_prefix"; then 3139 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3140set dummy ${ac_tool_prefix}cc; ac_word=$2 3141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3142$as_echo_n "checking for $ac_word... " >&6; } 3143if ${ac_cv_prog_CC+:} false; then : 3144 $as_echo_n "(cached) " >&6 3145else 3146 if test -n "$CC"; then 3147 ac_cv_prog_CC="$CC" # Let the user override the test. 3148else 3149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3150for as_dir in $PATH 3151do 3152 IFS=$as_save_IFS 3153 test -z "$as_dir" && as_dir=. 3154 for ac_exec_ext in '' $ac_executable_extensions; do 3155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3156 ac_cv_prog_CC="${ac_tool_prefix}cc" 3157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3158 break 2 3159 fi 3160done 3161 done 3162IFS=$as_save_IFS 3163 3164fi 3165fi 3166CC=$ac_cv_prog_CC 3167if test -n "$CC"; then 3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3169$as_echo "$CC" >&6; } 3170else 3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3172$as_echo "no" >&6; } 3173fi 3174 3175 3176 fi 3177fi 3178if test -z "$CC"; then 3179 # Extract the first word of "cc", so it can be a program name with args. 3180set dummy cc; ac_word=$2 3181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3182$as_echo_n "checking for $ac_word... " >&6; } 3183if ${ac_cv_prog_CC+:} false; then : 3184 $as_echo_n "(cached) " >&6 3185else 3186 if test -n "$CC"; then 3187 ac_cv_prog_CC="$CC" # Let the user override the test. 3188else 3189 ac_prog_rejected=no 3190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3191for as_dir in $PATH 3192do 3193 IFS=$as_save_IFS 3194 test -z "$as_dir" && as_dir=. 3195 for ac_exec_ext in '' $ac_executable_extensions; do 3196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3197 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3198 ac_prog_rejected=yes 3199 continue 3200 fi 3201 ac_cv_prog_CC="cc" 3202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3203 break 2 3204 fi 3205done 3206 done 3207IFS=$as_save_IFS 3208 3209if test $ac_prog_rejected = yes; then 3210 # We found a bogon in the path, so make sure we never use it. 3211 set dummy $ac_cv_prog_CC 3212 shift 3213 if test $# != 0; then 3214 # We chose a different compiler from the bogus one. 3215 # However, it has the same basename, so the bogon will be chosen 3216 # first if we set CC to just the basename; use the full file name. 3217 shift 3218 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3219 fi 3220fi 3221fi 3222fi 3223CC=$ac_cv_prog_CC 3224if test -n "$CC"; then 3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3226$as_echo "$CC" >&6; } 3227else 3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3229$as_echo "no" >&6; } 3230fi 3231 3232 3233fi 3234if test -z "$CC"; then 3235 if test -n "$ac_tool_prefix"; then 3236 for ac_prog in cl.exe 3237 do 3238 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3239set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3241$as_echo_n "checking for $ac_word... " >&6; } 3242if ${ac_cv_prog_CC+:} false; then : 3243 $as_echo_n "(cached) " >&6 3244else 3245 if test -n "$CC"; then 3246 ac_cv_prog_CC="$CC" # Let the user override the test. 3247else 3248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3249for as_dir in $PATH 3250do 3251 IFS=$as_save_IFS 3252 test -z "$as_dir" && as_dir=. 3253 for ac_exec_ext in '' $ac_executable_extensions; do 3254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3255 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3257 break 2 3258 fi 3259done 3260 done 3261IFS=$as_save_IFS 3262 3263fi 3264fi 3265CC=$ac_cv_prog_CC 3266if test -n "$CC"; then 3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3268$as_echo "$CC" >&6; } 3269else 3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3271$as_echo "no" >&6; } 3272fi 3273 3274 3275 test -n "$CC" && break 3276 done 3277fi 3278if test -z "$CC"; then 3279 ac_ct_CC=$CC 3280 for ac_prog in cl.exe 3281do 3282 # Extract the first word of "$ac_prog", so it can be a program name with args. 3283set dummy $ac_prog; ac_word=$2 3284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3285$as_echo_n "checking for $ac_word... " >&6; } 3286if ${ac_cv_prog_ac_ct_CC+:} false; then : 3287 $as_echo_n "(cached) " >&6 3288else 3289 if test -n "$ac_ct_CC"; then 3290 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3291else 3292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3293for as_dir in $PATH 3294do 3295 IFS=$as_save_IFS 3296 test -z "$as_dir" && as_dir=. 3297 for ac_exec_ext in '' $ac_executable_extensions; do 3298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3299 ac_cv_prog_ac_ct_CC="$ac_prog" 3300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3301 break 2 3302 fi 3303done 3304 done 3305IFS=$as_save_IFS 3306 3307fi 3308fi 3309ac_ct_CC=$ac_cv_prog_ac_ct_CC 3310if test -n "$ac_ct_CC"; then 3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3312$as_echo "$ac_ct_CC" >&6; } 3313else 3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3315$as_echo "no" >&6; } 3316fi 3317 3318 3319 test -n "$ac_ct_CC" && break 3320done 3321 3322 if test "x$ac_ct_CC" = x; then 3323 CC="" 3324 else 3325 case $cross_compiling:$ac_tool_warned in 3326yes:) 3327{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3328$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3329ac_tool_warned=yes ;; 3330esac 3331 CC=$ac_ct_CC 3332 fi 3333fi 3334 3335fi 3336 3337 3338test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3339$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3340as_fn_error $? "no acceptable C compiler found in \$PATH 3341See \`config.log' for more details" "$LINENO" 5; } 3342 3343# Provide some information about the compiler. 3344$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3345set X $ac_compile 3346ac_compiler=$2 3347for ac_option in --version -v -V -qversion; do 3348 { { ac_try="$ac_compiler $ac_option >&5" 3349case "(($ac_try" in 3350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3351 *) ac_try_echo=$ac_try;; 3352esac 3353eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3354$as_echo "$ac_try_echo"; } >&5 3355 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3356 ac_status=$? 3357 if test -s conftest.err; then 3358 sed '10a\ 3359... rest of stderr output deleted ... 3360 10q' conftest.err >conftest.er1 3361 cat conftest.er1 >&5 3362 fi 3363 rm -f conftest.er1 conftest.err 3364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3365 test $ac_status = 0; } 3366done 3367 3368cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3369/* end confdefs.h. */ 3370 3371int 3372main () 3373{ 3374 3375 ; 3376 return 0; 3377} 3378_ACEOF 3379ac_clean_files_save=$ac_clean_files 3380ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3381# Try to create an executable without -o first, disregard a.out. 3382# It will help us diagnose broken compilers, and finding out an intuition 3383# of exeext. 3384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3385$as_echo_n "checking whether the C compiler works... " >&6; } 3386ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3387 3388# The possible output files: 3389ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3390 3391ac_rmfiles= 3392for ac_file in $ac_files 3393do 3394 case $ac_file in 3395 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3396 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3397 esac 3398done 3399rm -f $ac_rmfiles 3400 3401if { { ac_try="$ac_link_default" 3402case "(($ac_try" in 3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3404 *) ac_try_echo=$ac_try;; 3405esac 3406eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3407$as_echo "$ac_try_echo"; } >&5 3408 (eval "$ac_link_default") 2>&5 3409 ac_status=$? 3410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3411 test $ac_status = 0; }; then : 3412 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3413# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3414# in a Makefile. We should not override ac_cv_exeext if it was cached, 3415# so that the user can short-circuit this test for compilers unknown to 3416# Autoconf. 3417for ac_file in $ac_files '' 3418do 3419 test -f "$ac_file" || continue 3420 case $ac_file in 3421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3422 ;; 3423 [ab].out ) 3424 # We found the default executable, but exeext='' is most 3425 # certainly right. 3426 break;; 3427 *.* ) 3428 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3429 then :; else 3430 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3431 fi 3432 # We set ac_cv_exeext here because the later test for it is not 3433 # safe: cross compilers may not add the suffix if given an `-o' 3434 # argument, so we may need to know it at that point already. 3435 # Even if this section looks crufty: it has the advantage of 3436 # actually working. 3437 break;; 3438 * ) 3439 break;; 3440 esac 3441done 3442test "$ac_cv_exeext" = no && ac_cv_exeext= 3443 3444else 3445 ac_file='' 3446fi 3447if test -z "$ac_file"; then : 3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3449$as_echo "no" >&6; } 3450$as_echo "$as_me: failed program was:" >&5 3451sed 's/^/| /' conftest.$ac_ext >&5 3452 3453{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3454$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3455as_fn_error 77 "C compiler cannot create executables 3456See \`config.log' for more details" "$LINENO" 5; } 3457else 3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3459$as_echo "yes" >&6; } 3460fi 3461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3462$as_echo_n "checking for C compiler default output file name... " >&6; } 3463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3464$as_echo "$ac_file" >&6; } 3465ac_exeext=$ac_cv_exeext 3466 3467rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3468ac_clean_files=$ac_clean_files_save 3469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3470$as_echo_n "checking for suffix of executables... " >&6; } 3471if { { ac_try="$ac_link" 3472case "(($ac_try" in 3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3474 *) ac_try_echo=$ac_try;; 3475esac 3476eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3477$as_echo "$ac_try_echo"; } >&5 3478 (eval "$ac_link") 2>&5 3479 ac_status=$? 3480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3481 test $ac_status = 0; }; then : 3482 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3483# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3484# work properly (i.e., refer to `conftest.exe'), while it won't with 3485# `rm'. 3486for ac_file in conftest.exe conftest conftest.*; do 3487 test -f "$ac_file" || continue 3488 case $ac_file in 3489 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3490 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3491 break;; 3492 * ) break;; 3493 esac 3494done 3495else 3496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3497$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3498as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3499See \`config.log' for more details" "$LINENO" 5; } 3500fi 3501rm -f conftest conftest$ac_cv_exeext 3502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3503$as_echo "$ac_cv_exeext" >&6; } 3504 3505rm -f conftest.$ac_ext 3506EXEEXT=$ac_cv_exeext 3507ac_exeext=$EXEEXT 3508cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3509/* end confdefs.h. */ 3510#include <stdio.h> 3511int 3512main () 3513{ 3514FILE *f = fopen ("conftest.out", "w"); 3515 return ferror (f) || fclose (f) != 0; 3516 3517 ; 3518 return 0; 3519} 3520_ACEOF 3521ac_clean_files="$ac_clean_files conftest.out" 3522# Check that the compiler produces executables we can run. If not, either 3523# the compiler is broken, or we cross compile. 3524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3525$as_echo_n "checking whether we are cross compiling... " >&6; } 3526if test "$cross_compiling" != yes; then 3527 { { ac_try="$ac_link" 3528case "(($ac_try" in 3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3530 *) ac_try_echo=$ac_try;; 3531esac 3532eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3533$as_echo "$ac_try_echo"; } >&5 3534 (eval "$ac_link") 2>&5 3535 ac_status=$? 3536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3537 test $ac_status = 0; } 3538 if { ac_try='./conftest$ac_cv_exeext' 3539 { { case "(($ac_try" in 3540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3541 *) ac_try_echo=$ac_try;; 3542esac 3543eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3544$as_echo "$ac_try_echo"; } >&5 3545 (eval "$ac_try") 2>&5 3546 ac_status=$? 3547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3548 test $ac_status = 0; }; }; then 3549 cross_compiling=no 3550 else 3551 if test "$cross_compiling" = maybe; then 3552 cross_compiling=yes 3553 else 3554 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3555$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3556as_fn_error $? "cannot run C compiled programs. 3557If you meant to cross compile, use \`--host'. 3558See \`config.log' for more details" "$LINENO" 5; } 3559 fi 3560 fi 3561fi 3562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3563$as_echo "$cross_compiling" >&6; } 3564 3565rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3566ac_clean_files=$ac_clean_files_save 3567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3568$as_echo_n "checking for suffix of object files... " >&6; } 3569if ${ac_cv_objext+:} false; then : 3570 $as_echo_n "(cached) " >&6 3571else 3572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3573/* end confdefs.h. */ 3574 3575int 3576main () 3577{ 3578 3579 ; 3580 return 0; 3581} 3582_ACEOF 3583rm -f conftest.o conftest.obj 3584if { { ac_try="$ac_compile" 3585case "(($ac_try" in 3586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3587 *) ac_try_echo=$ac_try;; 3588esac 3589eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3590$as_echo "$ac_try_echo"; } >&5 3591 (eval "$ac_compile") 2>&5 3592 ac_status=$? 3593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3594 test $ac_status = 0; }; then : 3595 for ac_file in conftest.o conftest.obj conftest.*; do 3596 test -f "$ac_file" || continue; 3597 case $ac_file in 3598 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3599 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3600 break;; 3601 esac 3602done 3603else 3604 $as_echo "$as_me: failed program was:" >&5 3605sed 's/^/| /' conftest.$ac_ext >&5 3606 3607{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3609as_fn_error $? "cannot compute suffix of object files: cannot compile 3610See \`config.log' for more details" "$LINENO" 5; } 3611fi 3612rm -f conftest.$ac_cv_objext conftest.$ac_ext 3613fi 3614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3615$as_echo "$ac_cv_objext" >&6; } 3616OBJEXT=$ac_cv_objext 3617ac_objext=$OBJEXT 3618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3619$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3620if ${ac_cv_c_compiler_gnu+:} false; then : 3621 $as_echo_n "(cached) " >&6 3622else 3623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3624/* end confdefs.h. */ 3625 3626int 3627main () 3628{ 3629#ifndef __GNUC__ 3630 choke me 3631#endif 3632 3633 ; 3634 return 0; 3635} 3636_ACEOF 3637if ac_fn_c_try_compile "$LINENO"; then : 3638 ac_compiler_gnu=yes 3639else 3640 ac_compiler_gnu=no 3641fi 3642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3643ac_cv_c_compiler_gnu=$ac_compiler_gnu 3644 3645fi 3646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3647$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3648if test $ac_compiler_gnu = yes; then 3649 GCC=yes 3650else 3651 GCC= 3652fi 3653ac_test_CFLAGS=${CFLAGS+set} 3654ac_save_CFLAGS=$CFLAGS 3655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3656$as_echo_n "checking whether $CC accepts -g... " >&6; } 3657if ${ac_cv_prog_cc_g+:} false; then : 3658 $as_echo_n "(cached) " >&6 3659else 3660 ac_save_c_werror_flag=$ac_c_werror_flag 3661 ac_c_werror_flag=yes 3662 ac_cv_prog_cc_g=no 3663 CFLAGS="-g" 3664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3665/* end confdefs.h. */ 3666 3667int 3668main () 3669{ 3670 3671 ; 3672 return 0; 3673} 3674_ACEOF 3675if ac_fn_c_try_compile "$LINENO"; then : 3676 ac_cv_prog_cc_g=yes 3677else 3678 CFLAGS="" 3679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3680/* end confdefs.h. */ 3681 3682int 3683main () 3684{ 3685 3686 ; 3687 return 0; 3688} 3689_ACEOF 3690if ac_fn_c_try_compile "$LINENO"; then : 3691 3692else 3693 ac_c_werror_flag=$ac_save_c_werror_flag 3694 CFLAGS="-g" 3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3696/* end confdefs.h. */ 3697 3698int 3699main () 3700{ 3701 3702 ; 3703 return 0; 3704} 3705_ACEOF 3706if ac_fn_c_try_compile "$LINENO"; then : 3707 ac_cv_prog_cc_g=yes 3708fi 3709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3710fi 3711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3712fi 3713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3714 ac_c_werror_flag=$ac_save_c_werror_flag 3715fi 3716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3717$as_echo "$ac_cv_prog_cc_g" >&6; } 3718if test "$ac_test_CFLAGS" = set; then 3719 CFLAGS=$ac_save_CFLAGS 3720elif test $ac_cv_prog_cc_g = yes; then 3721 if test "$GCC" = yes; then 3722 CFLAGS="-g -O2" 3723 else 3724 CFLAGS="-g" 3725 fi 3726else 3727 if test "$GCC" = yes; then 3728 CFLAGS="-O2" 3729 else 3730 CFLAGS= 3731 fi 3732fi 3733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3734$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3735if ${ac_cv_prog_cc_c89+:} false; then : 3736 $as_echo_n "(cached) " >&6 3737else 3738 ac_cv_prog_cc_c89=no 3739ac_save_CC=$CC 3740cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3741/* end confdefs.h. */ 3742#include <stdarg.h> 3743#include <stdio.h> 3744#include <sys/types.h> 3745#include <sys/stat.h> 3746/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3747struct buf { int x; }; 3748FILE * (*rcsopen) (struct buf *, struct stat *, int); 3749static char *e (p, i) 3750 char **p; 3751 int i; 3752{ 3753 return p[i]; 3754} 3755static char *f (char * (*g) (char **, int), char **p, ...) 3756{ 3757 char *s; 3758 va_list v; 3759 va_start (v,p); 3760 s = g (p, va_arg (v,int)); 3761 va_end (v); 3762 return s; 3763} 3764 3765/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3766 function prototypes and stuff, but not '\xHH' hex character constants. 3767 These don't provoke an error unfortunately, instead are silently treated 3768 as 'x'. The following induces an error, until -std is added to get 3769 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3770 array size at least. It's necessary to write '\x00'==0 to get something 3771 that's true only with -std. */ 3772int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3773 3774/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3775 inside strings and character constants. */ 3776#define FOO(x) 'x' 3777int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3778 3779int test (int i, double x); 3780struct s1 {int (*f) (int a);}; 3781struct s2 {int (*f) (double a);}; 3782int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3783int argc; 3784char **argv; 3785int 3786main () 3787{ 3788return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3789 ; 3790 return 0; 3791} 3792_ACEOF 3793for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3794 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3795do 3796 CC="$ac_save_CC $ac_arg" 3797 if ac_fn_c_try_compile "$LINENO"; then : 3798 ac_cv_prog_cc_c89=$ac_arg 3799fi 3800rm -f core conftest.err conftest.$ac_objext 3801 test "x$ac_cv_prog_cc_c89" != "xno" && break 3802done 3803rm -f conftest.$ac_ext 3804CC=$ac_save_CC 3805 3806fi 3807# AC_CACHE_VAL 3808case "x$ac_cv_prog_cc_c89" in 3809 x) 3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3811$as_echo "none needed" >&6; } ;; 3812 xno) 3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3814$as_echo "unsupported" >&6; } ;; 3815 *) 3816 CC="$CC $ac_cv_prog_cc_c89" 3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3818$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3819esac 3820if test "x$ac_cv_prog_cc_c89" != xno; then : 3821 3822fi 3823 3824ac_ext=c 3825ac_cpp='$CPP $CPPFLAGS' 3826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3828ac_compiler_gnu=$ac_cv_c_compiler_gnu 3829 3830ac_ext=c 3831ac_cpp='$CPP $CPPFLAGS' 3832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3834ac_compiler_gnu=$ac_cv_c_compiler_gnu 3835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3836$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3837if ${am_cv_prog_cc_c_o+:} false; then : 3838 $as_echo_n "(cached) " >&6 3839else 3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3841/* end confdefs.h. */ 3842 3843int 3844main () 3845{ 3846 3847 ; 3848 return 0; 3849} 3850_ACEOF 3851 # Make sure it works both with $CC and with simple cc. 3852 # Following AC_PROG_CC_C_O, we do the test twice because some 3853 # compilers refuse to overwrite an existing .o file with -o, 3854 # though they will create one. 3855 am_cv_prog_cc_c_o=yes 3856 for am_i in 1 2; do 3857 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3858 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3859 ac_status=$? 3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3861 (exit $ac_status); } \ 3862 && test -f conftest2.$ac_objext; then 3863 : OK 3864 else 3865 am_cv_prog_cc_c_o=no 3866 break 3867 fi 3868 done 3869 rm -f core conftest* 3870 unset am_i 3871fi 3872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3873$as_echo "$am_cv_prog_cc_c_o" >&6; } 3874if test "$am_cv_prog_cc_c_o" != yes; then 3875 # Losing compiler, so override with the script. 3876 # FIXME: It is wrong to rewrite CC. 3877 # But if we don't then we get into trouble of one sort or another. 3878 # A longer-term fix would be to have automake use am__CC in this case, 3879 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3880 CC="$am_aux_dir/compile $CC" 3881fi 3882ac_ext=c 3883ac_cpp='$CPP $CPPFLAGS' 3884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3886ac_compiler_gnu=$ac_cv_c_compiler_gnu 3887 3888 3889depcc="$CC" am_compiler_list= 3890 3891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3892$as_echo_n "checking dependency style of $depcc... " >&6; } 3893if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3894 $as_echo_n "(cached) " >&6 3895else 3896 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3897 # We make a subdir and do the tests there. Otherwise we can end up 3898 # making bogus files that we don't know about and never remove. For 3899 # instance it was reported that on HP-UX the gcc test will end up 3900 # making a dummy file named 'D' -- because '-MD' means "put the output 3901 # in D". 3902 rm -rf conftest.dir 3903 mkdir conftest.dir 3904 # Copy depcomp to subdir because otherwise we won't find it if we're 3905 # using a relative directory. 3906 cp "$am_depcomp" conftest.dir 3907 cd conftest.dir 3908 # We will build objects and dependencies in a subdirectory because 3909 # it helps to detect inapplicable dependency modes. For instance 3910 # both Tru64's cc and ICC support -MD to output dependencies as a 3911 # side effect of compilation, but ICC will put the dependencies in 3912 # the current directory while Tru64 will put them in the object 3913 # directory. 3914 mkdir sub 3915 3916 am_cv_CC_dependencies_compiler_type=none 3917 if test "$am_compiler_list" = ""; then 3918 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3919 fi 3920 am__universal=false 3921 case " $depcc " in #( 3922 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3923 esac 3924 3925 for depmode in $am_compiler_list; do 3926 # Setup a source with many dependencies, because some compilers 3927 # like to wrap large dependency lists on column 80 (with \), and 3928 # we should not choose a depcomp mode which is confused by this. 3929 # 3930 # We need to recreate these files for each test, as the compiler may 3931 # overwrite some of them when testing with obscure command lines. 3932 # This happens at least with the AIX C compiler. 3933 : > sub/conftest.c 3934 for i in 1 2 3 4 5 6; do 3935 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3936 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3937 # Solaris 10 /bin/sh. 3938 echo '/* dummy */' > sub/conftst$i.h 3939 done 3940 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3941 3942 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3943 # mode. It turns out that the SunPro C++ compiler does not properly 3944 # handle '-M -o', and we need to detect this. Also, some Intel 3945 # versions had trouble with output in subdirs. 3946 am__obj=sub/conftest.${OBJEXT-o} 3947 am__minus_obj="-o $am__obj" 3948 case $depmode in 3949 gcc) 3950 # This depmode causes a compiler race in universal mode. 3951 test "$am__universal" = false || continue 3952 ;; 3953 nosideeffect) 3954 # After this tag, mechanisms are not by side-effect, so they'll 3955 # only be used when explicitly requested. 3956 if test "x$enable_dependency_tracking" = xyes; then 3957 continue 3958 else 3959 break 3960 fi 3961 ;; 3962 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3963 # This compiler won't grok '-c -o', but also, the minuso test has 3964 # not run yet. These depmodes are late enough in the game, and 3965 # so weak that their functioning should not be impacted. 3966 am__obj=conftest.${OBJEXT-o} 3967 am__minus_obj= 3968 ;; 3969 none) break ;; 3970 esac 3971 if depmode=$depmode \ 3972 source=sub/conftest.c object=$am__obj \ 3973 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3974 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3975 >/dev/null 2>conftest.err && 3976 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3977 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3978 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3979 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3980 # icc doesn't choke on unknown options, it will just issue warnings 3981 # or remarks (even with -Werror). So we grep stderr for any message 3982 # that says an option was ignored or not supported. 3983 # When given -MP, icc 7.0 and 7.1 complain thusly: 3984 # icc: Command line warning: ignoring option '-M'; no argument required 3985 # The diagnosis changed in icc 8.0: 3986 # icc: Command line remark: option '-MP' not supported 3987 if (grep 'ignoring option' conftest.err || 3988 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3989 am_cv_CC_dependencies_compiler_type=$depmode 3990 break 3991 fi 3992 fi 3993 done 3994 3995 cd .. 3996 rm -rf conftest.dir 3997else 3998 am_cv_CC_dependencies_compiler_type=none 3999fi 4000 4001fi 4002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4003$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4004CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4005 4006 if 4007 test "x$enable_dependency_tracking" != xno \ 4008 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4009 am__fastdepCC_TRUE= 4010 am__fastdepCC_FALSE='#' 4011else 4012 am__fastdepCC_TRUE='#' 4013 am__fastdepCC_FALSE= 4014fi 4015 4016 4017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4018$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4019if ${ac_cv_path_SED+:} false; then : 4020 $as_echo_n "(cached) " >&6 4021else 4022 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4023 for ac_i in 1 2 3 4 5 6 7; do 4024 ac_script="$ac_script$as_nl$ac_script" 4025 done 4026 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4027 { ac_script=; unset ac_script;} 4028 if test -z "$SED"; then 4029 ac_path_SED_found=false 4030 # Loop through the user's path and test for each of PROGNAME-LIST 4031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4032for as_dir in $PATH 4033do 4034 IFS=$as_save_IFS 4035 test -z "$as_dir" && as_dir=. 4036 for ac_prog in sed gsed; do 4037 for ac_exec_ext in '' $ac_executable_extensions; do 4038 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4039 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4040# Check for GNU ac_path_SED and select it if it is found. 4041 # Check for GNU $ac_path_SED 4042case `"$ac_path_SED" --version 2>&1` in 4043*GNU*) 4044 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4045*) 4046 ac_count=0 4047 $as_echo_n 0123456789 >"conftest.in" 4048 while : 4049 do 4050 cat "conftest.in" "conftest.in" >"conftest.tmp" 4051 mv "conftest.tmp" "conftest.in" 4052 cp "conftest.in" "conftest.nl" 4053 $as_echo '' >> "conftest.nl" 4054 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4055 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4056 as_fn_arith $ac_count + 1 && ac_count=$as_val 4057 if test $ac_count -gt ${ac_path_SED_max-0}; then 4058 # Best one so far, save it but keep looking for a better one 4059 ac_cv_path_SED="$ac_path_SED" 4060 ac_path_SED_max=$ac_count 4061 fi 4062 # 10*(2^10) chars as input seems more than enough 4063 test $ac_count -gt 10 && break 4064 done 4065 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4066esac 4067 4068 $ac_path_SED_found && break 3 4069 done 4070 done 4071 done 4072IFS=$as_save_IFS 4073 if test -z "$ac_cv_path_SED"; then 4074 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4075 fi 4076else 4077 ac_cv_path_SED=$SED 4078fi 4079 4080fi 4081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4082$as_echo "$ac_cv_path_SED" >&6; } 4083 SED="$ac_cv_path_SED" 4084 rm -f conftest.sed 4085 4086test -z "$SED" && SED=sed 4087Xsed="$SED -e 1s/^X//" 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4100$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4101if ${ac_cv_path_GREP+:} false; then : 4102 $as_echo_n "(cached) " >&6 4103else 4104 if test -z "$GREP"; then 4105 ac_path_GREP_found=false 4106 # Loop through the user's path and test for each of PROGNAME-LIST 4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4108for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4109do 4110 IFS=$as_save_IFS 4111 test -z "$as_dir" && as_dir=. 4112 for ac_prog in grep ggrep; do 4113 for ac_exec_ext in '' $ac_executable_extensions; do 4114 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4115 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4116# Check for GNU ac_path_GREP and select it if it is found. 4117 # Check for GNU $ac_path_GREP 4118case `"$ac_path_GREP" --version 2>&1` in 4119*GNU*) 4120 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4121*) 4122 ac_count=0 4123 $as_echo_n 0123456789 >"conftest.in" 4124 while : 4125 do 4126 cat "conftest.in" "conftest.in" >"conftest.tmp" 4127 mv "conftest.tmp" "conftest.in" 4128 cp "conftest.in" "conftest.nl" 4129 $as_echo 'GREP' >> "conftest.nl" 4130 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4131 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4132 as_fn_arith $ac_count + 1 && ac_count=$as_val 4133 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4134 # Best one so far, save it but keep looking for a better one 4135 ac_cv_path_GREP="$ac_path_GREP" 4136 ac_path_GREP_max=$ac_count 4137 fi 4138 # 10*(2^10) chars as input seems more than enough 4139 test $ac_count -gt 10 && break 4140 done 4141 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4142esac 4143 4144 $ac_path_GREP_found && break 3 4145 done 4146 done 4147 done 4148IFS=$as_save_IFS 4149 if test -z "$ac_cv_path_GREP"; then 4150 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4151 fi 4152else 4153 ac_cv_path_GREP=$GREP 4154fi 4155 4156fi 4157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4158$as_echo "$ac_cv_path_GREP" >&6; } 4159 GREP="$ac_cv_path_GREP" 4160 4161 4162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4163$as_echo_n "checking for egrep... " >&6; } 4164if ${ac_cv_path_EGREP+:} false; then : 4165 $as_echo_n "(cached) " >&6 4166else 4167 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4168 then ac_cv_path_EGREP="$GREP -E" 4169 else 4170 if test -z "$EGREP"; then 4171 ac_path_EGREP_found=false 4172 # Loop through the user's path and test for each of PROGNAME-LIST 4173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4174for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4175do 4176 IFS=$as_save_IFS 4177 test -z "$as_dir" && as_dir=. 4178 for ac_prog in egrep; do 4179 for ac_exec_ext in '' $ac_executable_extensions; do 4180 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4181 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4182# Check for GNU ac_path_EGREP and select it if it is found. 4183 # Check for GNU $ac_path_EGREP 4184case `"$ac_path_EGREP" --version 2>&1` in 4185*GNU*) 4186 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4187*) 4188 ac_count=0 4189 $as_echo_n 0123456789 >"conftest.in" 4190 while : 4191 do 4192 cat "conftest.in" "conftest.in" >"conftest.tmp" 4193 mv "conftest.tmp" "conftest.in" 4194 cp "conftest.in" "conftest.nl" 4195 $as_echo 'EGREP' >> "conftest.nl" 4196 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4197 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4198 as_fn_arith $ac_count + 1 && ac_count=$as_val 4199 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4200 # Best one so far, save it but keep looking for a better one 4201 ac_cv_path_EGREP="$ac_path_EGREP" 4202 ac_path_EGREP_max=$ac_count 4203 fi 4204 # 10*(2^10) chars as input seems more than enough 4205 test $ac_count -gt 10 && break 4206 done 4207 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4208esac 4209 4210 $ac_path_EGREP_found && break 3 4211 done 4212 done 4213 done 4214IFS=$as_save_IFS 4215 if test -z "$ac_cv_path_EGREP"; then 4216 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4217 fi 4218else 4219 ac_cv_path_EGREP=$EGREP 4220fi 4221 4222 fi 4223fi 4224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4225$as_echo "$ac_cv_path_EGREP" >&6; } 4226 EGREP="$ac_cv_path_EGREP" 4227 4228 4229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4230$as_echo_n "checking for fgrep... " >&6; } 4231if ${ac_cv_path_FGREP+:} false; then : 4232 $as_echo_n "(cached) " >&6 4233else 4234 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4235 then ac_cv_path_FGREP="$GREP -F" 4236 else 4237 if test -z "$FGREP"; then 4238 ac_path_FGREP_found=false 4239 # Loop through the user's path and test for each of PROGNAME-LIST 4240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4241for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4242do 4243 IFS=$as_save_IFS 4244 test -z "$as_dir" && as_dir=. 4245 for ac_prog in fgrep; do 4246 for ac_exec_ext in '' $ac_executable_extensions; do 4247 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4248 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4249# Check for GNU ac_path_FGREP and select it if it is found. 4250 # Check for GNU $ac_path_FGREP 4251case `"$ac_path_FGREP" --version 2>&1` in 4252*GNU*) 4253 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4254*) 4255 ac_count=0 4256 $as_echo_n 0123456789 >"conftest.in" 4257 while : 4258 do 4259 cat "conftest.in" "conftest.in" >"conftest.tmp" 4260 mv "conftest.tmp" "conftest.in" 4261 cp "conftest.in" "conftest.nl" 4262 $as_echo 'FGREP' >> "conftest.nl" 4263 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4264 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4265 as_fn_arith $ac_count + 1 && ac_count=$as_val 4266 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4267 # Best one so far, save it but keep looking for a better one 4268 ac_cv_path_FGREP="$ac_path_FGREP" 4269 ac_path_FGREP_max=$ac_count 4270 fi 4271 # 10*(2^10) chars as input seems more than enough 4272 test $ac_count -gt 10 && break 4273 done 4274 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4275esac 4276 4277 $ac_path_FGREP_found && break 3 4278 done 4279 done 4280 done 4281IFS=$as_save_IFS 4282 if test -z "$ac_cv_path_FGREP"; then 4283 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4284 fi 4285else 4286 ac_cv_path_FGREP=$FGREP 4287fi 4288 4289 fi 4290fi 4291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4292$as_echo "$ac_cv_path_FGREP" >&6; } 4293 FGREP="$ac_cv_path_FGREP" 4294 4295 4296test -z "$GREP" && GREP=grep 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316# Check whether --with-gnu-ld was given. 4317if test "${with_gnu_ld+set}" = set; then : 4318 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4319else 4320 with_gnu_ld=no 4321fi 4322 4323ac_prog=ld 4324if test "$GCC" = yes; then 4325 # Check if gcc -print-prog-name=ld gives a path. 4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4327$as_echo_n "checking for ld used by $CC... " >&6; } 4328 case $host in 4329 *-*-mingw*) 4330 # gcc leaves a trailing carriage return which upsets mingw 4331 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4332 *) 4333 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4334 esac 4335 case $ac_prog in 4336 # Accept absolute paths. 4337 [\\/]* | ?:[\\/]*) 4338 re_direlt='/[^/][^/]*/\.\./' 4339 # Canonicalize the pathname of ld 4340 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4341 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4342 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4343 done 4344 test -z "$LD" && LD="$ac_prog" 4345 ;; 4346 "") 4347 # If it fails, then pretend we aren't using GCC. 4348 ac_prog=ld 4349 ;; 4350 *) 4351 # If it is relative, then search for the first ld in PATH. 4352 with_gnu_ld=unknown 4353 ;; 4354 esac 4355elif test "$with_gnu_ld" = yes; then 4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4357$as_echo_n "checking for GNU ld... " >&6; } 4358else 4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4360$as_echo_n "checking for non-GNU ld... " >&6; } 4361fi 4362if ${lt_cv_path_LD+:} false; then : 4363 $as_echo_n "(cached) " >&6 4364else 4365 if test -z "$LD"; then 4366 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4367 for ac_dir in $PATH; do 4368 IFS="$lt_save_ifs" 4369 test -z "$ac_dir" && ac_dir=. 4370 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4371 lt_cv_path_LD="$ac_dir/$ac_prog" 4372 # Check to see if the program is GNU ld. I'd rather use --version, 4373 # but apparently some variants of GNU ld only accept -v. 4374 # Break only if it was the GNU/non-GNU ld that we prefer. 4375 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4376 *GNU* | *'with BFD'*) 4377 test "$with_gnu_ld" != no && break 4378 ;; 4379 *) 4380 test "$with_gnu_ld" != yes && break 4381 ;; 4382 esac 4383 fi 4384 done 4385 IFS="$lt_save_ifs" 4386else 4387 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4388fi 4389fi 4390 4391LD="$lt_cv_path_LD" 4392if test -n "$LD"; then 4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4394$as_echo "$LD" >&6; } 4395else 4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4397$as_echo "no" >&6; } 4398fi 4399test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4401$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4402if ${lt_cv_prog_gnu_ld+:} false; then : 4403 $as_echo_n "(cached) " >&6 4404else 4405 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4406case `$LD -v 2>&1 </dev/null` in 4407*GNU* | *'with BFD'*) 4408 lt_cv_prog_gnu_ld=yes 4409 ;; 4410*) 4411 lt_cv_prog_gnu_ld=no 4412 ;; 4413esac 4414fi 4415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4416$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4417with_gnu_ld=$lt_cv_prog_gnu_ld 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4428$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4429if ${lt_cv_path_NM+:} false; then : 4430 $as_echo_n "(cached) " >&6 4431else 4432 if test -n "$NM"; then 4433 # Let the user override the test. 4434 lt_cv_path_NM="$NM" 4435else 4436 lt_nm_to_check="${ac_tool_prefix}nm" 4437 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4438 lt_nm_to_check="$lt_nm_to_check nm" 4439 fi 4440 for lt_tmp_nm in $lt_nm_to_check; do 4441 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4442 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4443 IFS="$lt_save_ifs" 4444 test -z "$ac_dir" && ac_dir=. 4445 tmp_nm="$ac_dir/$lt_tmp_nm" 4446 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4447 # Check to see if the nm accepts a BSD-compat flag. 4448 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4449 # nm: unknown option "B" ignored 4450 # Tru64's nm complains that /dev/null is an invalid object file 4451 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4452 */dev/null* | *'Invalid file or object type'*) 4453 lt_cv_path_NM="$tmp_nm -B" 4454 break 4455 ;; 4456 *) 4457 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4458 */dev/null*) 4459 lt_cv_path_NM="$tmp_nm -p" 4460 break 4461 ;; 4462 *) 4463 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4464 continue # so that we can try to find one that supports BSD flags 4465 ;; 4466 esac 4467 ;; 4468 esac 4469 fi 4470 done 4471 IFS="$lt_save_ifs" 4472 done 4473 : ${lt_cv_path_NM=no} 4474fi 4475fi 4476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4477$as_echo "$lt_cv_path_NM" >&6; } 4478if test "$lt_cv_path_NM" != "no"; then 4479 NM="$lt_cv_path_NM" 4480else 4481 # Didn't find any BSD compatible name lister, look for dumpbin. 4482 if test -n "$DUMPBIN"; then : 4483 # Let the user override the test. 4484 else 4485 if test -n "$ac_tool_prefix"; then 4486 for ac_prog in dumpbin "link -dump" 4487 do 4488 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4489set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4491$as_echo_n "checking for $ac_word... " >&6; } 4492if ${ac_cv_prog_DUMPBIN+:} false; then : 4493 $as_echo_n "(cached) " >&6 4494else 4495 if test -n "$DUMPBIN"; then 4496 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4497else 4498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4499for as_dir in $PATH 4500do 4501 IFS=$as_save_IFS 4502 test -z "$as_dir" && as_dir=. 4503 for ac_exec_ext in '' $ac_executable_extensions; do 4504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4505 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4507 break 2 4508 fi 4509done 4510 done 4511IFS=$as_save_IFS 4512 4513fi 4514fi 4515DUMPBIN=$ac_cv_prog_DUMPBIN 4516if test -n "$DUMPBIN"; then 4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4518$as_echo "$DUMPBIN" >&6; } 4519else 4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4521$as_echo "no" >&6; } 4522fi 4523 4524 4525 test -n "$DUMPBIN" && break 4526 done 4527fi 4528if test -z "$DUMPBIN"; then 4529 ac_ct_DUMPBIN=$DUMPBIN 4530 for ac_prog in dumpbin "link -dump" 4531do 4532 # Extract the first word of "$ac_prog", so it can be a program name with args. 4533set dummy $ac_prog; ac_word=$2 4534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4535$as_echo_n "checking for $ac_word... " >&6; } 4536if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4537 $as_echo_n "(cached) " >&6 4538else 4539 if test -n "$ac_ct_DUMPBIN"; then 4540 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4541else 4542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4543for as_dir in $PATH 4544do 4545 IFS=$as_save_IFS 4546 test -z "$as_dir" && as_dir=. 4547 for ac_exec_ext in '' $ac_executable_extensions; do 4548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4549 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4551 break 2 4552 fi 4553done 4554 done 4555IFS=$as_save_IFS 4556 4557fi 4558fi 4559ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4560if test -n "$ac_ct_DUMPBIN"; then 4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4562$as_echo "$ac_ct_DUMPBIN" >&6; } 4563else 4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4565$as_echo "no" >&6; } 4566fi 4567 4568 4569 test -n "$ac_ct_DUMPBIN" && break 4570done 4571 4572 if test "x$ac_ct_DUMPBIN" = x; then 4573 DUMPBIN=":" 4574 else 4575 case $cross_compiling:$ac_tool_warned in 4576yes:) 4577{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4578$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4579ac_tool_warned=yes ;; 4580esac 4581 DUMPBIN=$ac_ct_DUMPBIN 4582 fi 4583fi 4584 4585 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4586 *COFF*) 4587 DUMPBIN="$DUMPBIN -symbols" 4588 ;; 4589 *) 4590 DUMPBIN=: 4591 ;; 4592 esac 4593 fi 4594 4595 if test "$DUMPBIN" != ":"; then 4596 NM="$DUMPBIN" 4597 fi 4598fi 4599test -z "$NM" && NM=nm 4600 4601 4602 4603 4604 4605 4606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4607$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4608if ${lt_cv_nm_interface+:} false; then : 4609 $as_echo_n "(cached) " >&6 4610else 4611 lt_cv_nm_interface="BSD nm" 4612 echo "int some_variable = 0;" > conftest.$ac_ext 4613 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4614 (eval "$ac_compile" 2>conftest.err) 4615 cat conftest.err >&5 4616 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4617 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4618 cat conftest.err >&5 4619 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4620 cat conftest.out >&5 4621 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4622 lt_cv_nm_interface="MS dumpbin" 4623 fi 4624 rm -f conftest* 4625fi 4626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4627$as_echo "$lt_cv_nm_interface" >&6; } 4628 4629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4630$as_echo_n "checking whether ln -s works... " >&6; } 4631LN_S=$as_ln_s 4632if test "$LN_S" = "ln -s"; then 4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4634$as_echo "yes" >&6; } 4635else 4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4637$as_echo "no, using $LN_S" >&6; } 4638fi 4639 4640# find the maximum length of command line arguments 4641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4642$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4643if ${lt_cv_sys_max_cmd_len+:} false; then : 4644 $as_echo_n "(cached) " >&6 4645else 4646 i=0 4647 teststring="ABCD" 4648 4649 case $build_os in 4650 msdosdjgpp*) 4651 # On DJGPP, this test can blow up pretty badly due to problems in libc 4652 # (any single argument exceeding 2000 bytes causes a buffer overrun 4653 # during glob expansion). Even if it were fixed, the result of this 4654 # check would be larger than it should be. 4655 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4656 ;; 4657 4658 gnu*) 4659 # Under GNU Hurd, this test is not required because there is 4660 # no limit to the length of command line arguments. 4661 # Libtool will interpret -1 as no limit whatsoever 4662 lt_cv_sys_max_cmd_len=-1; 4663 ;; 4664 4665 cygwin* | mingw* | cegcc*) 4666 # On Win9x/ME, this test blows up -- it succeeds, but takes 4667 # about 5 minutes as the teststring grows exponentially. 4668 # Worse, since 9x/ME are not pre-emptively multitasking, 4669 # you end up with a "frozen" computer, even though with patience 4670 # the test eventually succeeds (with a max line length of 256k). 4671 # Instead, let's just punt: use the minimum linelength reported by 4672 # all of the supported platforms: 8192 (on NT/2K/XP). 4673 lt_cv_sys_max_cmd_len=8192; 4674 ;; 4675 4676 mint*) 4677 # On MiNT this can take a long time and run out of memory. 4678 lt_cv_sys_max_cmd_len=8192; 4679 ;; 4680 4681 amigaos*) 4682 # On AmigaOS with pdksh, this test takes hours, literally. 4683 # So we just punt and use a minimum line length of 8192. 4684 lt_cv_sys_max_cmd_len=8192; 4685 ;; 4686 4687 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4688 # This has been around since 386BSD, at least. Likely further. 4689 if test -x /sbin/sysctl; then 4690 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4691 elif test -x /usr/sbin/sysctl; then 4692 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4693 else 4694 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4695 fi 4696 # And add a safety zone 4697 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4698 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4699 ;; 4700 4701 interix*) 4702 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4703 lt_cv_sys_max_cmd_len=196608 4704 ;; 4705 4706 os2*) 4707 # The test takes a long time on OS/2. 4708 lt_cv_sys_max_cmd_len=8192 4709 ;; 4710 4711 osf*) 4712 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4713 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4714 # nice to cause kernel panics so lets avoid the loop below. 4715 # First set a reasonable default. 4716 lt_cv_sys_max_cmd_len=16384 4717 # 4718 if test -x /sbin/sysconfig; then 4719 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4720 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4721 esac 4722 fi 4723 ;; 4724 sco3.2v5*) 4725 lt_cv_sys_max_cmd_len=102400 4726 ;; 4727 sysv5* | sco5v6* | sysv4.2uw2*) 4728 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4729 if test -n "$kargmax"; then 4730 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4731 else 4732 lt_cv_sys_max_cmd_len=32768 4733 fi 4734 ;; 4735 *) 4736 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4737 if test -n "$lt_cv_sys_max_cmd_len"; then 4738 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4739 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4740 else 4741 # Make teststring a little bigger before we do anything with it. 4742 # a 1K string should be a reasonable start. 4743 for i in 1 2 3 4 5 6 7 8 ; do 4744 teststring=$teststring$teststring 4745 done 4746 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4747 # If test is not a shell built-in, we'll probably end up computing a 4748 # maximum length that is only half of the actual maximum length, but 4749 # we can't tell. 4750 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 4751 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4752 test $i != 17 # 1/2 MB should be enough 4753 do 4754 i=`expr $i + 1` 4755 teststring=$teststring$teststring 4756 done 4757 # Only check the string length outside the loop. 4758 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4759 teststring= 4760 # Add a significant safety factor because C++ compilers can tack on 4761 # massive amounts of additional arguments before passing them to the 4762 # linker. It appears as though 1/2 is a usable value. 4763 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4764 fi 4765 ;; 4766 esac 4767 4768fi 4769 4770if test -n $lt_cv_sys_max_cmd_len ; then 4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4772$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4773else 4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4775$as_echo "none" >&6; } 4776fi 4777max_cmd_len=$lt_cv_sys_max_cmd_len 4778 4779 4780 4781 4782 4783 4784: ${CP="cp -f"} 4785: ${MV="mv -f"} 4786: ${RM="rm -f"} 4787 4788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4789$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4790# Try some XSI features 4791xsi_shell=no 4792( _lt_dummy="a/b/c" 4793 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 4794 = c,a/b,b/c, \ 4795 && eval 'test $(( 1 + 1 )) -eq 2 \ 4796 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4797 && xsi_shell=yes 4798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4799$as_echo "$xsi_shell" >&6; } 4800 4801 4802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4803$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4804lt_shell_append=no 4805( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4806 >/dev/null 2>&1 \ 4807 && lt_shell_append=yes 4808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4809$as_echo "$lt_shell_append" >&6; } 4810 4811 4812if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4813 lt_unset=unset 4814else 4815 lt_unset=false 4816fi 4817 4818 4819 4820 4821 4822# test EBCDIC or ASCII 4823case `echo X|tr X '\101'` in 4824 A) # ASCII based system 4825 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4826 lt_SP2NL='tr \040 \012' 4827 lt_NL2SP='tr \015\012 \040\040' 4828 ;; 4829 *) # EBCDIC based system 4830 lt_SP2NL='tr \100 \n' 4831 lt_NL2SP='tr \r\n \100\100' 4832 ;; 4833esac 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4844$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4845if ${lt_cv_to_host_file_cmd+:} false; then : 4846 $as_echo_n "(cached) " >&6 4847else 4848 case $host in 4849 *-*-mingw* ) 4850 case $build in 4851 *-*-mingw* ) # actually msys 4852 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4853 ;; 4854 *-*-cygwin* ) 4855 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4856 ;; 4857 * ) # otherwise, assume *nix 4858 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4859 ;; 4860 esac 4861 ;; 4862 *-*-cygwin* ) 4863 case $build in 4864 *-*-mingw* ) # actually msys 4865 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4866 ;; 4867 *-*-cygwin* ) 4868 lt_cv_to_host_file_cmd=func_convert_file_noop 4869 ;; 4870 * ) # otherwise, assume *nix 4871 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4872 ;; 4873 esac 4874 ;; 4875 * ) # unhandled hosts (and "normal" native builds) 4876 lt_cv_to_host_file_cmd=func_convert_file_noop 4877 ;; 4878esac 4879 4880fi 4881 4882to_host_file_cmd=$lt_cv_to_host_file_cmd 4883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4884$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4885 4886 4887 4888 4889 4890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4891$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4892if ${lt_cv_to_tool_file_cmd+:} false; then : 4893 $as_echo_n "(cached) " >&6 4894else 4895 #assume ordinary cross tools, or native build. 4896lt_cv_to_tool_file_cmd=func_convert_file_noop 4897case $host in 4898 *-*-mingw* ) 4899 case $build in 4900 *-*-mingw* ) # actually msys 4901 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4902 ;; 4903 esac 4904 ;; 4905esac 4906 4907fi 4908 4909to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4911$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4912 4913 4914 4915 4916 4917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4918$as_echo_n "checking for $LD option to reload object files... " >&6; } 4919if ${lt_cv_ld_reload_flag+:} false; then : 4920 $as_echo_n "(cached) " >&6 4921else 4922 lt_cv_ld_reload_flag='-r' 4923fi 4924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4925$as_echo "$lt_cv_ld_reload_flag" >&6; } 4926reload_flag=$lt_cv_ld_reload_flag 4927case $reload_flag in 4928"" | " "*) ;; 4929*) reload_flag=" $reload_flag" ;; 4930esac 4931reload_cmds='$LD$reload_flag -o $output$reload_objs' 4932case $host_os in 4933 cygwin* | mingw* | pw32* | cegcc*) 4934 if test "$GCC" != yes; then 4935 reload_cmds=false 4936 fi 4937 ;; 4938 darwin*) 4939 if test "$GCC" = yes; then 4940 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4941 else 4942 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4943 fi 4944 ;; 4945esac 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955if test -n "$ac_tool_prefix"; then 4956 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4957set dummy ${ac_tool_prefix}objdump; ac_word=$2 4958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4959$as_echo_n "checking for $ac_word... " >&6; } 4960if ${ac_cv_prog_OBJDUMP+:} false; then : 4961 $as_echo_n "(cached) " >&6 4962else 4963 if test -n "$OBJDUMP"; then 4964 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4965else 4966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4967for as_dir in $PATH 4968do 4969 IFS=$as_save_IFS 4970 test -z "$as_dir" && as_dir=. 4971 for ac_exec_ext in '' $ac_executable_extensions; do 4972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4973 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4975 break 2 4976 fi 4977done 4978 done 4979IFS=$as_save_IFS 4980 4981fi 4982fi 4983OBJDUMP=$ac_cv_prog_OBJDUMP 4984if test -n "$OBJDUMP"; then 4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4986$as_echo "$OBJDUMP" >&6; } 4987else 4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4989$as_echo "no" >&6; } 4990fi 4991 4992 4993fi 4994if test -z "$ac_cv_prog_OBJDUMP"; then 4995 ac_ct_OBJDUMP=$OBJDUMP 4996 # Extract the first word of "objdump", so it can be a program name with args. 4997set dummy objdump; ac_word=$2 4998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4999$as_echo_n "checking for $ac_word... " >&6; } 5000if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5001 $as_echo_n "(cached) " >&6 5002else 5003 if test -n "$ac_ct_OBJDUMP"; then 5004 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5005else 5006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5007for as_dir in $PATH 5008do 5009 IFS=$as_save_IFS 5010 test -z "$as_dir" && as_dir=. 5011 for ac_exec_ext in '' $ac_executable_extensions; do 5012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5013 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5015 break 2 5016 fi 5017done 5018 done 5019IFS=$as_save_IFS 5020 5021fi 5022fi 5023ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5024if test -n "$ac_ct_OBJDUMP"; then 5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5026$as_echo "$ac_ct_OBJDUMP" >&6; } 5027else 5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5029$as_echo "no" >&6; } 5030fi 5031 5032 if test "x$ac_ct_OBJDUMP" = x; then 5033 OBJDUMP="false" 5034 else 5035 case $cross_compiling:$ac_tool_warned in 5036yes:) 5037{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5038$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5039ac_tool_warned=yes ;; 5040esac 5041 OBJDUMP=$ac_ct_OBJDUMP 5042 fi 5043else 5044 OBJDUMP="$ac_cv_prog_OBJDUMP" 5045fi 5046 5047test -z "$OBJDUMP" && OBJDUMP=objdump 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5058$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5059if ${lt_cv_deplibs_check_method+:} false; then : 5060 $as_echo_n "(cached) " >&6 5061else 5062 lt_cv_file_magic_cmd='$MAGIC_CMD' 5063lt_cv_file_magic_test_file= 5064lt_cv_deplibs_check_method='unknown' 5065# Need to set the preceding variable on all platforms that support 5066# interlibrary dependencies. 5067# 'none' -- dependencies not supported. 5068# `unknown' -- same as none, but documents that we really don't know. 5069# 'pass_all' -- all dependencies passed with no checks. 5070# 'test_compile' -- check by making test program. 5071# 'file_magic [[regex]]' -- check by looking for files in library path 5072# which responds to the $file_magic_cmd with a given extended regex. 5073# If you have `file' or equivalent on your system and you're not sure 5074# whether `pass_all' will *always* work, you probably want this one. 5075 5076case $host_os in 5077aix[4-9]*) 5078 lt_cv_deplibs_check_method=pass_all 5079 ;; 5080 5081beos*) 5082 lt_cv_deplibs_check_method=pass_all 5083 ;; 5084 5085bsdi[45]*) 5086 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5087 lt_cv_file_magic_cmd='/usr/bin/file -L' 5088 lt_cv_file_magic_test_file=/shlib/libc.so 5089 ;; 5090 5091cygwin*) 5092 # func_win32_libid is a shell function defined in ltmain.sh 5093 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5094 lt_cv_file_magic_cmd='func_win32_libid' 5095 ;; 5096 5097mingw* | pw32*) 5098 # Base MSYS/MinGW do not provide the 'file' command needed by 5099 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5100 # unless we find 'file', for example because we are cross-compiling. 5101 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5102 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5103 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5104 lt_cv_file_magic_cmd='func_win32_libid' 5105 else 5106 # Keep this pattern in sync with the one in func_win32_libid. 5107 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5108 lt_cv_file_magic_cmd='$OBJDUMP -f' 5109 fi 5110 ;; 5111 5112cegcc*) 5113 # use the weaker test based on 'objdump'. See mingw*. 5114 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5115 lt_cv_file_magic_cmd='$OBJDUMP -f' 5116 ;; 5117 5118darwin* | rhapsody*) 5119 lt_cv_deplibs_check_method=pass_all 5120 ;; 5121 5122freebsd* | dragonfly*) 5123 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5124 case $host_cpu in 5125 i*86 ) 5126 # Not sure whether the presence of OpenBSD here was a mistake. 5127 # Let's accept both of them until this is cleared up. 5128 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5129 lt_cv_file_magic_cmd=/usr/bin/file 5130 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5131 ;; 5132 esac 5133 else 5134 lt_cv_deplibs_check_method=pass_all 5135 fi 5136 ;; 5137 5138gnu*) 5139 lt_cv_deplibs_check_method=pass_all 5140 ;; 5141 5142haiku*) 5143 lt_cv_deplibs_check_method=pass_all 5144 ;; 5145 5146hpux10.20* | hpux11*) 5147 lt_cv_file_magic_cmd=/usr/bin/file 5148 case $host_cpu in 5149 ia64*) 5150 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5151 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5152 ;; 5153 hppa*64*) 5154 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]' 5155 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5156 ;; 5157 *) 5158 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5159 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5160 ;; 5161 esac 5162 ;; 5163 5164interix[3-9]*) 5165 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5166 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5167 ;; 5168 5169irix5* | irix6* | nonstopux*) 5170 case $LD in 5171 *-32|*"-32 ") libmagic=32-bit;; 5172 *-n32|*"-n32 ") libmagic=N32;; 5173 *-64|*"-64 ") libmagic=64-bit;; 5174 *) libmagic=never-match;; 5175 esac 5176 lt_cv_deplibs_check_method=pass_all 5177 ;; 5178 5179# This must be glibc/ELF. 5180linux* | k*bsd*-gnu | kopensolaris*-gnu) 5181 lt_cv_deplibs_check_method=pass_all 5182 ;; 5183 5184netbsd*) 5185 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5186 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5187 else 5188 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5189 fi 5190 ;; 5191 5192newos6*) 5193 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5194 lt_cv_file_magic_cmd=/usr/bin/file 5195 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5196 ;; 5197 5198*nto* | *qnx*) 5199 lt_cv_deplibs_check_method=pass_all 5200 ;; 5201 5202openbsd*) 5203 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5204 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5205 else 5206 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5207 fi 5208 ;; 5209 5210osf3* | osf4* | osf5*) 5211 lt_cv_deplibs_check_method=pass_all 5212 ;; 5213 5214rdos*) 5215 lt_cv_deplibs_check_method=pass_all 5216 ;; 5217 5218solaris*) 5219 lt_cv_deplibs_check_method=pass_all 5220 ;; 5221 5222sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5223 lt_cv_deplibs_check_method=pass_all 5224 ;; 5225 5226sysv4 | sysv4.3*) 5227 case $host_vendor in 5228 motorola) 5229 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]' 5230 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5231 ;; 5232 ncr) 5233 lt_cv_deplibs_check_method=pass_all 5234 ;; 5235 sequent) 5236 lt_cv_file_magic_cmd='/bin/file' 5237 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5238 ;; 5239 sni) 5240 lt_cv_file_magic_cmd='/bin/file' 5241 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5242 lt_cv_file_magic_test_file=/lib/libc.so 5243 ;; 5244 siemens) 5245 lt_cv_deplibs_check_method=pass_all 5246 ;; 5247 pc) 5248 lt_cv_deplibs_check_method=pass_all 5249 ;; 5250 esac 5251 ;; 5252 5253tpf*) 5254 lt_cv_deplibs_check_method=pass_all 5255 ;; 5256esac 5257 5258fi 5259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5260$as_echo "$lt_cv_deplibs_check_method" >&6; } 5261 5262file_magic_glob= 5263want_nocaseglob=no 5264if test "$build" = "$host"; then 5265 case $host_os in 5266 mingw* | pw32*) 5267 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5268 want_nocaseglob=yes 5269 else 5270 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5271 fi 5272 ;; 5273 esac 5274fi 5275 5276file_magic_cmd=$lt_cv_file_magic_cmd 5277deplibs_check_method=$lt_cv_deplibs_check_method 5278test -z "$deplibs_check_method" && deplibs_check_method=unknown 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301if test -n "$ac_tool_prefix"; then 5302 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5303set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5305$as_echo_n "checking for $ac_word... " >&6; } 5306if ${ac_cv_prog_DLLTOOL+:} false; then : 5307 $as_echo_n "(cached) " >&6 5308else 5309 if test -n "$DLLTOOL"; then 5310 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5311else 5312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5313for as_dir in $PATH 5314do 5315 IFS=$as_save_IFS 5316 test -z "$as_dir" && as_dir=. 5317 for ac_exec_ext in '' $ac_executable_extensions; do 5318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5319 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5321 break 2 5322 fi 5323done 5324 done 5325IFS=$as_save_IFS 5326 5327fi 5328fi 5329DLLTOOL=$ac_cv_prog_DLLTOOL 5330if test -n "$DLLTOOL"; then 5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5332$as_echo "$DLLTOOL" >&6; } 5333else 5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5335$as_echo "no" >&6; } 5336fi 5337 5338 5339fi 5340if test -z "$ac_cv_prog_DLLTOOL"; then 5341 ac_ct_DLLTOOL=$DLLTOOL 5342 # Extract the first word of "dlltool", so it can be a program name with args. 5343set dummy dlltool; ac_word=$2 5344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5345$as_echo_n "checking for $ac_word... " >&6; } 5346if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5347 $as_echo_n "(cached) " >&6 5348else 5349 if test -n "$ac_ct_DLLTOOL"; then 5350 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5351else 5352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5353for as_dir in $PATH 5354do 5355 IFS=$as_save_IFS 5356 test -z "$as_dir" && as_dir=. 5357 for ac_exec_ext in '' $ac_executable_extensions; do 5358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5359 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5361 break 2 5362 fi 5363done 5364 done 5365IFS=$as_save_IFS 5366 5367fi 5368fi 5369ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5370if test -n "$ac_ct_DLLTOOL"; then 5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5372$as_echo "$ac_ct_DLLTOOL" >&6; } 5373else 5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5375$as_echo "no" >&6; } 5376fi 5377 5378 if test "x$ac_ct_DLLTOOL" = x; then 5379 DLLTOOL="false" 5380 else 5381 case $cross_compiling:$ac_tool_warned in 5382yes:) 5383{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5384$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5385ac_tool_warned=yes ;; 5386esac 5387 DLLTOOL=$ac_ct_DLLTOOL 5388 fi 5389else 5390 DLLTOOL="$ac_cv_prog_DLLTOOL" 5391fi 5392 5393test -z "$DLLTOOL" && DLLTOOL=dlltool 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5405$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5406if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5407 $as_echo_n "(cached) " >&6 5408else 5409 lt_cv_sharedlib_from_linklib_cmd='unknown' 5410 5411case $host_os in 5412cygwin* | mingw* | pw32* | cegcc*) 5413 # two different shell functions defined in ltmain.sh 5414 # decide which to use based on capabilities of $DLLTOOL 5415 case `$DLLTOOL --help 2>&1` in 5416 *--identify-strict*) 5417 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5418 ;; 5419 *) 5420 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5421 ;; 5422 esac 5423 ;; 5424*) 5425 # fallback: assume linklib IS sharedlib 5426 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5427 ;; 5428esac 5429 5430fi 5431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5432$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5433sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5434test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5435 5436 5437 5438 5439 5440 5441 5442 5443if test -n "$ac_tool_prefix"; then 5444 for ac_prog in ar 5445 do 5446 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5447set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5449$as_echo_n "checking for $ac_word... " >&6; } 5450if ${ac_cv_prog_AR+:} false; then : 5451 $as_echo_n "(cached) " >&6 5452else 5453 if test -n "$AR"; then 5454 ac_cv_prog_AR="$AR" # Let the user override the test. 5455else 5456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5457for as_dir in $PATH 5458do 5459 IFS=$as_save_IFS 5460 test -z "$as_dir" && as_dir=. 5461 for ac_exec_ext in '' $ac_executable_extensions; do 5462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5463 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5465 break 2 5466 fi 5467done 5468 done 5469IFS=$as_save_IFS 5470 5471fi 5472fi 5473AR=$ac_cv_prog_AR 5474if test -n "$AR"; then 5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5476$as_echo "$AR" >&6; } 5477else 5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5479$as_echo "no" >&6; } 5480fi 5481 5482 5483 test -n "$AR" && break 5484 done 5485fi 5486if test -z "$AR"; then 5487 ac_ct_AR=$AR 5488 for ac_prog in ar 5489do 5490 # Extract the first word of "$ac_prog", so it can be a program name with args. 5491set dummy $ac_prog; ac_word=$2 5492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5493$as_echo_n "checking for $ac_word... " >&6; } 5494if ${ac_cv_prog_ac_ct_AR+:} false; then : 5495 $as_echo_n "(cached) " >&6 5496else 5497 if test -n "$ac_ct_AR"; then 5498 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5499else 5500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5501for as_dir in $PATH 5502do 5503 IFS=$as_save_IFS 5504 test -z "$as_dir" && as_dir=. 5505 for ac_exec_ext in '' $ac_executable_extensions; do 5506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5507 ac_cv_prog_ac_ct_AR="$ac_prog" 5508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5509 break 2 5510 fi 5511done 5512 done 5513IFS=$as_save_IFS 5514 5515fi 5516fi 5517ac_ct_AR=$ac_cv_prog_ac_ct_AR 5518if test -n "$ac_ct_AR"; then 5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5520$as_echo "$ac_ct_AR" >&6; } 5521else 5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5523$as_echo "no" >&6; } 5524fi 5525 5526 5527 test -n "$ac_ct_AR" && break 5528done 5529 5530 if test "x$ac_ct_AR" = x; then 5531 AR="false" 5532 else 5533 case $cross_compiling:$ac_tool_warned in 5534yes:) 5535{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5536$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5537ac_tool_warned=yes ;; 5538esac 5539 AR=$ac_ct_AR 5540 fi 5541fi 5542 5543: ${AR=ar} 5544: ${AR_FLAGS=cru} 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5557$as_echo_n "checking for archiver @FILE support... " >&6; } 5558if ${lt_cv_ar_at_file+:} false; then : 5559 $as_echo_n "(cached) " >&6 5560else 5561 lt_cv_ar_at_file=no 5562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5563/* end confdefs.h. */ 5564 5565int 5566main () 5567{ 5568 5569 ; 5570 return 0; 5571} 5572_ACEOF 5573if ac_fn_c_try_compile "$LINENO"; then : 5574 echo conftest.$ac_objext > conftest.lst 5575 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5576 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5577 (eval $lt_ar_try) 2>&5 5578 ac_status=$? 5579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5580 test $ac_status = 0; } 5581 if test "$ac_status" -eq 0; then 5582 # Ensure the archiver fails upon bogus file names. 5583 rm -f conftest.$ac_objext libconftest.a 5584 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5585 (eval $lt_ar_try) 2>&5 5586 ac_status=$? 5587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5588 test $ac_status = 0; } 5589 if test "$ac_status" -ne 0; then 5590 lt_cv_ar_at_file=@ 5591 fi 5592 fi 5593 rm -f conftest.* libconftest.a 5594 5595fi 5596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5597 5598fi 5599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5600$as_echo "$lt_cv_ar_at_file" >&6; } 5601 5602if test "x$lt_cv_ar_at_file" = xno; then 5603 archiver_list_spec= 5604else 5605 archiver_list_spec=$lt_cv_ar_at_file 5606fi 5607 5608 5609 5610 5611 5612 5613 5614if test -n "$ac_tool_prefix"; then 5615 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5616set dummy ${ac_tool_prefix}strip; ac_word=$2 5617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5618$as_echo_n "checking for $ac_word... " >&6; } 5619if ${ac_cv_prog_STRIP+:} false; then : 5620 $as_echo_n "(cached) " >&6 5621else 5622 if test -n "$STRIP"; then 5623 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5624else 5625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5626for as_dir in $PATH 5627do 5628 IFS=$as_save_IFS 5629 test -z "$as_dir" && as_dir=. 5630 for ac_exec_ext in '' $ac_executable_extensions; do 5631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5632 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5634 break 2 5635 fi 5636done 5637 done 5638IFS=$as_save_IFS 5639 5640fi 5641fi 5642STRIP=$ac_cv_prog_STRIP 5643if test -n "$STRIP"; then 5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5645$as_echo "$STRIP" >&6; } 5646else 5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5648$as_echo "no" >&6; } 5649fi 5650 5651 5652fi 5653if test -z "$ac_cv_prog_STRIP"; then 5654 ac_ct_STRIP=$STRIP 5655 # Extract the first word of "strip", so it can be a program name with args. 5656set dummy strip; ac_word=$2 5657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5658$as_echo_n "checking for $ac_word... " >&6; } 5659if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5660 $as_echo_n "(cached) " >&6 5661else 5662 if test -n "$ac_ct_STRIP"; then 5663 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5664else 5665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5666for as_dir in $PATH 5667do 5668 IFS=$as_save_IFS 5669 test -z "$as_dir" && as_dir=. 5670 for ac_exec_ext in '' $ac_executable_extensions; do 5671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5672 ac_cv_prog_ac_ct_STRIP="strip" 5673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5674 break 2 5675 fi 5676done 5677 done 5678IFS=$as_save_IFS 5679 5680fi 5681fi 5682ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5683if test -n "$ac_ct_STRIP"; then 5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5685$as_echo "$ac_ct_STRIP" >&6; } 5686else 5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5688$as_echo "no" >&6; } 5689fi 5690 5691 if test "x$ac_ct_STRIP" = x; then 5692 STRIP=":" 5693 else 5694 case $cross_compiling:$ac_tool_warned in 5695yes:) 5696{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5697$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5698ac_tool_warned=yes ;; 5699esac 5700 STRIP=$ac_ct_STRIP 5701 fi 5702else 5703 STRIP="$ac_cv_prog_STRIP" 5704fi 5705 5706test -z "$STRIP" && STRIP=: 5707 5708 5709 5710 5711 5712 5713if test -n "$ac_tool_prefix"; then 5714 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5715set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5717$as_echo_n "checking for $ac_word... " >&6; } 5718if ${ac_cv_prog_RANLIB+:} false; then : 5719 $as_echo_n "(cached) " >&6 5720else 5721 if test -n "$RANLIB"; then 5722 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5723else 5724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5725for as_dir in $PATH 5726do 5727 IFS=$as_save_IFS 5728 test -z "$as_dir" && as_dir=. 5729 for ac_exec_ext in '' $ac_executable_extensions; do 5730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5731 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5733 break 2 5734 fi 5735done 5736 done 5737IFS=$as_save_IFS 5738 5739fi 5740fi 5741RANLIB=$ac_cv_prog_RANLIB 5742if test -n "$RANLIB"; then 5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5744$as_echo "$RANLIB" >&6; } 5745else 5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5747$as_echo "no" >&6; } 5748fi 5749 5750 5751fi 5752if test -z "$ac_cv_prog_RANLIB"; then 5753 ac_ct_RANLIB=$RANLIB 5754 # Extract the first word of "ranlib", so it can be a program name with args. 5755set dummy ranlib; ac_word=$2 5756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5757$as_echo_n "checking for $ac_word... " >&6; } 5758if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5759 $as_echo_n "(cached) " >&6 5760else 5761 if test -n "$ac_ct_RANLIB"; then 5762 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5763else 5764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5765for as_dir in $PATH 5766do 5767 IFS=$as_save_IFS 5768 test -z "$as_dir" && as_dir=. 5769 for ac_exec_ext in '' $ac_executable_extensions; do 5770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5771 ac_cv_prog_ac_ct_RANLIB="ranlib" 5772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5773 break 2 5774 fi 5775done 5776 done 5777IFS=$as_save_IFS 5778 5779fi 5780fi 5781ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5782if test -n "$ac_ct_RANLIB"; then 5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5784$as_echo "$ac_ct_RANLIB" >&6; } 5785else 5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5787$as_echo "no" >&6; } 5788fi 5789 5790 if test "x$ac_ct_RANLIB" = x; then 5791 RANLIB=":" 5792 else 5793 case $cross_compiling:$ac_tool_warned in 5794yes:) 5795{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5796$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5797ac_tool_warned=yes ;; 5798esac 5799 RANLIB=$ac_ct_RANLIB 5800 fi 5801else 5802 RANLIB="$ac_cv_prog_RANLIB" 5803fi 5804 5805test -z "$RANLIB" && RANLIB=: 5806 5807 5808 5809 5810 5811 5812# Determine commands to create old-style static archives. 5813old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5814old_postinstall_cmds='chmod 644 $oldlib' 5815old_postuninstall_cmds= 5816 5817if test -n "$RANLIB"; then 5818 case $host_os in 5819 openbsd*) 5820 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5821 ;; 5822 *) 5823 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5824 ;; 5825 esac 5826 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5827fi 5828 5829case $host_os in 5830 darwin*) 5831 lock_old_archive_extraction=yes ;; 5832 *) 5833 lock_old_archive_extraction=no ;; 5834esac 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874# If no C compiler was specified, use CC. 5875LTCC=${LTCC-"$CC"} 5876 5877# If no C compiler flags were specified, use CFLAGS. 5878LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5879 5880# Allow CC to be a program name with arguments. 5881compiler=$CC 5882 5883 5884# Check for command to grab the raw symbol name followed by C symbol from nm. 5885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5886$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5887if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5888 $as_echo_n "(cached) " >&6 5889else 5890 5891# These are sane defaults that work on at least a few old systems. 5892# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5893 5894# Character class describing NM global symbol codes. 5895symcode='[BCDEGRST]' 5896 5897# Regexp to match symbols that can be accessed directly from C. 5898sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5899 5900# Define system-specific variables. 5901case $host_os in 5902aix*) 5903 symcode='[BCDT]' 5904 ;; 5905cygwin* | mingw* | pw32* | cegcc*) 5906 symcode='[ABCDGISTW]' 5907 ;; 5908hpux*) 5909 if test "$host_cpu" = ia64; then 5910 symcode='[ABCDEGRST]' 5911 fi 5912 ;; 5913irix* | nonstopux*) 5914 symcode='[BCDEGRST]' 5915 ;; 5916osf*) 5917 symcode='[BCDEGQRST]' 5918 ;; 5919solaris*) 5920 symcode='[BDRT]' 5921 ;; 5922sco3.2v5*) 5923 symcode='[DT]' 5924 ;; 5925sysv4.2uw2*) 5926 symcode='[DT]' 5927 ;; 5928sysv5* | sco5v6* | unixware* | OpenUNIX*) 5929 symcode='[ABDT]' 5930 ;; 5931sysv4) 5932 symcode='[DFNSTU]' 5933 ;; 5934esac 5935 5936# If we're using GNU nm, then use its standard symbol codes. 5937case `$NM -V 2>&1` in 5938*GNU* | *'with BFD'*) 5939 symcode='[ABCDGIRSTW]' ;; 5940esac 5941 5942# Transform an extracted symbol line into a proper C declaration. 5943# Some systems (esp. on ia64) link data and code symbols differently, 5944# so use this general approach. 5945lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5946 5947# Transform an extracted symbol line into symbol name and symbol address 5948lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5949lt_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'" 5950 5951# Handle CRLF in mingw tool chain 5952opt_cr= 5953case $build_os in 5954mingw*) 5955 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5956 ;; 5957esac 5958 5959# Try without a prefix underscore, then with it. 5960for ac_symprfx in "" "_"; do 5961 5962 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5963 symxfrm="\\1 $ac_symprfx\\2 \\2" 5964 5965 # Write the raw and C identifiers. 5966 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5967 # Fake it for dumpbin and say T for any non-static function 5968 # and D for any global variable. 5969 # Also find C++ and __fastcall symbols from MSVC++, 5970 # which start with @ or ?. 5971 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5972" {last_section=section; section=\$ 3};"\ 5973" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 5974" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5975" \$ 0!~/External *\|/{next};"\ 5976" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5977" {if(hide[section]) next};"\ 5978" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5979" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5980" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5981" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5982" ' prfx=^$ac_symprfx" 5983 else 5984 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5985 fi 5986 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 5987 5988 # Check to see that the pipe works correctly. 5989 pipe_works=no 5990 5991 rm -f conftest* 5992 cat > conftest.$ac_ext <<_LT_EOF 5993#ifdef __cplusplus 5994extern "C" { 5995#endif 5996char nm_test_var; 5997void nm_test_func(void); 5998void nm_test_func(void){} 5999#ifdef __cplusplus 6000} 6001#endif 6002int main(){nm_test_var='a';nm_test_func();return(0);} 6003_LT_EOF 6004 6005 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6006 (eval $ac_compile) 2>&5 6007 ac_status=$? 6008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6009 test $ac_status = 0; }; then 6010 # Now try to grab the symbols. 6011 nlist=conftest.nm 6012 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6013 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6014 ac_status=$? 6015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6016 test $ac_status = 0; } && test -s "$nlist"; then 6017 # Try sorting and uniquifying the output. 6018 if sort "$nlist" | uniq > "$nlist"T; then 6019 mv -f "$nlist"T "$nlist" 6020 else 6021 rm -f "$nlist"T 6022 fi 6023 6024 # Make sure that we snagged all the symbols we need. 6025 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6026 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6027 cat <<_LT_EOF > conftest.$ac_ext 6028/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6029#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6030/* DATA imports from DLLs on WIN32 con't be const, because runtime 6031 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6032# define LT_DLSYM_CONST 6033#elif defined(__osf__) 6034/* This system does not cope well with relocations in const data. */ 6035# define LT_DLSYM_CONST 6036#else 6037# define LT_DLSYM_CONST const 6038#endif 6039 6040#ifdef __cplusplus 6041extern "C" { 6042#endif 6043 6044_LT_EOF 6045 # Now generate the symbol file. 6046 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6047 6048 cat <<_LT_EOF >> conftest.$ac_ext 6049 6050/* The mapping between symbol names and symbols. */ 6051LT_DLSYM_CONST struct { 6052 const char *name; 6053 void *address; 6054} 6055lt__PROGRAM__LTX_preloaded_symbols[] = 6056{ 6057 { "@PROGRAM@", (void *) 0 }, 6058_LT_EOF 6059 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6060 cat <<\_LT_EOF >> conftest.$ac_ext 6061 {0, (void *) 0} 6062}; 6063 6064/* This works around a problem in FreeBSD linker */ 6065#ifdef FREEBSD_WORKAROUND 6066static const void *lt_preloaded_setup() { 6067 return lt__PROGRAM__LTX_preloaded_symbols; 6068} 6069#endif 6070 6071#ifdef __cplusplus 6072} 6073#endif 6074_LT_EOF 6075 # Now try linking the two files. 6076 mv conftest.$ac_objext conftstm.$ac_objext 6077 lt_globsym_save_LIBS=$LIBS 6078 lt_globsym_save_CFLAGS=$CFLAGS 6079 LIBS="conftstm.$ac_objext" 6080 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6081 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6082 (eval $ac_link) 2>&5 6083 ac_status=$? 6084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6085 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6086 pipe_works=yes 6087 fi 6088 LIBS=$lt_globsym_save_LIBS 6089 CFLAGS=$lt_globsym_save_CFLAGS 6090 else 6091 echo "cannot find nm_test_func in $nlist" >&5 6092 fi 6093 else 6094 echo "cannot find nm_test_var in $nlist" >&5 6095 fi 6096 else 6097 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6098 fi 6099 else 6100 echo "$progname: failed program was:" >&5 6101 cat conftest.$ac_ext >&5 6102 fi 6103 rm -rf conftest* conftst* 6104 6105 # Do not use the global_symbol_pipe unless it works. 6106 if test "$pipe_works" = yes; then 6107 break 6108 else 6109 lt_cv_sys_global_symbol_pipe= 6110 fi 6111done 6112 6113fi 6114 6115if test -z "$lt_cv_sys_global_symbol_pipe"; then 6116 lt_cv_sys_global_symbol_to_cdecl= 6117fi 6118if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6120$as_echo "failed" >&6; } 6121else 6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6123$as_echo "ok" >&6; } 6124fi 6125 6126# Response file support. 6127if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6128 nm_file_list_spec='@' 6129elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6130 nm_file_list_spec='@' 6131fi 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6160$as_echo_n "checking for sysroot... " >&6; } 6161 6162# Check whether --with-sysroot was given. 6163if test "${with_sysroot+set}" = set; then : 6164 withval=$with_sysroot; 6165else 6166 with_sysroot=no 6167fi 6168 6169 6170lt_sysroot= 6171case ${with_sysroot} in #( 6172 yes) 6173 if test "$GCC" = yes; then 6174 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6175 fi 6176 ;; #( 6177 /*) 6178 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6179 ;; #( 6180 no|'') 6181 ;; #( 6182 *) 6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6184$as_echo "${with_sysroot}" >&6; } 6185 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6186 ;; 6187esac 6188 6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6190$as_echo "${lt_sysroot:-no}" >&6; } 6191 6192 6193 6194 6195 6196# Check whether --enable-libtool-lock was given. 6197if test "${enable_libtool_lock+set}" = set; then : 6198 enableval=$enable_libtool_lock; 6199fi 6200 6201test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6202 6203# Some flags need to be propagated to the compiler or linker for good 6204# libtool support. 6205case $host in 6206ia64-*-hpux*) 6207 # Find out which ABI we are using. 6208 echo 'int i;' > conftest.$ac_ext 6209 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6210 (eval $ac_compile) 2>&5 6211 ac_status=$? 6212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6213 test $ac_status = 0; }; then 6214 case `/usr/bin/file conftest.$ac_objext` in 6215 *ELF-32*) 6216 HPUX_IA64_MODE="32" 6217 ;; 6218 *ELF-64*) 6219 HPUX_IA64_MODE="64" 6220 ;; 6221 esac 6222 fi 6223 rm -rf conftest* 6224 ;; 6225*-*-irix6*) 6226 # Find out which ABI we are using. 6227 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6228 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6229 (eval $ac_compile) 2>&5 6230 ac_status=$? 6231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6232 test $ac_status = 0; }; then 6233 if test "$lt_cv_prog_gnu_ld" = yes; then 6234 case `/usr/bin/file conftest.$ac_objext` in 6235 *32-bit*) 6236 LD="${LD-ld} -melf32bsmip" 6237 ;; 6238 *N32*) 6239 LD="${LD-ld} -melf32bmipn32" 6240 ;; 6241 *64-bit*) 6242 LD="${LD-ld} -melf64bmip" 6243 ;; 6244 esac 6245 else 6246 case `/usr/bin/file conftest.$ac_objext` in 6247 *32-bit*) 6248 LD="${LD-ld} -32" 6249 ;; 6250 *N32*) 6251 LD="${LD-ld} -n32" 6252 ;; 6253 *64-bit*) 6254 LD="${LD-ld} -64" 6255 ;; 6256 esac 6257 fi 6258 fi 6259 rm -rf conftest* 6260 ;; 6261 6262x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6263s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6264 # Find out which ABI we are using. 6265 echo 'int i;' > conftest.$ac_ext 6266 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6267 (eval $ac_compile) 2>&5 6268 ac_status=$? 6269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6270 test $ac_status = 0; }; then 6271 case `/usr/bin/file conftest.o` in 6272 *32-bit*) 6273 case $host in 6274 x86_64-*kfreebsd*-gnu) 6275 LD="${LD-ld} -m elf_i386_fbsd" 6276 ;; 6277 x86_64-*linux*) 6278 LD="${LD-ld} -m elf_i386" 6279 ;; 6280 ppc64-*linux*|powerpc64-*linux*) 6281 LD="${LD-ld} -m elf32ppclinux" 6282 ;; 6283 s390x-*linux*) 6284 LD="${LD-ld} -m elf_s390" 6285 ;; 6286 sparc64-*linux*) 6287 LD="${LD-ld} -m elf32_sparc" 6288 ;; 6289 esac 6290 ;; 6291 *64-bit*) 6292 case $host in 6293 x86_64-*kfreebsd*-gnu) 6294 LD="${LD-ld} -m elf_x86_64_fbsd" 6295 ;; 6296 x86_64-*linux*) 6297 LD="${LD-ld} -m elf_x86_64" 6298 ;; 6299 ppc*-*linux*|powerpc*-*linux*) 6300 LD="${LD-ld} -m elf64ppc" 6301 ;; 6302 s390*-*linux*|s390*-*tpf*) 6303 LD="${LD-ld} -m elf64_s390" 6304 ;; 6305 sparc*-*linux*) 6306 LD="${LD-ld} -m elf64_sparc" 6307 ;; 6308 esac 6309 ;; 6310 esac 6311 fi 6312 rm -rf conftest* 6313 ;; 6314 6315*-*-sco3.2v5*) 6316 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6317 SAVE_CFLAGS="$CFLAGS" 6318 CFLAGS="$CFLAGS -belf" 6319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6320$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6321if ${lt_cv_cc_needs_belf+:} false; then : 6322 $as_echo_n "(cached) " >&6 6323else 6324 ac_ext=c 6325ac_cpp='$CPP $CPPFLAGS' 6326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6328ac_compiler_gnu=$ac_cv_c_compiler_gnu 6329 6330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6331/* end confdefs.h. */ 6332 6333int 6334main () 6335{ 6336 6337 ; 6338 return 0; 6339} 6340_ACEOF 6341if ac_fn_c_try_link "$LINENO"; then : 6342 lt_cv_cc_needs_belf=yes 6343else 6344 lt_cv_cc_needs_belf=no 6345fi 6346rm -f core conftest.err conftest.$ac_objext \ 6347 conftest$ac_exeext conftest.$ac_ext 6348 ac_ext=c 6349ac_cpp='$CPP $CPPFLAGS' 6350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6352ac_compiler_gnu=$ac_cv_c_compiler_gnu 6353 6354fi 6355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6356$as_echo "$lt_cv_cc_needs_belf" >&6; } 6357 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6358 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6359 CFLAGS="$SAVE_CFLAGS" 6360 fi 6361 ;; 6362*-*solaris*) 6363 # Find out which ABI we are using. 6364 echo 'int i;' > conftest.$ac_ext 6365 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6366 (eval $ac_compile) 2>&5 6367 ac_status=$? 6368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6369 test $ac_status = 0; }; then 6370 case `/usr/bin/file conftest.o` in 6371 *64-bit*) 6372 case $lt_cv_prog_gnu_ld in 6373 yes*) 6374 case $host in 6375 i?86-*-solaris*) 6376 LD="${LD-ld} -m elf_x86_64" 6377 ;; 6378 sparc*-*-solaris*) 6379 LD="${LD-ld} -m elf64_sparc" 6380 ;; 6381 esac 6382 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6383 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6384 LD="${LD-ld}_sol2" 6385 fi 6386 ;; 6387 *) 6388 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6389 LD="${LD-ld} -64" 6390 fi 6391 ;; 6392 esac 6393 ;; 6394 esac 6395 fi 6396 rm -rf conftest* 6397 ;; 6398esac 6399 6400need_locks="$enable_libtool_lock" 6401 6402if test -n "$ac_tool_prefix"; then 6403 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6404set dummy ${ac_tool_prefix}mt; ac_word=$2 6405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6406$as_echo_n "checking for $ac_word... " >&6; } 6407if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6408 $as_echo_n "(cached) " >&6 6409else 6410 if test -n "$MANIFEST_TOOL"; then 6411 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6412else 6413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6414for as_dir in $PATH 6415do 6416 IFS=$as_save_IFS 6417 test -z "$as_dir" && as_dir=. 6418 for ac_exec_ext in '' $ac_executable_extensions; do 6419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6420 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6422 break 2 6423 fi 6424done 6425 done 6426IFS=$as_save_IFS 6427 6428fi 6429fi 6430MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6431if test -n "$MANIFEST_TOOL"; then 6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6433$as_echo "$MANIFEST_TOOL" >&6; } 6434else 6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6436$as_echo "no" >&6; } 6437fi 6438 6439 6440fi 6441if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6442 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6443 # Extract the first word of "mt", so it can be a program name with args. 6444set dummy mt; ac_word=$2 6445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6446$as_echo_n "checking for $ac_word... " >&6; } 6447if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6448 $as_echo_n "(cached) " >&6 6449else 6450 if test -n "$ac_ct_MANIFEST_TOOL"; then 6451 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6452else 6453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6454for as_dir in $PATH 6455do 6456 IFS=$as_save_IFS 6457 test -z "$as_dir" && as_dir=. 6458 for ac_exec_ext in '' $ac_executable_extensions; do 6459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6460 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6462 break 2 6463 fi 6464done 6465 done 6466IFS=$as_save_IFS 6467 6468fi 6469fi 6470ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6471if test -n "$ac_ct_MANIFEST_TOOL"; then 6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6473$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6474else 6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6476$as_echo "no" >&6; } 6477fi 6478 6479 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6480 MANIFEST_TOOL=":" 6481 else 6482 case $cross_compiling:$ac_tool_warned in 6483yes:) 6484{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6485$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6486ac_tool_warned=yes ;; 6487esac 6488 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6489 fi 6490else 6491 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6492fi 6493 6494test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6496$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6497if ${lt_cv_path_mainfest_tool+:} false; then : 6498 $as_echo_n "(cached) " >&6 6499else 6500 lt_cv_path_mainfest_tool=no 6501 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6502 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6503 cat conftest.err >&5 6504 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6505 lt_cv_path_mainfest_tool=yes 6506 fi 6507 rm -f conftest* 6508fi 6509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6510$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6511if test "x$lt_cv_path_mainfest_tool" != xyes; then 6512 MANIFEST_TOOL=: 6513fi 6514 6515 6516 6517 6518 6519 6520 case $host_os in 6521 rhapsody* | darwin*) 6522 if test -n "$ac_tool_prefix"; then 6523 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6524set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6526$as_echo_n "checking for $ac_word... " >&6; } 6527if ${ac_cv_prog_DSYMUTIL+:} false; then : 6528 $as_echo_n "(cached) " >&6 6529else 6530 if test -n "$DSYMUTIL"; then 6531 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6532else 6533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6534for as_dir in $PATH 6535do 6536 IFS=$as_save_IFS 6537 test -z "$as_dir" && as_dir=. 6538 for ac_exec_ext in '' $ac_executable_extensions; do 6539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6540 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6542 break 2 6543 fi 6544done 6545 done 6546IFS=$as_save_IFS 6547 6548fi 6549fi 6550DSYMUTIL=$ac_cv_prog_DSYMUTIL 6551if test -n "$DSYMUTIL"; then 6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6553$as_echo "$DSYMUTIL" >&6; } 6554else 6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6556$as_echo "no" >&6; } 6557fi 6558 6559 6560fi 6561if test -z "$ac_cv_prog_DSYMUTIL"; then 6562 ac_ct_DSYMUTIL=$DSYMUTIL 6563 # Extract the first word of "dsymutil", so it can be a program name with args. 6564set dummy dsymutil; ac_word=$2 6565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6566$as_echo_n "checking for $ac_word... " >&6; } 6567if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6568 $as_echo_n "(cached) " >&6 6569else 6570 if test -n "$ac_ct_DSYMUTIL"; then 6571 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6572else 6573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6574for as_dir in $PATH 6575do 6576 IFS=$as_save_IFS 6577 test -z "$as_dir" && as_dir=. 6578 for ac_exec_ext in '' $ac_executable_extensions; do 6579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6580 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6582 break 2 6583 fi 6584done 6585 done 6586IFS=$as_save_IFS 6587 6588fi 6589fi 6590ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6591if test -n "$ac_ct_DSYMUTIL"; then 6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6593$as_echo "$ac_ct_DSYMUTIL" >&6; } 6594else 6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6596$as_echo "no" >&6; } 6597fi 6598 6599 if test "x$ac_ct_DSYMUTIL" = x; then 6600 DSYMUTIL=":" 6601 else 6602 case $cross_compiling:$ac_tool_warned in 6603yes:) 6604{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6605$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6606ac_tool_warned=yes ;; 6607esac 6608 DSYMUTIL=$ac_ct_DSYMUTIL 6609 fi 6610else 6611 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6612fi 6613 6614 if test -n "$ac_tool_prefix"; then 6615 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6616set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6618$as_echo_n "checking for $ac_word... " >&6; } 6619if ${ac_cv_prog_NMEDIT+:} false; then : 6620 $as_echo_n "(cached) " >&6 6621else 6622 if test -n "$NMEDIT"; then 6623 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6624else 6625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6626for as_dir in $PATH 6627do 6628 IFS=$as_save_IFS 6629 test -z "$as_dir" && as_dir=. 6630 for ac_exec_ext in '' $ac_executable_extensions; do 6631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6632 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6634 break 2 6635 fi 6636done 6637 done 6638IFS=$as_save_IFS 6639 6640fi 6641fi 6642NMEDIT=$ac_cv_prog_NMEDIT 6643if test -n "$NMEDIT"; then 6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6645$as_echo "$NMEDIT" >&6; } 6646else 6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6648$as_echo "no" >&6; } 6649fi 6650 6651 6652fi 6653if test -z "$ac_cv_prog_NMEDIT"; then 6654 ac_ct_NMEDIT=$NMEDIT 6655 # Extract the first word of "nmedit", so it can be a program name with args. 6656set dummy nmedit; ac_word=$2 6657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6658$as_echo_n "checking for $ac_word... " >&6; } 6659if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6660 $as_echo_n "(cached) " >&6 6661else 6662 if test -n "$ac_ct_NMEDIT"; then 6663 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6664else 6665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6666for as_dir in $PATH 6667do 6668 IFS=$as_save_IFS 6669 test -z "$as_dir" && as_dir=. 6670 for ac_exec_ext in '' $ac_executable_extensions; do 6671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6672 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6674 break 2 6675 fi 6676done 6677 done 6678IFS=$as_save_IFS 6679 6680fi 6681fi 6682ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6683if test -n "$ac_ct_NMEDIT"; then 6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6685$as_echo "$ac_ct_NMEDIT" >&6; } 6686else 6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6688$as_echo "no" >&6; } 6689fi 6690 6691 if test "x$ac_ct_NMEDIT" = x; then 6692 NMEDIT=":" 6693 else 6694 case $cross_compiling:$ac_tool_warned in 6695yes:) 6696{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6697$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6698ac_tool_warned=yes ;; 6699esac 6700 NMEDIT=$ac_ct_NMEDIT 6701 fi 6702else 6703 NMEDIT="$ac_cv_prog_NMEDIT" 6704fi 6705 6706 if test -n "$ac_tool_prefix"; then 6707 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6708set dummy ${ac_tool_prefix}lipo; ac_word=$2 6709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6710$as_echo_n "checking for $ac_word... " >&6; } 6711if ${ac_cv_prog_LIPO+:} false; then : 6712 $as_echo_n "(cached) " >&6 6713else 6714 if test -n "$LIPO"; then 6715 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6716else 6717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6718for as_dir in $PATH 6719do 6720 IFS=$as_save_IFS 6721 test -z "$as_dir" && as_dir=. 6722 for ac_exec_ext in '' $ac_executable_extensions; do 6723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6724 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6726 break 2 6727 fi 6728done 6729 done 6730IFS=$as_save_IFS 6731 6732fi 6733fi 6734LIPO=$ac_cv_prog_LIPO 6735if test -n "$LIPO"; then 6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6737$as_echo "$LIPO" >&6; } 6738else 6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6740$as_echo "no" >&6; } 6741fi 6742 6743 6744fi 6745if test -z "$ac_cv_prog_LIPO"; then 6746 ac_ct_LIPO=$LIPO 6747 # Extract the first word of "lipo", so it can be a program name with args. 6748set dummy lipo; ac_word=$2 6749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6750$as_echo_n "checking for $ac_word... " >&6; } 6751if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6752 $as_echo_n "(cached) " >&6 6753else 6754 if test -n "$ac_ct_LIPO"; then 6755 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6756else 6757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6758for as_dir in $PATH 6759do 6760 IFS=$as_save_IFS 6761 test -z "$as_dir" && as_dir=. 6762 for ac_exec_ext in '' $ac_executable_extensions; do 6763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6764 ac_cv_prog_ac_ct_LIPO="lipo" 6765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6766 break 2 6767 fi 6768done 6769 done 6770IFS=$as_save_IFS 6771 6772fi 6773fi 6774ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6775if test -n "$ac_ct_LIPO"; then 6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6777$as_echo "$ac_ct_LIPO" >&6; } 6778else 6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6780$as_echo "no" >&6; } 6781fi 6782 6783 if test "x$ac_ct_LIPO" = x; then 6784 LIPO=":" 6785 else 6786 case $cross_compiling:$ac_tool_warned in 6787yes:) 6788{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6789$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6790ac_tool_warned=yes ;; 6791esac 6792 LIPO=$ac_ct_LIPO 6793 fi 6794else 6795 LIPO="$ac_cv_prog_LIPO" 6796fi 6797 6798 if test -n "$ac_tool_prefix"; then 6799 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6800set dummy ${ac_tool_prefix}otool; ac_word=$2 6801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6802$as_echo_n "checking for $ac_word... " >&6; } 6803if ${ac_cv_prog_OTOOL+:} false; then : 6804 $as_echo_n "(cached) " >&6 6805else 6806 if test -n "$OTOOL"; then 6807 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6808else 6809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6810for as_dir in $PATH 6811do 6812 IFS=$as_save_IFS 6813 test -z "$as_dir" && as_dir=. 6814 for ac_exec_ext in '' $ac_executable_extensions; do 6815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6816 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6818 break 2 6819 fi 6820done 6821 done 6822IFS=$as_save_IFS 6823 6824fi 6825fi 6826OTOOL=$ac_cv_prog_OTOOL 6827if test -n "$OTOOL"; then 6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6829$as_echo "$OTOOL" >&6; } 6830else 6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6832$as_echo "no" >&6; } 6833fi 6834 6835 6836fi 6837if test -z "$ac_cv_prog_OTOOL"; then 6838 ac_ct_OTOOL=$OTOOL 6839 # Extract the first word of "otool", so it can be a program name with args. 6840set dummy otool; ac_word=$2 6841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6842$as_echo_n "checking for $ac_word... " >&6; } 6843if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6844 $as_echo_n "(cached) " >&6 6845else 6846 if test -n "$ac_ct_OTOOL"; then 6847 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6848else 6849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6850for as_dir in $PATH 6851do 6852 IFS=$as_save_IFS 6853 test -z "$as_dir" && as_dir=. 6854 for ac_exec_ext in '' $ac_executable_extensions; do 6855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6856 ac_cv_prog_ac_ct_OTOOL="otool" 6857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6858 break 2 6859 fi 6860done 6861 done 6862IFS=$as_save_IFS 6863 6864fi 6865fi 6866ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6867if test -n "$ac_ct_OTOOL"; then 6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6869$as_echo "$ac_ct_OTOOL" >&6; } 6870else 6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6872$as_echo "no" >&6; } 6873fi 6874 6875 if test "x$ac_ct_OTOOL" = x; then 6876 OTOOL=":" 6877 else 6878 case $cross_compiling:$ac_tool_warned in 6879yes:) 6880{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6881$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6882ac_tool_warned=yes ;; 6883esac 6884 OTOOL=$ac_ct_OTOOL 6885 fi 6886else 6887 OTOOL="$ac_cv_prog_OTOOL" 6888fi 6889 6890 if test -n "$ac_tool_prefix"; then 6891 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6892set dummy ${ac_tool_prefix}otool64; ac_word=$2 6893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6894$as_echo_n "checking for $ac_word... " >&6; } 6895if ${ac_cv_prog_OTOOL64+:} false; then : 6896 $as_echo_n "(cached) " >&6 6897else 6898 if test -n "$OTOOL64"; then 6899 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6900else 6901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6902for as_dir in $PATH 6903do 6904 IFS=$as_save_IFS 6905 test -z "$as_dir" && as_dir=. 6906 for ac_exec_ext in '' $ac_executable_extensions; do 6907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6908 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6910 break 2 6911 fi 6912done 6913 done 6914IFS=$as_save_IFS 6915 6916fi 6917fi 6918OTOOL64=$ac_cv_prog_OTOOL64 6919if test -n "$OTOOL64"; then 6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6921$as_echo "$OTOOL64" >&6; } 6922else 6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6924$as_echo "no" >&6; } 6925fi 6926 6927 6928fi 6929if test -z "$ac_cv_prog_OTOOL64"; then 6930 ac_ct_OTOOL64=$OTOOL64 6931 # Extract the first word of "otool64", so it can be a program name with args. 6932set dummy otool64; ac_word=$2 6933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6934$as_echo_n "checking for $ac_word... " >&6; } 6935if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 6936 $as_echo_n "(cached) " >&6 6937else 6938 if test -n "$ac_ct_OTOOL64"; then 6939 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6940else 6941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6942for as_dir in $PATH 6943do 6944 IFS=$as_save_IFS 6945 test -z "$as_dir" && as_dir=. 6946 for ac_exec_ext in '' $ac_executable_extensions; do 6947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6948 ac_cv_prog_ac_ct_OTOOL64="otool64" 6949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6950 break 2 6951 fi 6952done 6953 done 6954IFS=$as_save_IFS 6955 6956fi 6957fi 6958ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6959if test -n "$ac_ct_OTOOL64"; then 6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6961$as_echo "$ac_ct_OTOOL64" >&6; } 6962else 6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6964$as_echo "no" >&6; } 6965fi 6966 6967 if test "x$ac_ct_OTOOL64" = x; then 6968 OTOOL64=":" 6969 else 6970 case $cross_compiling:$ac_tool_warned in 6971yes:) 6972{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6973$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6974ac_tool_warned=yes ;; 6975esac 6976 OTOOL64=$ac_ct_OTOOL64 6977 fi 6978else 6979 OTOOL64="$ac_cv_prog_OTOOL64" 6980fi 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7009$as_echo_n "checking for -single_module linker flag... " >&6; } 7010if ${lt_cv_apple_cc_single_mod+:} false; then : 7011 $as_echo_n "(cached) " >&6 7012else 7013 lt_cv_apple_cc_single_mod=no 7014 if test -z "${LT_MULTI_MODULE}"; then 7015 # By default we will add the -single_module flag. You can override 7016 # by either setting the environment variable LT_MULTI_MODULE 7017 # non-empty at configure time, or by adding -multi_module to the 7018 # link flags. 7019 rm -rf libconftest.dylib* 7020 echo "int foo(void){return 1;}" > conftest.c 7021 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7022-dynamiclib -Wl,-single_module conftest.c" >&5 7023 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7024 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7025 _lt_result=$? 7026 # If there is a non-empty error log, and "single_module" 7027 # appears in it, assume the flag caused a linker warning 7028 if test -s conftest.err && $GREP single_module conftest.err; then 7029 cat conftest.err >&5 7030 # Otherwise, if the output was created with a 0 exit code from 7031 # the compiler, it worked. 7032 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7033 lt_cv_apple_cc_single_mod=yes 7034 else 7035 cat conftest.err >&5 7036 fi 7037 rm -rf libconftest.dylib* 7038 rm -f conftest.* 7039 fi 7040fi 7041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7042$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7043 7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7045$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7046if ${lt_cv_ld_exported_symbols_list+:} false; then : 7047 $as_echo_n "(cached) " >&6 7048else 7049 lt_cv_ld_exported_symbols_list=no 7050 save_LDFLAGS=$LDFLAGS 7051 echo "_main" > conftest.sym 7052 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7054/* end confdefs.h. */ 7055 7056int 7057main () 7058{ 7059 7060 ; 7061 return 0; 7062} 7063_ACEOF 7064if ac_fn_c_try_link "$LINENO"; then : 7065 lt_cv_ld_exported_symbols_list=yes 7066else 7067 lt_cv_ld_exported_symbols_list=no 7068fi 7069rm -f core conftest.err conftest.$ac_objext \ 7070 conftest$ac_exeext conftest.$ac_ext 7071 LDFLAGS="$save_LDFLAGS" 7072 7073fi 7074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7075$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7076 7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7078$as_echo_n "checking for -force_load linker flag... " >&6; } 7079if ${lt_cv_ld_force_load+:} false; then : 7080 $as_echo_n "(cached) " >&6 7081else 7082 lt_cv_ld_force_load=no 7083 cat > conftest.c << _LT_EOF 7084int forced_loaded() { return 2;} 7085_LT_EOF 7086 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7087 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7088 echo "$AR cru libconftest.a conftest.o" >&5 7089 $AR cru libconftest.a conftest.o 2>&5 7090 echo "$RANLIB libconftest.a" >&5 7091 $RANLIB libconftest.a 2>&5 7092 cat > conftest.c << _LT_EOF 7093int main() { return 0;} 7094_LT_EOF 7095 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7096 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7097 _lt_result=$? 7098 if test -s conftest.err && $GREP force_load conftest.err; then 7099 cat conftest.err >&5 7100 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7101 lt_cv_ld_force_load=yes 7102 else 7103 cat conftest.err >&5 7104 fi 7105 rm -f conftest.err libconftest.a conftest conftest.c 7106 rm -rf conftest.dSYM 7107 7108fi 7109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7110$as_echo "$lt_cv_ld_force_load" >&6; } 7111 case $host_os in 7112 rhapsody* | darwin1.[012]) 7113 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7114 darwin1.*) 7115 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7116 darwin*) # darwin 5.x on 7117 # if running on 10.5 or later, the deployment target defaults 7118 # to the OS version, if on x86, and 10.4, the deployment 7119 # target defaults to 10.4. Don't you love it? 7120 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7121 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7122 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7123 10.[012]*) 7124 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7125 10.*) 7126 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7127 esac 7128 ;; 7129 esac 7130 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7131 _lt_dar_single_mod='$single_module' 7132 fi 7133 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7134 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7135 else 7136 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7137 fi 7138 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7139 _lt_dsymutil='~$DSYMUTIL $lib || :' 7140 else 7141 _lt_dsymutil= 7142 fi 7143 ;; 7144 esac 7145 7146ac_ext=c 7147ac_cpp='$CPP $CPPFLAGS' 7148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7150ac_compiler_gnu=$ac_cv_c_compiler_gnu 7151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7152$as_echo_n "checking how to run the C preprocessor... " >&6; } 7153# On Suns, sometimes $CPP names a directory. 7154if test -n "$CPP" && test -d "$CPP"; then 7155 CPP= 7156fi 7157if test -z "$CPP"; then 7158 if ${ac_cv_prog_CPP+:} false; then : 7159 $as_echo_n "(cached) " >&6 7160else 7161 # Double quotes because CPP needs to be expanded 7162 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7163 do 7164 ac_preproc_ok=false 7165for ac_c_preproc_warn_flag in '' yes 7166do 7167 # Use a header file that comes with gcc, so configuring glibc 7168 # with a fresh cross-compiler works. 7169 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7170 # <limits.h> exists even on freestanding compilers. 7171 # On the NeXT, cc -E runs the code through the compiler's parser, 7172 # not just through cpp. "Syntax error" is here to catch this case. 7173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7174/* end confdefs.h. */ 7175#ifdef __STDC__ 7176# include <limits.h> 7177#else 7178# include <assert.h> 7179#endif 7180 Syntax error 7181_ACEOF 7182if ac_fn_c_try_cpp "$LINENO"; then : 7183 7184else 7185 # Broken: fails on valid input. 7186continue 7187fi 7188rm -f conftest.err conftest.i conftest.$ac_ext 7189 7190 # OK, works on sane cases. Now check whether nonexistent headers 7191 # can be detected and how. 7192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7193/* end confdefs.h. */ 7194#include <ac_nonexistent.h> 7195_ACEOF 7196if ac_fn_c_try_cpp "$LINENO"; then : 7197 # Broken: success on invalid input. 7198continue 7199else 7200 # Passes both tests. 7201ac_preproc_ok=: 7202break 7203fi 7204rm -f conftest.err conftest.i conftest.$ac_ext 7205 7206done 7207# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7208rm -f conftest.i conftest.err conftest.$ac_ext 7209if $ac_preproc_ok; then : 7210 break 7211fi 7212 7213 done 7214 ac_cv_prog_CPP=$CPP 7215 7216fi 7217 CPP=$ac_cv_prog_CPP 7218else 7219 ac_cv_prog_CPP=$CPP 7220fi 7221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7222$as_echo "$CPP" >&6; } 7223ac_preproc_ok=false 7224for ac_c_preproc_warn_flag in '' yes 7225do 7226 # Use a header file that comes with gcc, so configuring glibc 7227 # with a fresh cross-compiler works. 7228 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7229 # <limits.h> exists even on freestanding compilers. 7230 # On the NeXT, cc -E runs the code through the compiler's parser, 7231 # not just through cpp. "Syntax error" is here to catch this case. 7232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7233/* end confdefs.h. */ 7234#ifdef __STDC__ 7235# include <limits.h> 7236#else 7237# include <assert.h> 7238#endif 7239 Syntax error 7240_ACEOF 7241if ac_fn_c_try_cpp "$LINENO"; then : 7242 7243else 7244 # Broken: fails on valid input. 7245continue 7246fi 7247rm -f conftest.err conftest.i conftest.$ac_ext 7248 7249 # OK, works on sane cases. Now check whether nonexistent headers 7250 # can be detected and how. 7251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7252/* end confdefs.h. */ 7253#include <ac_nonexistent.h> 7254_ACEOF 7255if ac_fn_c_try_cpp "$LINENO"; then : 7256 # Broken: success on invalid input. 7257continue 7258else 7259 # Passes both tests. 7260ac_preproc_ok=: 7261break 7262fi 7263rm -f conftest.err conftest.i conftest.$ac_ext 7264 7265done 7266# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7267rm -f conftest.i conftest.err conftest.$ac_ext 7268if $ac_preproc_ok; then : 7269 7270else 7271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7272$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7273as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7274See \`config.log' for more details" "$LINENO" 5; } 7275fi 7276 7277ac_ext=c 7278ac_cpp='$CPP $CPPFLAGS' 7279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7281ac_compiler_gnu=$ac_cv_c_compiler_gnu 7282 7283 7284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7285$as_echo_n "checking for ANSI C header files... " >&6; } 7286if ${ac_cv_header_stdc+:} false; then : 7287 $as_echo_n "(cached) " >&6 7288else 7289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7290/* end confdefs.h. */ 7291#include <stdlib.h> 7292#include <stdarg.h> 7293#include <string.h> 7294#include <float.h> 7295 7296int 7297main () 7298{ 7299 7300 ; 7301 return 0; 7302} 7303_ACEOF 7304if ac_fn_c_try_compile "$LINENO"; then : 7305 ac_cv_header_stdc=yes 7306else 7307 ac_cv_header_stdc=no 7308fi 7309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7310 7311if test $ac_cv_header_stdc = yes; then 7312 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7314/* end confdefs.h. */ 7315#include <string.h> 7316 7317_ACEOF 7318if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7319 $EGREP "memchr" >/dev/null 2>&1; then : 7320 7321else 7322 ac_cv_header_stdc=no 7323fi 7324rm -f conftest* 7325 7326fi 7327 7328if test $ac_cv_header_stdc = yes; then 7329 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7331/* end confdefs.h. */ 7332#include <stdlib.h> 7333 7334_ACEOF 7335if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7336 $EGREP "free" >/dev/null 2>&1; then : 7337 7338else 7339 ac_cv_header_stdc=no 7340fi 7341rm -f conftest* 7342 7343fi 7344 7345if test $ac_cv_header_stdc = yes; then 7346 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7347 if test "$cross_compiling" = yes; then : 7348 : 7349else 7350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7351/* end confdefs.h. */ 7352#include <ctype.h> 7353#include <stdlib.h> 7354#if ((' ' & 0x0FF) == 0x020) 7355# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7356# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7357#else 7358# define ISLOWER(c) \ 7359 (('a' <= (c) && (c) <= 'i') \ 7360 || ('j' <= (c) && (c) <= 'r') \ 7361 || ('s' <= (c) && (c) <= 'z')) 7362# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7363#endif 7364 7365#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7366int 7367main () 7368{ 7369 int i; 7370 for (i = 0; i < 256; i++) 7371 if (XOR (islower (i), ISLOWER (i)) 7372 || toupper (i) != TOUPPER (i)) 7373 return 2; 7374 return 0; 7375} 7376_ACEOF 7377if ac_fn_c_try_run "$LINENO"; then : 7378 7379else 7380 ac_cv_header_stdc=no 7381fi 7382rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7383 conftest.$ac_objext conftest.beam conftest.$ac_ext 7384fi 7385 7386fi 7387fi 7388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7389$as_echo "$ac_cv_header_stdc" >&6; } 7390if test $ac_cv_header_stdc = yes; then 7391 7392$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7393 7394fi 7395 7396# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7397for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7398 inttypes.h stdint.h unistd.h 7399do : 7400 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7401ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7402" 7403if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7404 cat >>confdefs.h <<_ACEOF 7405#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7406_ACEOF 7407 7408fi 7409 7410done 7411 7412 7413for ac_header in dlfcn.h 7414do : 7415 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7416" 7417if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7418 cat >>confdefs.h <<_ACEOF 7419#define HAVE_DLFCN_H 1 7420_ACEOF 7421 7422fi 7423 7424done 7425 7426 7427 7428 7429 7430# Set options 7431 7432 7433 7434 enable_dlopen=no 7435 7436 7437 enable_win32_dll=no 7438 7439 7440 # Check whether --enable-shared was given. 7441if test "${enable_shared+set}" = set; then : 7442 enableval=$enable_shared; p=${PACKAGE-default} 7443 case $enableval in 7444 yes) enable_shared=yes ;; 7445 no) enable_shared=no ;; 7446 *) 7447 enable_shared=no 7448 # Look at the argument we got. We use all the common list separators. 7449 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7450 for pkg in $enableval; do 7451 IFS="$lt_save_ifs" 7452 if test "X$pkg" = "X$p"; then 7453 enable_shared=yes 7454 fi 7455 done 7456 IFS="$lt_save_ifs" 7457 ;; 7458 esac 7459else 7460 enable_shared=yes 7461fi 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 # Check whether --enable-static was given. 7472if test "${enable_static+set}" = set; then : 7473 enableval=$enable_static; p=${PACKAGE-default} 7474 case $enableval in 7475 yes) enable_static=yes ;; 7476 no) enable_static=no ;; 7477 *) 7478 enable_static=no 7479 # Look at the argument we got. We use all the common list separators. 7480 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7481 for pkg in $enableval; do 7482 IFS="$lt_save_ifs" 7483 if test "X$pkg" = "X$p"; then 7484 enable_static=yes 7485 fi 7486 done 7487 IFS="$lt_save_ifs" 7488 ;; 7489 esac 7490else 7491 enable_static=yes 7492fi 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503# Check whether --with-pic was given. 7504if test "${with_pic+set}" = set; then : 7505 withval=$with_pic; lt_p=${PACKAGE-default} 7506 case $withval in 7507 yes|no) pic_mode=$withval ;; 7508 *) 7509 pic_mode=default 7510 # Look at the argument we got. We use all the common list separators. 7511 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7512 for lt_pkg in $withval; do 7513 IFS="$lt_save_ifs" 7514 if test "X$lt_pkg" = "X$lt_p"; then 7515 pic_mode=yes 7516 fi 7517 done 7518 IFS="$lt_save_ifs" 7519 ;; 7520 esac 7521else 7522 pic_mode=default 7523fi 7524 7525 7526test -z "$pic_mode" && pic_mode=default 7527 7528 7529 7530 7531 7532 7533 7534 # Check whether --enable-fast-install was given. 7535if test "${enable_fast_install+set}" = set; then : 7536 enableval=$enable_fast_install; p=${PACKAGE-default} 7537 case $enableval in 7538 yes) enable_fast_install=yes ;; 7539 no) enable_fast_install=no ;; 7540 *) 7541 enable_fast_install=no 7542 # Look at the argument we got. We use all the common list separators. 7543 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7544 for pkg in $enableval; do 7545 IFS="$lt_save_ifs" 7546 if test "X$pkg" = "X$p"; then 7547 enable_fast_install=yes 7548 fi 7549 done 7550 IFS="$lt_save_ifs" 7551 ;; 7552 esac 7553else 7554 enable_fast_install=yes 7555fi 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567# This can be used to rebuild libtool when needed 7568LIBTOOL_DEPS="$ltmain" 7569 7570# Always use our own libtool. 7571LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602test -z "$LN_S" && LN_S="ln -s" 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617if test -n "${ZSH_VERSION+set}" ; then 7618 setopt NO_GLOB_SUBST 7619fi 7620 7621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7622$as_echo_n "checking for objdir... " >&6; } 7623if ${lt_cv_objdir+:} false; then : 7624 $as_echo_n "(cached) " >&6 7625else 7626 rm -f .libs 2>/dev/null 7627mkdir .libs 2>/dev/null 7628if test -d .libs; then 7629 lt_cv_objdir=.libs 7630else 7631 # MS-DOS does not allow filenames that begin with a dot. 7632 lt_cv_objdir=_libs 7633fi 7634rmdir .libs 2>/dev/null 7635fi 7636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7637$as_echo "$lt_cv_objdir" >&6; } 7638objdir=$lt_cv_objdir 7639 7640 7641 7642 7643 7644cat >>confdefs.h <<_ACEOF 7645#define LT_OBJDIR "$lt_cv_objdir/" 7646_ACEOF 7647 7648 7649 7650 7651case $host_os in 7652aix3*) 7653 # AIX sometimes has problems with the GCC collect2 program. For some 7654 # reason, if we set the COLLECT_NAMES environment variable, the problems 7655 # vanish in a puff of smoke. 7656 if test "X${COLLECT_NAMES+set}" != Xset; then 7657 COLLECT_NAMES= 7658 export COLLECT_NAMES 7659 fi 7660 ;; 7661esac 7662 7663# Global variables: 7664ofile=libtool 7665can_build_shared=yes 7666 7667# All known linkers require a `.a' archive for static linking (except MSVC, 7668# which needs '.lib'). 7669libext=a 7670 7671with_gnu_ld="$lt_cv_prog_gnu_ld" 7672 7673old_CC="$CC" 7674old_CFLAGS="$CFLAGS" 7675 7676# Set sane defaults for various variables 7677test -z "$CC" && CC=cc 7678test -z "$LTCC" && LTCC=$CC 7679test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7680test -z "$LD" && LD=ld 7681test -z "$ac_objext" && ac_objext=o 7682 7683for cc_temp in $compiler""; do 7684 case $cc_temp in 7685 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7686 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7687 \-*) ;; 7688 *) break;; 7689 esac 7690done 7691cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7692 7693 7694# Only perform the check for file, if the check method requires it 7695test -z "$MAGIC_CMD" && MAGIC_CMD=file 7696case $deplibs_check_method in 7697file_magic*) 7698 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7700$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7701if ${lt_cv_path_MAGIC_CMD+:} false; then : 7702 $as_echo_n "(cached) " >&6 7703else 7704 case $MAGIC_CMD in 7705[\\/*] | ?:[\\/]*) 7706 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7707 ;; 7708*) 7709 lt_save_MAGIC_CMD="$MAGIC_CMD" 7710 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7711 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7712 for ac_dir in $ac_dummy; do 7713 IFS="$lt_save_ifs" 7714 test -z "$ac_dir" && ac_dir=. 7715 if test -f $ac_dir/${ac_tool_prefix}file; then 7716 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7717 if test -n "$file_magic_test_file"; then 7718 case $deplibs_check_method in 7719 "file_magic "*) 7720 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7721 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7722 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7723 $EGREP "$file_magic_regex" > /dev/null; then 7724 : 7725 else 7726 cat <<_LT_EOF 1>&2 7727 7728*** Warning: the command libtool uses to detect shared libraries, 7729*** $file_magic_cmd, produces output that libtool cannot recognize. 7730*** The result is that libtool may fail to recognize shared libraries 7731*** as such. This will affect the creation of libtool libraries that 7732*** depend on shared libraries, but programs linked with such libtool 7733*** libraries will work regardless of this problem. Nevertheless, you 7734*** may want to report the problem to your system manager and/or to 7735*** bug-libtool@gnu.org 7736 7737_LT_EOF 7738 fi ;; 7739 esac 7740 fi 7741 break 7742 fi 7743 done 7744 IFS="$lt_save_ifs" 7745 MAGIC_CMD="$lt_save_MAGIC_CMD" 7746 ;; 7747esac 7748fi 7749 7750MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7751if test -n "$MAGIC_CMD"; then 7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7753$as_echo "$MAGIC_CMD" >&6; } 7754else 7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7756$as_echo "no" >&6; } 7757fi 7758 7759 7760 7761 7762 7763if test -z "$lt_cv_path_MAGIC_CMD"; then 7764 if test -n "$ac_tool_prefix"; then 7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7766$as_echo_n "checking for file... " >&6; } 7767if ${lt_cv_path_MAGIC_CMD+:} false; then : 7768 $as_echo_n "(cached) " >&6 7769else 7770 case $MAGIC_CMD in 7771[\\/*] | ?:[\\/]*) 7772 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7773 ;; 7774*) 7775 lt_save_MAGIC_CMD="$MAGIC_CMD" 7776 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7777 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7778 for ac_dir in $ac_dummy; do 7779 IFS="$lt_save_ifs" 7780 test -z "$ac_dir" && ac_dir=. 7781 if test -f $ac_dir/file; then 7782 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7783 if test -n "$file_magic_test_file"; then 7784 case $deplibs_check_method in 7785 "file_magic "*) 7786 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7787 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7788 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7789 $EGREP "$file_magic_regex" > /dev/null; then 7790 : 7791 else 7792 cat <<_LT_EOF 1>&2 7793 7794*** Warning: the command libtool uses to detect shared libraries, 7795*** $file_magic_cmd, produces output that libtool cannot recognize. 7796*** The result is that libtool may fail to recognize shared libraries 7797*** as such. This will affect the creation of libtool libraries that 7798*** depend on shared libraries, but programs linked with such libtool 7799*** libraries will work regardless of this problem. Nevertheless, you 7800*** may want to report the problem to your system manager and/or to 7801*** bug-libtool@gnu.org 7802 7803_LT_EOF 7804 fi ;; 7805 esac 7806 fi 7807 break 7808 fi 7809 done 7810 IFS="$lt_save_ifs" 7811 MAGIC_CMD="$lt_save_MAGIC_CMD" 7812 ;; 7813esac 7814fi 7815 7816MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7817if test -n "$MAGIC_CMD"; then 7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7819$as_echo "$MAGIC_CMD" >&6; } 7820else 7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7822$as_echo "no" >&6; } 7823fi 7824 7825 7826 else 7827 MAGIC_CMD=: 7828 fi 7829fi 7830 7831 fi 7832 ;; 7833esac 7834 7835# Use C for the default configuration in the libtool script 7836 7837lt_save_CC="$CC" 7838ac_ext=c 7839ac_cpp='$CPP $CPPFLAGS' 7840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7842ac_compiler_gnu=$ac_cv_c_compiler_gnu 7843 7844 7845# Source file extension for C test sources. 7846ac_ext=c 7847 7848# Object file extension for compiled C test sources. 7849objext=o 7850objext=$objext 7851 7852# Code to be used in simple compile tests 7853lt_simple_compile_test_code="int some_variable = 0;" 7854 7855# Code to be used in simple link tests 7856lt_simple_link_test_code='int main(){return(0);}' 7857 7858 7859 7860 7861 7862 7863 7864# If no C compiler was specified, use CC. 7865LTCC=${LTCC-"$CC"} 7866 7867# If no C compiler flags were specified, use CFLAGS. 7868LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7869 7870# Allow CC to be a program name with arguments. 7871compiler=$CC 7872 7873# Save the default compiler, since it gets overwritten when the other 7874# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7875compiler_DEFAULT=$CC 7876 7877# save warnings/boilerplate of simple test code 7878ac_outfile=conftest.$ac_objext 7879echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7880eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7881_lt_compiler_boilerplate=`cat conftest.err` 7882$RM conftest* 7883 7884ac_outfile=conftest.$ac_objext 7885echo "$lt_simple_link_test_code" >conftest.$ac_ext 7886eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7887_lt_linker_boilerplate=`cat conftest.err` 7888$RM -r conftest* 7889 7890 7891if test -n "$compiler"; then 7892 7893lt_prog_compiler_no_builtin_flag= 7894 7895if test "$GCC" = yes; then 7896 case $cc_basename in 7897 nvcc*) 7898 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7899 *) 7900 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7901 esac 7902 7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7904$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7905if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7906 $as_echo_n "(cached) " >&6 7907else 7908 lt_cv_prog_compiler_rtti_exceptions=no 7909 ac_outfile=conftest.$ac_objext 7910 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7911 lt_compiler_flag="-fno-rtti -fno-exceptions" 7912 # Insert the option either (1) after the last *FLAGS variable, or 7913 # (2) before a word containing "conftest.", or (3) at the end. 7914 # Note that $ac_compile itself does not contain backslashes and begins 7915 # with a dollar sign (not a hyphen), so the echo should work correctly. 7916 # The option is referenced via a variable to avoid confusing sed. 7917 lt_compile=`echo "$ac_compile" | $SED \ 7918 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7919 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7920 -e 's:$: $lt_compiler_flag:'` 7921 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7922 (eval "$lt_compile" 2>conftest.err) 7923 ac_status=$? 7924 cat conftest.err >&5 7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7926 if (exit $ac_status) && test -s "$ac_outfile"; then 7927 # The compiler can only warn and ignore the option if not recognized 7928 # So say no if there are warnings other than the usual output. 7929 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7930 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7931 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7932 lt_cv_prog_compiler_rtti_exceptions=yes 7933 fi 7934 fi 7935 $RM conftest* 7936 7937fi 7938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7939$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7940 7941if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7942 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7943else 7944 : 7945fi 7946 7947fi 7948 7949 7950 7951 7952 7953 7954 lt_prog_compiler_wl= 7955lt_prog_compiler_pic= 7956lt_prog_compiler_static= 7957 7958 7959 if test "$GCC" = yes; then 7960 lt_prog_compiler_wl='-Wl,' 7961 lt_prog_compiler_static='-static' 7962 7963 case $host_os in 7964 aix*) 7965 # All AIX code is PIC. 7966 if test "$host_cpu" = ia64; then 7967 # AIX 5 now supports IA64 processor 7968 lt_prog_compiler_static='-Bstatic' 7969 fi 7970 ;; 7971 7972 amigaos*) 7973 case $host_cpu in 7974 powerpc) 7975 # see comment about AmigaOS4 .so support 7976 lt_prog_compiler_pic='-fPIC' 7977 ;; 7978 m68k) 7979 # FIXME: we need at least 68020 code to build shared libraries, but 7980 # adding the `-m68020' flag to GCC prevents building anything better, 7981 # like `-m68040'. 7982 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7983 ;; 7984 esac 7985 ;; 7986 7987 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7988 # PIC is the default for these OSes. 7989 ;; 7990 7991 mingw* | cygwin* | pw32* | os2* | cegcc*) 7992 # This hack is so that the source file can tell whether it is being 7993 # built for inclusion in a dll (and should export symbols for example). 7994 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7995 # (--disable-auto-import) libraries 7996 lt_prog_compiler_pic='-DDLL_EXPORT' 7997 ;; 7998 7999 darwin* | rhapsody*) 8000 # PIC is the default on this platform 8001 # Common symbols not allowed in MH_DYLIB files 8002 lt_prog_compiler_pic='-fno-common' 8003 ;; 8004 8005 haiku*) 8006 # PIC is the default for Haiku. 8007 # The "-static" flag exists, but is broken. 8008 lt_prog_compiler_static= 8009 ;; 8010 8011 hpux*) 8012 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8013 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8014 # sets the default TLS model and affects inlining. 8015 case $host_cpu in 8016 hppa*64*) 8017 # +Z the default 8018 ;; 8019 *) 8020 lt_prog_compiler_pic='-fPIC' 8021 ;; 8022 esac 8023 ;; 8024 8025 interix[3-9]*) 8026 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8027 # Instead, we relocate shared libraries at runtime. 8028 ;; 8029 8030 msdosdjgpp*) 8031 # Just because we use GCC doesn't mean we suddenly get shared libraries 8032 # on systems that don't support them. 8033 lt_prog_compiler_can_build_shared=no 8034 enable_shared=no 8035 ;; 8036 8037 *nto* | *qnx*) 8038 # QNX uses GNU C++, but need to define -shared option too, otherwise 8039 # it will coredump. 8040 lt_prog_compiler_pic='-fPIC -shared' 8041 ;; 8042 8043 sysv4*MP*) 8044 if test -d /usr/nec; then 8045 lt_prog_compiler_pic=-Kconform_pic 8046 fi 8047 ;; 8048 8049 *) 8050 lt_prog_compiler_pic='-fPIC' 8051 ;; 8052 esac 8053 8054 case $cc_basename in 8055 nvcc*) # Cuda Compiler Driver 2.2 8056 lt_prog_compiler_wl='-Xlinker ' 8057 if test -n "$lt_prog_compiler_pic"; then 8058 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8059 fi 8060 ;; 8061 esac 8062 else 8063 # PORTME Check for flag to pass linker flags through the system compiler. 8064 case $host_os in 8065 aix*) 8066 lt_prog_compiler_wl='-Wl,' 8067 if test "$host_cpu" = ia64; then 8068 # AIX 5 now supports IA64 processor 8069 lt_prog_compiler_static='-Bstatic' 8070 else 8071 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8072 fi 8073 ;; 8074 8075 mingw* | cygwin* | pw32* | os2* | cegcc*) 8076 # This hack is so that the source file can tell whether it is being 8077 # built for inclusion in a dll (and should export symbols for example). 8078 lt_prog_compiler_pic='-DDLL_EXPORT' 8079 ;; 8080 8081 hpux9* | hpux10* | hpux11*) 8082 lt_prog_compiler_wl='-Wl,' 8083 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8084 # not for PA HP-UX. 8085 case $host_cpu in 8086 hppa*64*|ia64*) 8087 # +Z the default 8088 ;; 8089 *) 8090 lt_prog_compiler_pic='+Z' 8091 ;; 8092 esac 8093 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8094 lt_prog_compiler_static='${wl}-a ${wl}archive' 8095 ;; 8096 8097 irix5* | irix6* | nonstopux*) 8098 lt_prog_compiler_wl='-Wl,' 8099 # PIC (with -KPIC) is the default. 8100 lt_prog_compiler_static='-non_shared' 8101 ;; 8102 8103 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8104 case $cc_basename in 8105 # old Intel for x86_64 which still supported -KPIC. 8106 ecc*) 8107 lt_prog_compiler_wl='-Wl,' 8108 lt_prog_compiler_pic='-KPIC' 8109 lt_prog_compiler_static='-static' 8110 ;; 8111 # icc used to be incompatible with GCC. 8112 # ICC 10 doesn't accept -KPIC any more. 8113 icc* | ifort*) 8114 lt_prog_compiler_wl='-Wl,' 8115 lt_prog_compiler_pic='-fPIC' 8116 lt_prog_compiler_static='-static' 8117 ;; 8118 # Lahey Fortran 8.1. 8119 lf95*) 8120 lt_prog_compiler_wl='-Wl,' 8121 lt_prog_compiler_pic='--shared' 8122 lt_prog_compiler_static='--static' 8123 ;; 8124 nagfor*) 8125 # NAG Fortran compiler 8126 lt_prog_compiler_wl='-Wl,-Wl,,' 8127 lt_prog_compiler_pic='-PIC' 8128 lt_prog_compiler_static='-Bstatic' 8129 ;; 8130 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8131 # Portland Group compilers (*not* the Pentium gcc compiler, 8132 # which looks to be a dead project) 8133 lt_prog_compiler_wl='-Wl,' 8134 lt_prog_compiler_pic='-fpic' 8135 lt_prog_compiler_static='-Bstatic' 8136 ;; 8137 ccc*) 8138 lt_prog_compiler_wl='-Wl,' 8139 # All Alpha code is PIC. 8140 lt_prog_compiler_static='-non_shared' 8141 ;; 8142 xl* | bgxl* | bgf* | mpixl*) 8143 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8144 lt_prog_compiler_wl='-Wl,' 8145 lt_prog_compiler_pic='-qpic' 8146 lt_prog_compiler_static='-qstaticlink' 8147 ;; 8148 *) 8149 case `$CC -V 2>&1 | sed 5q` in 8150 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8151 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8152 lt_prog_compiler_pic='-KPIC' 8153 lt_prog_compiler_static='-Bstatic' 8154 lt_prog_compiler_wl='' 8155 ;; 8156 *Sun\ F* | *Sun*Fortran*) 8157 lt_prog_compiler_pic='-KPIC' 8158 lt_prog_compiler_static='-Bstatic' 8159 lt_prog_compiler_wl='-Qoption ld ' 8160 ;; 8161 *Sun\ C*) 8162 # Sun C 5.9 8163 lt_prog_compiler_pic='-KPIC' 8164 lt_prog_compiler_static='-Bstatic' 8165 lt_prog_compiler_wl='-Wl,' 8166 ;; 8167 *Intel*\ [CF]*Compiler*) 8168 lt_prog_compiler_wl='-Wl,' 8169 lt_prog_compiler_pic='-fPIC' 8170 lt_prog_compiler_static='-static' 8171 ;; 8172 *Portland\ Group*) 8173 lt_prog_compiler_wl='-Wl,' 8174 lt_prog_compiler_pic='-fpic' 8175 lt_prog_compiler_static='-Bstatic' 8176 ;; 8177 esac 8178 ;; 8179 esac 8180 ;; 8181 8182 newsos6) 8183 lt_prog_compiler_pic='-KPIC' 8184 lt_prog_compiler_static='-Bstatic' 8185 ;; 8186 8187 *nto* | *qnx*) 8188 # QNX uses GNU C++, but need to define -shared option too, otherwise 8189 # it will coredump. 8190 lt_prog_compiler_pic='-fPIC -shared' 8191 ;; 8192 8193 osf3* | osf4* | osf5*) 8194 lt_prog_compiler_wl='-Wl,' 8195 # All OSF/1 code is PIC. 8196 lt_prog_compiler_static='-non_shared' 8197 ;; 8198 8199 rdos*) 8200 lt_prog_compiler_static='-non_shared' 8201 ;; 8202 8203 solaris*) 8204 lt_prog_compiler_pic='-KPIC' 8205 lt_prog_compiler_static='-Bstatic' 8206 case $cc_basename in 8207 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8208 lt_prog_compiler_wl='-Qoption ld ';; 8209 *) 8210 lt_prog_compiler_wl='-Wl,';; 8211 esac 8212 ;; 8213 8214 sunos4*) 8215 lt_prog_compiler_wl='-Qoption ld ' 8216 lt_prog_compiler_pic='-PIC' 8217 lt_prog_compiler_static='-Bstatic' 8218 ;; 8219 8220 sysv4 | sysv4.2uw2* | sysv4.3*) 8221 lt_prog_compiler_wl='-Wl,' 8222 lt_prog_compiler_pic='-KPIC' 8223 lt_prog_compiler_static='-Bstatic' 8224 ;; 8225 8226 sysv4*MP*) 8227 if test -d /usr/nec ;then 8228 lt_prog_compiler_pic='-Kconform_pic' 8229 lt_prog_compiler_static='-Bstatic' 8230 fi 8231 ;; 8232 8233 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8234 lt_prog_compiler_wl='-Wl,' 8235 lt_prog_compiler_pic='-KPIC' 8236 lt_prog_compiler_static='-Bstatic' 8237 ;; 8238 8239 unicos*) 8240 lt_prog_compiler_wl='-Wl,' 8241 lt_prog_compiler_can_build_shared=no 8242 ;; 8243 8244 uts4*) 8245 lt_prog_compiler_pic='-pic' 8246 lt_prog_compiler_static='-Bstatic' 8247 ;; 8248 8249 *) 8250 lt_prog_compiler_can_build_shared=no 8251 ;; 8252 esac 8253 fi 8254 8255case $host_os in 8256 # For platforms which do not support PIC, -DPIC is meaningless: 8257 *djgpp*) 8258 lt_prog_compiler_pic= 8259 ;; 8260 *) 8261 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8262 ;; 8263esac 8264 8265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8266$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8267if ${lt_cv_prog_compiler_pic+:} false; then : 8268 $as_echo_n "(cached) " >&6 8269else 8270 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8271fi 8272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8273$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8274lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8275 8276# 8277# Check to make sure the PIC flag actually works. 8278# 8279if test -n "$lt_prog_compiler_pic"; then 8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8281$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8282if ${lt_cv_prog_compiler_pic_works+:} false; then : 8283 $as_echo_n "(cached) " >&6 8284else 8285 lt_cv_prog_compiler_pic_works=no 8286 ac_outfile=conftest.$ac_objext 8287 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8288 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8289 # Insert the option either (1) after the last *FLAGS variable, or 8290 # (2) before a word containing "conftest.", or (3) at the end. 8291 # Note that $ac_compile itself does not contain backslashes and begins 8292 # with a dollar sign (not a hyphen), so the echo should work correctly. 8293 # The option is referenced via a variable to avoid confusing sed. 8294 lt_compile=`echo "$ac_compile" | $SED \ 8295 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8296 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8297 -e 's:$: $lt_compiler_flag:'` 8298 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8299 (eval "$lt_compile" 2>conftest.err) 8300 ac_status=$? 8301 cat conftest.err >&5 8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8303 if (exit $ac_status) && test -s "$ac_outfile"; then 8304 # The compiler can only warn and ignore the option if not recognized 8305 # So say no if there are warnings other than the usual output. 8306 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8307 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8308 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8309 lt_cv_prog_compiler_pic_works=yes 8310 fi 8311 fi 8312 $RM conftest* 8313 8314fi 8315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8316$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8317 8318if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8319 case $lt_prog_compiler_pic in 8320 "" | " "*) ;; 8321 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8322 esac 8323else 8324 lt_prog_compiler_pic= 8325 lt_prog_compiler_can_build_shared=no 8326fi 8327 8328fi 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340# 8341# Check to make sure the static flag actually works. 8342# 8343wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8345$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8346if ${lt_cv_prog_compiler_static_works+:} false; then : 8347 $as_echo_n "(cached) " >&6 8348else 8349 lt_cv_prog_compiler_static_works=no 8350 save_LDFLAGS="$LDFLAGS" 8351 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8352 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8353 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8354 # The linker can only warn and ignore the option if not recognized 8355 # So say no if there are warnings 8356 if test -s conftest.err; then 8357 # Append any errors to the config.log. 8358 cat conftest.err 1>&5 8359 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8360 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8361 if diff conftest.exp conftest.er2 >/dev/null; then 8362 lt_cv_prog_compiler_static_works=yes 8363 fi 8364 else 8365 lt_cv_prog_compiler_static_works=yes 8366 fi 8367 fi 8368 $RM -r conftest* 8369 LDFLAGS="$save_LDFLAGS" 8370 8371fi 8372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8373$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8374 8375if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8376 : 8377else 8378 lt_prog_compiler_static= 8379fi 8380 8381 8382 8383 8384 8385 8386 8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8388$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8389if ${lt_cv_prog_compiler_c_o+:} false; then : 8390 $as_echo_n "(cached) " >&6 8391else 8392 lt_cv_prog_compiler_c_o=no 8393 $RM -r conftest 2>/dev/null 8394 mkdir conftest 8395 cd conftest 8396 mkdir out 8397 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8398 8399 lt_compiler_flag="-o out/conftest2.$ac_objext" 8400 # Insert the option either (1) after the last *FLAGS variable, or 8401 # (2) before a word containing "conftest.", or (3) at the end. 8402 # Note that $ac_compile itself does not contain backslashes and begins 8403 # with a dollar sign (not a hyphen), so the echo should work correctly. 8404 lt_compile=`echo "$ac_compile" | $SED \ 8405 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8406 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8407 -e 's:$: $lt_compiler_flag:'` 8408 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8409 (eval "$lt_compile" 2>out/conftest.err) 8410 ac_status=$? 8411 cat out/conftest.err >&5 8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8413 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8414 then 8415 # The compiler can only warn and ignore the option if not recognized 8416 # So say no if there are warnings 8417 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8418 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8419 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8420 lt_cv_prog_compiler_c_o=yes 8421 fi 8422 fi 8423 chmod u+w . 2>&5 8424 $RM conftest* 8425 # SGI C++ compiler will create directory out/ii_files/ for 8426 # template instantiation 8427 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8428 $RM out/* && rmdir out 8429 cd .. 8430 $RM -r conftest 8431 $RM conftest* 8432 8433fi 8434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8435$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8436 8437 8438 8439 8440 8441 8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8443$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8444if ${lt_cv_prog_compiler_c_o+:} false; then : 8445 $as_echo_n "(cached) " >&6 8446else 8447 lt_cv_prog_compiler_c_o=no 8448 $RM -r conftest 2>/dev/null 8449 mkdir conftest 8450 cd conftest 8451 mkdir out 8452 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8453 8454 lt_compiler_flag="-o out/conftest2.$ac_objext" 8455 # Insert the option either (1) after the last *FLAGS variable, or 8456 # (2) before a word containing "conftest.", or (3) at the end. 8457 # Note that $ac_compile itself does not contain backslashes and begins 8458 # with a dollar sign (not a hyphen), so the echo should work correctly. 8459 lt_compile=`echo "$ac_compile" | $SED \ 8460 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8461 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8462 -e 's:$: $lt_compiler_flag:'` 8463 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8464 (eval "$lt_compile" 2>out/conftest.err) 8465 ac_status=$? 8466 cat out/conftest.err >&5 8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8468 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8469 then 8470 # The compiler can only warn and ignore the option if not recognized 8471 # So say no if there are warnings 8472 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8473 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8474 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8475 lt_cv_prog_compiler_c_o=yes 8476 fi 8477 fi 8478 chmod u+w . 2>&5 8479 $RM conftest* 8480 # SGI C++ compiler will create directory out/ii_files/ for 8481 # template instantiation 8482 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8483 $RM out/* && rmdir out 8484 cd .. 8485 $RM -r conftest 8486 $RM conftest* 8487 8488fi 8489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8490$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8491 8492 8493 8494 8495hard_links="nottested" 8496if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8497 # do not overwrite the value of need_locks provided by the user 8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8499$as_echo_n "checking if we can lock with hard links... " >&6; } 8500 hard_links=yes 8501 $RM conftest* 8502 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8503 touch conftest.a 8504 ln conftest.a conftest.b 2>&5 || hard_links=no 8505 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8507$as_echo "$hard_links" >&6; } 8508 if test "$hard_links" = no; then 8509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8510$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8511 need_locks=warn 8512 fi 8513else 8514 need_locks=no 8515fi 8516 8517 8518 8519 8520 8521 8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8523$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8524 8525 runpath_var= 8526 allow_undefined_flag= 8527 always_export_symbols=no 8528 archive_cmds= 8529 archive_expsym_cmds= 8530 compiler_needs_object=no 8531 enable_shared_with_static_runtimes=no 8532 export_dynamic_flag_spec= 8533 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8534 hardcode_automatic=no 8535 hardcode_direct=no 8536 hardcode_direct_absolute=no 8537 hardcode_libdir_flag_spec= 8538 hardcode_libdir_separator= 8539 hardcode_minus_L=no 8540 hardcode_shlibpath_var=unsupported 8541 inherit_rpath=no 8542 link_all_deplibs=unknown 8543 module_cmds= 8544 module_expsym_cmds= 8545 old_archive_from_new_cmds= 8546 old_archive_from_expsyms_cmds= 8547 thread_safe_flag_spec= 8548 whole_archive_flag_spec= 8549 # include_expsyms should be a list of space-separated symbols to be *always* 8550 # included in the symbol list 8551 include_expsyms= 8552 # exclude_expsyms can be an extended regexp of symbols to exclude 8553 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8554 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8555 # as well as any symbol that contains `d'. 8556 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8557 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8558 # platforms (ab)use it in PIC code, but their linkers get confused if 8559 # the symbol is explicitly referenced. Since portable code cannot 8560 # rely on this symbol name, it's probably fine to never include it in 8561 # preloaded symbol tables. 8562 # Exclude shared library initialization/finalization symbols. 8563 extract_expsyms_cmds= 8564 8565 case $host_os in 8566 cygwin* | mingw* | pw32* | cegcc*) 8567 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8568 # When not using gcc, we currently assume that we are using 8569 # Microsoft Visual C++. 8570 if test "$GCC" != yes; then 8571 with_gnu_ld=no 8572 fi 8573 ;; 8574 interix*) 8575 # we just hope/assume this is gcc and not c89 (= MSVC++) 8576 with_gnu_ld=yes 8577 ;; 8578 openbsd*) 8579 with_gnu_ld=no 8580 ;; 8581 esac 8582 8583 ld_shlibs=yes 8584 8585 # On some targets, GNU ld is compatible enough with the native linker 8586 # that we're better off using the native interface for both. 8587 lt_use_gnu_ld_interface=no 8588 if test "$with_gnu_ld" = yes; then 8589 case $host_os in 8590 aix*) 8591 # The AIX port of GNU ld has always aspired to compatibility 8592 # with the native linker. However, as the warning in the GNU ld 8593 # block says, versions before 2.19.5* couldn't really create working 8594 # shared libraries, regardless of the interface used. 8595 case `$LD -v 2>&1` in 8596 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8597 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8598 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8599 *) 8600 lt_use_gnu_ld_interface=yes 8601 ;; 8602 esac 8603 ;; 8604 *) 8605 lt_use_gnu_ld_interface=yes 8606 ;; 8607 esac 8608 fi 8609 8610 if test "$lt_use_gnu_ld_interface" = yes; then 8611 # If archive_cmds runs LD, not CC, wlarc should be empty 8612 wlarc='${wl}' 8613 8614 # Set some defaults for GNU ld with shared library support. These 8615 # are reset later if shared libraries are not supported. Putting them 8616 # here allows them to be overridden if necessary. 8617 runpath_var=LD_RUN_PATH 8618 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8619 export_dynamic_flag_spec='${wl}--export-dynamic' 8620 # ancient GNU ld didn't support --whole-archive et. al. 8621 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8622 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8623 else 8624 whole_archive_flag_spec= 8625 fi 8626 supports_anon_versioning=no 8627 case `$LD -v 2>&1` in 8628 *GNU\ gold*) supports_anon_versioning=yes ;; 8629 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8630 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8631 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8632 *\ 2.11.*) ;; # other 2.11 versions 8633 *) supports_anon_versioning=yes ;; 8634 esac 8635 8636 # See if GNU ld supports shared libraries. 8637 case $host_os in 8638 aix[3-9]*) 8639 # On AIX/PPC, the GNU linker is very broken 8640 if test "$host_cpu" != ia64; then 8641 ld_shlibs=no 8642 cat <<_LT_EOF 1>&2 8643 8644*** Warning: the GNU linker, at least up to release 2.19, is reported 8645*** to be unable to reliably create shared libraries on AIX. 8646*** Therefore, libtool is disabling shared libraries support. If you 8647*** really care for shared libraries, you may want to install binutils 8648*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8649*** You will then need to restart the configuration process. 8650 8651_LT_EOF 8652 fi 8653 ;; 8654 8655 amigaos*) 8656 case $host_cpu in 8657 powerpc) 8658 # see comment about AmigaOS4 .so support 8659 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8660 archive_expsym_cmds='' 8661 ;; 8662 m68k) 8663 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)' 8664 hardcode_libdir_flag_spec='-L$libdir' 8665 hardcode_minus_L=yes 8666 ;; 8667 esac 8668 ;; 8669 8670 beos*) 8671 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8672 allow_undefined_flag=unsupported 8673 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8674 # support --undefined. This deserves some investigation. FIXME 8675 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8676 else 8677 ld_shlibs=no 8678 fi 8679 ;; 8680 8681 cygwin* | mingw* | pw32* | cegcc*) 8682 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8683 # as there is no search path for DLLs. 8684 hardcode_libdir_flag_spec='-L$libdir' 8685 export_dynamic_flag_spec='${wl}--export-all-symbols' 8686 allow_undefined_flag=unsupported 8687 always_export_symbols=no 8688 enable_shared_with_static_runtimes=yes 8689 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' 8690 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8691 8692 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8693 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8694 # If the export-symbols file already is a .def file (1st line 8695 # is EXPORTS), use it as is; otherwise, prepend... 8696 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8697 cp $export_symbols $output_objdir/$soname.def; 8698 else 8699 echo EXPORTS > $output_objdir/$soname.def; 8700 cat $export_symbols >> $output_objdir/$soname.def; 8701 fi~ 8702 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8703 else 8704 ld_shlibs=no 8705 fi 8706 ;; 8707 8708 haiku*) 8709 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8710 link_all_deplibs=yes 8711 ;; 8712 8713 interix[3-9]*) 8714 hardcode_direct=no 8715 hardcode_shlibpath_var=no 8716 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8717 export_dynamic_flag_spec='${wl}-E' 8718 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8719 # Instead, shared libraries are loaded at an image base (0x10000000 by 8720 # default) and relocated if they conflict, which is a slow very memory 8721 # consuming and fragmenting process. To avoid this, we pick a random, 8722 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8723 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8724 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8725 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' 8726 ;; 8727 8728 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8729 tmp_diet=no 8730 if test "$host_os" = linux-dietlibc; then 8731 case $cc_basename in 8732 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8733 esac 8734 fi 8735 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8736 && test "$tmp_diet" = no 8737 then 8738 tmp_addflag=' $pic_flag' 8739 tmp_sharedflag='-shared' 8740 case $cc_basename,$host_cpu in 8741 pgcc*) # Portland Group C compiler 8742 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' 8743 tmp_addflag=' $pic_flag' 8744 ;; 8745 pgf77* | pgf90* | pgf95* | pgfortran*) 8746 # Portland Group f77 and f90 compilers 8747 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' 8748 tmp_addflag=' $pic_flag -Mnomain' ;; 8749 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8750 tmp_addflag=' -i_dynamic' ;; 8751 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8752 tmp_addflag=' -i_dynamic -nofor_main' ;; 8753 ifc* | ifort*) # Intel Fortran compiler 8754 tmp_addflag=' -nofor_main' ;; 8755 lf95*) # Lahey Fortran 8.1 8756 whole_archive_flag_spec= 8757 tmp_sharedflag='--shared' ;; 8758 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8759 tmp_sharedflag='-qmkshrobj' 8760 tmp_addflag= ;; 8761 nvcc*) # Cuda Compiler Driver 2.2 8762 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' 8763 compiler_needs_object=yes 8764 ;; 8765 esac 8766 case `$CC -V 2>&1 | sed 5q` in 8767 *Sun\ C*) # Sun C 5.9 8768 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' 8769 compiler_needs_object=yes 8770 tmp_sharedflag='-G' ;; 8771 *Sun\ F*) # Sun Fortran 8.3 8772 tmp_sharedflag='-G' ;; 8773 esac 8774 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8775 8776 if test "x$supports_anon_versioning" = xyes; then 8777 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8778 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8779 echo "local: *; };" >> $output_objdir/$libname.ver~ 8780 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8781 fi 8782 8783 case $cc_basename in 8784 xlf* | bgf* | bgxlf* | mpixlf*) 8785 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8786 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8787 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8788 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8789 if test "x$supports_anon_versioning" = xyes; then 8790 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8791 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8792 echo "local: *; };" >> $output_objdir/$libname.ver~ 8793 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8794 fi 8795 ;; 8796 esac 8797 else 8798 ld_shlibs=no 8799 fi 8800 ;; 8801 8802 netbsd*) 8803 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8804 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8805 wlarc= 8806 else 8807 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8808 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8809 fi 8810 ;; 8811 8812 solaris*) 8813 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8814 ld_shlibs=no 8815 cat <<_LT_EOF 1>&2 8816 8817*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8818*** create shared libraries on Solaris systems. Therefore, libtool 8819*** is disabling shared libraries support. We urge you to upgrade GNU 8820*** binutils to release 2.9.1 or newer. Another option is to modify 8821*** your PATH or compiler configuration so that the native linker is 8822*** used, and then restart. 8823 8824_LT_EOF 8825 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8826 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8827 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8828 else 8829 ld_shlibs=no 8830 fi 8831 ;; 8832 8833 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8834 case `$LD -v 2>&1` in 8835 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8836 ld_shlibs=no 8837 cat <<_LT_EOF 1>&2 8838 8839*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8840*** reliably create shared libraries on SCO systems. Therefore, libtool 8841*** is disabling shared libraries support. We urge you to upgrade GNU 8842*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8843*** your PATH or compiler configuration so that the native linker is 8844*** used, and then restart. 8845 8846_LT_EOF 8847 ;; 8848 *) 8849 # For security reasons, it is highly recommended that you always 8850 # use absolute paths for naming shared libraries, and exclude the 8851 # DT_RUNPATH tag from executables and libraries. But doing so 8852 # requires that you compile everything twice, which is a pain. 8853 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8854 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8855 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8856 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8857 else 8858 ld_shlibs=no 8859 fi 8860 ;; 8861 esac 8862 ;; 8863 8864 sunos4*) 8865 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8866 wlarc= 8867 hardcode_direct=yes 8868 hardcode_shlibpath_var=no 8869 ;; 8870 8871 *) 8872 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8873 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8874 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8875 else 8876 ld_shlibs=no 8877 fi 8878 ;; 8879 esac 8880 8881 if test "$ld_shlibs" = no; then 8882 runpath_var= 8883 hardcode_libdir_flag_spec= 8884 export_dynamic_flag_spec= 8885 whole_archive_flag_spec= 8886 fi 8887 else 8888 # PORTME fill in a description of your system's linker (not GNU ld) 8889 case $host_os in 8890 aix3*) 8891 allow_undefined_flag=unsupported 8892 always_export_symbols=yes 8893 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' 8894 # Note: this linker hardcodes the directories in LIBPATH if there 8895 # are no directories specified by -L. 8896 hardcode_minus_L=yes 8897 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8898 # Neither direct hardcoding nor static linking is supported with a 8899 # broken collect2. 8900 hardcode_direct=unsupported 8901 fi 8902 ;; 8903 8904 aix[4-9]*) 8905 if test "$host_cpu" = ia64; then 8906 # On IA64, the linker does run time linking by default, so we don't 8907 # have to do anything special. 8908 aix_use_runtimelinking=no 8909 exp_sym_flag='-Bexport' 8910 no_entry_flag="" 8911 else 8912 # If we're using GNU nm, then we don't want the "-C" option. 8913 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8914 # Also, AIX nm treats weak defined symbols like other global 8915 # defined symbols, whereas GNU nm marks them as "W". 8916 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8917 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' 8918 else 8919 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' 8920 fi 8921 aix_use_runtimelinking=no 8922 8923 # Test if we are trying to use run time linking or normal 8924 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8925 # need to do runtime linking. 8926 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8927 for ld_flag in $LDFLAGS; do 8928 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8929 aix_use_runtimelinking=yes 8930 break 8931 fi 8932 done 8933 ;; 8934 esac 8935 8936 exp_sym_flag='-bexport' 8937 no_entry_flag='-bnoentry' 8938 fi 8939 8940 # When large executables or shared objects are built, AIX ld can 8941 # have problems creating the table of contents. If linking a library 8942 # or program results in "error TOC overflow" add -mminimal-toc to 8943 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8944 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8945 8946 archive_cmds='' 8947 hardcode_direct=yes 8948 hardcode_direct_absolute=yes 8949 hardcode_libdir_separator=':' 8950 link_all_deplibs=yes 8951 file_list_spec='${wl}-f,' 8952 8953 if test "$GCC" = yes; then 8954 case $host_os in aix4.[012]|aix4.[012].*) 8955 # We only want to do this on AIX 4.2 and lower, the check 8956 # below for broken collect2 doesn't work under 4.3+ 8957 collect2name=`${CC} -print-prog-name=collect2` 8958 if test -f "$collect2name" && 8959 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8960 then 8961 # We have reworked collect2 8962 : 8963 else 8964 # We have old collect2 8965 hardcode_direct=unsupported 8966 # It fails to find uninstalled libraries when the uninstalled 8967 # path is not listed in the libpath. Setting hardcode_minus_L 8968 # to unsupported forces relinking 8969 hardcode_minus_L=yes 8970 hardcode_libdir_flag_spec='-L$libdir' 8971 hardcode_libdir_separator= 8972 fi 8973 ;; 8974 esac 8975 shared_flag='-shared' 8976 if test "$aix_use_runtimelinking" = yes; then 8977 shared_flag="$shared_flag "'${wl}-G' 8978 fi 8979 else 8980 # not using gcc 8981 if test "$host_cpu" = ia64; then 8982 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8983 # chokes on -Wl,-G. The following line is correct: 8984 shared_flag='-G' 8985 else 8986 if test "$aix_use_runtimelinking" = yes; then 8987 shared_flag='${wl}-G' 8988 else 8989 shared_flag='${wl}-bM:SRE' 8990 fi 8991 fi 8992 fi 8993 8994 export_dynamic_flag_spec='${wl}-bexpall' 8995 # It seems that -bexpall does not export symbols beginning with 8996 # underscore (_), so it is better to generate a list of symbols to export. 8997 always_export_symbols=yes 8998 if test "$aix_use_runtimelinking" = yes; then 8999 # Warning - without using the other runtime loading flags (-brtl), 9000 # -berok will link without error, but may produce a broken library. 9001 allow_undefined_flag='-berok' 9002 # Determine the default libpath from the value encoded in an 9003 # empty executable. 9004 if test "${lt_cv_aix_libpath+set}" = set; then 9005 aix_libpath=$lt_cv_aix_libpath 9006else 9007 if ${lt_cv_aix_libpath_+:} false; then : 9008 $as_echo_n "(cached) " >&6 9009else 9010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9011/* end confdefs.h. */ 9012 9013int 9014main () 9015{ 9016 9017 ; 9018 return 0; 9019} 9020_ACEOF 9021if ac_fn_c_try_link "$LINENO"; then : 9022 9023 lt_aix_libpath_sed=' 9024 /Import File Strings/,/^$/ { 9025 /^0/ { 9026 s/^0 *\([^ ]*\) *$/\1/ 9027 p 9028 } 9029 }' 9030 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9031 # Check for a 64-bit object if we didn't find anything. 9032 if test -z "$lt_cv_aix_libpath_"; then 9033 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9034 fi 9035fi 9036rm -f core conftest.err conftest.$ac_objext \ 9037 conftest$ac_exeext conftest.$ac_ext 9038 if test -z "$lt_cv_aix_libpath_"; then 9039 lt_cv_aix_libpath_="/usr/lib:/lib" 9040 fi 9041 9042fi 9043 9044 aix_libpath=$lt_cv_aix_libpath_ 9045fi 9046 9047 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9048 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" 9049 else 9050 if test "$host_cpu" = ia64; then 9051 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9052 allow_undefined_flag="-z nodefs" 9053 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" 9054 else 9055 # Determine the default libpath from the value encoded in an 9056 # empty executable. 9057 if test "${lt_cv_aix_libpath+set}" = set; then 9058 aix_libpath=$lt_cv_aix_libpath 9059else 9060 if ${lt_cv_aix_libpath_+:} false; then : 9061 $as_echo_n "(cached) " >&6 9062else 9063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9064/* end confdefs.h. */ 9065 9066int 9067main () 9068{ 9069 9070 ; 9071 return 0; 9072} 9073_ACEOF 9074if ac_fn_c_try_link "$LINENO"; then : 9075 9076 lt_aix_libpath_sed=' 9077 /Import File Strings/,/^$/ { 9078 /^0/ { 9079 s/^0 *\([^ ]*\) *$/\1/ 9080 p 9081 } 9082 }' 9083 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9084 # Check for a 64-bit object if we didn't find anything. 9085 if test -z "$lt_cv_aix_libpath_"; then 9086 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9087 fi 9088fi 9089rm -f core conftest.err conftest.$ac_objext \ 9090 conftest$ac_exeext conftest.$ac_ext 9091 if test -z "$lt_cv_aix_libpath_"; then 9092 lt_cv_aix_libpath_="/usr/lib:/lib" 9093 fi 9094 9095fi 9096 9097 aix_libpath=$lt_cv_aix_libpath_ 9098fi 9099 9100 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9101 # Warning - without using the other run time loading flags, 9102 # -berok will link without error, but may produce a broken library. 9103 no_undefined_flag=' ${wl}-bernotok' 9104 allow_undefined_flag=' ${wl}-berok' 9105 if test "$with_gnu_ld" = yes; then 9106 # We only use this code for GNU lds that support --whole-archive. 9107 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9108 else 9109 # Exported symbols can be pulled into shared objects from archives 9110 whole_archive_flag_spec='$convenience' 9111 fi 9112 archive_cmds_need_lc=yes 9113 # This is similar to how AIX traditionally builds its shared libraries. 9114 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' 9115 fi 9116 fi 9117 ;; 9118 9119 amigaos*) 9120 case $host_cpu in 9121 powerpc) 9122 # see comment about AmigaOS4 .so support 9123 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9124 archive_expsym_cmds='' 9125 ;; 9126 m68k) 9127 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)' 9128 hardcode_libdir_flag_spec='-L$libdir' 9129 hardcode_minus_L=yes 9130 ;; 9131 esac 9132 ;; 9133 9134 bsdi[45]*) 9135 export_dynamic_flag_spec=-rdynamic 9136 ;; 9137 9138 cygwin* | mingw* | pw32* | cegcc*) 9139 # When not using gcc, we currently assume that we are using 9140 # Microsoft Visual C++. 9141 # hardcode_libdir_flag_spec is actually meaningless, as there is 9142 # no search path for DLLs. 9143 case $cc_basename in 9144 cl*) 9145 # Native MSVC 9146 hardcode_libdir_flag_spec=' ' 9147 allow_undefined_flag=unsupported 9148 always_export_symbols=yes 9149 file_list_spec='@' 9150 # Tell ltmain to make .lib files, not .a files. 9151 libext=lib 9152 # Tell ltmain to make .dll files, not .so files. 9153 shrext_cmds=".dll" 9154 # FIXME: Setting linknames here is a bad hack. 9155 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9156 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9157 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9158 else 9159 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9160 fi~ 9161 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9162 linknames=' 9163 # The linker will not automatically build a static lib if we build a DLL. 9164 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9165 enable_shared_with_static_runtimes=yes 9166 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9167 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9168 # Don't use ranlib 9169 old_postinstall_cmds='chmod 644 $oldlib' 9170 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9171 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9172 case $lt_outputfile in 9173 *.exe|*.EXE) ;; 9174 *) 9175 lt_outputfile="$lt_outputfile.exe" 9176 lt_tool_outputfile="$lt_tool_outputfile.exe" 9177 ;; 9178 esac~ 9179 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9180 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9181 $RM "$lt_outputfile.manifest"; 9182 fi' 9183 ;; 9184 *) 9185 # Assume MSVC wrapper 9186 hardcode_libdir_flag_spec=' ' 9187 allow_undefined_flag=unsupported 9188 # Tell ltmain to make .lib files, not .a files. 9189 libext=lib 9190 # Tell ltmain to make .dll files, not .so files. 9191 shrext_cmds=".dll" 9192 # FIXME: Setting linknames here is a bad hack. 9193 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9194 # The linker will automatically build a .lib file if we build a DLL. 9195 old_archive_from_new_cmds='true' 9196 # FIXME: Should let the user specify the lib program. 9197 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9198 enable_shared_with_static_runtimes=yes 9199 ;; 9200 esac 9201 ;; 9202 9203 darwin* | rhapsody*) 9204 9205 9206 archive_cmds_need_lc=no 9207 hardcode_direct=no 9208 hardcode_automatic=yes 9209 hardcode_shlibpath_var=unsupported 9210 if test "$lt_cv_ld_force_load" = "yes"; then 9211 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\"`' 9212 9213 else 9214 whole_archive_flag_spec='' 9215 fi 9216 link_all_deplibs=yes 9217 allow_undefined_flag="$_lt_dar_allow_undefined" 9218 case $cc_basename in 9219 ifort*) _lt_dar_can_shared=yes ;; 9220 *) _lt_dar_can_shared=$GCC ;; 9221 esac 9222 if test "$_lt_dar_can_shared" = "yes"; then 9223 output_verbose_link_cmd=func_echo_all 9224 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9225 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9226 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}" 9227 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}" 9228 9229 else 9230 ld_shlibs=no 9231 fi 9232 9233 ;; 9234 9235 dgux*) 9236 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9237 hardcode_libdir_flag_spec='-L$libdir' 9238 hardcode_shlibpath_var=no 9239 ;; 9240 9241 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9242 # support. Future versions do this automatically, but an explicit c++rt0.o 9243 # does not break anything, and helps significantly (at the cost of a little 9244 # extra space). 9245 freebsd2.2*) 9246 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9247 hardcode_libdir_flag_spec='-R$libdir' 9248 hardcode_direct=yes 9249 hardcode_shlibpath_var=no 9250 ;; 9251 9252 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9253 freebsd2.*) 9254 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9255 hardcode_direct=yes 9256 hardcode_minus_L=yes 9257 hardcode_shlibpath_var=no 9258 ;; 9259 9260 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9261 freebsd* | dragonfly*) 9262 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9263 hardcode_libdir_flag_spec='-R$libdir' 9264 hardcode_direct=yes 9265 hardcode_shlibpath_var=no 9266 ;; 9267 9268 hpux9*) 9269 if test "$GCC" = yes; then 9270 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' 9271 else 9272 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' 9273 fi 9274 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9275 hardcode_libdir_separator=: 9276 hardcode_direct=yes 9277 9278 # hardcode_minus_L: Not really in the search PATH, 9279 # but as the default location of the library. 9280 hardcode_minus_L=yes 9281 export_dynamic_flag_spec='${wl}-E' 9282 ;; 9283 9284 hpux10*) 9285 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9286 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9287 else 9288 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9289 fi 9290 if test "$with_gnu_ld" = no; then 9291 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9292 hardcode_libdir_separator=: 9293 hardcode_direct=yes 9294 hardcode_direct_absolute=yes 9295 export_dynamic_flag_spec='${wl}-E' 9296 # hardcode_minus_L: Not really in the search PATH, 9297 # but as the default location of the library. 9298 hardcode_minus_L=yes 9299 fi 9300 ;; 9301 9302 hpux11*) 9303 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9304 case $host_cpu in 9305 hppa*64*) 9306 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9307 ;; 9308 ia64*) 9309 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9310 ;; 9311 *) 9312 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9313 ;; 9314 esac 9315 else 9316 case $host_cpu in 9317 hppa*64*) 9318 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9319 ;; 9320 ia64*) 9321 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9322 ;; 9323 *) 9324 9325 # Older versions of the 11.00 compiler do not understand -b yet 9326 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9328$as_echo_n "checking if $CC understands -b... " >&6; } 9329if ${lt_cv_prog_compiler__b+:} false; then : 9330 $as_echo_n "(cached) " >&6 9331else 9332 lt_cv_prog_compiler__b=no 9333 save_LDFLAGS="$LDFLAGS" 9334 LDFLAGS="$LDFLAGS -b" 9335 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9336 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9337 # The linker can only warn and ignore the option if not recognized 9338 # So say no if there are warnings 9339 if test -s conftest.err; then 9340 # Append any errors to the config.log. 9341 cat conftest.err 1>&5 9342 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9343 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9344 if diff conftest.exp conftest.er2 >/dev/null; then 9345 lt_cv_prog_compiler__b=yes 9346 fi 9347 else 9348 lt_cv_prog_compiler__b=yes 9349 fi 9350 fi 9351 $RM -r conftest* 9352 LDFLAGS="$save_LDFLAGS" 9353 9354fi 9355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9356$as_echo "$lt_cv_prog_compiler__b" >&6; } 9357 9358if test x"$lt_cv_prog_compiler__b" = xyes; then 9359 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9360else 9361 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9362fi 9363 9364 ;; 9365 esac 9366 fi 9367 if test "$with_gnu_ld" = no; then 9368 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9369 hardcode_libdir_separator=: 9370 9371 case $host_cpu in 9372 hppa*64*|ia64*) 9373 hardcode_direct=no 9374 hardcode_shlibpath_var=no 9375 ;; 9376 *) 9377 hardcode_direct=yes 9378 hardcode_direct_absolute=yes 9379 export_dynamic_flag_spec='${wl}-E' 9380 9381 # hardcode_minus_L: Not really in the search PATH, 9382 # but as the default location of the library. 9383 hardcode_minus_L=yes 9384 ;; 9385 esac 9386 fi 9387 ;; 9388 9389 irix5* | irix6* | nonstopux*) 9390 if test "$GCC" = yes; then 9391 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' 9392 # Try to use the -exported_symbol ld option, if it does not 9393 # work, assume that -exports_file does not work either and 9394 # implicitly export all symbols. 9395 # This should be the same for all languages, so no per-tag cache variable. 9396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9397$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9398if ${lt_cv_irix_exported_symbol+:} false; then : 9399 $as_echo_n "(cached) " >&6 9400else 9401 save_LDFLAGS="$LDFLAGS" 9402 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9404/* end confdefs.h. */ 9405int foo (void) { return 0; } 9406_ACEOF 9407if ac_fn_c_try_link "$LINENO"; then : 9408 lt_cv_irix_exported_symbol=yes 9409else 9410 lt_cv_irix_exported_symbol=no 9411fi 9412rm -f core conftest.err conftest.$ac_objext \ 9413 conftest$ac_exeext conftest.$ac_ext 9414 LDFLAGS="$save_LDFLAGS" 9415fi 9416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9417$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9418 if test "$lt_cv_irix_exported_symbol" = yes; then 9419 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' 9420 fi 9421 else 9422 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' 9423 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' 9424 fi 9425 archive_cmds_need_lc='no' 9426 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9427 hardcode_libdir_separator=: 9428 inherit_rpath=yes 9429 link_all_deplibs=yes 9430 ;; 9431 9432 netbsd*) 9433 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9434 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9435 else 9436 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9437 fi 9438 hardcode_libdir_flag_spec='-R$libdir' 9439 hardcode_direct=yes 9440 hardcode_shlibpath_var=no 9441 ;; 9442 9443 newsos6) 9444 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9445 hardcode_direct=yes 9446 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9447 hardcode_libdir_separator=: 9448 hardcode_shlibpath_var=no 9449 ;; 9450 9451 *nto* | *qnx*) 9452 ;; 9453 9454 openbsd*) 9455 if test -f /usr/libexec/ld.so; then 9456 hardcode_direct=yes 9457 hardcode_shlibpath_var=no 9458 hardcode_direct_absolute=yes 9459 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9460 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9461 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9462 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9463 export_dynamic_flag_spec='${wl}-E' 9464 else 9465 case $host_os in 9466 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9467 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9468 hardcode_libdir_flag_spec='-R$libdir' 9469 ;; 9470 *) 9471 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9472 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9473 ;; 9474 esac 9475 fi 9476 else 9477 ld_shlibs=no 9478 fi 9479 ;; 9480 9481 os2*) 9482 hardcode_libdir_flag_spec='-L$libdir' 9483 hardcode_minus_L=yes 9484 allow_undefined_flag=unsupported 9485 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' 9486 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9487 ;; 9488 9489 osf3*) 9490 if test "$GCC" = yes; then 9491 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9492 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' 9493 else 9494 allow_undefined_flag=' -expect_unresolved \*' 9495 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' 9496 fi 9497 archive_cmds_need_lc='no' 9498 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9499 hardcode_libdir_separator=: 9500 ;; 9501 9502 osf4* | osf5*) # as osf3* with the addition of -msym flag 9503 if test "$GCC" = yes; then 9504 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9505 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' 9506 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9507 else 9508 allow_undefined_flag=' -expect_unresolved \*' 9509 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' 9510 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~ 9511 $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' 9512 9513 # Both c and cxx compiler support -rpath directly 9514 hardcode_libdir_flag_spec='-rpath $libdir' 9515 fi 9516 archive_cmds_need_lc='no' 9517 hardcode_libdir_separator=: 9518 ;; 9519 9520 solaris*) 9521 no_undefined_flag=' -z defs' 9522 if test "$GCC" = yes; then 9523 wlarc='${wl}' 9524 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9525 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9526 $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' 9527 else 9528 case `$CC -V 2>&1` in 9529 *"Compilers 5.0"*) 9530 wlarc='' 9531 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9532 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9533 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9534 ;; 9535 *) 9536 wlarc='${wl}' 9537 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9538 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9539 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9540 ;; 9541 esac 9542 fi 9543 hardcode_libdir_flag_spec='-R$libdir' 9544 hardcode_shlibpath_var=no 9545 case $host_os in 9546 solaris2.[0-5] | solaris2.[0-5].*) ;; 9547 *) 9548 # The compiler driver will combine and reorder linker options, 9549 # but understands `-z linker_flag'. GCC discards it without `$wl', 9550 # but is careful enough not to reorder. 9551 # Supported since Solaris 2.6 (maybe 2.5.1?) 9552 if test "$GCC" = yes; then 9553 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9554 else 9555 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9556 fi 9557 ;; 9558 esac 9559 link_all_deplibs=yes 9560 ;; 9561 9562 sunos4*) 9563 if test "x$host_vendor" = xsequent; then 9564 # Use $CC to link under sequent, because it throws in some extra .o 9565 # files that make .init and .fini sections work. 9566 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9567 else 9568 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9569 fi 9570 hardcode_libdir_flag_spec='-L$libdir' 9571 hardcode_direct=yes 9572 hardcode_minus_L=yes 9573 hardcode_shlibpath_var=no 9574 ;; 9575 9576 sysv4) 9577 case $host_vendor in 9578 sni) 9579 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9580 hardcode_direct=yes # is this really true??? 9581 ;; 9582 siemens) 9583 ## LD is ld it makes a PLAMLIB 9584 ## CC just makes a GrossModule. 9585 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9586 reload_cmds='$CC -r -o $output$reload_objs' 9587 hardcode_direct=no 9588 ;; 9589 motorola) 9590 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9591 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9592 ;; 9593 esac 9594 runpath_var='LD_RUN_PATH' 9595 hardcode_shlibpath_var=no 9596 ;; 9597 9598 sysv4.3*) 9599 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9600 hardcode_shlibpath_var=no 9601 export_dynamic_flag_spec='-Bexport' 9602 ;; 9603 9604 sysv4*MP*) 9605 if test -d /usr/nec; then 9606 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9607 hardcode_shlibpath_var=no 9608 runpath_var=LD_RUN_PATH 9609 hardcode_runpath_var=yes 9610 ld_shlibs=yes 9611 fi 9612 ;; 9613 9614 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9615 no_undefined_flag='${wl}-z,text' 9616 archive_cmds_need_lc=no 9617 hardcode_shlibpath_var=no 9618 runpath_var='LD_RUN_PATH' 9619 9620 if test "$GCC" = yes; then 9621 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9622 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9623 else 9624 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9625 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9626 fi 9627 ;; 9628 9629 sysv5* | sco3.2v5* | sco5v6*) 9630 # Note: We can NOT use -z defs as we might desire, because we do not 9631 # link with -lc, and that would cause any symbols used from libc to 9632 # always be unresolved, which means just about no library would 9633 # ever link correctly. If we're not using GNU ld we use -z text 9634 # though, which does catch some bad symbols but isn't as heavy-handed 9635 # as -z defs. 9636 no_undefined_flag='${wl}-z,text' 9637 allow_undefined_flag='${wl}-z,nodefs' 9638 archive_cmds_need_lc=no 9639 hardcode_shlibpath_var=no 9640 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9641 hardcode_libdir_separator=':' 9642 link_all_deplibs=yes 9643 export_dynamic_flag_spec='${wl}-Bexport' 9644 runpath_var='LD_RUN_PATH' 9645 9646 if test "$GCC" = yes; then 9647 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9648 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9649 else 9650 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9651 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9652 fi 9653 ;; 9654 9655 uts4*) 9656 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9657 hardcode_libdir_flag_spec='-L$libdir' 9658 hardcode_shlibpath_var=no 9659 ;; 9660 9661 *) 9662 ld_shlibs=no 9663 ;; 9664 esac 9665 9666 if test x$host_vendor = xsni; then 9667 case $host in 9668 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9669 export_dynamic_flag_spec='${wl}-Blargedynsym' 9670 ;; 9671 esac 9672 fi 9673 fi 9674 9675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9676$as_echo "$ld_shlibs" >&6; } 9677test "$ld_shlibs" = no && can_build_shared=no 9678 9679with_gnu_ld=$with_gnu_ld 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695# 9696# Do we need to explicitly link libc? 9697# 9698case "x$archive_cmds_need_lc" in 9699x|xyes) 9700 # Assume -lc should be added 9701 archive_cmds_need_lc=yes 9702 9703 if test "$enable_shared" = yes && test "$GCC" = yes; then 9704 case $archive_cmds in 9705 *'~'*) 9706 # FIXME: we may have to deal with multi-command sequences. 9707 ;; 9708 '$CC '*) 9709 # Test whether the compiler implicitly links with -lc since on some 9710 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9711 # to ld, don't add -lc before -lgcc. 9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9713$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9714if ${lt_cv_archive_cmds_need_lc+:} false; then : 9715 $as_echo_n "(cached) " >&6 9716else 9717 $RM conftest* 9718 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9719 9720 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9721 (eval $ac_compile) 2>&5 9722 ac_status=$? 9723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9724 test $ac_status = 0; } 2>conftest.err; then 9725 soname=conftest 9726 lib=conftest 9727 libobjs=conftest.$ac_objext 9728 deplibs= 9729 wl=$lt_prog_compiler_wl 9730 pic_flag=$lt_prog_compiler_pic 9731 compiler_flags=-v 9732 linker_flags=-v 9733 verstring= 9734 output_objdir=. 9735 libname=conftest 9736 lt_save_allow_undefined_flag=$allow_undefined_flag 9737 allow_undefined_flag= 9738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9739 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9740 ac_status=$? 9741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9742 test $ac_status = 0; } 9743 then 9744 lt_cv_archive_cmds_need_lc=no 9745 else 9746 lt_cv_archive_cmds_need_lc=yes 9747 fi 9748 allow_undefined_flag=$lt_save_allow_undefined_flag 9749 else 9750 cat conftest.err 1>&5 9751 fi 9752 $RM conftest* 9753 9754fi 9755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9756$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9757 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9758 ;; 9759 esac 9760 fi 9761 ;; 9762esac 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9916$as_echo_n "checking dynamic linker characteristics... " >&6; } 9917 9918if test "$GCC" = yes; then 9919 case $host_os in 9920 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9921 *) lt_awk_arg="/^libraries:/" ;; 9922 esac 9923 case $host_os in 9924 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9925 *) lt_sed_strip_eq="s,=/,/,g" ;; 9926 esac 9927 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9928 case $lt_search_path_spec in 9929 *\;*) 9930 # if the path contains ";" then we assume it to be the separator 9931 # otherwise default to the standard path separator (i.e. ":") - it is 9932 # assumed that no part of a normal pathname contains ";" but that should 9933 # okay in the real world where ";" in dirpaths is itself problematic. 9934 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9935 ;; 9936 *) 9937 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9938 ;; 9939 esac 9940 # Ok, now we have the path, separated by spaces, we can step through it 9941 # and add multilib dir if necessary. 9942 lt_tmp_lt_search_path_spec= 9943 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9944 for lt_sys_path in $lt_search_path_spec; do 9945 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9946 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9947 else 9948 test -d "$lt_sys_path" && \ 9949 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9950 fi 9951 done 9952 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9953BEGIN {RS=" "; FS="/|\n";} { 9954 lt_foo=""; 9955 lt_count=0; 9956 for (lt_i = NF; lt_i > 0; lt_i--) { 9957 if ($lt_i != "" && $lt_i != ".") { 9958 if ($lt_i == "..") { 9959 lt_count++; 9960 } else { 9961 if (lt_count == 0) { 9962 lt_foo="/" $lt_i lt_foo; 9963 } else { 9964 lt_count--; 9965 } 9966 } 9967 } 9968 } 9969 if (lt_foo != "") { lt_freq[lt_foo]++; } 9970 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9971}'` 9972 # AWK program above erroneously prepends '/' to C:/dos/paths 9973 # for these hosts. 9974 case $host_os in 9975 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 9976 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 9977 esac 9978 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 9979else 9980 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9981fi 9982library_names_spec= 9983libname_spec='lib$name' 9984soname_spec= 9985shrext_cmds=".so" 9986postinstall_cmds= 9987postuninstall_cmds= 9988finish_cmds= 9989finish_eval= 9990shlibpath_var= 9991shlibpath_overrides_runpath=unknown 9992version_type=none 9993dynamic_linker="$host_os ld.so" 9994sys_lib_dlsearch_path_spec="/lib /usr/lib" 9995need_lib_prefix=unknown 9996hardcode_into_libs=no 9997 9998# when you set need_version to no, make sure it does not cause -set_version 9999# flags to be left without arguments 10000need_version=unknown 10001 10002case $host_os in 10003aix3*) 10004 version_type=linux # correct to gnu/linux during the next big refactor 10005 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10006 shlibpath_var=LIBPATH 10007 10008 # AIX 3 has no versioning support, so we append a major version to the name. 10009 soname_spec='${libname}${release}${shared_ext}$major' 10010 ;; 10011 10012aix[4-9]*) 10013 version_type=linux # correct to gnu/linux during the next big refactor 10014 need_lib_prefix=no 10015 need_version=no 10016 hardcode_into_libs=yes 10017 if test "$host_cpu" = ia64; then 10018 # AIX 5 supports IA64 10019 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10020 shlibpath_var=LD_LIBRARY_PATH 10021 else 10022 # With GCC up to 2.95.x, collect2 would create an import file 10023 # for dependence libraries. The import file would start with 10024 # the line `#! .'. This would cause the generated library to 10025 # depend on `.', always an invalid library. This was fixed in 10026 # development snapshots of GCC prior to 3.0. 10027 case $host_os in 10028 aix4 | aix4.[01] | aix4.[01].*) 10029 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10030 echo ' yes ' 10031 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10032 : 10033 else 10034 can_build_shared=no 10035 fi 10036 ;; 10037 esac 10038 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10039 # soname into executable. Probably we can add versioning support to 10040 # collect2, so additional links can be useful in future. 10041 if test "$aix_use_runtimelinking" = yes; then 10042 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10043 # instead of lib<name>.a to let people know that these are not 10044 # typical AIX shared libraries. 10045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10046 else 10047 # We preserve .a as extension for shared libraries through AIX4.2 10048 # and later when we are not doing run time linking. 10049 library_names_spec='${libname}${release}.a $libname.a' 10050 soname_spec='${libname}${release}${shared_ext}$major' 10051 fi 10052 shlibpath_var=LIBPATH 10053 fi 10054 ;; 10055 10056amigaos*) 10057 case $host_cpu in 10058 powerpc) 10059 # Since July 2007 AmigaOS4 officially supports .so libraries. 10060 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10062 ;; 10063 m68k) 10064 library_names_spec='$libname.ixlibrary $libname.a' 10065 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10066 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' 10067 ;; 10068 esac 10069 ;; 10070 10071beos*) 10072 library_names_spec='${libname}${shared_ext}' 10073 dynamic_linker="$host_os ld.so" 10074 shlibpath_var=LIBRARY_PATH 10075 ;; 10076 10077bsdi[45]*) 10078 version_type=linux # correct to gnu/linux during the next big refactor 10079 need_version=no 10080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10081 soname_spec='${libname}${release}${shared_ext}$major' 10082 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10083 shlibpath_var=LD_LIBRARY_PATH 10084 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10085 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10086 # the default ld.so.conf also contains /usr/contrib/lib and 10087 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10088 # libtool to hard-code these into programs 10089 ;; 10090 10091cygwin* | mingw* | pw32* | cegcc*) 10092 version_type=windows 10093 shrext_cmds=".dll" 10094 need_version=no 10095 need_lib_prefix=no 10096 10097 case $GCC,$cc_basename in 10098 yes,*) 10099 # gcc 10100 library_names_spec='$libname.dll.a' 10101 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10102 postinstall_cmds='base_file=`basename \${file}`~ 10103 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10104 dldir=$destdir/`dirname \$dlpath`~ 10105 test -d \$dldir || mkdir -p \$dldir~ 10106 $install_prog $dir/$dlname \$dldir/$dlname~ 10107 chmod a+x \$dldir/$dlname~ 10108 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10109 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10110 fi' 10111 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10112 dlpath=$dir/\$dldll~ 10113 $RM \$dlpath' 10114 shlibpath_overrides_runpath=yes 10115 10116 case $host_os in 10117 cygwin*) 10118 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10119 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10120 10121 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10122 ;; 10123 mingw* | cegcc*) 10124 # MinGW DLLs use traditional 'lib' prefix 10125 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10126 ;; 10127 pw32*) 10128 # pw32 DLLs use 'pw' prefix rather than 'lib' 10129 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10130 ;; 10131 esac 10132 dynamic_linker='Win32 ld.exe' 10133 ;; 10134 10135 *,cl*) 10136 # Native MSVC 10137 libname_spec='$name' 10138 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10139 library_names_spec='${libname}.dll.lib' 10140 10141 case $build_os in 10142 mingw*) 10143 sys_lib_search_path_spec= 10144 lt_save_ifs=$IFS 10145 IFS=';' 10146 for lt_path in $LIB 10147 do 10148 IFS=$lt_save_ifs 10149 # Let DOS variable expansion print the short 8.3 style file name. 10150 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10151 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10152 done 10153 IFS=$lt_save_ifs 10154 # Convert to MSYS style. 10155 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10156 ;; 10157 cygwin*) 10158 # Convert to unix form, then to dos form, then back to unix form 10159 # but this time dos style (no spaces!) so that the unix form looks 10160 # like /cygdrive/c/PROGRA~1:/cygdr... 10161 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10162 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10163 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10164 ;; 10165 *) 10166 sys_lib_search_path_spec="$LIB" 10167 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10168 # It is most probably a Windows format PATH. 10169 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10170 else 10171 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10172 fi 10173 # FIXME: find the short name or the path components, as spaces are 10174 # common. (e.g. "Program Files" -> "PROGRA~1") 10175 ;; 10176 esac 10177 10178 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10179 postinstall_cmds='base_file=`basename \${file}`~ 10180 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10181 dldir=$destdir/`dirname \$dlpath`~ 10182 test -d \$dldir || mkdir -p \$dldir~ 10183 $install_prog $dir/$dlname \$dldir/$dlname' 10184 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10185 dlpath=$dir/\$dldll~ 10186 $RM \$dlpath' 10187 shlibpath_overrides_runpath=yes 10188 dynamic_linker='Win32 link.exe' 10189 ;; 10190 10191 *) 10192 # Assume MSVC wrapper 10193 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10194 dynamic_linker='Win32 ld.exe' 10195 ;; 10196 esac 10197 # FIXME: first we should search . and the directory the executable is in 10198 shlibpath_var=PATH 10199 ;; 10200 10201darwin* | rhapsody*) 10202 dynamic_linker="$host_os dyld" 10203 version_type=darwin 10204 need_lib_prefix=no 10205 need_version=no 10206 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10207 soname_spec='${libname}${release}${major}$shared_ext' 10208 shlibpath_overrides_runpath=yes 10209 shlibpath_var=DYLD_LIBRARY_PATH 10210 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10211 10212 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10213 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10214 ;; 10215 10216dgux*) 10217 version_type=linux # correct to gnu/linux during the next big refactor 10218 need_lib_prefix=no 10219 need_version=no 10220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10221 soname_spec='${libname}${release}${shared_ext}$major' 10222 shlibpath_var=LD_LIBRARY_PATH 10223 ;; 10224 10225freebsd* | dragonfly*) 10226 # DragonFly does not have aout. When/if they implement a new 10227 # versioning mechanism, adjust this. 10228 if test -x /usr/bin/objformat; then 10229 objformat=`/usr/bin/objformat` 10230 else 10231 case $host_os in 10232 freebsd[23].*) objformat=aout ;; 10233 *) objformat=elf ;; 10234 esac 10235 fi 10236 version_type=freebsd-$objformat 10237 case $version_type in 10238 freebsd-elf*) 10239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10240 need_version=no 10241 need_lib_prefix=no 10242 ;; 10243 freebsd-*) 10244 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10245 need_version=yes 10246 ;; 10247 esac 10248 shlibpath_var=LD_LIBRARY_PATH 10249 case $host_os in 10250 freebsd2.*) 10251 shlibpath_overrides_runpath=yes 10252 ;; 10253 freebsd3.[01]* | freebsdelf3.[01]*) 10254 shlibpath_overrides_runpath=yes 10255 hardcode_into_libs=yes 10256 ;; 10257 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10258 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10259 shlibpath_overrides_runpath=no 10260 hardcode_into_libs=yes 10261 ;; 10262 *) # from 4.6 on, and DragonFly 10263 shlibpath_overrides_runpath=yes 10264 hardcode_into_libs=yes 10265 ;; 10266 esac 10267 ;; 10268 10269gnu*) 10270 version_type=linux # correct to gnu/linux during the next big refactor 10271 need_lib_prefix=no 10272 need_version=no 10273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10274 soname_spec='${libname}${release}${shared_ext}$major' 10275 shlibpath_var=LD_LIBRARY_PATH 10276 shlibpath_overrides_runpath=no 10277 hardcode_into_libs=yes 10278 ;; 10279 10280haiku*) 10281 version_type=linux # correct to gnu/linux during the next big refactor 10282 need_lib_prefix=no 10283 need_version=no 10284 dynamic_linker="$host_os runtime_loader" 10285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10286 soname_spec='${libname}${release}${shared_ext}$major' 10287 shlibpath_var=LIBRARY_PATH 10288 shlibpath_overrides_runpath=yes 10289 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10290 hardcode_into_libs=yes 10291 ;; 10292 10293hpux9* | hpux10* | hpux11*) 10294 # Give a soname corresponding to the major version so that dld.sl refuses to 10295 # link against other versions. 10296 version_type=sunos 10297 need_lib_prefix=no 10298 need_version=no 10299 case $host_cpu in 10300 ia64*) 10301 shrext_cmds='.so' 10302 hardcode_into_libs=yes 10303 dynamic_linker="$host_os dld.so" 10304 shlibpath_var=LD_LIBRARY_PATH 10305 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10307 soname_spec='${libname}${release}${shared_ext}$major' 10308 if test "X$HPUX_IA64_MODE" = X32; then 10309 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10310 else 10311 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10312 fi 10313 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10314 ;; 10315 hppa*64*) 10316 shrext_cmds='.sl' 10317 hardcode_into_libs=yes 10318 dynamic_linker="$host_os dld.sl" 10319 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10320 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10322 soname_spec='${libname}${release}${shared_ext}$major' 10323 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10324 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10325 ;; 10326 *) 10327 shrext_cmds='.sl' 10328 dynamic_linker="$host_os dld.sl" 10329 shlibpath_var=SHLIB_PATH 10330 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10332 soname_spec='${libname}${release}${shared_ext}$major' 10333 ;; 10334 esac 10335 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10336 postinstall_cmds='chmod 555 $lib' 10337 # or fails outright, so override atomically: 10338 install_override_mode=555 10339 ;; 10340 10341interix[3-9]*) 10342 version_type=linux # correct to gnu/linux during the next big refactor 10343 need_lib_prefix=no 10344 need_version=no 10345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10346 soname_spec='${libname}${release}${shared_ext}$major' 10347 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10348 shlibpath_var=LD_LIBRARY_PATH 10349 shlibpath_overrides_runpath=no 10350 hardcode_into_libs=yes 10351 ;; 10352 10353irix5* | irix6* | nonstopux*) 10354 case $host_os in 10355 nonstopux*) version_type=nonstopux ;; 10356 *) 10357 if test "$lt_cv_prog_gnu_ld" = yes; then 10358 version_type=linux # correct to gnu/linux during the next big refactor 10359 else 10360 version_type=irix 10361 fi ;; 10362 esac 10363 need_lib_prefix=no 10364 need_version=no 10365 soname_spec='${libname}${release}${shared_ext}$major' 10366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10367 case $host_os in 10368 irix5* | nonstopux*) 10369 libsuff= shlibsuff= 10370 ;; 10371 *) 10372 case $LD in # libtool.m4 will add one of these switches to LD 10373 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10374 libsuff= shlibsuff= libmagic=32-bit;; 10375 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10376 libsuff=32 shlibsuff=N32 libmagic=N32;; 10377 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10378 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10379 *) libsuff= shlibsuff= libmagic=never-match;; 10380 esac 10381 ;; 10382 esac 10383 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10384 shlibpath_overrides_runpath=no 10385 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10386 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10387 hardcode_into_libs=yes 10388 ;; 10389 10390# No shared lib support for Linux oldld, aout, or coff. 10391linux*oldld* | linux*aout* | linux*coff*) 10392 dynamic_linker=no 10393 ;; 10394 10395# This must be glibc/ELF. 10396linux* | k*bsd*-gnu | kopensolaris*-gnu) 10397 version_type=linux # correct to gnu/linux during the next big refactor 10398 need_lib_prefix=no 10399 need_version=no 10400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10401 soname_spec='${libname}${release}${shared_ext}$major' 10402 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10403 shlibpath_var=LD_LIBRARY_PATH 10404 shlibpath_overrides_runpath=no 10405 10406 # Some binutils ld are patched to set DT_RUNPATH 10407 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10408 $as_echo_n "(cached) " >&6 10409else 10410 lt_cv_shlibpath_overrides_runpath=no 10411 save_LDFLAGS=$LDFLAGS 10412 save_libdir=$libdir 10413 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10414 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10416/* end confdefs.h. */ 10417 10418int 10419main () 10420{ 10421 10422 ; 10423 return 0; 10424} 10425_ACEOF 10426if ac_fn_c_try_link "$LINENO"; then : 10427 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10428 lt_cv_shlibpath_overrides_runpath=yes 10429fi 10430fi 10431rm -f core conftest.err conftest.$ac_objext \ 10432 conftest$ac_exeext conftest.$ac_ext 10433 LDFLAGS=$save_LDFLAGS 10434 libdir=$save_libdir 10435 10436fi 10437 10438 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10439 10440 # This implies no fast_install, which is unacceptable. 10441 # Some rework will be needed to allow for fast_install 10442 # before this can be enabled. 10443 hardcode_into_libs=yes 10444 10445 # Append ld.so.conf contents to the search path 10446 if test -f /etc/ld.so.conf; then 10447 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' ' '` 10448 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10449 fi 10450 10451 # We used to test for /lib/ld.so.1 and disable shared libraries on 10452 # powerpc, because MkLinux only supported shared libraries with the 10453 # GNU dynamic linker. Since this was broken with cross compilers, 10454 # most powerpc-linux boxes support dynamic linking these days and 10455 # people can always --disable-shared, the test was removed, and we 10456 # assume the GNU/Linux dynamic linker is in use. 10457 dynamic_linker='GNU/Linux ld.so' 10458 ;; 10459 10460netbsd*) 10461 version_type=sunos 10462 need_lib_prefix=no 10463 need_version=no 10464 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10466 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10467 dynamic_linker='NetBSD (a.out) ld.so' 10468 else 10469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10470 soname_spec='${libname}${release}${shared_ext}$major' 10471 dynamic_linker='NetBSD ld.elf_so' 10472 fi 10473 shlibpath_var=LD_LIBRARY_PATH 10474 shlibpath_overrides_runpath=yes 10475 hardcode_into_libs=yes 10476 ;; 10477 10478newsos6) 10479 version_type=linux # correct to gnu/linux during the next big refactor 10480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10481 shlibpath_var=LD_LIBRARY_PATH 10482 shlibpath_overrides_runpath=yes 10483 ;; 10484 10485*nto* | *qnx*) 10486 version_type=qnx 10487 need_lib_prefix=no 10488 need_version=no 10489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10490 soname_spec='${libname}${release}${shared_ext}$major' 10491 shlibpath_var=LD_LIBRARY_PATH 10492 shlibpath_overrides_runpath=no 10493 hardcode_into_libs=yes 10494 dynamic_linker='ldqnx.so' 10495 ;; 10496 10497openbsd*) 10498 version_type=sunos 10499 sys_lib_dlsearch_path_spec="/usr/lib" 10500 need_lib_prefix=no 10501 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10502 case $host_os in 10503 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10504 *) need_version=no ;; 10505 esac 10506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10507 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10508 shlibpath_var=LD_LIBRARY_PATH 10509 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10510 case $host_os in 10511 openbsd2.[89] | openbsd2.[89].*) 10512 shlibpath_overrides_runpath=no 10513 ;; 10514 *) 10515 shlibpath_overrides_runpath=yes 10516 ;; 10517 esac 10518 else 10519 shlibpath_overrides_runpath=yes 10520 fi 10521 ;; 10522 10523os2*) 10524 libname_spec='$name' 10525 shrext_cmds=".dll" 10526 need_lib_prefix=no 10527 library_names_spec='$libname${shared_ext} $libname.a' 10528 dynamic_linker='OS/2 ld.exe' 10529 shlibpath_var=LIBPATH 10530 ;; 10531 10532osf3* | osf4* | osf5*) 10533 version_type=osf 10534 need_lib_prefix=no 10535 need_version=no 10536 soname_spec='${libname}${release}${shared_ext}$major' 10537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10538 shlibpath_var=LD_LIBRARY_PATH 10539 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10540 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10541 ;; 10542 10543rdos*) 10544 dynamic_linker=no 10545 ;; 10546 10547solaris*) 10548 version_type=linux # correct to gnu/linux during the next big refactor 10549 need_lib_prefix=no 10550 need_version=no 10551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10552 soname_spec='${libname}${release}${shared_ext}$major' 10553 shlibpath_var=LD_LIBRARY_PATH 10554 shlibpath_overrides_runpath=yes 10555 hardcode_into_libs=yes 10556 # ldd complains unless libraries are executable 10557 postinstall_cmds='chmod +x $lib' 10558 ;; 10559 10560sunos4*) 10561 version_type=sunos 10562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10563 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10564 shlibpath_var=LD_LIBRARY_PATH 10565 shlibpath_overrides_runpath=yes 10566 if test "$with_gnu_ld" = yes; then 10567 need_lib_prefix=no 10568 fi 10569 need_version=yes 10570 ;; 10571 10572sysv4 | sysv4.3*) 10573 version_type=linux # correct to gnu/linux during the next big refactor 10574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10575 soname_spec='${libname}${release}${shared_ext}$major' 10576 shlibpath_var=LD_LIBRARY_PATH 10577 case $host_vendor in 10578 sni) 10579 shlibpath_overrides_runpath=no 10580 need_lib_prefix=no 10581 runpath_var=LD_RUN_PATH 10582 ;; 10583 siemens) 10584 need_lib_prefix=no 10585 ;; 10586 motorola) 10587 need_lib_prefix=no 10588 need_version=no 10589 shlibpath_overrides_runpath=no 10590 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10591 ;; 10592 esac 10593 ;; 10594 10595sysv4*MP*) 10596 if test -d /usr/nec ;then 10597 version_type=linux # correct to gnu/linux during the next big refactor 10598 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10599 soname_spec='$libname${shared_ext}.$major' 10600 shlibpath_var=LD_LIBRARY_PATH 10601 fi 10602 ;; 10603 10604sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10605 version_type=freebsd-elf 10606 need_lib_prefix=no 10607 need_version=no 10608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10609 soname_spec='${libname}${release}${shared_ext}$major' 10610 shlibpath_var=LD_LIBRARY_PATH 10611 shlibpath_overrides_runpath=yes 10612 hardcode_into_libs=yes 10613 if test "$with_gnu_ld" = yes; then 10614 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10615 else 10616 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10617 case $host_os in 10618 sco3.2v5*) 10619 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10620 ;; 10621 esac 10622 fi 10623 sys_lib_dlsearch_path_spec='/usr/lib' 10624 ;; 10625 10626tpf*) 10627 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10628 version_type=linux # correct to gnu/linux during the next big refactor 10629 need_lib_prefix=no 10630 need_version=no 10631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10632 shlibpath_var=LD_LIBRARY_PATH 10633 shlibpath_overrides_runpath=no 10634 hardcode_into_libs=yes 10635 ;; 10636 10637uts4*) 10638 version_type=linux # correct to gnu/linux during the next big refactor 10639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10640 soname_spec='${libname}${release}${shared_ext}$major' 10641 shlibpath_var=LD_LIBRARY_PATH 10642 ;; 10643 10644*) 10645 dynamic_linker=no 10646 ;; 10647esac 10648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10649$as_echo "$dynamic_linker" >&6; } 10650test "$dynamic_linker" = no && can_build_shared=no 10651 10652variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10653if test "$GCC" = yes; then 10654 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10655fi 10656 10657if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10658 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10659fi 10660if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10661 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10662fi 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10756$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10757hardcode_action= 10758if test -n "$hardcode_libdir_flag_spec" || 10759 test -n "$runpath_var" || 10760 test "X$hardcode_automatic" = "Xyes" ; then 10761 10762 # We can hardcode non-existent directories. 10763 if test "$hardcode_direct" != no && 10764 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10765 # have to relink, otherwise we might link with an installed library 10766 # when we should be linking with a yet-to-be-installed one 10767 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10768 test "$hardcode_minus_L" != no; then 10769 # Linking always hardcodes the temporary library directory. 10770 hardcode_action=relink 10771 else 10772 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10773 hardcode_action=immediate 10774 fi 10775else 10776 # We cannot hardcode anything, or else we can only hardcode existing 10777 # directories. 10778 hardcode_action=unsupported 10779fi 10780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10781$as_echo "$hardcode_action" >&6; } 10782 10783if test "$hardcode_action" = relink || 10784 test "$inherit_rpath" = yes; then 10785 # Fast installation is not supported 10786 enable_fast_install=no 10787elif test "$shlibpath_overrides_runpath" = yes || 10788 test "$enable_shared" = no; then 10789 # Fast installation is not necessary 10790 enable_fast_install=needless 10791fi 10792 10793 10794 10795 10796 10797 10798 if test "x$enable_dlopen" != xyes; then 10799 enable_dlopen=unknown 10800 enable_dlopen_self=unknown 10801 enable_dlopen_self_static=unknown 10802else 10803 lt_cv_dlopen=no 10804 lt_cv_dlopen_libs= 10805 10806 case $host_os in 10807 beos*) 10808 lt_cv_dlopen="load_add_on" 10809 lt_cv_dlopen_libs= 10810 lt_cv_dlopen_self=yes 10811 ;; 10812 10813 mingw* | pw32* | cegcc*) 10814 lt_cv_dlopen="LoadLibrary" 10815 lt_cv_dlopen_libs= 10816 ;; 10817 10818 cygwin*) 10819 lt_cv_dlopen="dlopen" 10820 lt_cv_dlopen_libs= 10821 ;; 10822 10823 darwin*) 10824 # if libdl is installed we need to link against it 10825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10826$as_echo_n "checking for dlopen in -ldl... " >&6; } 10827if ${ac_cv_lib_dl_dlopen+:} false; then : 10828 $as_echo_n "(cached) " >&6 10829else 10830 ac_check_lib_save_LIBS=$LIBS 10831LIBS="-ldl $LIBS" 10832cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10833/* end confdefs.h. */ 10834 10835/* Override any GCC internal prototype to avoid an error. 10836 Use char because int might match the return type of a GCC 10837 builtin and then its argument prototype would still apply. */ 10838#ifdef __cplusplus 10839extern "C" 10840#endif 10841char dlopen (); 10842int 10843main () 10844{ 10845return dlopen (); 10846 ; 10847 return 0; 10848} 10849_ACEOF 10850if ac_fn_c_try_link "$LINENO"; then : 10851 ac_cv_lib_dl_dlopen=yes 10852else 10853 ac_cv_lib_dl_dlopen=no 10854fi 10855rm -f core conftest.err conftest.$ac_objext \ 10856 conftest$ac_exeext conftest.$ac_ext 10857LIBS=$ac_check_lib_save_LIBS 10858fi 10859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10860$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10861if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10862 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10863else 10864 10865 lt_cv_dlopen="dyld" 10866 lt_cv_dlopen_libs= 10867 lt_cv_dlopen_self=yes 10868 10869fi 10870 10871 ;; 10872 10873 *) 10874 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10875if test "x$ac_cv_func_shl_load" = xyes; then : 10876 lt_cv_dlopen="shl_load" 10877else 10878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10879$as_echo_n "checking for shl_load in -ldld... " >&6; } 10880if ${ac_cv_lib_dld_shl_load+:} false; then : 10881 $as_echo_n "(cached) " >&6 10882else 10883 ac_check_lib_save_LIBS=$LIBS 10884LIBS="-ldld $LIBS" 10885cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10886/* end confdefs.h. */ 10887 10888/* Override any GCC internal prototype to avoid an error. 10889 Use char because int might match the return type of a GCC 10890 builtin and then its argument prototype would still apply. */ 10891#ifdef __cplusplus 10892extern "C" 10893#endif 10894char shl_load (); 10895int 10896main () 10897{ 10898return shl_load (); 10899 ; 10900 return 0; 10901} 10902_ACEOF 10903if ac_fn_c_try_link "$LINENO"; then : 10904 ac_cv_lib_dld_shl_load=yes 10905else 10906 ac_cv_lib_dld_shl_load=no 10907fi 10908rm -f core conftest.err conftest.$ac_objext \ 10909 conftest$ac_exeext conftest.$ac_ext 10910LIBS=$ac_check_lib_save_LIBS 10911fi 10912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10913$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10914if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10915 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10916else 10917 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10918if test "x$ac_cv_func_dlopen" = xyes; then : 10919 lt_cv_dlopen="dlopen" 10920else 10921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10922$as_echo_n "checking for dlopen in -ldl... " >&6; } 10923if ${ac_cv_lib_dl_dlopen+:} false; then : 10924 $as_echo_n "(cached) " >&6 10925else 10926 ac_check_lib_save_LIBS=$LIBS 10927LIBS="-ldl $LIBS" 10928cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10929/* end confdefs.h. */ 10930 10931/* Override any GCC internal prototype to avoid an error. 10932 Use char because int might match the return type of a GCC 10933 builtin and then its argument prototype would still apply. */ 10934#ifdef __cplusplus 10935extern "C" 10936#endif 10937char dlopen (); 10938int 10939main () 10940{ 10941return dlopen (); 10942 ; 10943 return 0; 10944} 10945_ACEOF 10946if ac_fn_c_try_link "$LINENO"; then : 10947 ac_cv_lib_dl_dlopen=yes 10948else 10949 ac_cv_lib_dl_dlopen=no 10950fi 10951rm -f core conftest.err conftest.$ac_objext \ 10952 conftest$ac_exeext conftest.$ac_ext 10953LIBS=$ac_check_lib_save_LIBS 10954fi 10955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10956$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10957if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10958 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10959else 10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10961$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10962if ${ac_cv_lib_svld_dlopen+:} false; then : 10963 $as_echo_n "(cached) " >&6 10964else 10965 ac_check_lib_save_LIBS=$LIBS 10966LIBS="-lsvld $LIBS" 10967cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10968/* end confdefs.h. */ 10969 10970/* Override any GCC internal prototype to avoid an error. 10971 Use char because int might match the return type of a GCC 10972 builtin and then its argument prototype would still apply. */ 10973#ifdef __cplusplus 10974extern "C" 10975#endif 10976char dlopen (); 10977int 10978main () 10979{ 10980return dlopen (); 10981 ; 10982 return 0; 10983} 10984_ACEOF 10985if ac_fn_c_try_link "$LINENO"; then : 10986 ac_cv_lib_svld_dlopen=yes 10987else 10988 ac_cv_lib_svld_dlopen=no 10989fi 10990rm -f core conftest.err conftest.$ac_objext \ 10991 conftest$ac_exeext conftest.$ac_ext 10992LIBS=$ac_check_lib_save_LIBS 10993fi 10994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10995$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10996if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 10997 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10998else 10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11000$as_echo_n "checking for dld_link in -ldld... " >&6; } 11001if ${ac_cv_lib_dld_dld_link+:} false; then : 11002 $as_echo_n "(cached) " >&6 11003else 11004 ac_check_lib_save_LIBS=$LIBS 11005LIBS="-ldld $LIBS" 11006cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11007/* end confdefs.h. */ 11008 11009/* Override any GCC internal prototype to avoid an error. 11010 Use char because int might match the return type of a GCC 11011 builtin and then its argument prototype would still apply. */ 11012#ifdef __cplusplus 11013extern "C" 11014#endif 11015char dld_link (); 11016int 11017main () 11018{ 11019return dld_link (); 11020 ; 11021 return 0; 11022} 11023_ACEOF 11024if ac_fn_c_try_link "$LINENO"; then : 11025 ac_cv_lib_dld_dld_link=yes 11026else 11027 ac_cv_lib_dld_dld_link=no 11028fi 11029rm -f core conftest.err conftest.$ac_objext \ 11030 conftest$ac_exeext conftest.$ac_ext 11031LIBS=$ac_check_lib_save_LIBS 11032fi 11033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11034$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11035if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11036 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11037fi 11038 11039 11040fi 11041 11042 11043fi 11044 11045 11046fi 11047 11048 11049fi 11050 11051 11052fi 11053 11054 ;; 11055 esac 11056 11057 if test "x$lt_cv_dlopen" != xno; then 11058 enable_dlopen=yes 11059 else 11060 enable_dlopen=no 11061 fi 11062 11063 case $lt_cv_dlopen in 11064 dlopen) 11065 save_CPPFLAGS="$CPPFLAGS" 11066 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11067 11068 save_LDFLAGS="$LDFLAGS" 11069 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11070 11071 save_LIBS="$LIBS" 11072 LIBS="$lt_cv_dlopen_libs $LIBS" 11073 11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11075$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11076if ${lt_cv_dlopen_self+:} false; then : 11077 $as_echo_n "(cached) " >&6 11078else 11079 if test "$cross_compiling" = yes; then : 11080 lt_cv_dlopen_self=cross 11081else 11082 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11083 lt_status=$lt_dlunknown 11084 cat > conftest.$ac_ext <<_LT_EOF 11085#line $LINENO "configure" 11086#include "confdefs.h" 11087 11088#if HAVE_DLFCN_H 11089#include <dlfcn.h> 11090#endif 11091 11092#include <stdio.h> 11093 11094#ifdef RTLD_GLOBAL 11095# define LT_DLGLOBAL RTLD_GLOBAL 11096#else 11097# ifdef DL_GLOBAL 11098# define LT_DLGLOBAL DL_GLOBAL 11099# else 11100# define LT_DLGLOBAL 0 11101# endif 11102#endif 11103 11104/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11105 find out it does not work in some platform. */ 11106#ifndef LT_DLLAZY_OR_NOW 11107# ifdef RTLD_LAZY 11108# define LT_DLLAZY_OR_NOW RTLD_LAZY 11109# else 11110# ifdef DL_LAZY 11111# define LT_DLLAZY_OR_NOW DL_LAZY 11112# else 11113# ifdef RTLD_NOW 11114# define LT_DLLAZY_OR_NOW RTLD_NOW 11115# else 11116# ifdef DL_NOW 11117# define LT_DLLAZY_OR_NOW DL_NOW 11118# else 11119# define LT_DLLAZY_OR_NOW 0 11120# endif 11121# endif 11122# endif 11123# endif 11124#endif 11125 11126/* When -fvisbility=hidden is used, assume the code has been annotated 11127 correspondingly for the symbols needed. */ 11128#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11129int fnord () __attribute__((visibility("default"))); 11130#endif 11131 11132int fnord () { return 42; } 11133int main () 11134{ 11135 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11136 int status = $lt_dlunknown; 11137 11138 if (self) 11139 { 11140 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11141 else 11142 { 11143 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11144 else puts (dlerror ()); 11145 } 11146 /* dlclose (self); */ 11147 } 11148 else 11149 puts (dlerror ()); 11150 11151 return status; 11152} 11153_LT_EOF 11154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11155 (eval $ac_link) 2>&5 11156 ac_status=$? 11157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11158 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11159 (./conftest; exit; ) >&5 2>/dev/null 11160 lt_status=$? 11161 case x$lt_status in 11162 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11163 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11164 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11165 esac 11166 else : 11167 # compilation failed 11168 lt_cv_dlopen_self=no 11169 fi 11170fi 11171rm -fr conftest* 11172 11173 11174fi 11175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11176$as_echo "$lt_cv_dlopen_self" >&6; } 11177 11178 if test "x$lt_cv_dlopen_self" = xyes; then 11179 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11181$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11182if ${lt_cv_dlopen_self_static+:} false; then : 11183 $as_echo_n "(cached) " >&6 11184else 11185 if test "$cross_compiling" = yes; then : 11186 lt_cv_dlopen_self_static=cross 11187else 11188 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11189 lt_status=$lt_dlunknown 11190 cat > conftest.$ac_ext <<_LT_EOF 11191#line $LINENO "configure" 11192#include "confdefs.h" 11193 11194#if HAVE_DLFCN_H 11195#include <dlfcn.h> 11196#endif 11197 11198#include <stdio.h> 11199 11200#ifdef RTLD_GLOBAL 11201# define LT_DLGLOBAL RTLD_GLOBAL 11202#else 11203# ifdef DL_GLOBAL 11204# define LT_DLGLOBAL DL_GLOBAL 11205# else 11206# define LT_DLGLOBAL 0 11207# endif 11208#endif 11209 11210/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11211 find out it does not work in some platform. */ 11212#ifndef LT_DLLAZY_OR_NOW 11213# ifdef RTLD_LAZY 11214# define LT_DLLAZY_OR_NOW RTLD_LAZY 11215# else 11216# ifdef DL_LAZY 11217# define LT_DLLAZY_OR_NOW DL_LAZY 11218# else 11219# ifdef RTLD_NOW 11220# define LT_DLLAZY_OR_NOW RTLD_NOW 11221# else 11222# ifdef DL_NOW 11223# define LT_DLLAZY_OR_NOW DL_NOW 11224# else 11225# define LT_DLLAZY_OR_NOW 0 11226# endif 11227# endif 11228# endif 11229# endif 11230#endif 11231 11232/* When -fvisbility=hidden is used, assume the code has been annotated 11233 correspondingly for the symbols needed. */ 11234#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11235int fnord () __attribute__((visibility("default"))); 11236#endif 11237 11238int fnord () { return 42; } 11239int main () 11240{ 11241 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11242 int status = $lt_dlunknown; 11243 11244 if (self) 11245 { 11246 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11247 else 11248 { 11249 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11250 else puts (dlerror ()); 11251 } 11252 /* dlclose (self); */ 11253 } 11254 else 11255 puts (dlerror ()); 11256 11257 return status; 11258} 11259_LT_EOF 11260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11261 (eval $ac_link) 2>&5 11262 ac_status=$? 11263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11264 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11265 (./conftest; exit; ) >&5 2>/dev/null 11266 lt_status=$? 11267 case x$lt_status in 11268 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11269 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11270 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11271 esac 11272 else : 11273 # compilation failed 11274 lt_cv_dlopen_self_static=no 11275 fi 11276fi 11277rm -fr conftest* 11278 11279 11280fi 11281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11282$as_echo "$lt_cv_dlopen_self_static" >&6; } 11283 fi 11284 11285 CPPFLAGS="$save_CPPFLAGS" 11286 LDFLAGS="$save_LDFLAGS" 11287 LIBS="$save_LIBS" 11288 ;; 11289 esac 11290 11291 case $lt_cv_dlopen_self in 11292 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11293 *) enable_dlopen_self=unknown ;; 11294 esac 11295 11296 case $lt_cv_dlopen_self_static in 11297 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11298 *) enable_dlopen_self_static=unknown ;; 11299 esac 11300fi 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318striplib= 11319old_striplib= 11320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11321$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11322if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11323 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11324 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11326$as_echo "yes" >&6; } 11327else 11328# FIXME - insert some real tests, host_os isn't really good enough 11329 case $host_os in 11330 darwin*) 11331 if test -n "$STRIP" ; then 11332 striplib="$STRIP -x" 11333 old_striplib="$STRIP -S" 11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11335$as_echo "yes" >&6; } 11336 else 11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11338$as_echo "no" >&6; } 11339 fi 11340 ;; 11341 *) 11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11343$as_echo "no" >&6; } 11344 ;; 11345 esac 11346fi 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 # Report which library types will actually be built 11360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11361$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11363$as_echo "$can_build_shared" >&6; } 11364 11365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11366$as_echo_n "checking whether to build shared libraries... " >&6; } 11367 test "$can_build_shared" = "no" && enable_shared=no 11368 11369 # On AIX, shared libraries and static libraries use the same namespace, and 11370 # are all built from PIC. 11371 case $host_os in 11372 aix3*) 11373 test "$enable_shared" = yes && enable_static=no 11374 if test -n "$RANLIB"; then 11375 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11376 postinstall_cmds='$RANLIB $lib' 11377 fi 11378 ;; 11379 11380 aix[4-9]*) 11381 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11382 test "$enable_shared" = yes && enable_static=no 11383 fi 11384 ;; 11385 esac 11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11387$as_echo "$enable_shared" >&6; } 11388 11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11390$as_echo_n "checking whether to build static libraries... " >&6; } 11391 # Make sure either enable_shared or enable_static is yes. 11392 test "$enable_shared" = yes || enable_static=yes 11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11394$as_echo "$enable_static" >&6; } 11395 11396 11397 11398 11399fi 11400ac_ext=c 11401ac_cpp='$CPP $CPPFLAGS' 11402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11404ac_compiler_gnu=$ac_cv_c_compiler_gnu 11405 11406CC="$lt_save_CC" 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 ac_config_commands="$ac_config_commands libtool" 11423 11424 11425 11426 11427# Only expand once: 11428 11429 11430 11431# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11444$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11445if ${ac_cv_prog_cc_c99+:} false; then : 11446 $as_echo_n "(cached) " >&6 11447else 11448 ac_cv_prog_cc_c99=no 11449ac_save_CC=$CC 11450cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11451/* end confdefs.h. */ 11452#include <stdarg.h> 11453#include <stdbool.h> 11454#include <stdlib.h> 11455#include <wchar.h> 11456#include <stdio.h> 11457 11458// Check varargs macros. These examples are taken from C99 6.10.3.5. 11459#define debug(...) fprintf (stderr, __VA_ARGS__) 11460#define showlist(...) puts (#__VA_ARGS__) 11461#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11462static void 11463test_varargs_macros (void) 11464{ 11465 int x = 1234; 11466 int y = 5678; 11467 debug ("Flag"); 11468 debug ("X = %d\n", x); 11469 showlist (The first, second, and third items.); 11470 report (x>y, "x is %d but y is %d", x, y); 11471} 11472 11473// Check long long types. 11474#define BIG64 18446744073709551615ull 11475#define BIG32 4294967295ul 11476#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 11477#if !BIG_OK 11478 your preprocessor is broken; 11479#endif 11480#if BIG_OK 11481#else 11482 your preprocessor is broken; 11483#endif 11484static long long int bignum = -9223372036854775807LL; 11485static unsigned long long int ubignum = BIG64; 11486 11487struct incomplete_array 11488{ 11489 int datasize; 11490 double data[]; 11491}; 11492 11493struct named_init { 11494 int number; 11495 const wchar_t *name; 11496 double average; 11497}; 11498 11499typedef const char *ccp; 11500 11501static inline int 11502test_restrict (ccp restrict text) 11503{ 11504 // See if C++-style comments work. 11505 // Iterate through items via the restricted pointer. 11506 // Also check for declarations in for loops. 11507 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 11508 continue; 11509 return 0; 11510} 11511 11512// Check varargs and va_copy. 11513static void 11514test_varargs (const char *format, ...) 11515{ 11516 va_list args; 11517 va_start (args, format); 11518 va_list args_copy; 11519 va_copy (args_copy, args); 11520 11521 const char *str; 11522 int number; 11523 float fnumber; 11524 11525 while (*format) 11526 { 11527 switch (*format++) 11528 { 11529 case 's': // string 11530 str = va_arg (args_copy, const char *); 11531 break; 11532 case 'd': // int 11533 number = va_arg (args_copy, int); 11534 break; 11535 case 'f': // float 11536 fnumber = va_arg (args_copy, double); 11537 break; 11538 default: 11539 break; 11540 } 11541 } 11542 va_end (args_copy); 11543 va_end (args); 11544} 11545 11546int 11547main () 11548{ 11549 11550 // Check bool. 11551 _Bool success = false; 11552 11553 // Check restrict. 11554 if (test_restrict ("String literal") == 0) 11555 success = true; 11556 char *restrict newvar = "Another string"; 11557 11558 // Check varargs. 11559 test_varargs ("s, d' f .", "string", 65, 34.234); 11560 test_varargs_macros (); 11561 11562 // Check flexible array members. 11563 struct incomplete_array *ia = 11564 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 11565 ia->datasize = 10; 11566 for (int i = 0; i < ia->datasize; ++i) 11567 ia->data[i] = i * 1.234; 11568 11569 // Check named initializers. 11570 struct named_init ni = { 11571 .number = 34, 11572 .name = L"Test wide string", 11573 .average = 543.34343, 11574 }; 11575 11576 ni.number = 58; 11577 11578 int dynamic_array[ni.number]; 11579 dynamic_array[ni.number - 1] = 543; 11580 11581 // work around unused variable warnings 11582 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 11583 || dynamic_array[ni.number - 1] != 543); 11584 11585 ; 11586 return 0; 11587} 11588_ACEOF 11589for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 11590do 11591 CC="$ac_save_CC $ac_arg" 11592 if ac_fn_c_try_compile "$LINENO"; then : 11593 ac_cv_prog_cc_c99=$ac_arg 11594fi 11595rm -f core conftest.err conftest.$ac_objext 11596 test "x$ac_cv_prog_cc_c99" != "xno" && break 11597done 11598rm -f conftest.$ac_ext 11599CC=$ac_save_CC 11600 11601fi 11602# AC_CACHE_VAL 11603case "x$ac_cv_prog_cc_c99" in 11604 x) 11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11606$as_echo "none needed" >&6; } ;; 11607 xno) 11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11609$as_echo "unsupported" >&6; } ;; 11610 *) 11611 CC="$CC $ac_cv_prog_cc_c99" 11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 11613$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 11614esac 11615if test "x$ac_cv_prog_cc_c99" != xno; then : 11616 11617fi 11618 11619 11620 11621 11622 11623 11624ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 11625if test "x$ac_cv_have_decl___clang__" = xyes; then : 11626 CLANGCC="yes" 11627else 11628 CLANGCC="no" 11629fi 11630 11631ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 11632if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 11633 INTELCC="yes" 11634else 11635 INTELCC="no" 11636fi 11637 11638ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 11639if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 11640 SUNCC="yes" 11641else 11642 SUNCC="no" 11643fi 11644 11645 11646 11647 11648if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11649 if test -n "$ac_tool_prefix"; then 11650 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11651set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11653$as_echo_n "checking for $ac_word... " >&6; } 11654if ${ac_cv_path_PKG_CONFIG+:} false; then : 11655 $as_echo_n "(cached) " >&6 11656else 11657 case $PKG_CONFIG in 11658 [\\/]* | ?:[\\/]*) 11659 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11660 ;; 11661 *) 11662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11663for as_dir in $PATH 11664do 11665 IFS=$as_save_IFS 11666 test -z "$as_dir" && as_dir=. 11667 for ac_exec_ext in '' $ac_executable_extensions; do 11668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11669 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11671 break 2 11672 fi 11673done 11674 done 11675IFS=$as_save_IFS 11676 11677 ;; 11678esac 11679fi 11680PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11681if test -n "$PKG_CONFIG"; then 11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11683$as_echo "$PKG_CONFIG" >&6; } 11684else 11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11686$as_echo "no" >&6; } 11687fi 11688 11689 11690fi 11691if test -z "$ac_cv_path_PKG_CONFIG"; then 11692 ac_pt_PKG_CONFIG=$PKG_CONFIG 11693 # Extract the first word of "pkg-config", so it can be a program name with args. 11694set dummy pkg-config; ac_word=$2 11695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11696$as_echo_n "checking for $ac_word... " >&6; } 11697if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 11698 $as_echo_n "(cached) " >&6 11699else 11700 case $ac_pt_PKG_CONFIG in 11701 [\\/]* | ?:[\\/]*) 11702 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11703 ;; 11704 *) 11705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11706for as_dir in $PATH 11707do 11708 IFS=$as_save_IFS 11709 test -z "$as_dir" && as_dir=. 11710 for ac_exec_ext in '' $ac_executable_extensions; do 11711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11712 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11714 break 2 11715 fi 11716done 11717 done 11718IFS=$as_save_IFS 11719 11720 ;; 11721esac 11722fi 11723ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 11724if test -n "$ac_pt_PKG_CONFIG"; then 11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 11726$as_echo "$ac_pt_PKG_CONFIG" >&6; } 11727else 11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11729$as_echo "no" >&6; } 11730fi 11731 11732 if test "x$ac_pt_PKG_CONFIG" = x; then 11733 PKG_CONFIG="" 11734 else 11735 case $cross_compiling:$ac_tool_warned in 11736yes:) 11737{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11738$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11739ac_tool_warned=yes ;; 11740esac 11741 PKG_CONFIG=$ac_pt_PKG_CONFIG 11742 fi 11743else 11744 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 11745fi 11746 11747fi 11748if test -n "$PKG_CONFIG"; then 11749 _pkg_min_version=0.9.0 11750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 11751$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 11752 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11754$as_echo "yes" >&6; } 11755 else 11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11757$as_echo "no" >&6; } 11758 PKG_CONFIG="" 11759 fi 11760 11761fi 11762 11763 11764 11765 11766 11767# Check whether --enable-selective-werror was given. 11768if test "${enable_selective_werror+set}" = set; then : 11769 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 11770else 11771 SELECTIVE_WERROR=yes 11772fi 11773 11774 11775 11776 11777 11778# -v is too short to test reliably with XORG_TESTSET_CFLAG 11779if test "x$SUNCC" = "xyes"; then 11780 BASE_CFLAGS="-v" 11781else 11782 BASE_CFLAGS="" 11783fi 11784 11785# This chunk of warnings were those that existed in the legacy CWARNFLAGS 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799xorg_testset_save_CFLAGS="$CFLAGS" 11800 11801if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11802 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11804$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11805if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11806 $as_echo_n "(cached) " >&6 11807else 11808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11809/* end confdefs.h. */ 11810int i; 11811_ACEOF 11812if ac_fn_c_try_compile "$LINENO"; then : 11813 xorg_cv_cc_flag_unknown_warning_option=yes 11814else 11815 xorg_cv_cc_flag_unknown_warning_option=no 11816fi 11817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11818fi 11819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11820$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11821 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11822 CFLAGS="$xorg_testset_save_CFLAGS" 11823fi 11824 11825if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11826 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11828 fi 11829 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11831$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11832if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11833 $as_echo_n "(cached) " >&6 11834else 11835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11836/* end confdefs.h. */ 11837int i; 11838_ACEOF 11839if ac_fn_c_try_compile "$LINENO"; then : 11840 xorg_cv_cc_flag_unused_command_line_argument=yes 11841else 11842 xorg_cv_cc_flag_unused_command_line_argument=no 11843fi 11844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11845fi 11846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11847$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11848 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11849 CFLAGS="$xorg_testset_save_CFLAGS" 11850fi 11851 11852found="no" 11853 11854 if test $found = "no" ; then 11855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11856 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11857 fi 11858 11859 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11861 fi 11862 11863 CFLAGS="$CFLAGS -Wall" 11864 11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 11866$as_echo_n "checking if $CC supports -Wall... " >&6; } 11867 cacheid=xorg_cv_cc_flag__Wall 11868 if eval \${$cacheid+:} false; then : 11869 $as_echo_n "(cached) " >&6 11870else 11871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11872/* end confdefs.h. */ 11873int i; 11874int 11875main () 11876{ 11877 11878 ; 11879 return 0; 11880} 11881_ACEOF 11882if ac_fn_c_try_link "$LINENO"; then : 11883 eval $cacheid=yes 11884else 11885 eval $cacheid=no 11886fi 11887rm -f core conftest.err conftest.$ac_objext \ 11888 conftest$ac_exeext conftest.$ac_ext 11889fi 11890 11891 11892 CFLAGS="$xorg_testset_save_CFLAGS" 11893 11894 eval supported=\$$cacheid 11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11896$as_echo "$supported" >&6; } 11897 if test "$supported" = "yes" ; then 11898 BASE_CFLAGS="$BASE_CFLAGS -Wall" 11899 found="yes" 11900 fi 11901 fi 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917xorg_testset_save_CFLAGS="$CFLAGS" 11918 11919if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11920 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11922$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11923if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11924 $as_echo_n "(cached) " >&6 11925else 11926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11927/* end confdefs.h. */ 11928int i; 11929_ACEOF 11930if ac_fn_c_try_compile "$LINENO"; then : 11931 xorg_cv_cc_flag_unknown_warning_option=yes 11932else 11933 xorg_cv_cc_flag_unknown_warning_option=no 11934fi 11935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11936fi 11937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11938$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11939 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11940 CFLAGS="$xorg_testset_save_CFLAGS" 11941fi 11942 11943if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11944 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11945 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11946 fi 11947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11949$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11950if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11951 $as_echo_n "(cached) " >&6 11952else 11953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11954/* end confdefs.h. */ 11955int i; 11956_ACEOF 11957if ac_fn_c_try_compile "$LINENO"; then : 11958 xorg_cv_cc_flag_unused_command_line_argument=yes 11959else 11960 xorg_cv_cc_flag_unused_command_line_argument=no 11961fi 11962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11963fi 11964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11965$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11966 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11967 CFLAGS="$xorg_testset_save_CFLAGS" 11968fi 11969 11970found="no" 11971 11972 if test $found = "no" ; then 11973 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11974 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11975 fi 11976 11977 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11978 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11979 fi 11980 11981 CFLAGS="$CFLAGS -Wpointer-arith" 11982 11983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 11984$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 11985 cacheid=xorg_cv_cc_flag__Wpointer_arith 11986 if eval \${$cacheid+:} false; then : 11987 $as_echo_n "(cached) " >&6 11988else 11989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11990/* end confdefs.h. */ 11991int i; 11992int 11993main () 11994{ 11995 11996 ; 11997 return 0; 11998} 11999_ACEOF 12000if ac_fn_c_try_link "$LINENO"; then : 12001 eval $cacheid=yes 12002else 12003 eval $cacheid=no 12004fi 12005rm -f core conftest.err conftest.$ac_objext \ 12006 conftest$ac_exeext conftest.$ac_ext 12007fi 12008 12009 12010 CFLAGS="$xorg_testset_save_CFLAGS" 12011 12012 eval supported=\$$cacheid 12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12014$as_echo "$supported" >&6; } 12015 if test "$supported" = "yes" ; then 12016 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12017 found="yes" 12018 fi 12019 fi 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035xorg_testset_save_CFLAGS="$CFLAGS" 12036 12037if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12038 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12040$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12041if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12042 $as_echo_n "(cached) " >&6 12043else 12044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12045/* end confdefs.h. */ 12046int i; 12047_ACEOF 12048if ac_fn_c_try_compile "$LINENO"; then : 12049 xorg_cv_cc_flag_unknown_warning_option=yes 12050else 12051 xorg_cv_cc_flag_unknown_warning_option=no 12052fi 12053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12054fi 12055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12056$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12057 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12058 CFLAGS="$xorg_testset_save_CFLAGS" 12059fi 12060 12061if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12064 fi 12065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12067$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12068if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12069 $as_echo_n "(cached) " >&6 12070else 12071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12072/* end confdefs.h. */ 12073int i; 12074_ACEOF 12075if ac_fn_c_try_compile "$LINENO"; then : 12076 xorg_cv_cc_flag_unused_command_line_argument=yes 12077else 12078 xorg_cv_cc_flag_unused_command_line_argument=no 12079fi 12080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12081fi 12082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12083$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12084 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12085 CFLAGS="$xorg_testset_save_CFLAGS" 12086fi 12087 12088found="no" 12089 12090 if test $found = "no" ; then 12091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12093 fi 12094 12095 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12096 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12097 fi 12098 12099 CFLAGS="$CFLAGS -Wmissing-declarations" 12100 12101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 12102$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 12103 cacheid=xorg_cv_cc_flag__Wmissing_declarations 12104 if eval \${$cacheid+:} false; then : 12105 $as_echo_n "(cached) " >&6 12106else 12107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12108/* end confdefs.h. */ 12109int i; 12110int 12111main () 12112{ 12113 12114 ; 12115 return 0; 12116} 12117_ACEOF 12118if ac_fn_c_try_link "$LINENO"; then : 12119 eval $cacheid=yes 12120else 12121 eval $cacheid=no 12122fi 12123rm -f core conftest.err conftest.$ac_objext \ 12124 conftest$ac_exeext conftest.$ac_ext 12125fi 12126 12127 12128 CFLAGS="$xorg_testset_save_CFLAGS" 12129 12130 eval supported=\$$cacheid 12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12132$as_echo "$supported" >&6; } 12133 if test "$supported" = "yes" ; then 12134 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12135 found="yes" 12136 fi 12137 fi 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153xorg_testset_save_CFLAGS="$CFLAGS" 12154 12155if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12156 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12158$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12159if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12160 $as_echo_n "(cached) " >&6 12161else 12162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12163/* end confdefs.h. */ 12164int i; 12165_ACEOF 12166if ac_fn_c_try_compile "$LINENO"; then : 12167 xorg_cv_cc_flag_unknown_warning_option=yes 12168else 12169 xorg_cv_cc_flag_unknown_warning_option=no 12170fi 12171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12172fi 12173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12174$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12175 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12176 CFLAGS="$xorg_testset_save_CFLAGS" 12177fi 12178 12179if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12181 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12182 fi 12183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12185$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12186if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12187 $as_echo_n "(cached) " >&6 12188else 12189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12190/* end confdefs.h. */ 12191int i; 12192_ACEOF 12193if ac_fn_c_try_compile "$LINENO"; then : 12194 xorg_cv_cc_flag_unused_command_line_argument=yes 12195else 12196 xorg_cv_cc_flag_unused_command_line_argument=no 12197fi 12198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12199fi 12200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12201$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12202 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12203 CFLAGS="$xorg_testset_save_CFLAGS" 12204fi 12205 12206found="no" 12207 12208 if test $found = "no" ; then 12209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12211 fi 12212 12213 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12215 fi 12216 12217 CFLAGS="$CFLAGS -Wformat=2" 12218 12219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12220$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12221 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 12222 if eval \${$cacheid+:} false; then : 12223 $as_echo_n "(cached) " >&6 12224else 12225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12226/* end confdefs.h. */ 12227int i; 12228int 12229main () 12230{ 12231 12232 ; 12233 return 0; 12234} 12235_ACEOF 12236if ac_fn_c_try_link "$LINENO"; then : 12237 eval $cacheid=yes 12238else 12239 eval $cacheid=no 12240fi 12241rm -f core conftest.err conftest.$ac_objext \ 12242 conftest$ac_exeext conftest.$ac_ext 12243fi 12244 12245 12246 CFLAGS="$xorg_testset_save_CFLAGS" 12247 12248 eval supported=\$$cacheid 12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12250$as_echo "$supported" >&6; } 12251 if test "$supported" = "yes" ; then 12252 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12253 found="yes" 12254 fi 12255 fi 12256 12257 if test $found = "no" ; then 12258 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12259 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12260 fi 12261 12262 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12264 fi 12265 12266 CFLAGS="$CFLAGS -Wformat" 12267 12268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 12269$as_echo_n "checking if $CC supports -Wformat... " >&6; } 12270 cacheid=xorg_cv_cc_flag__Wformat 12271 if eval \${$cacheid+:} false; then : 12272 $as_echo_n "(cached) " >&6 12273else 12274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12275/* end confdefs.h. */ 12276int i; 12277int 12278main () 12279{ 12280 12281 ; 12282 return 0; 12283} 12284_ACEOF 12285if ac_fn_c_try_link "$LINENO"; then : 12286 eval $cacheid=yes 12287else 12288 eval $cacheid=no 12289fi 12290rm -f core conftest.err conftest.$ac_objext \ 12291 conftest$ac_exeext conftest.$ac_ext 12292fi 12293 12294 12295 CFLAGS="$xorg_testset_save_CFLAGS" 12296 12297 eval supported=\$$cacheid 12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12299$as_echo "$supported" >&6; } 12300 if test "$supported" = "yes" ; then 12301 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 12302 found="yes" 12303 fi 12304 fi 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322xorg_testset_save_CFLAGS="$CFLAGS" 12323 12324if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12325 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12327$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12328if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12329 $as_echo_n "(cached) " >&6 12330else 12331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12332/* end confdefs.h. */ 12333int i; 12334_ACEOF 12335if ac_fn_c_try_compile "$LINENO"; then : 12336 xorg_cv_cc_flag_unknown_warning_option=yes 12337else 12338 xorg_cv_cc_flag_unknown_warning_option=no 12339fi 12340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12341fi 12342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12343$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12344 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12345 CFLAGS="$xorg_testset_save_CFLAGS" 12346fi 12347 12348if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12351 fi 12352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12354$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12355if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12356 $as_echo_n "(cached) " >&6 12357else 12358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12359/* end confdefs.h. */ 12360int i; 12361_ACEOF 12362if ac_fn_c_try_compile "$LINENO"; then : 12363 xorg_cv_cc_flag_unused_command_line_argument=yes 12364else 12365 xorg_cv_cc_flag_unused_command_line_argument=no 12366fi 12367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12368fi 12369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12370$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12371 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12372 CFLAGS="$xorg_testset_save_CFLAGS" 12373fi 12374 12375found="no" 12376 12377 if test $found = "no" ; then 12378 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12379 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12380 fi 12381 12382 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12384 fi 12385 12386 CFLAGS="$CFLAGS -Wstrict-prototypes" 12387 12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 12389$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 12390 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 12391 if eval \${$cacheid+:} false; then : 12392 $as_echo_n "(cached) " >&6 12393else 12394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12395/* end confdefs.h. */ 12396int i; 12397int 12398main () 12399{ 12400 12401 ; 12402 return 0; 12403} 12404_ACEOF 12405if ac_fn_c_try_link "$LINENO"; then : 12406 eval $cacheid=yes 12407else 12408 eval $cacheid=no 12409fi 12410rm -f core conftest.err conftest.$ac_objext \ 12411 conftest$ac_exeext conftest.$ac_ext 12412fi 12413 12414 12415 CFLAGS="$xorg_testset_save_CFLAGS" 12416 12417 eval supported=\$$cacheid 12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12419$as_echo "$supported" >&6; } 12420 if test "$supported" = "yes" ; then 12421 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 12422 found="yes" 12423 fi 12424 fi 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440xorg_testset_save_CFLAGS="$CFLAGS" 12441 12442if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12445$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12446if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12447 $as_echo_n "(cached) " >&6 12448else 12449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12450/* end confdefs.h. */ 12451int i; 12452_ACEOF 12453if ac_fn_c_try_compile "$LINENO"; then : 12454 xorg_cv_cc_flag_unknown_warning_option=yes 12455else 12456 xorg_cv_cc_flag_unknown_warning_option=no 12457fi 12458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12459fi 12460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12461$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12462 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12463 CFLAGS="$xorg_testset_save_CFLAGS" 12464fi 12465 12466if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12469 fi 12470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12472$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12473if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12474 $as_echo_n "(cached) " >&6 12475else 12476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12477/* end confdefs.h. */ 12478int i; 12479_ACEOF 12480if ac_fn_c_try_compile "$LINENO"; then : 12481 xorg_cv_cc_flag_unused_command_line_argument=yes 12482else 12483 xorg_cv_cc_flag_unused_command_line_argument=no 12484fi 12485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12486fi 12487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12488$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12489 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12490 CFLAGS="$xorg_testset_save_CFLAGS" 12491fi 12492 12493found="no" 12494 12495 if test $found = "no" ; then 12496 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12497 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12498 fi 12499 12500 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12502 fi 12503 12504 CFLAGS="$CFLAGS -Wmissing-prototypes" 12505 12506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 12507$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 12508 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 12509 if eval \${$cacheid+:} false; then : 12510 $as_echo_n "(cached) " >&6 12511else 12512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12513/* end confdefs.h. */ 12514int i; 12515int 12516main () 12517{ 12518 12519 ; 12520 return 0; 12521} 12522_ACEOF 12523if ac_fn_c_try_link "$LINENO"; then : 12524 eval $cacheid=yes 12525else 12526 eval $cacheid=no 12527fi 12528rm -f core conftest.err conftest.$ac_objext \ 12529 conftest$ac_exeext conftest.$ac_ext 12530fi 12531 12532 12533 CFLAGS="$xorg_testset_save_CFLAGS" 12534 12535 eval supported=\$$cacheid 12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12537$as_echo "$supported" >&6; } 12538 if test "$supported" = "yes" ; then 12539 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 12540 found="yes" 12541 fi 12542 fi 12543 12544 12545 12546 12547 12548 12549 12550 12551 12552 12553 12554 12555 12556 12557 12558xorg_testset_save_CFLAGS="$CFLAGS" 12559 12560if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12561 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12563$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12564if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12565 $as_echo_n "(cached) " >&6 12566else 12567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12568/* end confdefs.h. */ 12569int i; 12570_ACEOF 12571if ac_fn_c_try_compile "$LINENO"; then : 12572 xorg_cv_cc_flag_unknown_warning_option=yes 12573else 12574 xorg_cv_cc_flag_unknown_warning_option=no 12575fi 12576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12577fi 12578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12579$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12580 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12581 CFLAGS="$xorg_testset_save_CFLAGS" 12582fi 12583 12584if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12585 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12586 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12587 fi 12588 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12590$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12591if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_cc_flag_unused_command_line_argument=yes 12600else 12601 xorg_cv_cc_flag_unused_command_line_argument=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_cc_flag_unused_command_line_argument" >&5 12606$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12607 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12608 CFLAGS="$xorg_testset_save_CFLAGS" 12609fi 12610 12611found="no" 12612 12613 if test $found = "no" ; then 12614 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12615 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12616 fi 12617 12618 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12620 fi 12621 12622 CFLAGS="$CFLAGS -Wnested-externs" 12623 12624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 12625$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 12626 cacheid=xorg_cv_cc_flag__Wnested_externs 12627 if eval \${$cacheid+:} false; then : 12628 $as_echo_n "(cached) " >&6 12629else 12630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12631/* end confdefs.h. */ 12632int i; 12633int 12634main () 12635{ 12636 12637 ; 12638 return 0; 12639} 12640_ACEOF 12641if ac_fn_c_try_link "$LINENO"; then : 12642 eval $cacheid=yes 12643else 12644 eval $cacheid=no 12645fi 12646rm -f core conftest.err conftest.$ac_objext \ 12647 conftest$ac_exeext conftest.$ac_ext 12648fi 12649 12650 12651 CFLAGS="$xorg_testset_save_CFLAGS" 12652 12653 eval supported=\$$cacheid 12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12655$as_echo "$supported" >&6; } 12656 if test "$supported" = "yes" ; then 12657 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 12658 found="yes" 12659 fi 12660 fi 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676xorg_testset_save_CFLAGS="$CFLAGS" 12677 12678if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12679 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12681$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12682if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12683 $as_echo_n "(cached) " >&6 12684else 12685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12686/* end confdefs.h. */ 12687int i; 12688_ACEOF 12689if ac_fn_c_try_compile "$LINENO"; then : 12690 xorg_cv_cc_flag_unknown_warning_option=yes 12691else 12692 xorg_cv_cc_flag_unknown_warning_option=no 12693fi 12694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12695fi 12696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12697$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12698 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12699 CFLAGS="$xorg_testset_save_CFLAGS" 12700fi 12701 12702if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12703 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12704 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12705 fi 12706 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12708$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12709if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12710 $as_echo_n "(cached) " >&6 12711else 12712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12713/* end confdefs.h. */ 12714int i; 12715_ACEOF 12716if ac_fn_c_try_compile "$LINENO"; then : 12717 xorg_cv_cc_flag_unused_command_line_argument=yes 12718else 12719 xorg_cv_cc_flag_unused_command_line_argument=no 12720fi 12721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12722fi 12723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12724$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12725 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12726 CFLAGS="$xorg_testset_save_CFLAGS" 12727fi 12728 12729found="no" 12730 12731 if test $found = "no" ; then 12732 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12734 fi 12735 12736 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12738 fi 12739 12740 CFLAGS="$CFLAGS -Wbad-function-cast" 12741 12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 12743$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 12744 cacheid=xorg_cv_cc_flag__Wbad_function_cast 12745 if eval \${$cacheid+:} false; then : 12746 $as_echo_n "(cached) " >&6 12747else 12748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12749/* end confdefs.h. */ 12750int i; 12751int 12752main () 12753{ 12754 12755 ; 12756 return 0; 12757} 12758_ACEOF 12759if ac_fn_c_try_link "$LINENO"; then : 12760 eval $cacheid=yes 12761else 12762 eval $cacheid=no 12763fi 12764rm -f core conftest.err conftest.$ac_objext \ 12765 conftest$ac_exeext conftest.$ac_ext 12766fi 12767 12768 12769 CFLAGS="$xorg_testset_save_CFLAGS" 12770 12771 eval supported=\$$cacheid 12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12773$as_echo "$supported" >&6; } 12774 if test "$supported" = "yes" ; then 12775 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 12776 found="yes" 12777 fi 12778 fi 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794xorg_testset_save_CFLAGS="$CFLAGS" 12795 12796if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12797 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12799$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12800if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12801 $as_echo_n "(cached) " >&6 12802else 12803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12804/* end confdefs.h. */ 12805int i; 12806_ACEOF 12807if ac_fn_c_try_compile "$LINENO"; then : 12808 xorg_cv_cc_flag_unknown_warning_option=yes 12809else 12810 xorg_cv_cc_flag_unknown_warning_option=no 12811fi 12812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12813fi 12814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12815$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12816 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12817 CFLAGS="$xorg_testset_save_CFLAGS" 12818fi 12819 12820if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12822 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12823 fi 12824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12826$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12827if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_cc_flag_unused_command_line_argument=yes 12836else 12837 xorg_cv_cc_flag_unused_command_line_argument=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_cc_flag_unused_command_line_argument" >&5 12842$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12843 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12844 CFLAGS="$xorg_testset_save_CFLAGS" 12845fi 12846 12847found="no" 12848 12849 if test $found = "no" ; then 12850 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12851 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12852 fi 12853 12854 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12856 fi 12857 12858 CFLAGS="$CFLAGS -Wold-style-definition" 12859 12860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 12861$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 12862 cacheid=xorg_cv_cc_flag__Wold_style_definition 12863 if eval \${$cacheid+:} false; then : 12864 $as_echo_n "(cached) " >&6 12865else 12866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12867/* end confdefs.h. */ 12868int i; 12869int 12870main () 12871{ 12872 12873 ; 12874 return 0; 12875} 12876_ACEOF 12877if ac_fn_c_try_link "$LINENO"; then : 12878 eval $cacheid=yes 12879else 12880 eval $cacheid=no 12881fi 12882rm -f core conftest.err conftest.$ac_objext \ 12883 conftest$ac_exeext conftest.$ac_ext 12884fi 12885 12886 12887 CFLAGS="$xorg_testset_save_CFLAGS" 12888 12889 eval supported=\$$cacheid 12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12891$as_echo "$supported" >&6; } 12892 if test "$supported" = "yes" ; then 12893 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 12894 found="yes" 12895 fi 12896 fi 12897 12898 if test $found = "no" ; then 12899 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12900 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12901 fi 12902 12903 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12905 fi 12906 12907 CFLAGS="$CFLAGS -fd" 12908 12909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 12910$as_echo_n "checking if $CC supports -fd... " >&6; } 12911 cacheid=xorg_cv_cc_flag__fd 12912 if eval \${$cacheid+:} false; then : 12913 $as_echo_n "(cached) " >&6 12914else 12915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12916/* end confdefs.h. */ 12917int i; 12918int 12919main () 12920{ 12921 12922 ; 12923 return 0; 12924} 12925_ACEOF 12926if ac_fn_c_try_link "$LINENO"; then : 12927 eval $cacheid=yes 12928else 12929 eval $cacheid=no 12930fi 12931rm -f core conftest.err conftest.$ac_objext \ 12932 conftest$ac_exeext conftest.$ac_ext 12933fi 12934 12935 12936 CFLAGS="$xorg_testset_save_CFLAGS" 12937 12938 eval supported=\$$cacheid 12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12940$as_echo "$supported" >&6; } 12941 if test "$supported" = "yes" ; then 12942 BASE_CFLAGS="$BASE_CFLAGS -fd" 12943 found="yes" 12944 fi 12945 fi 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961xorg_testset_save_CFLAGS="$CFLAGS" 12962 12963if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12964 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12966$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12967if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12968 $as_echo_n "(cached) " >&6 12969else 12970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12971/* end confdefs.h. */ 12972int i; 12973_ACEOF 12974if ac_fn_c_try_compile "$LINENO"; then : 12975 xorg_cv_cc_flag_unknown_warning_option=yes 12976else 12977 xorg_cv_cc_flag_unknown_warning_option=no 12978fi 12979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12980fi 12981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12982$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12983 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12984 CFLAGS="$xorg_testset_save_CFLAGS" 12985fi 12986 12987if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12990 fi 12991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12993$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12994if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12995 $as_echo_n "(cached) " >&6 12996else 12997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12998/* end confdefs.h. */ 12999int i; 13000_ACEOF 13001if ac_fn_c_try_compile "$LINENO"; then : 13002 xorg_cv_cc_flag_unused_command_line_argument=yes 13003else 13004 xorg_cv_cc_flag_unused_command_line_argument=no 13005fi 13006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13007fi 13008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13009$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13010 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13011 CFLAGS="$xorg_testset_save_CFLAGS" 13012fi 13013 13014found="no" 13015 13016 if test $found = "no" ; then 13017 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13018 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13019 fi 13020 13021 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13023 fi 13024 13025 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 13026 13027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 13028$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 13029 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 13030 if eval \${$cacheid+:} false; then : 13031 $as_echo_n "(cached) " >&6 13032else 13033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13034/* end confdefs.h. */ 13035int i; 13036int 13037main () 13038{ 13039 13040 ; 13041 return 0; 13042} 13043_ACEOF 13044if ac_fn_c_try_link "$LINENO"; then : 13045 eval $cacheid=yes 13046else 13047 eval $cacheid=no 13048fi 13049rm -f core conftest.err conftest.$ac_objext \ 13050 conftest$ac_exeext conftest.$ac_ext 13051fi 13052 13053 13054 CFLAGS="$xorg_testset_save_CFLAGS" 13055 13056 eval supported=\$$cacheid 13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13058$as_echo "$supported" >&6; } 13059 if test "$supported" = "yes" ; then 13060 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 13061 found="yes" 13062 fi 13063 fi 13064 13065 13066 13067 13068 13069# This chunk adds additional warnings that could catch undesired effects. 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083xorg_testset_save_CFLAGS="$CFLAGS" 13084 13085if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13088$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13089if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13090 $as_echo_n "(cached) " >&6 13091else 13092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13093/* end confdefs.h. */ 13094int i; 13095_ACEOF 13096if ac_fn_c_try_compile "$LINENO"; then : 13097 xorg_cv_cc_flag_unknown_warning_option=yes 13098else 13099 xorg_cv_cc_flag_unknown_warning_option=no 13100fi 13101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13102fi 13103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13104$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13105 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13106 CFLAGS="$xorg_testset_save_CFLAGS" 13107fi 13108 13109if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13111 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13112 fi 13113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13115$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13116if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13117 $as_echo_n "(cached) " >&6 13118else 13119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13120/* end confdefs.h. */ 13121int i; 13122_ACEOF 13123if ac_fn_c_try_compile "$LINENO"; then : 13124 xorg_cv_cc_flag_unused_command_line_argument=yes 13125else 13126 xorg_cv_cc_flag_unused_command_line_argument=no 13127fi 13128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13129fi 13130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13131$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13132 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13133 CFLAGS="$xorg_testset_save_CFLAGS" 13134fi 13135 13136found="no" 13137 13138 if test $found = "no" ; then 13139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13140 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13141 fi 13142 13143 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13145 fi 13146 13147 CFLAGS="$CFLAGS -Wunused" 13148 13149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 13150$as_echo_n "checking if $CC supports -Wunused... " >&6; } 13151 cacheid=xorg_cv_cc_flag__Wunused 13152 if eval \${$cacheid+:} false; then : 13153 $as_echo_n "(cached) " >&6 13154else 13155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13156/* end confdefs.h. */ 13157int i; 13158int 13159main () 13160{ 13161 13162 ; 13163 return 0; 13164} 13165_ACEOF 13166if ac_fn_c_try_link "$LINENO"; then : 13167 eval $cacheid=yes 13168else 13169 eval $cacheid=no 13170fi 13171rm -f core conftest.err conftest.$ac_objext \ 13172 conftest$ac_exeext conftest.$ac_ext 13173fi 13174 13175 13176 CFLAGS="$xorg_testset_save_CFLAGS" 13177 13178 eval supported=\$$cacheid 13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13180$as_echo "$supported" >&6; } 13181 if test "$supported" = "yes" ; then 13182 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13183 found="yes" 13184 fi 13185 fi 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201xorg_testset_save_CFLAGS="$CFLAGS" 13202 13203if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13204 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13206$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13207if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13208 $as_echo_n "(cached) " >&6 13209else 13210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13211/* end confdefs.h. */ 13212int i; 13213_ACEOF 13214if ac_fn_c_try_compile "$LINENO"; then : 13215 xorg_cv_cc_flag_unknown_warning_option=yes 13216else 13217 xorg_cv_cc_flag_unknown_warning_option=no 13218fi 13219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13220fi 13221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13222$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13223 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13224 CFLAGS="$xorg_testset_save_CFLAGS" 13225fi 13226 13227if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13230 fi 13231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13233$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13234if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13235 $as_echo_n "(cached) " >&6 13236else 13237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13238/* end confdefs.h. */ 13239int i; 13240_ACEOF 13241if ac_fn_c_try_compile "$LINENO"; then : 13242 xorg_cv_cc_flag_unused_command_line_argument=yes 13243else 13244 xorg_cv_cc_flag_unused_command_line_argument=no 13245fi 13246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13247fi 13248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13249$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13250 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13251 CFLAGS="$xorg_testset_save_CFLAGS" 13252fi 13253 13254found="no" 13255 13256 if test $found = "no" ; then 13257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13258 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13259 fi 13260 13261 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13263 fi 13264 13265 CFLAGS="$CFLAGS -Wuninitialized" 13266 13267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 13268$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 13269 cacheid=xorg_cv_cc_flag__Wuninitialized 13270 if eval \${$cacheid+:} false; then : 13271 $as_echo_n "(cached) " >&6 13272else 13273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13274/* end confdefs.h. */ 13275int i; 13276int 13277main () 13278{ 13279 13280 ; 13281 return 0; 13282} 13283_ACEOF 13284if ac_fn_c_try_link "$LINENO"; then : 13285 eval $cacheid=yes 13286else 13287 eval $cacheid=no 13288fi 13289rm -f core conftest.err conftest.$ac_objext \ 13290 conftest$ac_exeext conftest.$ac_ext 13291fi 13292 13293 13294 CFLAGS="$xorg_testset_save_CFLAGS" 13295 13296 eval supported=\$$cacheid 13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13298$as_echo "$supported" >&6; } 13299 if test "$supported" = "yes" ; then 13300 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13301 found="yes" 13302 fi 13303 fi 13304 13305 13306 13307 13308 13309 13310 13311 13312 13313 13314 13315 13316 13317 13318 13319xorg_testset_save_CFLAGS="$CFLAGS" 13320 13321if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13324$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13325if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13326 $as_echo_n "(cached) " >&6 13327else 13328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13329/* end confdefs.h. */ 13330int i; 13331_ACEOF 13332if ac_fn_c_try_compile "$LINENO"; then : 13333 xorg_cv_cc_flag_unknown_warning_option=yes 13334else 13335 xorg_cv_cc_flag_unknown_warning_option=no 13336fi 13337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13338fi 13339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13340$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13341 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13342 CFLAGS="$xorg_testset_save_CFLAGS" 13343fi 13344 13345if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13348 fi 13349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13351$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13352if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13353 $as_echo_n "(cached) " >&6 13354else 13355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13356/* end confdefs.h. */ 13357int i; 13358_ACEOF 13359if ac_fn_c_try_compile "$LINENO"; then : 13360 xorg_cv_cc_flag_unused_command_line_argument=yes 13361else 13362 xorg_cv_cc_flag_unused_command_line_argument=no 13363fi 13364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13365fi 13366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13367$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13368 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13369 CFLAGS="$xorg_testset_save_CFLAGS" 13370fi 13371 13372found="no" 13373 13374 if test $found = "no" ; then 13375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13377 fi 13378 13379 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13381 fi 13382 13383 CFLAGS="$CFLAGS -Wshadow" 13384 13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 13386$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 13387 cacheid=xorg_cv_cc_flag__Wshadow 13388 if eval \${$cacheid+:} false; then : 13389 $as_echo_n "(cached) " >&6 13390else 13391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13392/* end confdefs.h. */ 13393int i; 13394int 13395main () 13396{ 13397 13398 ; 13399 return 0; 13400} 13401_ACEOF 13402if ac_fn_c_try_link "$LINENO"; then : 13403 eval $cacheid=yes 13404else 13405 eval $cacheid=no 13406fi 13407rm -f core conftest.err conftest.$ac_objext \ 13408 conftest$ac_exeext conftest.$ac_ext 13409fi 13410 13411 13412 CFLAGS="$xorg_testset_save_CFLAGS" 13413 13414 eval supported=\$$cacheid 13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13416$as_echo "$supported" >&6; } 13417 if test "$supported" = "yes" ; then 13418 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 13419 found="yes" 13420 fi 13421 fi 13422 13423 13424 13425 13426 13427 13428 13429 13430 13431 13432 13433 13434 13435 13436 13437xorg_testset_save_CFLAGS="$CFLAGS" 13438 13439if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13440 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13442$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13443if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13444 $as_echo_n "(cached) " >&6 13445else 13446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13447/* end confdefs.h. */ 13448int i; 13449_ACEOF 13450if ac_fn_c_try_compile "$LINENO"; then : 13451 xorg_cv_cc_flag_unknown_warning_option=yes 13452else 13453 xorg_cv_cc_flag_unknown_warning_option=no 13454fi 13455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13456fi 13457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13458$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13459 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13460 CFLAGS="$xorg_testset_save_CFLAGS" 13461fi 13462 13463if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13466 fi 13467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13469$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13470if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13471 $as_echo_n "(cached) " >&6 13472else 13473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13474/* end confdefs.h. */ 13475int i; 13476_ACEOF 13477if ac_fn_c_try_compile "$LINENO"; then : 13478 xorg_cv_cc_flag_unused_command_line_argument=yes 13479else 13480 xorg_cv_cc_flag_unused_command_line_argument=no 13481fi 13482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13483fi 13484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13485$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13486 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13487 CFLAGS="$xorg_testset_save_CFLAGS" 13488fi 13489 13490found="no" 13491 13492 if test $found = "no" ; then 13493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13494 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13495 fi 13496 13497 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13499 fi 13500 13501 CFLAGS="$CFLAGS -Wmissing-noreturn" 13502 13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 13504$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 13505 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 13506 if eval \${$cacheid+:} false; then : 13507 $as_echo_n "(cached) " >&6 13508else 13509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13510/* end confdefs.h. */ 13511int i; 13512int 13513main () 13514{ 13515 13516 ; 13517 return 0; 13518} 13519_ACEOF 13520if ac_fn_c_try_link "$LINENO"; then : 13521 eval $cacheid=yes 13522else 13523 eval $cacheid=no 13524fi 13525rm -f core conftest.err conftest.$ac_objext \ 13526 conftest$ac_exeext conftest.$ac_ext 13527fi 13528 13529 13530 CFLAGS="$xorg_testset_save_CFLAGS" 13531 13532 eval supported=\$$cacheid 13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13534$as_echo "$supported" >&6; } 13535 if test "$supported" = "yes" ; then 13536 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 13537 found="yes" 13538 fi 13539 fi 13540 13541 13542 13543 13544 13545 13546 13547 13548 13549 13550 13551 13552 13553 13554 13555xorg_testset_save_CFLAGS="$CFLAGS" 13556 13557if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13560$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13561if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13562 $as_echo_n "(cached) " >&6 13563else 13564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13565/* end confdefs.h. */ 13566int i; 13567_ACEOF 13568if ac_fn_c_try_compile "$LINENO"; then : 13569 xorg_cv_cc_flag_unknown_warning_option=yes 13570else 13571 xorg_cv_cc_flag_unknown_warning_option=no 13572fi 13573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13574fi 13575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13576$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13577 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13578 CFLAGS="$xorg_testset_save_CFLAGS" 13579fi 13580 13581if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13582 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13583 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13584 fi 13585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13587$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13588if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13589 $as_echo_n "(cached) " >&6 13590else 13591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13592/* end confdefs.h. */ 13593int i; 13594_ACEOF 13595if ac_fn_c_try_compile "$LINENO"; then : 13596 xorg_cv_cc_flag_unused_command_line_argument=yes 13597else 13598 xorg_cv_cc_flag_unused_command_line_argument=no 13599fi 13600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13601fi 13602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13603$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13604 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13605 CFLAGS="$xorg_testset_save_CFLAGS" 13606fi 13607 13608found="no" 13609 13610 if test $found = "no" ; then 13611 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13612 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13613 fi 13614 13615 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13617 fi 13618 13619 CFLAGS="$CFLAGS -Wmissing-format-attribute" 13620 13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 13622$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 13623 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 13624 if eval \${$cacheid+:} false; then : 13625 $as_echo_n "(cached) " >&6 13626else 13627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13628/* end confdefs.h. */ 13629int i; 13630int 13631main () 13632{ 13633 13634 ; 13635 return 0; 13636} 13637_ACEOF 13638if ac_fn_c_try_link "$LINENO"; then : 13639 eval $cacheid=yes 13640else 13641 eval $cacheid=no 13642fi 13643rm -f core conftest.err conftest.$ac_objext \ 13644 conftest$ac_exeext conftest.$ac_ext 13645fi 13646 13647 13648 CFLAGS="$xorg_testset_save_CFLAGS" 13649 13650 eval supported=\$$cacheid 13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13652$as_echo "$supported" >&6; } 13653 if test "$supported" = "yes" ; then 13654 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 13655 found="yes" 13656 fi 13657 fi 13658 13659 13660 13661 13662 13663 13664 13665 13666 13667 13668 13669 13670 13671 13672 13673xorg_testset_save_CFLAGS="$CFLAGS" 13674 13675if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13676 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13678$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13679if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13680 $as_echo_n "(cached) " >&6 13681else 13682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13683/* end confdefs.h. */ 13684int i; 13685_ACEOF 13686if ac_fn_c_try_compile "$LINENO"; then : 13687 xorg_cv_cc_flag_unknown_warning_option=yes 13688else 13689 xorg_cv_cc_flag_unknown_warning_option=no 13690fi 13691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13692fi 13693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13694$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13695 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13696 CFLAGS="$xorg_testset_save_CFLAGS" 13697fi 13698 13699if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13701 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13702 fi 13703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13705$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13706if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13707 $as_echo_n "(cached) " >&6 13708else 13709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13710/* end confdefs.h. */ 13711int i; 13712_ACEOF 13713if ac_fn_c_try_compile "$LINENO"; then : 13714 xorg_cv_cc_flag_unused_command_line_argument=yes 13715else 13716 xorg_cv_cc_flag_unused_command_line_argument=no 13717fi 13718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13719fi 13720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13721$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13722 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13723 CFLAGS="$xorg_testset_save_CFLAGS" 13724fi 13725 13726found="no" 13727 13728 if test $found = "no" ; then 13729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13730 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13731 fi 13732 13733 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13735 fi 13736 13737 CFLAGS="$CFLAGS -Wredundant-decls" 13738 13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 13740$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 13741 cacheid=xorg_cv_cc_flag__Wredundant_decls 13742 if eval \${$cacheid+:} false; then : 13743 $as_echo_n "(cached) " >&6 13744else 13745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13746/* end confdefs.h. */ 13747int i; 13748int 13749main () 13750{ 13751 13752 ; 13753 return 0; 13754} 13755_ACEOF 13756if ac_fn_c_try_link "$LINENO"; then : 13757 eval $cacheid=yes 13758else 13759 eval $cacheid=no 13760fi 13761rm -f core conftest.err conftest.$ac_objext \ 13762 conftest$ac_exeext conftest.$ac_ext 13763fi 13764 13765 13766 CFLAGS="$xorg_testset_save_CFLAGS" 13767 13768 eval supported=\$$cacheid 13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13770$as_echo "$supported" >&6; } 13771 if test "$supported" = "yes" ; then 13772 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 13773 found="yes" 13774 fi 13775 fi 13776 13777 13778 13779 13780 13781 13782 13783 13784 13785 13786 13787 13788 13789 13790 13791xorg_testset_save_CFLAGS="$CFLAGS" 13792 13793if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13794 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13796$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13797if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13798 $as_echo_n "(cached) " >&6 13799else 13800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13801/* end confdefs.h. */ 13802int i; 13803_ACEOF 13804if ac_fn_c_try_compile "$LINENO"; then : 13805 xorg_cv_cc_flag_unknown_warning_option=yes 13806else 13807 xorg_cv_cc_flag_unknown_warning_option=no 13808fi 13809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13810fi 13811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13812$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13813 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13814 CFLAGS="$xorg_testset_save_CFLAGS" 13815fi 13816 13817if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13818 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13819 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13820 fi 13821 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13823$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13824if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13825 $as_echo_n "(cached) " >&6 13826else 13827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13828/* end confdefs.h. */ 13829int i; 13830_ACEOF 13831if ac_fn_c_try_compile "$LINENO"; then : 13832 xorg_cv_cc_flag_unused_command_line_argument=yes 13833else 13834 xorg_cv_cc_flag_unused_command_line_argument=no 13835fi 13836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13837fi 13838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13839$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13840 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13841 CFLAGS="$xorg_testset_save_CFLAGS" 13842fi 13843 13844found="no" 13845 13846 if test $found = "no" ; then 13847 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13848 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13849 fi 13850 13851 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13852 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13853 fi 13854 13855 CFLAGS="$CFLAGS -Wlogical-op" 13856 13857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 13858$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 13859 cacheid=xorg_cv_cc_flag__Wlogical_op 13860 if eval \${$cacheid+:} false; then : 13861 $as_echo_n "(cached) " >&6 13862else 13863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13864/* end confdefs.h. */ 13865int i; 13866int 13867main () 13868{ 13869 13870 ; 13871 return 0; 13872} 13873_ACEOF 13874if ac_fn_c_try_link "$LINENO"; then : 13875 eval $cacheid=yes 13876else 13877 eval $cacheid=no 13878fi 13879rm -f core conftest.err conftest.$ac_objext \ 13880 conftest$ac_exeext conftest.$ac_ext 13881fi 13882 13883 13884 CFLAGS="$xorg_testset_save_CFLAGS" 13885 13886 eval supported=\$$cacheid 13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13888$as_echo "$supported" >&6; } 13889 if test "$supported" = "yes" ; then 13890 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 13891 found="yes" 13892 fi 13893 fi 13894 13895 13896 13897# These are currently disabled because they are noisy. They will be enabled 13898# in the future once the codebase is sufficiently modernized to silence 13899# them. For now, I don't want them to drown out the other warnings. 13900# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 13901# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 13902# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 13903 13904# Turn some warnings into errors, so we don't accidently get successful builds 13905# when there are problems that should be fixed. 13906 13907if test "x$SELECTIVE_WERROR" = "xyes" ; then 13908 13909 13910 13911 13912 13913 13914 13915 13916 13917 13918 13919 13920 13921xorg_testset_save_CFLAGS="$CFLAGS" 13922 13923if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13924 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13926$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13927if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13928 $as_echo_n "(cached) " >&6 13929else 13930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13931/* end confdefs.h. */ 13932int i; 13933_ACEOF 13934if ac_fn_c_try_compile "$LINENO"; then : 13935 xorg_cv_cc_flag_unknown_warning_option=yes 13936else 13937 xorg_cv_cc_flag_unknown_warning_option=no 13938fi 13939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13940fi 13941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13942$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13943 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13944 CFLAGS="$xorg_testset_save_CFLAGS" 13945fi 13946 13947if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13949 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13950 fi 13951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13953$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13954if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13955 $as_echo_n "(cached) " >&6 13956else 13957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13958/* end confdefs.h. */ 13959int i; 13960_ACEOF 13961if ac_fn_c_try_compile "$LINENO"; then : 13962 xorg_cv_cc_flag_unused_command_line_argument=yes 13963else 13964 xorg_cv_cc_flag_unused_command_line_argument=no 13965fi 13966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13967fi 13968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13969$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13970 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13971 CFLAGS="$xorg_testset_save_CFLAGS" 13972fi 13973 13974found="no" 13975 13976 if test $found = "no" ; then 13977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13978 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13979 fi 13980 13981 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13983 fi 13984 13985 CFLAGS="$CFLAGS -Werror=implicit" 13986 13987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 13988$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 13989 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 13990 if eval \${$cacheid+:} false; then : 13991 $as_echo_n "(cached) " >&6 13992else 13993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13994/* end confdefs.h. */ 13995int i; 13996int 13997main () 13998{ 13999 14000 ; 14001 return 0; 14002} 14003_ACEOF 14004if ac_fn_c_try_link "$LINENO"; then : 14005 eval $cacheid=yes 14006else 14007 eval $cacheid=no 14008fi 14009rm -f core conftest.err conftest.$ac_objext \ 14010 conftest$ac_exeext conftest.$ac_ext 14011fi 14012 14013 14014 CFLAGS="$xorg_testset_save_CFLAGS" 14015 14016 eval supported=\$$cacheid 14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14018$as_echo "$supported" >&6; } 14019 if test "$supported" = "yes" ; then 14020 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 14021 found="yes" 14022 fi 14023 fi 14024 14025 if test $found = "no" ; then 14026 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14027 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14028 fi 14029 14030 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14032 fi 14033 14034 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14035 14036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 14037$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 14038 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 14039 if eval \${$cacheid+:} false; then : 14040 $as_echo_n "(cached) " >&6 14041else 14042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14043/* end confdefs.h. */ 14044int i; 14045int 14046main () 14047{ 14048 14049 ; 14050 return 0; 14051} 14052_ACEOF 14053if ac_fn_c_try_link "$LINENO"; then : 14054 eval $cacheid=yes 14055else 14056 eval $cacheid=no 14057fi 14058rm -f core conftest.err conftest.$ac_objext \ 14059 conftest$ac_exeext conftest.$ac_ext 14060fi 14061 14062 14063 CFLAGS="$xorg_testset_save_CFLAGS" 14064 14065 eval supported=\$$cacheid 14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14067$as_echo "$supported" >&6; } 14068 if test "$supported" = "yes" ; then 14069 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14070 found="yes" 14071 fi 14072 fi 14073 14074 14075 14076 14077 14078 14079 14080 14081 14082 14083 14084 14085 14086 14087 14088xorg_testset_save_CFLAGS="$CFLAGS" 14089 14090if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14093$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14094if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14095 $as_echo_n "(cached) " >&6 14096else 14097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14098/* end confdefs.h. */ 14099int i; 14100_ACEOF 14101if ac_fn_c_try_compile "$LINENO"; then : 14102 xorg_cv_cc_flag_unknown_warning_option=yes 14103else 14104 xorg_cv_cc_flag_unknown_warning_option=no 14105fi 14106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14107fi 14108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14109$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14110 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14111 CFLAGS="$xorg_testset_save_CFLAGS" 14112fi 14113 14114if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14117 fi 14118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14120$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14121if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14122 $as_echo_n "(cached) " >&6 14123else 14124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14125/* end confdefs.h. */ 14126int i; 14127_ACEOF 14128if ac_fn_c_try_compile "$LINENO"; then : 14129 xorg_cv_cc_flag_unused_command_line_argument=yes 14130else 14131 xorg_cv_cc_flag_unused_command_line_argument=no 14132fi 14133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14134fi 14135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14136$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14137 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14138 CFLAGS="$xorg_testset_save_CFLAGS" 14139fi 14140 14141found="no" 14142 14143 if test $found = "no" ; then 14144 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14145 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14146 fi 14147 14148 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14150 fi 14151 14152 CFLAGS="$CFLAGS -Werror=nonnull" 14153 14154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 14155$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 14156 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 14157 if eval \${$cacheid+:} false; then : 14158 $as_echo_n "(cached) " >&6 14159else 14160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14161/* end confdefs.h. */ 14162int i; 14163int 14164main () 14165{ 14166 14167 ; 14168 return 0; 14169} 14170_ACEOF 14171if ac_fn_c_try_link "$LINENO"; then : 14172 eval $cacheid=yes 14173else 14174 eval $cacheid=no 14175fi 14176rm -f core conftest.err conftest.$ac_objext \ 14177 conftest$ac_exeext conftest.$ac_ext 14178fi 14179 14180 14181 CFLAGS="$xorg_testset_save_CFLAGS" 14182 14183 eval supported=\$$cacheid 14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14185$as_echo "$supported" >&6; } 14186 if test "$supported" = "yes" ; then 14187 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14188 found="yes" 14189 fi 14190 fi 14191 14192 14193 14194 14195 14196 14197 14198 14199 14200 14201 14202 14203 14204 14205 14206xorg_testset_save_CFLAGS="$CFLAGS" 14207 14208if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14209 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14211$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14212if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14213 $as_echo_n "(cached) " >&6 14214else 14215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14216/* end confdefs.h. */ 14217int i; 14218_ACEOF 14219if ac_fn_c_try_compile "$LINENO"; then : 14220 xorg_cv_cc_flag_unknown_warning_option=yes 14221else 14222 xorg_cv_cc_flag_unknown_warning_option=no 14223fi 14224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14225fi 14226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14227$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14228 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14229 CFLAGS="$xorg_testset_save_CFLAGS" 14230fi 14231 14232if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14235 fi 14236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14238$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14239if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14240 $as_echo_n "(cached) " >&6 14241else 14242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14243/* end confdefs.h. */ 14244int i; 14245_ACEOF 14246if ac_fn_c_try_compile "$LINENO"; then : 14247 xorg_cv_cc_flag_unused_command_line_argument=yes 14248else 14249 xorg_cv_cc_flag_unused_command_line_argument=no 14250fi 14251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14252fi 14253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14254$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14255 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14256 CFLAGS="$xorg_testset_save_CFLAGS" 14257fi 14258 14259found="no" 14260 14261 if test $found = "no" ; then 14262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14264 fi 14265 14266 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14268 fi 14269 14270 CFLAGS="$CFLAGS -Werror=init-self" 14271 14272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 14273$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 14274 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 14275 if eval \${$cacheid+:} false; then : 14276 $as_echo_n "(cached) " >&6 14277else 14278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14279/* end confdefs.h. */ 14280int i; 14281int 14282main () 14283{ 14284 14285 ; 14286 return 0; 14287} 14288_ACEOF 14289if ac_fn_c_try_link "$LINENO"; then : 14290 eval $cacheid=yes 14291else 14292 eval $cacheid=no 14293fi 14294rm -f core conftest.err conftest.$ac_objext \ 14295 conftest$ac_exeext conftest.$ac_ext 14296fi 14297 14298 14299 CFLAGS="$xorg_testset_save_CFLAGS" 14300 14301 eval supported=\$$cacheid 14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14303$as_echo "$supported" >&6; } 14304 if test "$supported" = "yes" ; then 14305 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 14306 found="yes" 14307 fi 14308 fi 14309 14310 14311 14312 14313 14314 14315 14316 14317 14318 14319 14320 14321 14322 14323 14324xorg_testset_save_CFLAGS="$CFLAGS" 14325 14326if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14329$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14330if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14331 $as_echo_n "(cached) " >&6 14332else 14333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14334/* end confdefs.h. */ 14335int i; 14336_ACEOF 14337if ac_fn_c_try_compile "$LINENO"; then : 14338 xorg_cv_cc_flag_unknown_warning_option=yes 14339else 14340 xorg_cv_cc_flag_unknown_warning_option=no 14341fi 14342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14343fi 14344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14345$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14346 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14347 CFLAGS="$xorg_testset_save_CFLAGS" 14348fi 14349 14350if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14352 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14353 fi 14354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14356$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14357if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14358 $as_echo_n "(cached) " >&6 14359else 14360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14361/* end confdefs.h. */ 14362int i; 14363_ACEOF 14364if ac_fn_c_try_compile "$LINENO"; then : 14365 xorg_cv_cc_flag_unused_command_line_argument=yes 14366else 14367 xorg_cv_cc_flag_unused_command_line_argument=no 14368fi 14369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14370fi 14371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14372$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14373 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14374 CFLAGS="$xorg_testset_save_CFLAGS" 14375fi 14376 14377found="no" 14378 14379 if test $found = "no" ; then 14380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14382 fi 14383 14384 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14386 fi 14387 14388 CFLAGS="$CFLAGS -Werror=main" 14389 14390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 14391$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 14392 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 14393 if eval \${$cacheid+:} false; then : 14394 $as_echo_n "(cached) " >&6 14395else 14396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14397/* end confdefs.h. */ 14398int i; 14399int 14400main () 14401{ 14402 14403 ; 14404 return 0; 14405} 14406_ACEOF 14407if ac_fn_c_try_link "$LINENO"; then : 14408 eval $cacheid=yes 14409else 14410 eval $cacheid=no 14411fi 14412rm -f core conftest.err conftest.$ac_objext \ 14413 conftest$ac_exeext conftest.$ac_ext 14414fi 14415 14416 14417 CFLAGS="$xorg_testset_save_CFLAGS" 14418 14419 eval supported=\$$cacheid 14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14421$as_echo "$supported" >&6; } 14422 if test "$supported" = "yes" ; then 14423 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 14424 found="yes" 14425 fi 14426 fi 14427 14428 14429 14430 14431 14432 14433 14434 14435 14436 14437 14438 14439 14440 14441 14442xorg_testset_save_CFLAGS="$CFLAGS" 14443 14444if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14445 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14447$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14448if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14449 $as_echo_n "(cached) " >&6 14450else 14451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14452/* end confdefs.h. */ 14453int i; 14454_ACEOF 14455if ac_fn_c_try_compile "$LINENO"; then : 14456 xorg_cv_cc_flag_unknown_warning_option=yes 14457else 14458 xorg_cv_cc_flag_unknown_warning_option=no 14459fi 14460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14461fi 14462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14463$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14464 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14465 CFLAGS="$xorg_testset_save_CFLAGS" 14466fi 14467 14468if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14470 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14471 fi 14472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14474$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14475if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14476 $as_echo_n "(cached) " >&6 14477else 14478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14479/* end confdefs.h. */ 14480int i; 14481_ACEOF 14482if ac_fn_c_try_compile "$LINENO"; then : 14483 xorg_cv_cc_flag_unused_command_line_argument=yes 14484else 14485 xorg_cv_cc_flag_unused_command_line_argument=no 14486fi 14487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14488fi 14489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14490$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14491 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14492 CFLAGS="$xorg_testset_save_CFLAGS" 14493fi 14494 14495found="no" 14496 14497 if test $found = "no" ; then 14498 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14499 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14500 fi 14501 14502 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14503 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14504 fi 14505 14506 CFLAGS="$CFLAGS -Werror=missing-braces" 14507 14508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 14509$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 14510 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 14511 if eval \${$cacheid+:} false; then : 14512 $as_echo_n "(cached) " >&6 14513else 14514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14515/* end confdefs.h. */ 14516int i; 14517int 14518main () 14519{ 14520 14521 ; 14522 return 0; 14523} 14524_ACEOF 14525if ac_fn_c_try_link "$LINENO"; then : 14526 eval $cacheid=yes 14527else 14528 eval $cacheid=no 14529fi 14530rm -f core conftest.err conftest.$ac_objext \ 14531 conftest$ac_exeext conftest.$ac_ext 14532fi 14533 14534 14535 CFLAGS="$xorg_testset_save_CFLAGS" 14536 14537 eval supported=\$$cacheid 14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14539$as_echo "$supported" >&6; } 14540 if test "$supported" = "yes" ; then 14541 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 14542 found="yes" 14543 fi 14544 fi 14545 14546 14547 14548 14549 14550 14551 14552 14553 14554 14555 14556 14557 14558 14559 14560xorg_testset_save_CFLAGS="$CFLAGS" 14561 14562if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14565$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14566if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14567 $as_echo_n "(cached) " >&6 14568else 14569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14570/* end confdefs.h. */ 14571int i; 14572_ACEOF 14573if ac_fn_c_try_compile "$LINENO"; then : 14574 xorg_cv_cc_flag_unknown_warning_option=yes 14575else 14576 xorg_cv_cc_flag_unknown_warning_option=no 14577fi 14578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14579fi 14580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14581$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14582 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14583 CFLAGS="$xorg_testset_save_CFLAGS" 14584fi 14585 14586if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14588 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14589 fi 14590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14592$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14593if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14594 $as_echo_n "(cached) " >&6 14595else 14596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14597/* end confdefs.h. */ 14598int i; 14599_ACEOF 14600if ac_fn_c_try_compile "$LINENO"; then : 14601 xorg_cv_cc_flag_unused_command_line_argument=yes 14602else 14603 xorg_cv_cc_flag_unused_command_line_argument=no 14604fi 14605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14606fi 14607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14608$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14609 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14610 CFLAGS="$xorg_testset_save_CFLAGS" 14611fi 14612 14613found="no" 14614 14615 if test $found = "no" ; then 14616 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14618 fi 14619 14620 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14622 fi 14623 14624 CFLAGS="$CFLAGS -Werror=sequence-point" 14625 14626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 14627$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 14628 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 14629 if eval \${$cacheid+:} false; then : 14630 $as_echo_n "(cached) " >&6 14631else 14632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14633/* end confdefs.h. */ 14634int i; 14635int 14636main () 14637{ 14638 14639 ; 14640 return 0; 14641} 14642_ACEOF 14643if ac_fn_c_try_link "$LINENO"; then : 14644 eval $cacheid=yes 14645else 14646 eval $cacheid=no 14647fi 14648rm -f core conftest.err conftest.$ac_objext \ 14649 conftest$ac_exeext conftest.$ac_ext 14650fi 14651 14652 14653 CFLAGS="$xorg_testset_save_CFLAGS" 14654 14655 eval supported=\$$cacheid 14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14657$as_echo "$supported" >&6; } 14658 if test "$supported" = "yes" ; then 14659 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 14660 found="yes" 14661 fi 14662 fi 14663 14664 14665 14666 14667 14668 14669 14670 14671 14672 14673 14674 14675 14676 14677 14678xorg_testset_save_CFLAGS="$CFLAGS" 14679 14680if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14681 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14683$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14684if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14685 $as_echo_n "(cached) " >&6 14686else 14687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14688/* end confdefs.h. */ 14689int i; 14690_ACEOF 14691if ac_fn_c_try_compile "$LINENO"; then : 14692 xorg_cv_cc_flag_unknown_warning_option=yes 14693else 14694 xorg_cv_cc_flag_unknown_warning_option=no 14695fi 14696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14697fi 14698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14699$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14700 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14701 CFLAGS="$xorg_testset_save_CFLAGS" 14702fi 14703 14704if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14707 fi 14708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14710$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14711if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14712 $as_echo_n "(cached) " >&6 14713else 14714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14715/* end confdefs.h. */ 14716int i; 14717_ACEOF 14718if ac_fn_c_try_compile "$LINENO"; then : 14719 xorg_cv_cc_flag_unused_command_line_argument=yes 14720else 14721 xorg_cv_cc_flag_unused_command_line_argument=no 14722fi 14723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14724fi 14725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14726$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14727 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14728 CFLAGS="$xorg_testset_save_CFLAGS" 14729fi 14730 14731found="no" 14732 14733 if test $found = "no" ; then 14734 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14735 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14736 fi 14737 14738 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14740 fi 14741 14742 CFLAGS="$CFLAGS -Werror=return-type" 14743 14744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 14745$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 14746 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 14747 if eval \${$cacheid+:} false; then : 14748 $as_echo_n "(cached) " >&6 14749else 14750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14751/* end confdefs.h. */ 14752int i; 14753int 14754main () 14755{ 14756 14757 ; 14758 return 0; 14759} 14760_ACEOF 14761if ac_fn_c_try_link "$LINENO"; then : 14762 eval $cacheid=yes 14763else 14764 eval $cacheid=no 14765fi 14766rm -f core conftest.err conftest.$ac_objext \ 14767 conftest$ac_exeext conftest.$ac_ext 14768fi 14769 14770 14771 CFLAGS="$xorg_testset_save_CFLAGS" 14772 14773 eval supported=\$$cacheid 14774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14775$as_echo "$supported" >&6; } 14776 if test "$supported" = "yes" ; then 14777 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 14778 found="yes" 14779 fi 14780 fi 14781 14782 if test $found = "no" ; then 14783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14784 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14785 fi 14786 14787 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14789 fi 14790 14791 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14792 14793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 14794$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 14795 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 14796 if eval \${$cacheid+:} false; then : 14797 $as_echo_n "(cached) " >&6 14798else 14799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14800/* end confdefs.h. */ 14801int i; 14802int 14803main () 14804{ 14805 14806 ; 14807 return 0; 14808} 14809_ACEOF 14810if ac_fn_c_try_link "$LINENO"; then : 14811 eval $cacheid=yes 14812else 14813 eval $cacheid=no 14814fi 14815rm -f core conftest.err conftest.$ac_objext \ 14816 conftest$ac_exeext conftest.$ac_ext 14817fi 14818 14819 14820 CFLAGS="$xorg_testset_save_CFLAGS" 14821 14822 eval supported=\$$cacheid 14823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14824$as_echo "$supported" >&6; } 14825 if test "$supported" = "yes" ; then 14826 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14827 found="yes" 14828 fi 14829 fi 14830 14831 14832 14833 14834 14835 14836 14837 14838 14839 14840 14841 14842 14843 14844 14845xorg_testset_save_CFLAGS="$CFLAGS" 14846 14847if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14848 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14850$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14851if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14852 $as_echo_n "(cached) " >&6 14853else 14854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14855/* end confdefs.h. */ 14856int i; 14857_ACEOF 14858if ac_fn_c_try_compile "$LINENO"; then : 14859 xorg_cv_cc_flag_unknown_warning_option=yes 14860else 14861 xorg_cv_cc_flag_unknown_warning_option=no 14862fi 14863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14864fi 14865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14866$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14867 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14868 CFLAGS="$xorg_testset_save_CFLAGS" 14869fi 14870 14871if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14872 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14873 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14874 fi 14875 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14877$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14878if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14879 $as_echo_n "(cached) " >&6 14880else 14881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14882/* end confdefs.h. */ 14883int i; 14884_ACEOF 14885if ac_fn_c_try_compile "$LINENO"; then : 14886 xorg_cv_cc_flag_unused_command_line_argument=yes 14887else 14888 xorg_cv_cc_flag_unused_command_line_argument=no 14889fi 14890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14891fi 14892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14893$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14894 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14895 CFLAGS="$xorg_testset_save_CFLAGS" 14896fi 14897 14898found="no" 14899 14900 if test $found = "no" ; then 14901 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14902 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14903 fi 14904 14905 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14907 fi 14908 14909 CFLAGS="$CFLAGS -Werror=trigraphs" 14910 14911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 14912$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 14913 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 14914 if eval \${$cacheid+:} false; then : 14915 $as_echo_n "(cached) " >&6 14916else 14917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14918/* end confdefs.h. */ 14919int i; 14920int 14921main () 14922{ 14923 14924 ; 14925 return 0; 14926} 14927_ACEOF 14928if ac_fn_c_try_link "$LINENO"; then : 14929 eval $cacheid=yes 14930else 14931 eval $cacheid=no 14932fi 14933rm -f core conftest.err conftest.$ac_objext \ 14934 conftest$ac_exeext conftest.$ac_ext 14935fi 14936 14937 14938 CFLAGS="$xorg_testset_save_CFLAGS" 14939 14940 eval supported=\$$cacheid 14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14942$as_echo "$supported" >&6; } 14943 if test "$supported" = "yes" ; then 14944 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 14945 found="yes" 14946 fi 14947 fi 14948 14949 14950 14951 14952 14953 14954 14955 14956 14957 14958 14959 14960 14961 14962 14963xorg_testset_save_CFLAGS="$CFLAGS" 14964 14965if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14966 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14968$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14969if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14970 $as_echo_n "(cached) " >&6 14971else 14972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14973/* end confdefs.h. */ 14974int i; 14975_ACEOF 14976if ac_fn_c_try_compile "$LINENO"; then : 14977 xorg_cv_cc_flag_unknown_warning_option=yes 14978else 14979 xorg_cv_cc_flag_unknown_warning_option=no 14980fi 14981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14982fi 14983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14984$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14985 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14986 CFLAGS="$xorg_testset_save_CFLAGS" 14987fi 14988 14989if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14990 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14991 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14992 fi 14993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14995$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14996if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14997 $as_echo_n "(cached) " >&6 14998else 14999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15000/* end confdefs.h. */ 15001int i; 15002_ACEOF 15003if ac_fn_c_try_compile "$LINENO"; then : 15004 xorg_cv_cc_flag_unused_command_line_argument=yes 15005else 15006 xorg_cv_cc_flag_unused_command_line_argument=no 15007fi 15008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15009fi 15010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15011$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15012 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15013 CFLAGS="$xorg_testset_save_CFLAGS" 15014fi 15015 15016found="no" 15017 15018 if test $found = "no" ; then 15019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15021 fi 15022 15023 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15025 fi 15026 15027 CFLAGS="$CFLAGS -Werror=array-bounds" 15028 15029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 15030$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 15031 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 15032 if eval \${$cacheid+:} false; then : 15033 $as_echo_n "(cached) " >&6 15034else 15035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15036/* end confdefs.h. */ 15037int i; 15038int 15039main () 15040{ 15041 15042 ; 15043 return 0; 15044} 15045_ACEOF 15046if ac_fn_c_try_link "$LINENO"; then : 15047 eval $cacheid=yes 15048else 15049 eval $cacheid=no 15050fi 15051rm -f core conftest.err conftest.$ac_objext \ 15052 conftest$ac_exeext conftest.$ac_ext 15053fi 15054 15055 15056 CFLAGS="$xorg_testset_save_CFLAGS" 15057 15058 eval supported=\$$cacheid 15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15060$as_echo "$supported" >&6; } 15061 if test "$supported" = "yes" ; then 15062 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 15063 found="yes" 15064 fi 15065 fi 15066 15067 15068 15069 15070 15071 15072 15073 15074 15075 15076 15077 15078 15079 15080 15081xorg_testset_save_CFLAGS="$CFLAGS" 15082 15083if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15084 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15086$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15087if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15088 $as_echo_n "(cached) " >&6 15089else 15090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15091/* end confdefs.h. */ 15092int i; 15093_ACEOF 15094if ac_fn_c_try_compile "$LINENO"; then : 15095 xorg_cv_cc_flag_unknown_warning_option=yes 15096else 15097 xorg_cv_cc_flag_unknown_warning_option=no 15098fi 15099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15100fi 15101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15102$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15103 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15104 CFLAGS="$xorg_testset_save_CFLAGS" 15105fi 15106 15107if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15108 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15109 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15110 fi 15111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15113$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15114if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15115 $as_echo_n "(cached) " >&6 15116else 15117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15118/* end confdefs.h. */ 15119int i; 15120_ACEOF 15121if ac_fn_c_try_compile "$LINENO"; then : 15122 xorg_cv_cc_flag_unused_command_line_argument=yes 15123else 15124 xorg_cv_cc_flag_unused_command_line_argument=no 15125fi 15126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15127fi 15128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15129$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15130 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15131 CFLAGS="$xorg_testset_save_CFLAGS" 15132fi 15133 15134found="no" 15135 15136 if test $found = "no" ; then 15137 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15138 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15139 fi 15140 15141 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15143 fi 15144 15145 CFLAGS="$CFLAGS -Werror=write-strings" 15146 15147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 15148$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 15149 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 15150 if eval \${$cacheid+:} false; then : 15151 $as_echo_n "(cached) " >&6 15152else 15153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15154/* end confdefs.h. */ 15155int i; 15156int 15157main () 15158{ 15159 15160 ; 15161 return 0; 15162} 15163_ACEOF 15164if ac_fn_c_try_link "$LINENO"; then : 15165 eval $cacheid=yes 15166else 15167 eval $cacheid=no 15168fi 15169rm -f core conftest.err conftest.$ac_objext \ 15170 conftest$ac_exeext conftest.$ac_ext 15171fi 15172 15173 15174 CFLAGS="$xorg_testset_save_CFLAGS" 15175 15176 eval supported=\$$cacheid 15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15178$as_echo "$supported" >&6; } 15179 if test "$supported" = "yes" ; then 15180 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 15181 found="yes" 15182 fi 15183 fi 15184 15185 15186 15187 15188 15189 15190 15191 15192 15193 15194 15195 15196 15197 15198 15199xorg_testset_save_CFLAGS="$CFLAGS" 15200 15201if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15202 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15204$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15205if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15206 $as_echo_n "(cached) " >&6 15207else 15208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15209/* end confdefs.h. */ 15210int i; 15211_ACEOF 15212if ac_fn_c_try_compile "$LINENO"; then : 15213 xorg_cv_cc_flag_unknown_warning_option=yes 15214else 15215 xorg_cv_cc_flag_unknown_warning_option=no 15216fi 15217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15218fi 15219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15220$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15221 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15222 CFLAGS="$xorg_testset_save_CFLAGS" 15223fi 15224 15225if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15226 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15227 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15228 fi 15229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15231$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15232if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15233 $as_echo_n "(cached) " >&6 15234else 15235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15236/* end confdefs.h. */ 15237int i; 15238_ACEOF 15239if ac_fn_c_try_compile "$LINENO"; then : 15240 xorg_cv_cc_flag_unused_command_line_argument=yes 15241else 15242 xorg_cv_cc_flag_unused_command_line_argument=no 15243fi 15244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15245fi 15246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15247$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15248 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15249 CFLAGS="$xorg_testset_save_CFLAGS" 15250fi 15251 15252found="no" 15253 15254 if test $found = "no" ; then 15255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15257 fi 15258 15259 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15261 fi 15262 15263 CFLAGS="$CFLAGS -Werror=address" 15264 15265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 15266$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 15267 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 15268 if eval \${$cacheid+:} false; then : 15269 $as_echo_n "(cached) " >&6 15270else 15271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15272/* end confdefs.h. */ 15273int i; 15274int 15275main () 15276{ 15277 15278 ; 15279 return 0; 15280} 15281_ACEOF 15282if ac_fn_c_try_link "$LINENO"; then : 15283 eval $cacheid=yes 15284else 15285 eval $cacheid=no 15286fi 15287rm -f core conftest.err conftest.$ac_objext \ 15288 conftest$ac_exeext conftest.$ac_ext 15289fi 15290 15291 15292 CFLAGS="$xorg_testset_save_CFLAGS" 15293 15294 eval supported=\$$cacheid 15295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15296$as_echo "$supported" >&6; } 15297 if test "$supported" = "yes" ; then 15298 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 15299 found="yes" 15300 fi 15301 fi 15302 15303 15304 15305 15306 15307 15308 15309 15310 15311 15312 15313 15314 15315 15316 15317xorg_testset_save_CFLAGS="$CFLAGS" 15318 15319if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15320 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15322$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15323if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15324 $as_echo_n "(cached) " >&6 15325else 15326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15327/* end confdefs.h. */ 15328int i; 15329_ACEOF 15330if ac_fn_c_try_compile "$LINENO"; then : 15331 xorg_cv_cc_flag_unknown_warning_option=yes 15332else 15333 xorg_cv_cc_flag_unknown_warning_option=no 15334fi 15335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15336fi 15337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15338$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15339 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15340 CFLAGS="$xorg_testset_save_CFLAGS" 15341fi 15342 15343if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15346 fi 15347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15349$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15350if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15351 $as_echo_n "(cached) " >&6 15352else 15353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15354/* end confdefs.h. */ 15355int i; 15356_ACEOF 15357if ac_fn_c_try_compile "$LINENO"; then : 15358 xorg_cv_cc_flag_unused_command_line_argument=yes 15359else 15360 xorg_cv_cc_flag_unused_command_line_argument=no 15361fi 15362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15363fi 15364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15365$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15366 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15367 CFLAGS="$xorg_testset_save_CFLAGS" 15368fi 15369 15370found="no" 15371 15372 if test $found = "no" ; then 15373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15374 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15375 fi 15376 15377 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15379 fi 15380 15381 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 15382 15383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 15384$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 15385 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 15386 if eval \${$cacheid+:} false; then : 15387 $as_echo_n "(cached) " >&6 15388else 15389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15390/* end confdefs.h. */ 15391int i; 15392int 15393main () 15394{ 15395 15396 ; 15397 return 0; 15398} 15399_ACEOF 15400if ac_fn_c_try_link "$LINENO"; then : 15401 eval $cacheid=yes 15402else 15403 eval $cacheid=no 15404fi 15405rm -f core conftest.err conftest.$ac_objext \ 15406 conftest$ac_exeext conftest.$ac_ext 15407fi 15408 15409 15410 CFLAGS="$xorg_testset_save_CFLAGS" 15411 15412 eval supported=\$$cacheid 15413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15414$as_echo "$supported" >&6; } 15415 if test "$supported" = "yes" ; then 15416 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 15417 found="yes" 15418 fi 15419 fi 15420 15421 if test $found = "no" ; then 15422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15424 fi 15425 15426 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15428 fi 15429 15430 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15431 15432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 15433$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 15434 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 15435 if eval \${$cacheid+:} false; then : 15436 $as_echo_n "(cached) " >&6 15437else 15438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15439/* end confdefs.h. */ 15440int i; 15441int 15442main () 15443{ 15444 15445 ; 15446 return 0; 15447} 15448_ACEOF 15449if ac_fn_c_try_link "$LINENO"; then : 15450 eval $cacheid=yes 15451else 15452 eval $cacheid=no 15453fi 15454rm -f core conftest.err conftest.$ac_objext \ 15455 conftest$ac_exeext conftest.$ac_ext 15456fi 15457 15458 15459 CFLAGS="$xorg_testset_save_CFLAGS" 15460 15461 eval supported=\$$cacheid 15462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15463$as_echo "$supported" >&6; } 15464 if test "$supported" = "yes" ; then 15465 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15466 found="yes" 15467 fi 15468 fi 15469 15470 15471 15472 15473 15474 15475 15476 15477 15478 15479 15480 15481 15482 15483 15484xorg_testset_save_CFLAGS="$CFLAGS" 15485 15486if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15487 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15489$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15490if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15491 $as_echo_n "(cached) " >&6 15492else 15493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15494/* end confdefs.h. */ 15495int i; 15496_ACEOF 15497if ac_fn_c_try_compile "$LINENO"; then : 15498 xorg_cv_cc_flag_unknown_warning_option=yes 15499else 15500 xorg_cv_cc_flag_unknown_warning_option=no 15501fi 15502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15503fi 15504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15505$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15506 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15507 CFLAGS="$xorg_testset_save_CFLAGS" 15508fi 15509 15510if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15512 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15513 fi 15514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15516$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15517if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15518 $as_echo_n "(cached) " >&6 15519else 15520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15521/* end confdefs.h. */ 15522int i; 15523_ACEOF 15524if ac_fn_c_try_compile "$LINENO"; then : 15525 xorg_cv_cc_flag_unused_command_line_argument=yes 15526else 15527 xorg_cv_cc_flag_unused_command_line_argument=no 15528fi 15529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15530fi 15531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15532$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15533 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15534 CFLAGS="$xorg_testset_save_CFLAGS" 15535fi 15536 15537found="no" 15538 15539 if test $found = "no" ; then 15540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15541 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15542 fi 15543 15544 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15546 fi 15547 15548 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 15549 15550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 15551$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 15552 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 15553 if eval \${$cacheid+:} false; then : 15554 $as_echo_n "(cached) " >&6 15555else 15556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15557/* end confdefs.h. */ 15558int i; 15559int 15560main () 15561{ 15562 15563 ; 15564 return 0; 15565} 15566_ACEOF 15567if ac_fn_c_try_link "$LINENO"; then : 15568 eval $cacheid=yes 15569else 15570 eval $cacheid=no 15571fi 15572rm -f core conftest.err conftest.$ac_objext \ 15573 conftest$ac_exeext conftest.$ac_ext 15574fi 15575 15576 15577 CFLAGS="$xorg_testset_save_CFLAGS" 15578 15579 eval supported=\$$cacheid 15580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15581$as_echo "$supported" >&6; } 15582 if test "$supported" = "yes" ; then 15583 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 15584 found="yes" 15585 fi 15586 fi 15587 15588 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 15589else 15590{ $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 15591$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;} 15592 15593 15594 15595 15596 15597 15598 15599 15600 15601 15602 15603 15604 15605xorg_testset_save_CFLAGS="$CFLAGS" 15606 15607if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15608 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15610$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15611if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15612 $as_echo_n "(cached) " >&6 15613else 15614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15615/* end confdefs.h. */ 15616int i; 15617_ACEOF 15618if ac_fn_c_try_compile "$LINENO"; then : 15619 xorg_cv_cc_flag_unknown_warning_option=yes 15620else 15621 xorg_cv_cc_flag_unknown_warning_option=no 15622fi 15623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15624fi 15625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15626$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15627 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15628 CFLAGS="$xorg_testset_save_CFLAGS" 15629fi 15630 15631if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15633 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15634 fi 15635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15637$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15638if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15639 $as_echo_n "(cached) " >&6 15640else 15641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15642/* end confdefs.h. */ 15643int i; 15644_ACEOF 15645if ac_fn_c_try_compile "$LINENO"; then : 15646 xorg_cv_cc_flag_unused_command_line_argument=yes 15647else 15648 xorg_cv_cc_flag_unused_command_line_argument=no 15649fi 15650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15651fi 15652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15653$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15654 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15655 CFLAGS="$xorg_testset_save_CFLAGS" 15656fi 15657 15658found="no" 15659 15660 if test $found = "no" ; then 15661 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15662 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15663 fi 15664 15665 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15667 fi 15668 15669 CFLAGS="$CFLAGS -Wimplicit" 15670 15671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 15672$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 15673 cacheid=xorg_cv_cc_flag__Wimplicit 15674 if eval \${$cacheid+:} false; then : 15675 $as_echo_n "(cached) " >&6 15676else 15677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15678/* end confdefs.h. */ 15679int i; 15680int 15681main () 15682{ 15683 15684 ; 15685 return 0; 15686} 15687_ACEOF 15688if ac_fn_c_try_link "$LINENO"; then : 15689 eval $cacheid=yes 15690else 15691 eval $cacheid=no 15692fi 15693rm -f core conftest.err conftest.$ac_objext \ 15694 conftest$ac_exeext conftest.$ac_ext 15695fi 15696 15697 15698 CFLAGS="$xorg_testset_save_CFLAGS" 15699 15700 eval supported=\$$cacheid 15701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15702$as_echo "$supported" >&6; } 15703 if test "$supported" = "yes" ; then 15704 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 15705 found="yes" 15706 fi 15707 fi 15708 15709 15710 15711 15712 15713 15714 15715 15716 15717 15718 15719 15720 15721 15722 15723xorg_testset_save_CFLAGS="$CFLAGS" 15724 15725if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15726 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15728$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15729if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15730 $as_echo_n "(cached) " >&6 15731else 15732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15733/* end confdefs.h. */ 15734int i; 15735_ACEOF 15736if ac_fn_c_try_compile "$LINENO"; then : 15737 xorg_cv_cc_flag_unknown_warning_option=yes 15738else 15739 xorg_cv_cc_flag_unknown_warning_option=no 15740fi 15741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15742fi 15743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15744$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15745 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15746 CFLAGS="$xorg_testset_save_CFLAGS" 15747fi 15748 15749if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15750 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15751 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15752 fi 15753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15755$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15756if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15757 $as_echo_n "(cached) " >&6 15758else 15759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15760/* end confdefs.h. */ 15761int i; 15762_ACEOF 15763if ac_fn_c_try_compile "$LINENO"; then : 15764 xorg_cv_cc_flag_unused_command_line_argument=yes 15765else 15766 xorg_cv_cc_flag_unused_command_line_argument=no 15767fi 15768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15769fi 15770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15771$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15772 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15773 CFLAGS="$xorg_testset_save_CFLAGS" 15774fi 15775 15776found="no" 15777 15778 if test $found = "no" ; then 15779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15780 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15781 fi 15782 15783 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15785 fi 15786 15787 CFLAGS="$CFLAGS -Wnonnull" 15788 15789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 15790$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 15791 cacheid=xorg_cv_cc_flag__Wnonnull 15792 if eval \${$cacheid+:} false; then : 15793 $as_echo_n "(cached) " >&6 15794else 15795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15796/* end confdefs.h. */ 15797int i; 15798int 15799main () 15800{ 15801 15802 ; 15803 return 0; 15804} 15805_ACEOF 15806if ac_fn_c_try_link "$LINENO"; then : 15807 eval $cacheid=yes 15808else 15809 eval $cacheid=no 15810fi 15811rm -f core conftest.err conftest.$ac_objext \ 15812 conftest$ac_exeext conftest.$ac_ext 15813fi 15814 15815 15816 CFLAGS="$xorg_testset_save_CFLAGS" 15817 15818 eval supported=\$$cacheid 15819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15820$as_echo "$supported" >&6; } 15821 if test "$supported" = "yes" ; then 15822 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 15823 found="yes" 15824 fi 15825 fi 15826 15827 15828 15829 15830 15831 15832 15833 15834 15835 15836 15837 15838 15839 15840 15841xorg_testset_save_CFLAGS="$CFLAGS" 15842 15843if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15846$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15847if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15848 $as_echo_n "(cached) " >&6 15849else 15850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15851/* end confdefs.h. */ 15852int i; 15853_ACEOF 15854if ac_fn_c_try_compile "$LINENO"; then : 15855 xorg_cv_cc_flag_unknown_warning_option=yes 15856else 15857 xorg_cv_cc_flag_unknown_warning_option=no 15858fi 15859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15860fi 15861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15862$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15863 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15864 CFLAGS="$xorg_testset_save_CFLAGS" 15865fi 15866 15867if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15870 fi 15871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15873$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15874if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15875 $as_echo_n "(cached) " >&6 15876else 15877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15878/* end confdefs.h. */ 15879int i; 15880_ACEOF 15881if ac_fn_c_try_compile "$LINENO"; then : 15882 xorg_cv_cc_flag_unused_command_line_argument=yes 15883else 15884 xorg_cv_cc_flag_unused_command_line_argument=no 15885fi 15886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15887fi 15888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15889$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15890 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15891 CFLAGS="$xorg_testset_save_CFLAGS" 15892fi 15893 15894found="no" 15895 15896 if test $found = "no" ; then 15897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15898 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15899 fi 15900 15901 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15903 fi 15904 15905 CFLAGS="$CFLAGS -Winit-self" 15906 15907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 15908$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 15909 cacheid=xorg_cv_cc_flag__Winit_self 15910 if eval \${$cacheid+:} false; then : 15911 $as_echo_n "(cached) " >&6 15912else 15913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15914/* end confdefs.h. */ 15915int i; 15916int 15917main () 15918{ 15919 15920 ; 15921 return 0; 15922} 15923_ACEOF 15924if ac_fn_c_try_link "$LINENO"; then : 15925 eval $cacheid=yes 15926else 15927 eval $cacheid=no 15928fi 15929rm -f core conftest.err conftest.$ac_objext \ 15930 conftest$ac_exeext conftest.$ac_ext 15931fi 15932 15933 15934 CFLAGS="$xorg_testset_save_CFLAGS" 15935 15936 eval supported=\$$cacheid 15937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15938$as_echo "$supported" >&6; } 15939 if test "$supported" = "yes" ; then 15940 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 15941 found="yes" 15942 fi 15943 fi 15944 15945 15946 15947 15948 15949 15950 15951 15952 15953 15954 15955 15956 15957 15958 15959xorg_testset_save_CFLAGS="$CFLAGS" 15960 15961if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15962 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15964$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15965if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15966 $as_echo_n "(cached) " >&6 15967else 15968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15969/* end confdefs.h. */ 15970int i; 15971_ACEOF 15972if ac_fn_c_try_compile "$LINENO"; then : 15973 xorg_cv_cc_flag_unknown_warning_option=yes 15974else 15975 xorg_cv_cc_flag_unknown_warning_option=no 15976fi 15977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15978fi 15979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15980$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15981 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15982 CFLAGS="$xorg_testset_save_CFLAGS" 15983fi 15984 15985if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15987 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15988 fi 15989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15991$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15992if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15993 $as_echo_n "(cached) " >&6 15994else 15995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15996/* end confdefs.h. */ 15997int i; 15998_ACEOF 15999if ac_fn_c_try_compile "$LINENO"; then : 16000 xorg_cv_cc_flag_unused_command_line_argument=yes 16001else 16002 xorg_cv_cc_flag_unused_command_line_argument=no 16003fi 16004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16005fi 16006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16007$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16008 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16009 CFLAGS="$xorg_testset_save_CFLAGS" 16010fi 16011 16012found="no" 16013 16014 if test $found = "no" ; then 16015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16016 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16017 fi 16018 16019 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16021 fi 16022 16023 CFLAGS="$CFLAGS -Wmain" 16024 16025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 16026$as_echo_n "checking if $CC supports -Wmain... " >&6; } 16027 cacheid=xorg_cv_cc_flag__Wmain 16028 if eval \${$cacheid+:} false; then : 16029 $as_echo_n "(cached) " >&6 16030else 16031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16032/* end confdefs.h. */ 16033int i; 16034int 16035main () 16036{ 16037 16038 ; 16039 return 0; 16040} 16041_ACEOF 16042if ac_fn_c_try_link "$LINENO"; then : 16043 eval $cacheid=yes 16044else 16045 eval $cacheid=no 16046fi 16047rm -f core conftest.err conftest.$ac_objext \ 16048 conftest$ac_exeext conftest.$ac_ext 16049fi 16050 16051 16052 CFLAGS="$xorg_testset_save_CFLAGS" 16053 16054 eval supported=\$$cacheid 16055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16056$as_echo "$supported" >&6; } 16057 if test "$supported" = "yes" ; then 16058 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 16059 found="yes" 16060 fi 16061 fi 16062 16063 16064 16065 16066 16067 16068 16069 16070 16071 16072 16073 16074 16075 16076 16077xorg_testset_save_CFLAGS="$CFLAGS" 16078 16079if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16080 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16082$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16083if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16084 $as_echo_n "(cached) " >&6 16085else 16086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16087/* end confdefs.h. */ 16088int i; 16089_ACEOF 16090if ac_fn_c_try_compile "$LINENO"; then : 16091 xorg_cv_cc_flag_unknown_warning_option=yes 16092else 16093 xorg_cv_cc_flag_unknown_warning_option=no 16094fi 16095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16096fi 16097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16098$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16099 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16100 CFLAGS="$xorg_testset_save_CFLAGS" 16101fi 16102 16103if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16105 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16106 fi 16107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16109$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16110if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16111 $as_echo_n "(cached) " >&6 16112else 16113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16114/* end confdefs.h. */ 16115int i; 16116_ACEOF 16117if ac_fn_c_try_compile "$LINENO"; then : 16118 xorg_cv_cc_flag_unused_command_line_argument=yes 16119else 16120 xorg_cv_cc_flag_unused_command_line_argument=no 16121fi 16122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16123fi 16124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16125$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16126 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16127 CFLAGS="$xorg_testset_save_CFLAGS" 16128fi 16129 16130found="no" 16131 16132 if test $found = "no" ; then 16133 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16134 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16135 fi 16136 16137 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16139 fi 16140 16141 CFLAGS="$CFLAGS -Wmissing-braces" 16142 16143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 16144$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 16145 cacheid=xorg_cv_cc_flag__Wmissing_braces 16146 if eval \${$cacheid+:} false; then : 16147 $as_echo_n "(cached) " >&6 16148else 16149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16150/* end confdefs.h. */ 16151int i; 16152int 16153main () 16154{ 16155 16156 ; 16157 return 0; 16158} 16159_ACEOF 16160if ac_fn_c_try_link "$LINENO"; then : 16161 eval $cacheid=yes 16162else 16163 eval $cacheid=no 16164fi 16165rm -f core conftest.err conftest.$ac_objext \ 16166 conftest$ac_exeext conftest.$ac_ext 16167fi 16168 16169 16170 CFLAGS="$xorg_testset_save_CFLAGS" 16171 16172 eval supported=\$$cacheid 16173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16174$as_echo "$supported" >&6; } 16175 if test "$supported" = "yes" ; then 16176 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 16177 found="yes" 16178 fi 16179 fi 16180 16181 16182 16183 16184 16185 16186 16187 16188 16189 16190 16191 16192 16193 16194 16195xorg_testset_save_CFLAGS="$CFLAGS" 16196 16197if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16198 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16200$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16201if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16202 $as_echo_n "(cached) " >&6 16203else 16204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16205/* end confdefs.h. */ 16206int i; 16207_ACEOF 16208if ac_fn_c_try_compile "$LINENO"; then : 16209 xorg_cv_cc_flag_unknown_warning_option=yes 16210else 16211 xorg_cv_cc_flag_unknown_warning_option=no 16212fi 16213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16214fi 16215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16216$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16217 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16218 CFLAGS="$xorg_testset_save_CFLAGS" 16219fi 16220 16221if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16222 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16223 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16224 fi 16225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16227$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16228if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16229 $as_echo_n "(cached) " >&6 16230else 16231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16232/* end confdefs.h. */ 16233int i; 16234_ACEOF 16235if ac_fn_c_try_compile "$LINENO"; then : 16236 xorg_cv_cc_flag_unused_command_line_argument=yes 16237else 16238 xorg_cv_cc_flag_unused_command_line_argument=no 16239fi 16240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16241fi 16242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16243$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16244 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16245 CFLAGS="$xorg_testset_save_CFLAGS" 16246fi 16247 16248found="no" 16249 16250 if test $found = "no" ; then 16251 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16253 fi 16254 16255 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16256 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16257 fi 16258 16259 CFLAGS="$CFLAGS -Wsequence-point" 16260 16261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 16262$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 16263 cacheid=xorg_cv_cc_flag__Wsequence_point 16264 if eval \${$cacheid+:} false; then : 16265 $as_echo_n "(cached) " >&6 16266else 16267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16268/* end confdefs.h. */ 16269int i; 16270int 16271main () 16272{ 16273 16274 ; 16275 return 0; 16276} 16277_ACEOF 16278if ac_fn_c_try_link "$LINENO"; then : 16279 eval $cacheid=yes 16280else 16281 eval $cacheid=no 16282fi 16283rm -f core conftest.err conftest.$ac_objext \ 16284 conftest$ac_exeext conftest.$ac_ext 16285fi 16286 16287 16288 CFLAGS="$xorg_testset_save_CFLAGS" 16289 16290 eval supported=\$$cacheid 16291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16292$as_echo "$supported" >&6; } 16293 if test "$supported" = "yes" ; then 16294 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 16295 found="yes" 16296 fi 16297 fi 16298 16299 16300 16301 16302 16303 16304 16305 16306 16307 16308 16309 16310 16311 16312 16313xorg_testset_save_CFLAGS="$CFLAGS" 16314 16315if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16316 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16318$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16319if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16320 $as_echo_n "(cached) " >&6 16321else 16322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16323/* end confdefs.h. */ 16324int i; 16325_ACEOF 16326if ac_fn_c_try_compile "$LINENO"; then : 16327 xorg_cv_cc_flag_unknown_warning_option=yes 16328else 16329 xorg_cv_cc_flag_unknown_warning_option=no 16330fi 16331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16332fi 16333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16334$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16335 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16336 CFLAGS="$xorg_testset_save_CFLAGS" 16337fi 16338 16339if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16342 fi 16343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16345$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16346if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16347 $as_echo_n "(cached) " >&6 16348else 16349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16350/* end confdefs.h. */ 16351int i; 16352_ACEOF 16353if ac_fn_c_try_compile "$LINENO"; then : 16354 xorg_cv_cc_flag_unused_command_line_argument=yes 16355else 16356 xorg_cv_cc_flag_unused_command_line_argument=no 16357fi 16358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16359fi 16360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16361$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16362 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16363 CFLAGS="$xorg_testset_save_CFLAGS" 16364fi 16365 16366found="no" 16367 16368 if test $found = "no" ; then 16369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16370 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16371 fi 16372 16373 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16375 fi 16376 16377 CFLAGS="$CFLAGS -Wreturn-type" 16378 16379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 16380$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 16381 cacheid=xorg_cv_cc_flag__Wreturn_type 16382 if eval \${$cacheid+:} false; then : 16383 $as_echo_n "(cached) " >&6 16384else 16385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16386/* end confdefs.h. */ 16387int i; 16388int 16389main () 16390{ 16391 16392 ; 16393 return 0; 16394} 16395_ACEOF 16396if ac_fn_c_try_link "$LINENO"; then : 16397 eval $cacheid=yes 16398else 16399 eval $cacheid=no 16400fi 16401rm -f core conftest.err conftest.$ac_objext \ 16402 conftest$ac_exeext conftest.$ac_ext 16403fi 16404 16405 16406 CFLAGS="$xorg_testset_save_CFLAGS" 16407 16408 eval supported=\$$cacheid 16409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16410$as_echo "$supported" >&6; } 16411 if test "$supported" = "yes" ; then 16412 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 16413 found="yes" 16414 fi 16415 fi 16416 16417 16418 16419 16420 16421 16422 16423 16424 16425 16426 16427 16428 16429 16430 16431xorg_testset_save_CFLAGS="$CFLAGS" 16432 16433if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16434 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16436$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16437if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16438 $as_echo_n "(cached) " >&6 16439else 16440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16441/* end confdefs.h. */ 16442int i; 16443_ACEOF 16444if ac_fn_c_try_compile "$LINENO"; then : 16445 xorg_cv_cc_flag_unknown_warning_option=yes 16446else 16447 xorg_cv_cc_flag_unknown_warning_option=no 16448fi 16449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16450fi 16451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16452$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16453 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16454 CFLAGS="$xorg_testset_save_CFLAGS" 16455fi 16456 16457if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16460 fi 16461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16463$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16464if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16465 $as_echo_n "(cached) " >&6 16466else 16467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16468/* end confdefs.h. */ 16469int i; 16470_ACEOF 16471if ac_fn_c_try_compile "$LINENO"; then : 16472 xorg_cv_cc_flag_unused_command_line_argument=yes 16473else 16474 xorg_cv_cc_flag_unused_command_line_argument=no 16475fi 16476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16477fi 16478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16479$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16480 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16481 CFLAGS="$xorg_testset_save_CFLAGS" 16482fi 16483 16484found="no" 16485 16486 if test $found = "no" ; then 16487 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16488 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16489 fi 16490 16491 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16493 fi 16494 16495 CFLAGS="$CFLAGS -Wtrigraphs" 16496 16497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 16498$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 16499 cacheid=xorg_cv_cc_flag__Wtrigraphs 16500 if eval \${$cacheid+:} false; then : 16501 $as_echo_n "(cached) " >&6 16502else 16503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16504/* end confdefs.h. */ 16505int i; 16506int 16507main () 16508{ 16509 16510 ; 16511 return 0; 16512} 16513_ACEOF 16514if ac_fn_c_try_link "$LINENO"; then : 16515 eval $cacheid=yes 16516else 16517 eval $cacheid=no 16518fi 16519rm -f core conftest.err conftest.$ac_objext \ 16520 conftest$ac_exeext conftest.$ac_ext 16521fi 16522 16523 16524 CFLAGS="$xorg_testset_save_CFLAGS" 16525 16526 eval supported=\$$cacheid 16527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16528$as_echo "$supported" >&6; } 16529 if test "$supported" = "yes" ; then 16530 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 16531 found="yes" 16532 fi 16533 fi 16534 16535 16536 16537 16538 16539 16540 16541 16542 16543 16544 16545 16546 16547 16548 16549xorg_testset_save_CFLAGS="$CFLAGS" 16550 16551if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16552 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16554$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16555if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16556 $as_echo_n "(cached) " >&6 16557else 16558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16559/* end confdefs.h. */ 16560int i; 16561_ACEOF 16562if ac_fn_c_try_compile "$LINENO"; then : 16563 xorg_cv_cc_flag_unknown_warning_option=yes 16564else 16565 xorg_cv_cc_flag_unknown_warning_option=no 16566fi 16567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16568fi 16569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16570$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16571 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16572 CFLAGS="$xorg_testset_save_CFLAGS" 16573fi 16574 16575if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16578 fi 16579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16581$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16582if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16583 $as_echo_n "(cached) " >&6 16584else 16585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16586/* end confdefs.h. */ 16587int i; 16588_ACEOF 16589if ac_fn_c_try_compile "$LINENO"; then : 16590 xorg_cv_cc_flag_unused_command_line_argument=yes 16591else 16592 xorg_cv_cc_flag_unused_command_line_argument=no 16593fi 16594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16595fi 16596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16597$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16598 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16599 CFLAGS="$xorg_testset_save_CFLAGS" 16600fi 16601 16602found="no" 16603 16604 if test $found = "no" ; then 16605 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16606 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16607 fi 16608 16609 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16611 fi 16612 16613 CFLAGS="$CFLAGS -Warray-bounds" 16614 16615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 16616$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 16617 cacheid=xorg_cv_cc_flag__Warray_bounds 16618 if eval \${$cacheid+:} false; then : 16619 $as_echo_n "(cached) " >&6 16620else 16621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16622/* end confdefs.h. */ 16623int i; 16624int 16625main () 16626{ 16627 16628 ; 16629 return 0; 16630} 16631_ACEOF 16632if ac_fn_c_try_link "$LINENO"; then : 16633 eval $cacheid=yes 16634else 16635 eval $cacheid=no 16636fi 16637rm -f core conftest.err conftest.$ac_objext \ 16638 conftest$ac_exeext conftest.$ac_ext 16639fi 16640 16641 16642 CFLAGS="$xorg_testset_save_CFLAGS" 16643 16644 eval supported=\$$cacheid 16645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16646$as_echo "$supported" >&6; } 16647 if test "$supported" = "yes" ; then 16648 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 16649 found="yes" 16650 fi 16651 fi 16652 16653 16654 16655 16656 16657 16658 16659 16660 16661 16662 16663 16664 16665 16666 16667xorg_testset_save_CFLAGS="$CFLAGS" 16668 16669if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16670 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16672$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16673if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16674 $as_echo_n "(cached) " >&6 16675else 16676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16677/* end confdefs.h. */ 16678int i; 16679_ACEOF 16680if ac_fn_c_try_compile "$LINENO"; then : 16681 xorg_cv_cc_flag_unknown_warning_option=yes 16682else 16683 xorg_cv_cc_flag_unknown_warning_option=no 16684fi 16685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16686fi 16687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16688$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16689 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16690 CFLAGS="$xorg_testset_save_CFLAGS" 16691fi 16692 16693if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16694 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16696 fi 16697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16699$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16700if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16701 $as_echo_n "(cached) " >&6 16702else 16703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16704/* end confdefs.h. */ 16705int i; 16706_ACEOF 16707if ac_fn_c_try_compile "$LINENO"; then : 16708 xorg_cv_cc_flag_unused_command_line_argument=yes 16709else 16710 xorg_cv_cc_flag_unused_command_line_argument=no 16711fi 16712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16713fi 16714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16715$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16716 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16717 CFLAGS="$xorg_testset_save_CFLAGS" 16718fi 16719 16720found="no" 16721 16722 if test $found = "no" ; then 16723 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16724 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16725 fi 16726 16727 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16729 fi 16730 16731 CFLAGS="$CFLAGS -Wwrite-strings" 16732 16733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 16734$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 16735 cacheid=xorg_cv_cc_flag__Wwrite_strings 16736 if eval \${$cacheid+:} false; then : 16737 $as_echo_n "(cached) " >&6 16738else 16739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16740/* end confdefs.h. */ 16741int i; 16742int 16743main () 16744{ 16745 16746 ; 16747 return 0; 16748} 16749_ACEOF 16750if ac_fn_c_try_link "$LINENO"; then : 16751 eval $cacheid=yes 16752else 16753 eval $cacheid=no 16754fi 16755rm -f core conftest.err conftest.$ac_objext \ 16756 conftest$ac_exeext conftest.$ac_ext 16757fi 16758 16759 16760 CFLAGS="$xorg_testset_save_CFLAGS" 16761 16762 eval supported=\$$cacheid 16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16764$as_echo "$supported" >&6; } 16765 if test "$supported" = "yes" ; then 16766 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 16767 found="yes" 16768 fi 16769 fi 16770 16771 16772 16773 16774 16775 16776 16777 16778 16779 16780 16781 16782 16783 16784 16785xorg_testset_save_CFLAGS="$CFLAGS" 16786 16787if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16788 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16790$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16791if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16792 $as_echo_n "(cached) " >&6 16793else 16794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16795/* end confdefs.h. */ 16796int i; 16797_ACEOF 16798if ac_fn_c_try_compile "$LINENO"; then : 16799 xorg_cv_cc_flag_unknown_warning_option=yes 16800else 16801 xorg_cv_cc_flag_unknown_warning_option=no 16802fi 16803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16804fi 16805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16806$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16807 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16808 CFLAGS="$xorg_testset_save_CFLAGS" 16809fi 16810 16811if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16814 fi 16815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16817$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16818if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16819 $as_echo_n "(cached) " >&6 16820else 16821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16822/* end confdefs.h. */ 16823int i; 16824_ACEOF 16825if ac_fn_c_try_compile "$LINENO"; then : 16826 xorg_cv_cc_flag_unused_command_line_argument=yes 16827else 16828 xorg_cv_cc_flag_unused_command_line_argument=no 16829fi 16830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16831fi 16832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16833$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16834 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16835 CFLAGS="$xorg_testset_save_CFLAGS" 16836fi 16837 16838found="no" 16839 16840 if test $found = "no" ; then 16841 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16842 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16843 fi 16844 16845 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16847 fi 16848 16849 CFLAGS="$CFLAGS -Waddress" 16850 16851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 16852$as_echo_n "checking if $CC supports -Waddress... " >&6; } 16853 cacheid=xorg_cv_cc_flag__Waddress 16854 if eval \${$cacheid+:} false; then : 16855 $as_echo_n "(cached) " >&6 16856else 16857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16858/* end confdefs.h. */ 16859int i; 16860int 16861main () 16862{ 16863 16864 ; 16865 return 0; 16866} 16867_ACEOF 16868if ac_fn_c_try_link "$LINENO"; then : 16869 eval $cacheid=yes 16870else 16871 eval $cacheid=no 16872fi 16873rm -f core conftest.err conftest.$ac_objext \ 16874 conftest$ac_exeext conftest.$ac_ext 16875fi 16876 16877 16878 CFLAGS="$xorg_testset_save_CFLAGS" 16879 16880 eval supported=\$$cacheid 16881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16882$as_echo "$supported" >&6; } 16883 if test "$supported" = "yes" ; then 16884 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 16885 found="yes" 16886 fi 16887 fi 16888 16889 16890 16891 16892 16893 16894 16895 16896 16897 16898 16899 16900 16901 16902 16903xorg_testset_save_CFLAGS="$CFLAGS" 16904 16905if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16906 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16908$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16909if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16910 $as_echo_n "(cached) " >&6 16911else 16912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16913/* end confdefs.h. */ 16914int i; 16915_ACEOF 16916if ac_fn_c_try_compile "$LINENO"; then : 16917 xorg_cv_cc_flag_unknown_warning_option=yes 16918else 16919 xorg_cv_cc_flag_unknown_warning_option=no 16920fi 16921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16922fi 16923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16924$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16925 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16926 CFLAGS="$xorg_testset_save_CFLAGS" 16927fi 16928 16929if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16930 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16932 fi 16933 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16935$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16936if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16937 $as_echo_n "(cached) " >&6 16938else 16939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16940/* end confdefs.h. */ 16941int i; 16942_ACEOF 16943if ac_fn_c_try_compile "$LINENO"; then : 16944 xorg_cv_cc_flag_unused_command_line_argument=yes 16945else 16946 xorg_cv_cc_flag_unused_command_line_argument=no 16947fi 16948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16949fi 16950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16951$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16952 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16953 CFLAGS="$xorg_testset_save_CFLAGS" 16954fi 16955 16956found="no" 16957 16958 if test $found = "no" ; then 16959 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16961 fi 16962 16963 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16965 fi 16966 16967 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 16968 16969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 16970$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 16971 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 16972 if eval \${$cacheid+:} false; then : 16973 $as_echo_n "(cached) " >&6 16974else 16975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16976/* end confdefs.h. */ 16977int i; 16978int 16979main () 16980{ 16981 16982 ; 16983 return 0; 16984} 16985_ACEOF 16986if ac_fn_c_try_link "$LINENO"; then : 16987 eval $cacheid=yes 16988else 16989 eval $cacheid=no 16990fi 16991rm -f core conftest.err conftest.$ac_objext \ 16992 conftest$ac_exeext conftest.$ac_ext 16993fi 16994 16995 16996 CFLAGS="$xorg_testset_save_CFLAGS" 16997 16998 eval supported=\$$cacheid 16999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17000$as_echo "$supported" >&6; } 17001 if test "$supported" = "yes" ; then 17002 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 17003 found="yes" 17004 fi 17005 fi 17006 17007 17008 17009 17010 17011 17012 17013 17014 17015 17016 17017 17018 17019 17020 17021xorg_testset_save_CFLAGS="$CFLAGS" 17022 17023if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17026$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17027if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17028 $as_echo_n "(cached) " >&6 17029else 17030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17031/* end confdefs.h. */ 17032int i; 17033_ACEOF 17034if ac_fn_c_try_compile "$LINENO"; then : 17035 xorg_cv_cc_flag_unknown_warning_option=yes 17036else 17037 xorg_cv_cc_flag_unknown_warning_option=no 17038fi 17039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17040fi 17041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17042$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17043 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17044 CFLAGS="$xorg_testset_save_CFLAGS" 17045fi 17046 17047if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17048 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17050 fi 17051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17053$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17054if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17055 $as_echo_n "(cached) " >&6 17056else 17057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17058/* end confdefs.h. */ 17059int i; 17060_ACEOF 17061if ac_fn_c_try_compile "$LINENO"; then : 17062 xorg_cv_cc_flag_unused_command_line_argument=yes 17063else 17064 xorg_cv_cc_flag_unused_command_line_argument=no 17065fi 17066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17067fi 17068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17069$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17070 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17071 CFLAGS="$xorg_testset_save_CFLAGS" 17072fi 17073 17074found="no" 17075 17076 if test $found = "no" ; then 17077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17079 fi 17080 17081 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17083 fi 17084 17085 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 17086 17087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 17088$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 17089 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 17090 if eval \${$cacheid+:} false; then : 17091 $as_echo_n "(cached) " >&6 17092else 17093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17094/* end confdefs.h. */ 17095int i; 17096int 17097main () 17098{ 17099 17100 ; 17101 return 0; 17102} 17103_ACEOF 17104if ac_fn_c_try_link "$LINENO"; then : 17105 eval $cacheid=yes 17106else 17107 eval $cacheid=no 17108fi 17109rm -f core conftest.err conftest.$ac_objext \ 17110 conftest$ac_exeext conftest.$ac_ext 17111fi 17112 17113 17114 CFLAGS="$xorg_testset_save_CFLAGS" 17115 17116 eval supported=\$$cacheid 17117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17118$as_echo "$supported" >&6; } 17119 if test "$supported" = "yes" ; then 17120 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 17121 found="yes" 17122 fi 17123 fi 17124 17125 17126fi 17127 17128 17129 17130 17131 17132 17133 17134 CWARNFLAGS="$BASE_CFLAGS" 17135 if test "x$GCC" = xyes ; then 17136 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 17137 fi 17138 17139 17140 17141 17142 17143 17144 17145 17146# Check whether --enable-strict-compilation was given. 17147if test "${enable_strict_compilation+set}" = set; then : 17148 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 17149else 17150 STRICT_COMPILE=no 17151fi 17152 17153 17154 17155 17156 17157 17158STRICT_CFLAGS="" 17159 17160 17161 17162 17163 17164 17165 17166 17167 17168 17169 17170 17171 17172xorg_testset_save_CFLAGS="$CFLAGS" 17173 17174if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17177$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17178if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17179 $as_echo_n "(cached) " >&6 17180else 17181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17182/* end confdefs.h. */ 17183int i; 17184_ACEOF 17185if ac_fn_c_try_compile "$LINENO"; then : 17186 xorg_cv_cc_flag_unknown_warning_option=yes 17187else 17188 xorg_cv_cc_flag_unknown_warning_option=no 17189fi 17190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17191fi 17192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17193$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17194 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17195 CFLAGS="$xorg_testset_save_CFLAGS" 17196fi 17197 17198if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17199 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17201 fi 17202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17204$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17205if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17206 $as_echo_n "(cached) " >&6 17207else 17208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17209/* end confdefs.h. */ 17210int i; 17211_ACEOF 17212if ac_fn_c_try_compile "$LINENO"; then : 17213 xorg_cv_cc_flag_unused_command_line_argument=yes 17214else 17215 xorg_cv_cc_flag_unused_command_line_argument=no 17216fi 17217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17218fi 17219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17220$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17221 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17222 CFLAGS="$xorg_testset_save_CFLAGS" 17223fi 17224 17225found="no" 17226 17227 if test $found = "no" ; then 17228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17230 fi 17231 17232 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17234 fi 17235 17236 CFLAGS="$CFLAGS -pedantic" 17237 17238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 17239$as_echo_n "checking if $CC supports -pedantic... " >&6; } 17240 cacheid=xorg_cv_cc_flag__pedantic 17241 if eval \${$cacheid+:} false; then : 17242 $as_echo_n "(cached) " >&6 17243else 17244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17245/* end confdefs.h. */ 17246int i; 17247int 17248main () 17249{ 17250 17251 ; 17252 return 0; 17253} 17254_ACEOF 17255if ac_fn_c_try_link "$LINENO"; then : 17256 eval $cacheid=yes 17257else 17258 eval $cacheid=no 17259fi 17260rm -f core conftest.err conftest.$ac_objext \ 17261 conftest$ac_exeext conftest.$ac_ext 17262fi 17263 17264 17265 CFLAGS="$xorg_testset_save_CFLAGS" 17266 17267 eval supported=\$$cacheid 17268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17269$as_echo "$supported" >&6; } 17270 if test "$supported" = "yes" ; then 17271 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 17272 found="yes" 17273 fi 17274 fi 17275 17276 17277 17278 17279 17280 17281 17282 17283 17284 17285 17286 17287 17288 17289 17290xorg_testset_save_CFLAGS="$CFLAGS" 17291 17292if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17295$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17296if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17297 $as_echo_n "(cached) " >&6 17298else 17299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17300/* end confdefs.h. */ 17301int i; 17302_ACEOF 17303if ac_fn_c_try_compile "$LINENO"; then : 17304 xorg_cv_cc_flag_unknown_warning_option=yes 17305else 17306 xorg_cv_cc_flag_unknown_warning_option=no 17307fi 17308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17309fi 17310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17311$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17312 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17313 CFLAGS="$xorg_testset_save_CFLAGS" 17314fi 17315 17316if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17317 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17319 fi 17320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17322$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17323if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17324 $as_echo_n "(cached) " >&6 17325else 17326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17327/* end confdefs.h. */ 17328int i; 17329_ACEOF 17330if ac_fn_c_try_compile "$LINENO"; then : 17331 xorg_cv_cc_flag_unused_command_line_argument=yes 17332else 17333 xorg_cv_cc_flag_unused_command_line_argument=no 17334fi 17335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17336fi 17337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17338$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17339 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17340 CFLAGS="$xorg_testset_save_CFLAGS" 17341fi 17342 17343found="no" 17344 17345 if test $found = "no" ; then 17346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17348 fi 17349 17350 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17352 fi 17353 17354 CFLAGS="$CFLAGS -Werror" 17355 17356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 17357$as_echo_n "checking if $CC supports -Werror... " >&6; } 17358 cacheid=xorg_cv_cc_flag__Werror 17359 if eval \${$cacheid+:} false; then : 17360 $as_echo_n "(cached) " >&6 17361else 17362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17363/* end confdefs.h. */ 17364int i; 17365int 17366main () 17367{ 17368 17369 ; 17370 return 0; 17371} 17372_ACEOF 17373if ac_fn_c_try_link "$LINENO"; then : 17374 eval $cacheid=yes 17375else 17376 eval $cacheid=no 17377fi 17378rm -f core conftest.err conftest.$ac_objext \ 17379 conftest$ac_exeext conftest.$ac_ext 17380fi 17381 17382 17383 CFLAGS="$xorg_testset_save_CFLAGS" 17384 17385 eval supported=\$$cacheid 17386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17387$as_echo "$supported" >&6; } 17388 if test "$supported" = "yes" ; then 17389 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 17390 found="yes" 17391 fi 17392 fi 17393 17394 if test $found = "no" ; then 17395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17397 fi 17398 17399 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17401 fi 17402 17403 CFLAGS="$CFLAGS -errwarn" 17404 17405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 17406$as_echo_n "checking if $CC supports -errwarn... " >&6; } 17407 cacheid=xorg_cv_cc_flag__errwarn 17408 if eval \${$cacheid+:} false; then : 17409 $as_echo_n "(cached) " >&6 17410else 17411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17412/* end confdefs.h. */ 17413int i; 17414int 17415main () 17416{ 17417 17418 ; 17419 return 0; 17420} 17421_ACEOF 17422if ac_fn_c_try_link "$LINENO"; then : 17423 eval $cacheid=yes 17424else 17425 eval $cacheid=no 17426fi 17427rm -f core conftest.err conftest.$ac_objext \ 17428 conftest$ac_exeext conftest.$ac_ext 17429fi 17430 17431 17432 CFLAGS="$xorg_testset_save_CFLAGS" 17433 17434 eval supported=\$$cacheid 17435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17436$as_echo "$supported" >&6; } 17437 if test "$supported" = "yes" ; then 17438 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 17439 found="yes" 17440 fi 17441 fi 17442 17443 17444 17445# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 17446# activate it with -Werror, so we add it here explicitly. 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459 17460xorg_testset_save_CFLAGS="$CFLAGS" 17461 17462if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17463 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17465$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17466if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17467 $as_echo_n "(cached) " >&6 17468else 17469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17470/* end confdefs.h. */ 17471int i; 17472_ACEOF 17473if ac_fn_c_try_compile "$LINENO"; then : 17474 xorg_cv_cc_flag_unknown_warning_option=yes 17475else 17476 xorg_cv_cc_flag_unknown_warning_option=no 17477fi 17478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17479fi 17480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17481$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17482 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17483 CFLAGS="$xorg_testset_save_CFLAGS" 17484fi 17485 17486if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17487 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17488 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17489 fi 17490 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17492$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17493if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17494 $as_echo_n "(cached) " >&6 17495else 17496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17497/* end confdefs.h. */ 17498int i; 17499_ACEOF 17500if ac_fn_c_try_compile "$LINENO"; then : 17501 xorg_cv_cc_flag_unused_command_line_argument=yes 17502else 17503 xorg_cv_cc_flag_unused_command_line_argument=no 17504fi 17505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17506fi 17507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17508$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17509 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17510 CFLAGS="$xorg_testset_save_CFLAGS" 17511fi 17512 17513found="no" 17514 17515 if test $found = "no" ; then 17516 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17517 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17518 fi 17519 17520 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17522 fi 17523 17524 CFLAGS="$CFLAGS -Werror=attributes" 17525 17526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 17527$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 17528 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 17529 if eval \${$cacheid+:} false; then : 17530 $as_echo_n "(cached) " >&6 17531else 17532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17533/* end confdefs.h. */ 17534int i; 17535int 17536main () 17537{ 17538 17539 ; 17540 return 0; 17541} 17542_ACEOF 17543if ac_fn_c_try_link "$LINENO"; then : 17544 eval $cacheid=yes 17545else 17546 eval $cacheid=no 17547fi 17548rm -f core conftest.err conftest.$ac_objext \ 17549 conftest$ac_exeext conftest.$ac_ext 17550fi 17551 17552 17553 CFLAGS="$xorg_testset_save_CFLAGS" 17554 17555 eval supported=\$$cacheid 17556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17557$as_echo "$supported" >&6; } 17558 if test "$supported" = "yes" ; then 17559 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 17560 found="yes" 17561 fi 17562 fi 17563 17564 17565 17566if test "x$STRICT_COMPILE" = "xyes"; then 17567 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 17568 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 17569fi 17570 17571 17572 17573 17574 17575 17576cat >>confdefs.h <<_ACEOF 17577#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 17578_ACEOF 17579 17580 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 17581 if test "x$PVM" = "x"; then 17582 PVM="0" 17583 fi 17584 17585cat >>confdefs.h <<_ACEOF 17586#define PACKAGE_VERSION_MINOR $PVM 17587_ACEOF 17588 17589 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 17590 if test "x$PVP" = "x"; then 17591 PVP="0" 17592 fi 17593 17594cat >>confdefs.h <<_ACEOF 17595#define PACKAGE_VERSION_PATCHLEVEL $PVP 17596_ACEOF 17597 17598 17599 17600CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 17601mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 17602|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 17603echo 'git directory not found: installing possibly empty changelog.' >&2)" 17604 17605 17606 17607 17608macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 17609INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 17610mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 17611|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 17612echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 17613 17614 17615 17616 17617 17618 17619if test x$APP_MAN_SUFFIX = x ; then 17620 APP_MAN_SUFFIX=1 17621fi 17622if test x$APP_MAN_DIR = x ; then 17623 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 17624fi 17625 17626if test x$LIB_MAN_SUFFIX = x ; then 17627 LIB_MAN_SUFFIX=3 17628fi 17629if test x$LIB_MAN_DIR = x ; then 17630 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 17631fi 17632 17633if test x$FILE_MAN_SUFFIX = x ; then 17634 case $host_os in 17635 solaris*) FILE_MAN_SUFFIX=4 ;; 17636 *) FILE_MAN_SUFFIX=5 ;; 17637 esac 17638fi 17639if test x$FILE_MAN_DIR = x ; then 17640 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 17641fi 17642 17643if test x$MISC_MAN_SUFFIX = x ; then 17644 case $host_os in 17645 solaris*) MISC_MAN_SUFFIX=5 ;; 17646 *) MISC_MAN_SUFFIX=7 ;; 17647 esac 17648fi 17649if test x$MISC_MAN_DIR = x ; then 17650 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 17651fi 17652 17653if test x$DRIVER_MAN_SUFFIX = x ; then 17654 case $host_os in 17655 solaris*) DRIVER_MAN_SUFFIX=7 ;; 17656 *) DRIVER_MAN_SUFFIX=4 ;; 17657 esac 17658fi 17659if test x$DRIVER_MAN_DIR = x ; then 17660 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 17661fi 17662 17663if test x$ADMIN_MAN_SUFFIX = x ; then 17664 case $host_os in 17665 solaris*) ADMIN_MAN_SUFFIX=1m ;; 17666 *) ADMIN_MAN_SUFFIX=8 ;; 17667 esac 17668fi 17669if test x$ADMIN_MAN_DIR = x ; then 17670 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 17671fi 17672 17673 17674 17675 17676 17677 17678 17679 17680 17681 17682 17683 17684 17685 17686 17687XORG_MAN_PAGE="X Version 11" 17688 17689MAN_SUBSTS="\ 17690 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17691 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17692 -e 's|__xservername__|Xorg|g' \ 17693 -e 's|__xconfigfile__|xorg.conf|g' \ 17694 -e 's|__projectroot__|\$(prefix)|g' \ 17695 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 17696 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 17697 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 17698 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 17699 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 17700 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 17701 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 17702 17703 17704 17705# Check whether --enable-silent-rules was given. 17706if test "${enable_silent_rules+set}" = set; then : 17707 enableval=$enable_silent_rules; 17708fi 17709 17710case $enable_silent_rules in # ((( 17711 yes) AM_DEFAULT_VERBOSITY=0;; 17712 no) AM_DEFAULT_VERBOSITY=1;; 17713 *) AM_DEFAULT_VERBOSITY=0;; 17714esac 17715am_make=${MAKE-make} 17716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 17717$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 17718if ${am_cv_make_support_nested_variables+:} false; then : 17719 $as_echo_n "(cached) " >&6 17720else 17721 if $as_echo 'TRUE=$(BAR$(V)) 17722BAR0=false 17723BAR1=true 17724V=1 17725am__doit: 17726 @$(TRUE) 17727.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 17728 am_cv_make_support_nested_variables=yes 17729else 17730 am_cv_make_support_nested_variables=no 17731fi 17732fi 17733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 17734$as_echo "$am_cv_make_support_nested_variables" >&6; } 17735if test $am_cv_make_support_nested_variables = yes; then 17736 AM_V='$(V)' 17737 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 17738else 17739 AM_V=$AM_DEFAULT_VERBOSITY 17740 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 17741fi 17742AM_BACKSLASH='\' 17743 17744 17745 17746# Set library version for Xft.h from package version set in AC_INIT 17747# copied from PACKAGE_VERSION_* settings in XORG_VERSION 17748ac_config_headers="$ac_config_headers include/X11/Xft/Xft.h" 17749 17750 17751cat >>confdefs.h <<_ACEOF 17752#define XFT_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 17753_ACEOF 17754 17755 17756cat >>confdefs.h <<_ACEOF 17757#define XFT_MINOR `echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 17758_ACEOF 17759 17760 17761cat >>confdefs.h <<_ACEOF 17762#define XFT_REVISION `echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 17763_ACEOF 17764 17765 17766XFT_LT_VERSION=`echo $PACKAGE_VERSION | tr '.' ':'` 17767 17768 17769# 17770# Check for Xrender 17771# 17772 17773pkg_failed=no 17774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRENDER" >&5 17775$as_echo_n "checking for XRENDER... " >&6; } 17776 17777if test -n "$XRENDER_CFLAGS"; then 17778 pkg_cv_XRENDER_CFLAGS="$XRENDER_CFLAGS" 17779 elif test -n "$PKG_CONFIG"; then 17780 if test -n "$PKG_CONFIG" && \ 17781 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.8.2 x11\""; } >&5 17782 ($PKG_CONFIG --exists --print-errors "xrender >= 0.8.2 x11") 2>&5 17783 ac_status=$? 17784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17785 test $ac_status = 0; }; then 17786 pkg_cv_XRENDER_CFLAGS=`$PKG_CONFIG --cflags "xrender >= 0.8.2 x11" 2>/dev/null` 17787else 17788 pkg_failed=yes 17789fi 17790 else 17791 pkg_failed=untried 17792fi 17793if test -n "$XRENDER_LIBS"; then 17794 pkg_cv_XRENDER_LIBS="$XRENDER_LIBS" 17795 elif test -n "$PKG_CONFIG"; then 17796 if test -n "$PKG_CONFIG" && \ 17797 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.8.2 x11\""; } >&5 17798 ($PKG_CONFIG --exists --print-errors "xrender >= 0.8.2 x11") 2>&5 17799 ac_status=$? 17800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17801 test $ac_status = 0; }; then 17802 pkg_cv_XRENDER_LIBS=`$PKG_CONFIG --libs "xrender >= 0.8.2 x11" 2>/dev/null` 17803else 17804 pkg_failed=yes 17805fi 17806 else 17807 pkg_failed=untried 17808fi 17809 17810 17811 17812if test $pkg_failed = yes; then 17813 17814if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17815 _pkg_short_errors_supported=yes 17816else 17817 _pkg_short_errors_supported=no 17818fi 17819 if test $_pkg_short_errors_supported = yes; then 17820 XRENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xrender >= 0.8.2 x11" 2>&1` 17821 else 17822 XRENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors "xrender >= 0.8.2 x11" 2>&1` 17823 fi 17824 # Put the nasty error message in config.log where it belongs 17825 echo "$XRENDER_PKG_ERRORS" >&5 17826 17827 as_fn_error $? "Package requirements (xrender >= 0.8.2 x11) were not met: 17828 17829$XRENDER_PKG_ERRORS 17830 17831Consider adjusting the PKG_CONFIG_PATH environment variable if you 17832installed software in a non-standard prefix. 17833 17834Alternatively, you may set the environment variables XRENDER_CFLAGS 17835and XRENDER_LIBS to avoid the need to call pkg-config. 17836See the pkg-config man page for more details. 17837" "$LINENO" 5 17838elif test $pkg_failed = untried; then 17839 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17840$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17841as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17842is in your PATH or set the PKG_CONFIG environment variable to the full 17843path to pkg-config. 17844 17845Alternatively, you may set the environment variables XRENDER_CFLAGS 17846and XRENDER_LIBS to avoid the need to call pkg-config. 17847See the pkg-config man page for more details. 17848 17849To get pkg-config, see <http://pkg-config.freedesktop.org/>. 17850See \`config.log' for more details" "$LINENO" 5; } 17851else 17852 XRENDER_CFLAGS=$pkg_cv_XRENDER_CFLAGS 17853 XRENDER_LIBS=$pkg_cv_XRENDER_LIBS 17854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17855$as_echo "yes" >&6; } 17856 : 17857fi 17858 17859# Check freetype configuration 17860 17861pkg_failed=no 17862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 17863$as_echo_n "checking for FREETYPE... " >&6; } 17864 17865if test -n "$FREETYPE_CFLAGS"; then 17866 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 17867 elif test -n "$PKG_CONFIG"; then 17868 if test -n "$PKG_CONFIG" && \ 17869 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 2.1.6\""; } >&5 17870 ($PKG_CONFIG --exists --print-errors "freetype2 >= 2.1.6") 2>&5 17871 ac_status=$? 17872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17873 test $ac_status = 0; }; then 17874 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 2.1.6" 2>/dev/null` 17875else 17876 pkg_failed=yes 17877fi 17878 else 17879 pkg_failed=untried 17880fi 17881if test -n "$FREETYPE_LIBS"; then 17882 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 17883 elif test -n "$PKG_CONFIG"; then 17884 if test -n "$PKG_CONFIG" && \ 17885 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 2.1.6\""; } >&5 17886 ($PKG_CONFIG --exists --print-errors "freetype2 >= 2.1.6") 2>&5 17887 ac_status=$? 17888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17889 test $ac_status = 0; }; then 17890 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2 >= 2.1.6" 2>/dev/null` 17891else 17892 pkg_failed=yes 17893fi 17894 else 17895 pkg_failed=untried 17896fi 17897 17898 17899 17900if test $pkg_failed = yes; then 17901 17902if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17903 _pkg_short_errors_supported=yes 17904else 17905 _pkg_short_errors_supported=no 17906fi 17907 if test $_pkg_short_errors_supported = yes; then 17908 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2 >= 2.1.6" 2>&1` 17909 else 17910 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2 >= 2.1.6" 2>&1` 17911 fi 17912 # Put the nasty error message in config.log where it belongs 17913 echo "$FREETYPE_PKG_ERRORS" >&5 17914 17915 as_fn_error $? "Package requirements (freetype2 >= 2.1.6) were not met: 17916 17917$FREETYPE_PKG_ERRORS 17918 17919Consider adjusting the PKG_CONFIG_PATH environment variable if you 17920installed software in a non-standard prefix. 17921 17922Alternatively, you may set the environment variables FREETYPE_CFLAGS 17923and FREETYPE_LIBS to avoid the need to call pkg-config. 17924See the pkg-config man page for more details. 17925" "$LINENO" 5 17926elif test $pkg_failed = untried; then 17927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17928$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17929as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17930is in your PATH or set the PKG_CONFIG environment variable to the full 17931path to pkg-config. 17932 17933Alternatively, you may set the environment variables FREETYPE_CFLAGS 17934and FREETYPE_LIBS to avoid the need to call pkg-config. 17935See the pkg-config man page for more details. 17936 17937To get pkg-config, see <http://pkg-config.freedesktop.org/>. 17938See \`config.log' for more details" "$LINENO" 5; } 17939else 17940 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 17941 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 17942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17943$as_echo "yes" >&6; } 17944 : 17945fi 17946 17947# Check fontconfig configuration 17948 17949pkg_failed=no 17950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5 17951$as_echo_n "checking for FONTCONFIG... " >&6; } 17952 17953if test -n "$FONTCONFIG_CFLAGS"; then 17954 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS" 17955 elif test -n "$PKG_CONFIG"; then 17956 if test -n "$PKG_CONFIG" && \ 17957 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.5.92\""; } >&5 17958 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.5.92") 2>&5 17959 ac_status=$? 17960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17961 test $ac_status = 0; }; then 17962 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.5.92" 2>/dev/null` 17963else 17964 pkg_failed=yes 17965fi 17966 else 17967 pkg_failed=untried 17968fi 17969if test -n "$FONTCONFIG_LIBS"; then 17970 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS" 17971 elif test -n "$PKG_CONFIG"; then 17972 if test -n "$PKG_CONFIG" && \ 17973 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.5.92\""; } >&5 17974 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.5.92") 2>&5 17975 ac_status=$? 17976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17977 test $ac_status = 0; }; then 17978 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.5.92" 2>/dev/null` 17979else 17980 pkg_failed=yes 17981fi 17982 else 17983 pkg_failed=untried 17984fi 17985 17986 17987 17988if test $pkg_failed = yes; then 17989 17990if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17991 _pkg_short_errors_supported=yes 17992else 17993 _pkg_short_errors_supported=no 17994fi 17995 if test $_pkg_short_errors_supported = yes; then 17996 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.5.92" 2>&1` 17997 else 17998 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.5.92" 2>&1` 17999 fi 18000 # Put the nasty error message in config.log where it belongs 18001 echo "$FONTCONFIG_PKG_ERRORS" >&5 18002 18003 as_fn_error $? "Package requirements (fontconfig >= 2.5.92) were not met: 18004 18005$FONTCONFIG_PKG_ERRORS 18006 18007Consider adjusting the PKG_CONFIG_PATH environment variable if you 18008installed software in a non-standard prefix. 18009 18010Alternatively, you may set the environment variables FONTCONFIG_CFLAGS 18011and FONTCONFIG_LIBS to avoid the need to call pkg-config. 18012See the pkg-config man page for more details. 18013" "$LINENO" 5 18014elif test $pkg_failed = untried; then 18015 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18016$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18017as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18018is in your PATH or set the PKG_CONFIG environment variable to the full 18019path to pkg-config. 18020 18021Alternatively, you may set the environment variables FONTCONFIG_CFLAGS 18022and FONTCONFIG_LIBS to avoid the need to call pkg-config. 18023See the pkg-config man page for more details. 18024 18025To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18026See \`config.log' for more details" "$LINENO" 5; } 18027else 18028 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS 18029 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS 18030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18031$as_echo "yes" >&6; } 18032 : 18033fi 18034 18035 18036 18037 18038 18039 18040 18041 18042if test "$VERSION" = "" ; then 18043 VERSION=$PACKAGE_VERSION; 18044fi 18045 18046ac_config_files="$ac_config_files Makefile xft.pc src/Makefile man/Makefile" 18047 18048cat >confcache <<\_ACEOF 18049# This file is a shell script that caches the results of configure 18050# tests run on this system so they can be shared between configure 18051# scripts and configure runs, see configure's option --config-cache. 18052# It is not useful on other systems. If it contains results you don't 18053# want to keep, you may remove or edit it. 18054# 18055# config.status only pays attention to the cache file if you give it 18056# the --recheck option to rerun configure. 18057# 18058# `ac_cv_env_foo' variables (set or unset) will be overridden when 18059# loading this file, other *unset* `ac_cv_foo' will be assigned the 18060# following values. 18061 18062_ACEOF 18063 18064# The following way of writing the cache mishandles newlines in values, 18065# but we know of no workaround that is simple, portable, and efficient. 18066# So, we kill variables containing newlines. 18067# Ultrix sh set writes to stderr and can't be redirected directly, 18068# and sets the high bit in the cache file unless we assign to the vars. 18069( 18070 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18071 eval ac_val=\$$ac_var 18072 case $ac_val in #( 18073 *${as_nl}*) 18074 case $ac_var in #( 18075 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18076$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18077 esac 18078 case $ac_var in #( 18079 _ | IFS | as_nl) ;; #( 18080 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18081 *) { eval $ac_var=; unset $ac_var;} ;; 18082 esac ;; 18083 esac 18084 done 18085 18086 (set) 2>&1 | 18087 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18088 *${as_nl}ac_space=\ *) 18089 # `set' does not quote correctly, so add quotes: double-quote 18090 # substitution turns \\\\ into \\, and sed turns \\ into \. 18091 sed -n \ 18092 "s/'/'\\\\''/g; 18093 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18094 ;; #( 18095 *) 18096 # `set' quotes correctly as required by POSIX, so do not add quotes. 18097 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18098 ;; 18099 esac | 18100 sort 18101) | 18102 sed ' 18103 /^ac_cv_env_/b end 18104 t clear 18105 :clear 18106 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18107 t end 18108 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18109 :end' >>confcache 18110if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18111 if test -w "$cache_file"; then 18112 if test "x$cache_file" != "x/dev/null"; then 18113 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18114$as_echo "$as_me: updating cache $cache_file" >&6;} 18115 if test ! -f "$cache_file" || test -h "$cache_file"; then 18116 cat confcache >"$cache_file" 18117 else 18118 case $cache_file in #( 18119 */* | ?:*) 18120 mv -f confcache "$cache_file"$$ && 18121 mv -f "$cache_file"$$ "$cache_file" ;; #( 18122 *) 18123 mv -f confcache "$cache_file" ;; 18124 esac 18125 fi 18126 fi 18127 else 18128 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18129$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18130 fi 18131fi 18132rm -f confcache 18133 18134test "x$prefix" = xNONE && prefix=$ac_default_prefix 18135# Let make expand exec_prefix. 18136test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18137 18138DEFS=-DHAVE_CONFIG_H 18139 18140ac_libobjs= 18141ac_ltlibobjs= 18142U= 18143for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18144 # 1. Remove the extension, and $U if already installed. 18145 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18146 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18147 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18148 # will be set to the directory where LIBOBJS objects are built. 18149 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18150 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18151done 18152LIBOBJS=$ac_libobjs 18153 18154LTLIBOBJS=$ac_ltlibobjs 18155 18156 18157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18158$as_echo_n "checking that generated files are newer than configure... " >&6; } 18159 if test -n "$am_sleep_pid"; then 18160 # Hide warnings about reused PIDs. 18161 wait $am_sleep_pid 2>/dev/null 18162 fi 18163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 18164$as_echo "done" >&6; } 18165 if test -n "$EXEEXT"; then 18166 am__EXEEXT_TRUE= 18167 am__EXEEXT_FALSE='#' 18168else 18169 am__EXEEXT_TRUE='#' 18170 am__EXEEXT_FALSE= 18171fi 18172 18173if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18174 as_fn_error $? "conditional \"AMDEP\" was never defined. 18175Usually this means the macro was only invoked conditionally." "$LINENO" 5 18176fi 18177if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18178 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18179Usually this means the macro was only invoked conditionally." "$LINENO" 5 18180fi 18181 18182: "${CONFIG_STATUS=./config.status}" 18183ac_write_fail=0 18184ac_clean_files_save=$ac_clean_files 18185ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18186{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18187$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18188as_write_fail=0 18189cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18190#! $SHELL 18191# Generated by $as_me. 18192# Run this file to recreate the current configuration. 18193# Compiler output produced by configure, useful for debugging 18194# configure, is in config.log if it exists. 18195 18196debug=false 18197ac_cs_recheck=false 18198ac_cs_silent=false 18199 18200SHELL=\${CONFIG_SHELL-$SHELL} 18201export SHELL 18202_ASEOF 18203cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18204## -------------------- ## 18205## M4sh Initialization. ## 18206## -------------------- ## 18207 18208# Be more Bourne compatible 18209DUALCASE=1; export DUALCASE # for MKS sh 18210if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18211 emulate sh 18212 NULLCMD=: 18213 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18214 # is contrary to our usage. Disable this feature. 18215 alias -g '${1+"$@"}'='"$@"' 18216 setopt NO_GLOB_SUBST 18217else 18218 case `(set -o) 2>/dev/null` in #( 18219 *posix*) : 18220 set -o posix ;; #( 18221 *) : 18222 ;; 18223esac 18224fi 18225 18226 18227as_nl=' 18228' 18229export as_nl 18230# Printing a long string crashes Solaris 7 /usr/bin/printf. 18231as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18232as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18233as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18234# Prefer a ksh shell builtin over an external printf program on Solaris, 18235# but without wasting forks for bash or zsh. 18236if test -z "$BASH_VERSION$ZSH_VERSION" \ 18237 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18238 as_echo='print -r --' 18239 as_echo_n='print -rn --' 18240elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18241 as_echo='printf %s\n' 18242 as_echo_n='printf %s' 18243else 18244 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18245 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18246 as_echo_n='/usr/ucb/echo -n' 18247 else 18248 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18249 as_echo_n_body='eval 18250 arg=$1; 18251 case $arg in #( 18252 *"$as_nl"*) 18253 expr "X$arg" : "X\\(.*\\)$as_nl"; 18254 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18255 esac; 18256 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18257 ' 18258 export as_echo_n_body 18259 as_echo_n='sh -c $as_echo_n_body as_echo' 18260 fi 18261 export as_echo_body 18262 as_echo='sh -c $as_echo_body as_echo' 18263fi 18264 18265# The user is always right. 18266if test "${PATH_SEPARATOR+set}" != set; then 18267 PATH_SEPARATOR=: 18268 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18269 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18270 PATH_SEPARATOR=';' 18271 } 18272fi 18273 18274 18275# IFS 18276# We need space, tab and new line, in precisely that order. Quoting is 18277# there to prevent editors from complaining about space-tab. 18278# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18279# splitting by setting IFS to empty value.) 18280IFS=" "" $as_nl" 18281 18282# Find who we are. Look in the path if we contain no directory separator. 18283as_myself= 18284case $0 in #(( 18285 *[\\/]* ) as_myself=$0 ;; 18286 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18287for as_dir in $PATH 18288do 18289 IFS=$as_save_IFS 18290 test -z "$as_dir" && as_dir=. 18291 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18292 done 18293IFS=$as_save_IFS 18294 18295 ;; 18296esac 18297# We did not find ourselves, most probably we were run as `sh COMMAND' 18298# in which case we are not to be found in the path. 18299if test "x$as_myself" = x; then 18300 as_myself=$0 18301fi 18302if test ! -f "$as_myself"; then 18303 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18304 exit 1 18305fi 18306 18307# Unset variables that we do not need and which cause bugs (e.g. in 18308# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18309# suppresses any "Segmentation fault" message there. '((' could 18310# trigger a bug in pdksh 5.2.14. 18311for as_var in BASH_ENV ENV MAIL MAILPATH 18312do eval test x\${$as_var+set} = xset \ 18313 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18314done 18315PS1='$ ' 18316PS2='> ' 18317PS4='+ ' 18318 18319# NLS nuisances. 18320LC_ALL=C 18321export LC_ALL 18322LANGUAGE=C 18323export LANGUAGE 18324 18325# CDPATH. 18326(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18327 18328 18329# as_fn_error STATUS ERROR [LINENO LOG_FD] 18330# ---------------------------------------- 18331# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18332# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18333# script with STATUS, using 1 if that was 0. 18334as_fn_error () 18335{ 18336 as_status=$1; test $as_status -eq 0 && as_status=1 18337 if test "$4"; then 18338 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18339 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18340 fi 18341 $as_echo "$as_me: error: $2" >&2 18342 as_fn_exit $as_status 18343} # as_fn_error 18344 18345 18346# as_fn_set_status STATUS 18347# ----------------------- 18348# Set $? to STATUS, without forking. 18349as_fn_set_status () 18350{ 18351 return $1 18352} # as_fn_set_status 18353 18354# as_fn_exit STATUS 18355# ----------------- 18356# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18357as_fn_exit () 18358{ 18359 set +e 18360 as_fn_set_status $1 18361 exit $1 18362} # as_fn_exit 18363 18364# as_fn_unset VAR 18365# --------------- 18366# Portably unset VAR. 18367as_fn_unset () 18368{ 18369 { eval $1=; unset $1;} 18370} 18371as_unset=as_fn_unset 18372# as_fn_append VAR VALUE 18373# ---------------------- 18374# Append the text in VALUE to the end of the definition contained in VAR. Take 18375# advantage of any shell optimizations that allow amortized linear growth over 18376# repeated appends, instead of the typical quadratic growth present in naive 18377# implementations. 18378if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18379 eval 'as_fn_append () 18380 { 18381 eval $1+=\$2 18382 }' 18383else 18384 as_fn_append () 18385 { 18386 eval $1=\$$1\$2 18387 } 18388fi # as_fn_append 18389 18390# as_fn_arith ARG... 18391# ------------------ 18392# Perform arithmetic evaluation on the ARGs, and store the result in the 18393# global $as_val. Take advantage of shells that can avoid forks. The arguments 18394# must be portable across $(()) and expr. 18395if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18396 eval 'as_fn_arith () 18397 { 18398 as_val=$(( $* )) 18399 }' 18400else 18401 as_fn_arith () 18402 { 18403 as_val=`expr "$@" || test $? -eq 1` 18404 } 18405fi # as_fn_arith 18406 18407 18408if expr a : '\(a\)' >/dev/null 2>&1 && 18409 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18410 as_expr=expr 18411else 18412 as_expr=false 18413fi 18414 18415if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18416 as_basename=basename 18417else 18418 as_basename=false 18419fi 18420 18421if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18422 as_dirname=dirname 18423else 18424 as_dirname=false 18425fi 18426 18427as_me=`$as_basename -- "$0" || 18428$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18429 X"$0" : 'X\(//\)$' \| \ 18430 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18431$as_echo X/"$0" | 18432 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18433 s//\1/ 18434 q 18435 } 18436 /^X\/\(\/\/\)$/{ 18437 s//\1/ 18438 q 18439 } 18440 /^X\/\(\/\).*/{ 18441 s//\1/ 18442 q 18443 } 18444 s/.*/./; q'` 18445 18446# Avoid depending upon Character Ranges. 18447as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18448as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18449as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18450as_cr_digits='0123456789' 18451as_cr_alnum=$as_cr_Letters$as_cr_digits 18452 18453ECHO_C= ECHO_N= ECHO_T= 18454case `echo -n x` in #((((( 18455-n*) 18456 case `echo 'xy\c'` in 18457 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18458 xy) ECHO_C='\c';; 18459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18460 ECHO_T=' ';; 18461 esac;; 18462*) 18463 ECHO_N='-n';; 18464esac 18465 18466rm -f conf$$ conf$$.exe conf$$.file 18467if test -d conf$$.dir; then 18468 rm -f conf$$.dir/conf$$.file 18469else 18470 rm -f conf$$.dir 18471 mkdir conf$$.dir 2>/dev/null 18472fi 18473if (echo >conf$$.file) 2>/dev/null; then 18474 if ln -s conf$$.file conf$$ 2>/dev/null; then 18475 as_ln_s='ln -s' 18476 # ... but there are two gotchas: 18477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18479 # In both cases, we have to default to `cp -p'. 18480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18481 as_ln_s='cp -p' 18482 elif ln conf$$.file conf$$ 2>/dev/null; then 18483 as_ln_s=ln 18484 else 18485 as_ln_s='cp -p' 18486 fi 18487else 18488 as_ln_s='cp -p' 18489fi 18490rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18491rmdir conf$$.dir 2>/dev/null 18492 18493 18494# as_fn_mkdir_p 18495# ------------- 18496# Create "$as_dir" as a directory, including parents if necessary. 18497as_fn_mkdir_p () 18498{ 18499 18500 case $as_dir in #( 18501 -*) as_dir=./$as_dir;; 18502 esac 18503 test -d "$as_dir" || eval $as_mkdir_p || { 18504 as_dirs= 18505 while :; do 18506 case $as_dir in #( 18507 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18508 *) as_qdir=$as_dir;; 18509 esac 18510 as_dirs="'$as_qdir' $as_dirs" 18511 as_dir=`$as_dirname -- "$as_dir" || 18512$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18513 X"$as_dir" : 'X\(//\)[^/]' \| \ 18514 X"$as_dir" : 'X\(//\)$' \| \ 18515 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18516$as_echo X"$as_dir" | 18517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18518 s//\1/ 18519 q 18520 } 18521 /^X\(\/\/\)[^/].*/{ 18522 s//\1/ 18523 q 18524 } 18525 /^X\(\/\/\)$/{ 18526 s//\1/ 18527 q 18528 } 18529 /^X\(\/\).*/{ 18530 s//\1/ 18531 q 18532 } 18533 s/.*/./; q'` 18534 test -d "$as_dir" && break 18535 done 18536 test -z "$as_dirs" || eval "mkdir $as_dirs" 18537 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18538 18539 18540} # as_fn_mkdir_p 18541if mkdir -p . 2>/dev/null; then 18542 as_mkdir_p='mkdir -p "$as_dir"' 18543else 18544 test -d ./-p && rmdir ./-p 18545 as_mkdir_p=false 18546fi 18547 18548if test -x / >/dev/null 2>&1; then 18549 as_test_x='test -x' 18550else 18551 if ls -dL / >/dev/null 2>&1; then 18552 as_ls_L_option=L 18553 else 18554 as_ls_L_option= 18555 fi 18556 as_test_x=' 18557 eval sh -c '\'' 18558 if test -d "$1"; then 18559 test -d "$1/."; 18560 else 18561 case $1 in #( 18562 -*)set "./$1";; 18563 esac; 18564 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 18565 ???[sx]*):;;*)false;;esac;fi 18566 '\'' sh 18567 ' 18568fi 18569as_executable_p=$as_test_x 18570 18571# Sed expression to map a string onto a valid CPP name. 18572as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18573 18574# Sed expression to map a string onto a valid variable name. 18575as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18576 18577 18578exec 6>&1 18579## ----------------------------------- ## 18580## Main body of $CONFIG_STATUS script. ## 18581## ----------------------------------- ## 18582_ASEOF 18583test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18584 18585cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18586# Save the log message, to keep $0 and so on meaningful, and to 18587# report actual input values of CONFIG_FILES etc. instead of their 18588# values after options handling. 18589ac_log=" 18590This file was extended by libXft $as_me 2.3.2, which was 18591generated by GNU Autoconf 2.68. Invocation command line was 18592 18593 CONFIG_FILES = $CONFIG_FILES 18594 CONFIG_HEADERS = $CONFIG_HEADERS 18595 CONFIG_LINKS = $CONFIG_LINKS 18596 CONFIG_COMMANDS = $CONFIG_COMMANDS 18597 $ $0 $@ 18598 18599on `(hostname || uname -n) 2>/dev/null | sed 1q` 18600" 18601 18602_ACEOF 18603 18604case $ac_config_files in *" 18605"*) set x $ac_config_files; shift; ac_config_files=$*;; 18606esac 18607 18608case $ac_config_headers in *" 18609"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18610esac 18611 18612 18613cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18614# Files that config.status was made for. 18615config_files="$ac_config_files" 18616config_headers="$ac_config_headers" 18617config_commands="$ac_config_commands" 18618 18619_ACEOF 18620 18621cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18622ac_cs_usage="\ 18623\`$as_me' instantiates files and other configuration actions 18624from templates according to the current configuration. Unless the files 18625and actions are specified as TAGs, all are instantiated by default. 18626 18627Usage: $0 [OPTION]... [TAG]... 18628 18629 -h, --help print this help, then exit 18630 -V, --version print version number and configuration settings, then exit 18631 --config print configuration, then exit 18632 -q, --quiet, --silent 18633 do not print progress messages 18634 -d, --debug don't remove temporary files 18635 --recheck update $as_me by reconfiguring in the same conditions 18636 --file=FILE[:TEMPLATE] 18637 instantiate the configuration file FILE 18638 --header=FILE[:TEMPLATE] 18639 instantiate the configuration header FILE 18640 18641Configuration files: 18642$config_files 18643 18644Configuration headers: 18645$config_headers 18646 18647Configuration commands: 18648$config_commands 18649 18650Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 18651 18652_ACEOF 18653cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18654ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18655ac_cs_version="\\ 18656libXft config.status 2.3.2 18657configured by $0, generated by GNU Autoconf 2.68, 18658 with options \\"\$ac_cs_config\\" 18659 18660Copyright (C) 2010 Free Software Foundation, Inc. 18661This config.status script is free software; the Free Software Foundation 18662gives unlimited permission to copy, distribute and modify it." 18663 18664ac_pwd='$ac_pwd' 18665srcdir='$srcdir' 18666INSTALL='$INSTALL' 18667MKDIR_P='$MKDIR_P' 18668AWK='$AWK' 18669test -n "\$AWK" || AWK=awk 18670_ACEOF 18671 18672cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18673# The default lists apply if the user does not specify any file. 18674ac_need_defaults=: 18675while test $# != 0 18676do 18677 case $1 in 18678 --*=?*) 18679 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18680 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18681 ac_shift=: 18682 ;; 18683 --*=) 18684 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18685 ac_optarg= 18686 ac_shift=: 18687 ;; 18688 *) 18689 ac_option=$1 18690 ac_optarg=$2 18691 ac_shift=shift 18692 ;; 18693 esac 18694 18695 case $ac_option in 18696 # Handling of the options. 18697 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18698 ac_cs_recheck=: ;; 18699 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18700 $as_echo "$ac_cs_version"; exit ;; 18701 --config | --confi | --conf | --con | --co | --c ) 18702 $as_echo "$ac_cs_config"; exit ;; 18703 --debug | --debu | --deb | --de | --d | -d ) 18704 debug=: ;; 18705 --file | --fil | --fi | --f ) 18706 $ac_shift 18707 case $ac_optarg in 18708 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18709 '') as_fn_error $? "missing file argument" ;; 18710 esac 18711 as_fn_append CONFIG_FILES " '$ac_optarg'" 18712 ac_need_defaults=false;; 18713 --header | --heade | --head | --hea ) 18714 $ac_shift 18715 case $ac_optarg in 18716 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18717 esac 18718 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 18719 ac_need_defaults=false;; 18720 --he | --h) 18721 # Conflict between --help and --header 18722 as_fn_error $? "ambiguous option: \`$1' 18723Try \`$0 --help' for more information.";; 18724 --help | --hel | -h ) 18725 $as_echo "$ac_cs_usage"; exit ;; 18726 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18727 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18728 ac_cs_silent=: ;; 18729 18730 # This is an error. 18731 -*) as_fn_error $? "unrecognized option: \`$1' 18732Try \`$0 --help' for more information." ;; 18733 18734 *) as_fn_append ac_config_targets " $1" 18735 ac_need_defaults=false ;; 18736 18737 esac 18738 shift 18739done 18740 18741ac_configure_extra_args= 18742 18743if $ac_cs_silent; then 18744 exec 6>/dev/null 18745 ac_configure_extra_args="$ac_configure_extra_args --silent" 18746fi 18747 18748_ACEOF 18749cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18750if \$ac_cs_recheck; then 18751 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18752 shift 18753 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18754 CONFIG_SHELL='$SHELL' 18755 export CONFIG_SHELL 18756 exec "\$@" 18757fi 18758 18759_ACEOF 18760cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18761exec 5>>config.log 18762{ 18763 echo 18764 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18765## Running $as_me. ## 18766_ASBOX 18767 $as_echo "$ac_log" 18768} >&5 18769 18770_ACEOF 18771cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18772# 18773# INIT-COMMANDS 18774# 18775AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 18776 18777 18778# The HP-UX ksh and POSIX shell print the target directory to stdout 18779# if CDPATH is set. 18780(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18781 18782sed_quote_subst='$sed_quote_subst' 18783double_quote_subst='$double_quote_subst' 18784delay_variable_subst='$delay_variable_subst' 18785macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 18786macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 18787enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 18788enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 18789pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 18790enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 18791SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 18792ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 18793PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 18794host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 18795host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 18796host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 18797build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 18798build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 18799build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 18800SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 18801Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 18802GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 18803EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 18804FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 18805LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 18806NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 18807LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 18808max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 18809ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 18810exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 18811lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 18812lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 18813lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 18814lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 18815lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 18816reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 18817reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 18818OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 18819deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 18820file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 18821file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 18822want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 18823DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 18824sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 18825AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 18826AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 18827archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 18828STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 18829RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 18830old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18831old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18832old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 18833lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 18834CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 18835CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 18836compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 18837GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 18838lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 18839lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 18840lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 18841lt_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"`' 18842nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 18843lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 18844objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 18845MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 18846lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 18847lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 18848lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 18849lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 18850lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 18851need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 18852MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 18853DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 18854NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 18855LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 18856OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 18857OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 18858libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 18859shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 18860extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18861archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 18862enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 18863export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 18864whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 18865compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 18866old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 18867old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18868archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 18869archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18870module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 18871module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18872with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 18873allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 18874no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 18875hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 18876hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 18877hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 18878hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 18879hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 18880hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 18881hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 18882inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 18883link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 18884always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 18885export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 18886exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 18887include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 18888prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 18889postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 18890file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 18891variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 18892need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 18893need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 18894version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 18895runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 18896shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 18897shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 18898libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 18899library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 18900soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 18901install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 18902postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18903postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18904finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 18905finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 18906hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 18907sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 18908sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 18909hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 18910enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 18911enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 18912enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 18913old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 18914striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 18915 18916LTCC='$LTCC' 18917LTCFLAGS='$LTCFLAGS' 18918compiler='$compiler_DEFAULT' 18919 18920# A function that is used when there is no print builtin or printf. 18921func_fallback_echo () 18922{ 18923 eval 'cat <<_LTECHO_EOF 18924\$1 18925_LTECHO_EOF' 18926} 18927 18928# Quote evaled strings. 18929for var in SHELL \ 18930ECHO \ 18931PATH_SEPARATOR \ 18932SED \ 18933GREP \ 18934EGREP \ 18935FGREP \ 18936LD \ 18937NM \ 18938LN_S \ 18939lt_SP2NL \ 18940lt_NL2SP \ 18941reload_flag \ 18942OBJDUMP \ 18943deplibs_check_method \ 18944file_magic_cmd \ 18945file_magic_glob \ 18946want_nocaseglob \ 18947DLLTOOL \ 18948sharedlib_from_linklib_cmd \ 18949AR \ 18950AR_FLAGS \ 18951archiver_list_spec \ 18952STRIP \ 18953RANLIB \ 18954CC \ 18955CFLAGS \ 18956compiler \ 18957lt_cv_sys_global_symbol_pipe \ 18958lt_cv_sys_global_symbol_to_cdecl \ 18959lt_cv_sys_global_symbol_to_c_name_address \ 18960lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18961nm_file_list_spec \ 18962lt_prog_compiler_no_builtin_flag \ 18963lt_prog_compiler_pic \ 18964lt_prog_compiler_wl \ 18965lt_prog_compiler_static \ 18966lt_cv_prog_compiler_c_o \ 18967need_locks \ 18968MANIFEST_TOOL \ 18969DSYMUTIL \ 18970NMEDIT \ 18971LIPO \ 18972OTOOL \ 18973OTOOL64 \ 18974shrext_cmds \ 18975export_dynamic_flag_spec \ 18976whole_archive_flag_spec \ 18977compiler_needs_object \ 18978with_gnu_ld \ 18979allow_undefined_flag \ 18980no_undefined_flag \ 18981hardcode_libdir_flag_spec \ 18982hardcode_libdir_separator \ 18983exclude_expsyms \ 18984include_expsyms \ 18985file_list_spec \ 18986variables_saved_for_relink \ 18987libname_spec \ 18988library_names_spec \ 18989soname_spec \ 18990install_override_mode \ 18991finish_eval \ 18992old_striplib \ 18993striplib; do 18994 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18995 *[\\\\\\\`\\"\\\$]*) 18996 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 18997 ;; 18998 *) 18999 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19000 ;; 19001 esac 19002done 19003 19004# Double-quote double-evaled strings. 19005for var in reload_cmds \ 19006old_postinstall_cmds \ 19007old_postuninstall_cmds \ 19008old_archive_cmds \ 19009extract_expsyms_cmds \ 19010old_archive_from_new_cmds \ 19011old_archive_from_expsyms_cmds \ 19012archive_cmds \ 19013archive_expsym_cmds \ 19014module_cmds \ 19015module_expsym_cmds \ 19016export_symbols_cmds \ 19017prelink_cmds \ 19018postlink_cmds \ 19019postinstall_cmds \ 19020postuninstall_cmds \ 19021finish_cmds \ 19022sys_lib_search_path_spec \ 19023sys_lib_dlsearch_path_spec; do 19024 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19025 *[\\\\\\\`\\"\\\$]*) 19026 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 19027 ;; 19028 *) 19029 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19030 ;; 19031 esac 19032done 19033 19034ac_aux_dir='$ac_aux_dir' 19035xsi_shell='$xsi_shell' 19036lt_shell_append='$lt_shell_append' 19037 19038# See if we are running on zsh, and set the options which allow our 19039# commands through without removal of \ escapes INIT. 19040if test -n "\${ZSH_VERSION+set}" ; then 19041 setopt NO_GLOB_SUBST 19042fi 19043 19044 19045 PACKAGE='$PACKAGE' 19046 VERSION='$VERSION' 19047 TIMESTAMP='$TIMESTAMP' 19048 RM='$RM' 19049 ofile='$ofile' 19050 19051 19052 19053 19054_ACEOF 19055 19056cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19057 19058# Handling of arguments. 19059for ac_config_target in $ac_config_targets 19060do 19061 case $ac_config_target in 19062 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19063 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19064 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19065 "include/X11/Xft/Xft.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/Xft/Xft.h" ;; 19066 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19067 "xft.pc") CONFIG_FILES="$CONFIG_FILES xft.pc" ;; 19068 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19069 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 19070 19071 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19072 esac 19073done 19074 19075 19076# If the user did not use the arguments to specify the items to instantiate, 19077# then the envvar interface is used. Set only those that are not. 19078# We use the long form for the default assignment because of an extremely 19079# bizarre bug on SunOS 4.1.3. 19080if $ac_need_defaults; then 19081 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19082 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19083 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19084fi 19085 19086# Have a temporary directory for convenience. Make it in the build tree 19087# simply because there is no reason against having it here, and in addition, 19088# creating and moving files from /tmp can sometimes cause problems. 19089# Hook for its removal unless debugging. 19090# Note that there is a small window in which the directory will not be cleaned: 19091# after its creation but before its name has been assigned to `$tmp'. 19092$debug || 19093{ 19094 tmp= ac_tmp= 19095 trap 'exit_status=$? 19096 : "${ac_tmp:=$tmp}" 19097 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19098' 0 19099 trap 'as_fn_exit 1' 1 2 13 15 19100} 19101# Create a (secure) tmp directory for tmp files. 19102 19103{ 19104 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19105 test -d "$tmp" 19106} || 19107{ 19108 tmp=./conf$$-$RANDOM 19109 (umask 077 && mkdir "$tmp") 19110} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19111ac_tmp=$tmp 19112 19113# Set up the scripts for CONFIG_FILES section. 19114# No need to generate them if there are no CONFIG_FILES. 19115# This happens for instance with `./config.status config.h'. 19116if test -n "$CONFIG_FILES"; then 19117 19118 19119ac_cr=`echo X | tr X '\015'` 19120# On cygwin, bash can eat \r inside `` if the user requested igncr. 19121# But we know of no other shell where ac_cr would be empty at this 19122# point, so we can use a bashism as a fallback. 19123if test "x$ac_cr" = x; then 19124 eval ac_cr=\$\'\\r\' 19125fi 19126ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19127if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19128 ac_cs_awk_cr='\\r' 19129else 19130 ac_cs_awk_cr=$ac_cr 19131fi 19132 19133echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19134_ACEOF 19135 19136 19137{ 19138 echo "cat >conf$$subs.awk <<_ACEOF" && 19139 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19140 echo "_ACEOF" 19141} >conf$$subs.sh || 19142 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19143ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19144ac_delim='%!_!# ' 19145for ac_last_try in false false false false false :; do 19146 . ./conf$$subs.sh || 19147 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19148 19149 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19150 if test $ac_delim_n = $ac_delim_num; then 19151 break 19152 elif $ac_last_try; then 19153 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19154 else 19155 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19156 fi 19157done 19158rm -f conf$$subs.sh 19159 19160cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19161cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19162_ACEOF 19163sed -n ' 19164h 19165s/^/S["/; s/!.*/"]=/ 19166p 19167g 19168s/^[^!]*!// 19169:repl 19170t repl 19171s/'"$ac_delim"'$// 19172t delim 19173:nl 19174h 19175s/\(.\{148\}\)..*/\1/ 19176t more1 19177s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19178p 19179n 19180b repl 19181:more1 19182s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19183p 19184g 19185s/.\{148\}// 19186t nl 19187:delim 19188h 19189s/\(.\{148\}\)..*/\1/ 19190t more2 19191s/["\\]/\\&/g; s/^/"/; s/$/"/ 19192p 19193b 19194:more2 19195s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19196p 19197g 19198s/.\{148\}// 19199t delim 19200' <conf$$subs.awk | sed ' 19201/^[^""]/{ 19202 N 19203 s/\n// 19204} 19205' >>$CONFIG_STATUS || ac_write_fail=1 19206rm -f conf$$subs.awk 19207cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19208_ACAWK 19209cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19210 for (key in S) S_is_set[key] = 1 19211 FS = "" 19212 19213} 19214{ 19215 line = $ 0 19216 nfields = split(line, field, "@") 19217 substed = 0 19218 len = length(field[1]) 19219 for (i = 2; i < nfields; i++) { 19220 key = field[i] 19221 keylen = length(key) 19222 if (S_is_set[key]) { 19223 value = S[key] 19224 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19225 len += length(value) + length(field[++i]) 19226 substed = 1 19227 } else 19228 len += 1 + keylen 19229 } 19230 19231 print line 19232} 19233 19234_ACAWK 19235_ACEOF 19236cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19237if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19238 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19239else 19240 cat 19241fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19242 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19243_ACEOF 19244 19245# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19246# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19247# trailing colons and then remove the whole line if VPATH becomes empty 19248# (actually we leave an empty line to preserve line numbers). 19249if test "x$srcdir" = x.; then 19250 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19251h 19252s/// 19253s/^/:/ 19254s/[ ]*$/:/ 19255s/:\$(srcdir):/:/g 19256s/:\${srcdir}:/:/g 19257s/:@srcdir@:/:/g 19258s/^:*// 19259s/:*$// 19260x 19261s/\(=[ ]*\).*/\1/ 19262G 19263s/\n// 19264s/^[^=]*=[ ]*$// 19265}' 19266fi 19267 19268cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19269fi # test -n "$CONFIG_FILES" 19270 19271# Set up the scripts for CONFIG_HEADERS section. 19272# No need to generate them if there are no CONFIG_HEADERS. 19273# This happens for instance with `./config.status Makefile'. 19274if test -n "$CONFIG_HEADERS"; then 19275cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19276BEGIN { 19277_ACEOF 19278 19279# Transform confdefs.h into an awk script `defines.awk', embedded as 19280# here-document in config.status, that substitutes the proper values into 19281# config.h.in to produce config.h. 19282 19283# Create a delimiter string that does not exist in confdefs.h, to ease 19284# handling of long lines. 19285ac_delim='%!_!# ' 19286for ac_last_try in false false :; do 19287 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19288 if test -z "$ac_tt"; then 19289 break 19290 elif $ac_last_try; then 19291 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19292 else 19293 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19294 fi 19295done 19296 19297# For the awk script, D is an array of macro values keyed by name, 19298# likewise P contains macro parameters if any. Preserve backslash 19299# newline sequences. 19300 19301ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19302sed -n ' 19303s/.\{148\}/&'"$ac_delim"'/g 19304t rset 19305:rset 19306s/^[ ]*#[ ]*define[ ][ ]*/ / 19307t def 19308d 19309:def 19310s/\\$// 19311t bsnl 19312s/["\\]/\\&/g 19313s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19314D["\1"]=" \3"/p 19315s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19316d 19317:bsnl 19318s/["\\]/\\&/g 19319s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19320D["\1"]=" \3\\\\\\n"\\/p 19321t cont 19322s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19323t cont 19324d 19325:cont 19326n 19327s/.\{148\}/&'"$ac_delim"'/g 19328t clear 19329:clear 19330s/\\$// 19331t bsnlc 19332s/["\\]/\\&/g; s/^/"/; s/$/"/p 19333d 19334:bsnlc 19335s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19336b cont 19337' <confdefs.h | sed ' 19338s/'"$ac_delim"'/"\\\ 19339"/g' >>$CONFIG_STATUS || ac_write_fail=1 19340 19341cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19342 for (key in D) D_is_set[key] = 1 19343 FS = "" 19344} 19345/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19346 line = \$ 0 19347 split(line, arg, " ") 19348 if (arg[1] == "#") { 19349 defundef = arg[2] 19350 mac1 = arg[3] 19351 } else { 19352 defundef = substr(arg[1], 2) 19353 mac1 = arg[2] 19354 } 19355 split(mac1, mac2, "(") #) 19356 macro = mac2[1] 19357 prefix = substr(line, 1, index(line, defundef) - 1) 19358 if (D_is_set[macro]) { 19359 # Preserve the white space surrounding the "#". 19360 print prefix "define", macro P[macro] D[macro] 19361 next 19362 } else { 19363 # Replace #undef with comments. This is necessary, for example, 19364 # in the case of _POSIX_SOURCE, which is predefined and required 19365 # on some systems where configure will not decide to define it. 19366 if (defundef == "undef") { 19367 print "/*", prefix defundef, macro, "*/" 19368 next 19369 } 19370 } 19371} 19372{ print } 19373_ACAWK 19374_ACEOF 19375cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19376 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19377fi # test -n "$CONFIG_HEADERS" 19378 19379 19380eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19381shift 19382for ac_tag 19383do 19384 case $ac_tag in 19385 :[FHLC]) ac_mode=$ac_tag; continue;; 19386 esac 19387 case $ac_mode$ac_tag in 19388 :[FHL]*:*);; 19389 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19390 :[FH]-) ac_tag=-:-;; 19391 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19392 esac 19393 ac_save_IFS=$IFS 19394 IFS=: 19395 set x $ac_tag 19396 IFS=$ac_save_IFS 19397 shift 19398 ac_file=$1 19399 shift 19400 19401 case $ac_mode in 19402 :L) ac_source=$1;; 19403 :[FH]) 19404 ac_file_inputs= 19405 for ac_f 19406 do 19407 case $ac_f in 19408 -) ac_f="$ac_tmp/stdin";; 19409 *) # Look for the file first in the build tree, then in the source tree 19410 # (if the path is not absolute). The absolute path cannot be DOS-style, 19411 # because $ac_f cannot contain `:'. 19412 test -f "$ac_f" || 19413 case $ac_f in 19414 [\\/$]*) false;; 19415 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19416 esac || 19417 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19418 esac 19419 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19420 as_fn_append ac_file_inputs " '$ac_f'" 19421 done 19422 19423 # Let's still pretend it is `configure' which instantiates (i.e., don't 19424 # use $as_me), people would be surprised to read: 19425 # /* config.h. Generated by config.status. */ 19426 configure_input='Generated from '` 19427 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19428 `' by configure.' 19429 if test x"$ac_file" != x-; then 19430 configure_input="$ac_file. $configure_input" 19431 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19432$as_echo "$as_me: creating $ac_file" >&6;} 19433 fi 19434 # Neutralize special characters interpreted by sed in replacement strings. 19435 case $configure_input in #( 19436 *\&* | *\|* | *\\* ) 19437 ac_sed_conf_input=`$as_echo "$configure_input" | 19438 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19439 *) ac_sed_conf_input=$configure_input;; 19440 esac 19441 19442 case $ac_tag in 19443 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19444 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19445 esac 19446 ;; 19447 esac 19448 19449 ac_dir=`$as_dirname -- "$ac_file" || 19450$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19451 X"$ac_file" : 'X\(//\)[^/]' \| \ 19452 X"$ac_file" : 'X\(//\)$' \| \ 19453 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19454$as_echo X"$ac_file" | 19455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19456 s//\1/ 19457 q 19458 } 19459 /^X\(\/\/\)[^/].*/{ 19460 s//\1/ 19461 q 19462 } 19463 /^X\(\/\/\)$/{ 19464 s//\1/ 19465 q 19466 } 19467 /^X\(\/\).*/{ 19468 s//\1/ 19469 q 19470 } 19471 s/.*/./; q'` 19472 as_dir="$ac_dir"; as_fn_mkdir_p 19473 ac_builddir=. 19474 19475case "$ac_dir" in 19476.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19477*) 19478 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19479 # A ".." for each directory in $ac_dir_suffix. 19480 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19481 case $ac_top_builddir_sub in 19482 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19483 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19484 esac ;; 19485esac 19486ac_abs_top_builddir=$ac_pwd 19487ac_abs_builddir=$ac_pwd$ac_dir_suffix 19488# for backward compatibility: 19489ac_top_builddir=$ac_top_build_prefix 19490 19491case $srcdir in 19492 .) # We are building in place. 19493 ac_srcdir=. 19494 ac_top_srcdir=$ac_top_builddir_sub 19495 ac_abs_top_srcdir=$ac_pwd ;; 19496 [\\/]* | ?:[\\/]* ) # Absolute name. 19497 ac_srcdir=$srcdir$ac_dir_suffix; 19498 ac_top_srcdir=$srcdir 19499 ac_abs_top_srcdir=$srcdir ;; 19500 *) # Relative name. 19501 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19502 ac_top_srcdir=$ac_top_build_prefix$srcdir 19503 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19504esac 19505ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19506 19507 19508 case $ac_mode in 19509 :F) 19510 # 19511 # CONFIG_FILE 19512 # 19513 19514 case $INSTALL in 19515 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19516 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19517 esac 19518 ac_MKDIR_P=$MKDIR_P 19519 case $MKDIR_P in 19520 [\\/$]* | ?:[\\/]* ) ;; 19521 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19522 esac 19523_ACEOF 19524 19525cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19526# If the template does not know about datarootdir, expand it. 19527# FIXME: This hack should be removed a few years after 2.60. 19528ac_datarootdir_hack=; ac_datarootdir_seen= 19529ac_sed_dataroot=' 19530/datarootdir/ { 19531 p 19532 q 19533} 19534/@datadir@/p 19535/@docdir@/p 19536/@infodir@/p 19537/@localedir@/p 19538/@mandir@/p' 19539case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19540*datarootdir*) ac_datarootdir_seen=yes;; 19541*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19543$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19544_ACEOF 19545cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19546 ac_datarootdir_hack=' 19547 s&@datadir@&$datadir&g 19548 s&@docdir@&$docdir&g 19549 s&@infodir@&$infodir&g 19550 s&@localedir@&$localedir&g 19551 s&@mandir@&$mandir&g 19552 s&\\\${datarootdir}&$datarootdir&g' ;; 19553esac 19554_ACEOF 19555 19556# Neutralize VPATH when `$srcdir' = `.'. 19557# Shell code in configure.ac might set extrasub. 19558# FIXME: do we really want to maintain this feature? 19559cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19560ac_sed_extra="$ac_vpsub 19561$extrasub 19562_ACEOF 19563cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19564:t 19565/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19566s|@configure_input@|$ac_sed_conf_input|;t t 19567s&@top_builddir@&$ac_top_builddir_sub&;t t 19568s&@top_build_prefix@&$ac_top_build_prefix&;t t 19569s&@srcdir@&$ac_srcdir&;t t 19570s&@abs_srcdir@&$ac_abs_srcdir&;t t 19571s&@top_srcdir@&$ac_top_srcdir&;t t 19572s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19573s&@builddir@&$ac_builddir&;t t 19574s&@abs_builddir@&$ac_abs_builddir&;t t 19575s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19576s&@INSTALL@&$ac_INSTALL&;t t 19577s&@MKDIR_P@&$ac_MKDIR_P&;t t 19578$ac_datarootdir_hack 19579" 19580eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19581 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19582 19583test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19584 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19585 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19586 "$ac_tmp/out"`; test -z "$ac_out"; } && 19587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19588which seems to be undefined. Please make sure it is defined" >&5 19589$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19590which seems to be undefined. Please make sure it is defined" >&2;} 19591 19592 rm -f "$ac_tmp/stdin" 19593 case $ac_file in 19594 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19595 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19596 esac \ 19597 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19598 ;; 19599 :H) 19600 # 19601 # CONFIG_HEADER 19602 # 19603 if test x"$ac_file" != x-; then 19604 { 19605 $as_echo "/* $configure_input */" \ 19606 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 19607 } >"$ac_tmp/config.h" \ 19608 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19609 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 19610 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 19611$as_echo "$as_me: $ac_file is unchanged" >&6;} 19612 else 19613 rm -f "$ac_file" 19614 mv "$ac_tmp/config.h" "$ac_file" \ 19615 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19616 fi 19617 else 19618 $as_echo "/* $configure_input */" \ 19619 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 19620 || as_fn_error $? "could not create -" "$LINENO" 5 19621 fi 19622# Compute "$ac_file"'s index in $config_headers. 19623_am_arg="$ac_file" 19624_am_stamp_count=1 19625for _am_header in $config_headers :; do 19626 case $_am_header in 19627 $_am_arg | $_am_arg:* ) 19628 break ;; 19629 * ) 19630 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 19631 esac 19632done 19633echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 19634$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19635 X"$_am_arg" : 'X\(//\)[^/]' \| \ 19636 X"$_am_arg" : 'X\(//\)$' \| \ 19637 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 19638$as_echo X"$_am_arg" | 19639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19640 s//\1/ 19641 q 19642 } 19643 /^X\(\/\/\)[^/].*/{ 19644 s//\1/ 19645 q 19646 } 19647 /^X\(\/\/\)$/{ 19648 s//\1/ 19649 q 19650 } 19651 /^X\(\/\).*/{ 19652 s//\1/ 19653 q 19654 } 19655 s/.*/./; q'`/stamp-h$_am_stamp_count 19656 ;; 19657 19658 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19659$as_echo "$as_me: executing $ac_file commands" >&6;} 19660 ;; 19661 esac 19662 19663 19664 case $ac_file$ac_mode in 19665 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19666 # Older Autoconf quotes --file arguments for eval, but not when files 19667 # are listed without --file. Let's play safe and only enable the eval 19668 # if we detect the quoting. 19669 case $CONFIG_FILES in 19670 *\'*) eval set x "$CONFIG_FILES" ;; 19671 *) set x $CONFIG_FILES ;; 19672 esac 19673 shift 19674 for mf 19675 do 19676 # Strip MF so we end up with the name of the file. 19677 mf=`echo "$mf" | sed -e 's/:.*$//'` 19678 # Check whether this is an Automake generated Makefile or not. 19679 # We used to match only the files named 'Makefile.in', but 19680 # some people rename them; so instead we look at the file content. 19681 # Grep'ing the first line is not enough: some people post-process 19682 # each Makefile.in and add a new line on top of each file to say so. 19683 # Grep'ing the whole file is not good either: AIX grep has a line 19684 # limit of 2048, but all sed's we know have understand at least 4000. 19685 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 19686 dirpart=`$as_dirname -- "$mf" || 19687$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19688 X"$mf" : 'X\(//\)[^/]' \| \ 19689 X"$mf" : 'X\(//\)$' \| \ 19690 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 19691$as_echo X"$mf" | 19692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19693 s//\1/ 19694 q 19695 } 19696 /^X\(\/\/\)[^/].*/{ 19697 s//\1/ 19698 q 19699 } 19700 /^X\(\/\/\)$/{ 19701 s//\1/ 19702 q 19703 } 19704 /^X\(\/\).*/{ 19705 s//\1/ 19706 q 19707 } 19708 s/.*/./; q'` 19709 else 19710 continue 19711 fi 19712 # Extract the definition of DEPDIR, am__include, and am__quote 19713 # from the Makefile without running 'make'. 19714 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 19715 test -z "$DEPDIR" && continue 19716 am__include=`sed -n 's/^am__include = //p' < "$mf"` 19717 test -z "$am__include" && continue 19718 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 19719 # Find all dependency output files, they are included files with 19720 # $(DEPDIR) in their names. We invoke sed twice because it is the 19721 # simplest approach to changing $(DEPDIR) to its actual value in the 19722 # expansion. 19723 for file in `sed -n " 19724 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 19725 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 19726 # Make sure the directory exists. 19727 test -f "$dirpart/$file" && continue 19728 fdir=`$as_dirname -- "$file" || 19729$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19730 X"$file" : 'X\(//\)[^/]' \| \ 19731 X"$file" : 'X\(//\)$' \| \ 19732 X"$file" : 'X\(/\)' \| . 2>/dev/null || 19733$as_echo X"$file" | 19734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19735 s//\1/ 19736 q 19737 } 19738 /^X\(\/\/\)[^/].*/{ 19739 s//\1/ 19740 q 19741 } 19742 /^X\(\/\/\)$/{ 19743 s//\1/ 19744 q 19745 } 19746 /^X\(\/\).*/{ 19747 s//\1/ 19748 q 19749 } 19750 s/.*/./; q'` 19751 as_dir=$dirpart/$fdir; as_fn_mkdir_p 19752 # echo "creating $dirpart/$file" 19753 echo '# dummy' > "$dirpart/$file" 19754 done 19755 done 19756} 19757 ;; 19758 "libtool":C) 19759 19760 # See if we are running on zsh, and set the options which allow our 19761 # commands through without removal of \ escapes. 19762 if test -n "${ZSH_VERSION+set}" ; then 19763 setopt NO_GLOB_SUBST 19764 fi 19765 19766 cfgfile="${ofile}T" 19767 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19768 $RM "$cfgfile" 19769 19770 cat <<_LT_EOF >> "$cfgfile" 19771#! $SHELL 19772 19773# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 19774# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 19775# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19776# NOTE: Changes made to this file will be lost: look at ltmain.sh. 19777# 19778# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 19779# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 19780# Foundation, Inc. 19781# Written by Gordon Matzigkeit, 1996 19782# 19783# This file is part of GNU Libtool. 19784# 19785# GNU Libtool is free software; you can redistribute it and/or 19786# modify it under the terms of the GNU General Public License as 19787# published by the Free Software Foundation; either version 2 of 19788# the License, or (at your option) any later version. 19789# 19790# As a special exception to the GNU General Public License, 19791# if you distribute this file as part of a program or library that 19792# is built using GNU Libtool, you may include this file under the 19793# same distribution terms that you use for the rest of that program. 19794# 19795# GNU Libtool is distributed in the hope that it will be useful, 19796# but WITHOUT ANY WARRANTY; without even the implied warranty of 19797# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19798# GNU General Public License for more details. 19799# 19800# You should have received a copy of the GNU General Public License 19801# along with GNU Libtool; see the file COPYING. If not, a copy 19802# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 19803# obtained by writing to the Free Software Foundation, Inc., 19804# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 19805 19806 19807# The names of the tagged configurations supported by this script. 19808available_tags="" 19809 19810# ### BEGIN LIBTOOL CONFIG 19811 19812# Which release of libtool.m4 was used? 19813macro_version=$macro_version 19814macro_revision=$macro_revision 19815 19816# Whether or not to build shared libraries. 19817build_libtool_libs=$enable_shared 19818 19819# Whether or not to build static libraries. 19820build_old_libs=$enable_static 19821 19822# What type of objects to build. 19823pic_mode=$pic_mode 19824 19825# Whether or not to optimize for fast installation. 19826fast_install=$enable_fast_install 19827 19828# Shell to use when invoking shell scripts. 19829SHELL=$lt_SHELL 19830 19831# An echo program that protects backslashes. 19832ECHO=$lt_ECHO 19833 19834# The PATH separator for the build system. 19835PATH_SEPARATOR=$lt_PATH_SEPARATOR 19836 19837# The host system. 19838host_alias=$host_alias 19839host=$host 19840host_os=$host_os 19841 19842# The build system. 19843build_alias=$build_alias 19844build=$build 19845build_os=$build_os 19846 19847# A sed program that does not truncate output. 19848SED=$lt_SED 19849 19850# Sed that helps us avoid accidentally triggering echo(1) options like -n. 19851Xsed="\$SED -e 1s/^X//" 19852 19853# A grep program that handles long lines. 19854GREP=$lt_GREP 19855 19856# An ERE matcher. 19857EGREP=$lt_EGREP 19858 19859# A literal string matcher. 19860FGREP=$lt_FGREP 19861 19862# A BSD- or MS-compatible name lister. 19863NM=$lt_NM 19864 19865# Whether we need soft or hard links. 19866LN_S=$lt_LN_S 19867 19868# What is the maximum length of a command? 19869max_cmd_len=$max_cmd_len 19870 19871# Object file suffix (normally "o"). 19872objext=$ac_objext 19873 19874# Executable file suffix (normally ""). 19875exeext=$exeext 19876 19877# whether the shell understands "unset". 19878lt_unset=$lt_unset 19879 19880# turn spaces into newlines. 19881SP2NL=$lt_lt_SP2NL 19882 19883# turn newlines into spaces. 19884NL2SP=$lt_lt_NL2SP 19885 19886# convert \$build file names to \$host format. 19887to_host_file_cmd=$lt_cv_to_host_file_cmd 19888 19889# convert \$build files to toolchain format. 19890to_tool_file_cmd=$lt_cv_to_tool_file_cmd 19891 19892# An object symbol dumper. 19893OBJDUMP=$lt_OBJDUMP 19894 19895# Method to check whether dependent libraries are shared objects. 19896deplibs_check_method=$lt_deplibs_check_method 19897 19898# Command to use when deplibs_check_method = "file_magic". 19899file_magic_cmd=$lt_file_magic_cmd 19900 19901# How to find potential files when deplibs_check_method = "file_magic". 19902file_magic_glob=$lt_file_magic_glob 19903 19904# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 19905want_nocaseglob=$lt_want_nocaseglob 19906 19907# DLL creation program. 19908DLLTOOL=$lt_DLLTOOL 19909 19910# Command to associate shared and link libraries. 19911sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 19912 19913# The archiver. 19914AR=$lt_AR 19915 19916# Flags to create an archive. 19917AR_FLAGS=$lt_AR_FLAGS 19918 19919# How to feed a file listing to the archiver. 19920archiver_list_spec=$lt_archiver_list_spec 19921 19922# A symbol stripping program. 19923STRIP=$lt_STRIP 19924 19925# Commands used to install an old-style archive. 19926RANLIB=$lt_RANLIB 19927old_postinstall_cmds=$lt_old_postinstall_cmds 19928old_postuninstall_cmds=$lt_old_postuninstall_cmds 19929 19930# Whether to use a lock for old archive extraction. 19931lock_old_archive_extraction=$lock_old_archive_extraction 19932 19933# A C compiler. 19934LTCC=$lt_CC 19935 19936# LTCC compiler flags. 19937LTCFLAGS=$lt_CFLAGS 19938 19939# Take the output of nm and produce a listing of raw symbols and C names. 19940global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19941 19942# Transform the output of nm in a proper C declaration. 19943global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19944 19945# Transform the output of nm in a C name address pair. 19946global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19947 19948# Transform the output of nm in a C name address pair when lib prefix is needed. 19949global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19950 19951# Specify filename containing input files for \$NM. 19952nm_file_list_spec=$lt_nm_file_list_spec 19953 19954# The root where to search for dependent libraries,and in which our libraries should be installed. 19955lt_sysroot=$lt_sysroot 19956 19957# The name of the directory that contains temporary libtool files. 19958objdir=$objdir 19959 19960# Used to examine libraries when file_magic_cmd begins with "file". 19961MAGIC_CMD=$MAGIC_CMD 19962 19963# Must we lock files when doing compilation? 19964need_locks=$lt_need_locks 19965 19966# Manifest tool. 19967MANIFEST_TOOL=$lt_MANIFEST_TOOL 19968 19969# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19970DSYMUTIL=$lt_DSYMUTIL 19971 19972# Tool to change global to local symbols on Mac OS X. 19973NMEDIT=$lt_NMEDIT 19974 19975# Tool to manipulate fat objects and archives on Mac OS X. 19976LIPO=$lt_LIPO 19977 19978# ldd/readelf like tool for Mach-O binaries on Mac OS X. 19979OTOOL=$lt_OTOOL 19980 19981# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19982OTOOL64=$lt_OTOOL64 19983 19984# Old archive suffix (normally "a"). 19985libext=$libext 19986 19987# Shared library suffix (normally ".so"). 19988shrext_cmds=$lt_shrext_cmds 19989 19990# The commands to extract the exported symbol list from a shared archive. 19991extract_expsyms_cmds=$lt_extract_expsyms_cmds 19992 19993# Variables whose values should be saved in libtool wrapper scripts and 19994# restored at link time. 19995variables_saved_for_relink=$lt_variables_saved_for_relink 19996 19997# Do we need the "lib" prefix for modules? 19998need_lib_prefix=$need_lib_prefix 19999 20000# Do we need a version for libraries? 20001need_version=$need_version 20002 20003# Library versioning type. 20004version_type=$version_type 20005 20006# Shared library runtime path variable. 20007runpath_var=$runpath_var 20008 20009# Shared library path variable. 20010shlibpath_var=$shlibpath_var 20011 20012# Is shlibpath searched before the hard-coded library search path? 20013shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20014 20015# Format of library name prefix. 20016libname_spec=$lt_libname_spec 20017 20018# List of archive names. First name is the real one, the rest are links. 20019# The last name is the one that the linker finds with -lNAME 20020library_names_spec=$lt_library_names_spec 20021 20022# The coded name of the library, if different from the real name. 20023soname_spec=$lt_soname_spec 20024 20025# Permission mode override for installation of shared libraries. 20026install_override_mode=$lt_install_override_mode 20027 20028# Command to use after installation of a shared archive. 20029postinstall_cmds=$lt_postinstall_cmds 20030 20031# Command to use after uninstallation of a shared archive. 20032postuninstall_cmds=$lt_postuninstall_cmds 20033 20034# Commands used to finish a libtool library installation in a directory. 20035finish_cmds=$lt_finish_cmds 20036 20037# As "finish_cmds", except a single script fragment to be evaled but 20038# not shown. 20039finish_eval=$lt_finish_eval 20040 20041# Whether we should hardcode library paths into libraries. 20042hardcode_into_libs=$hardcode_into_libs 20043 20044# Compile-time system search path for libraries. 20045sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20046 20047# Run-time system search path for libraries. 20048sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20049 20050# Whether dlopen is supported. 20051dlopen_support=$enable_dlopen 20052 20053# Whether dlopen of programs is supported. 20054dlopen_self=$enable_dlopen_self 20055 20056# Whether dlopen of statically linked programs is supported. 20057dlopen_self_static=$enable_dlopen_self_static 20058 20059# Commands to strip libraries. 20060old_striplib=$lt_old_striplib 20061striplib=$lt_striplib 20062 20063 20064# The linker used to build libraries. 20065LD=$lt_LD 20066 20067# How to create reloadable object files. 20068reload_flag=$lt_reload_flag 20069reload_cmds=$lt_reload_cmds 20070 20071# Commands used to build an old-style archive. 20072old_archive_cmds=$lt_old_archive_cmds 20073 20074# A language specific compiler. 20075CC=$lt_compiler 20076 20077# Is the compiler the GNU compiler? 20078with_gcc=$GCC 20079 20080# Compiler flag to turn off builtin functions. 20081no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20082 20083# Additional compiler flags for building library objects. 20084pic_flag=$lt_lt_prog_compiler_pic 20085 20086# How to pass a linker flag through the compiler. 20087wl=$lt_lt_prog_compiler_wl 20088 20089# Compiler flag to prevent dynamic linking. 20090link_static_flag=$lt_lt_prog_compiler_static 20091 20092# Does compiler simultaneously support -c and -o options? 20093compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20094 20095# Whether or not to add -lc for building shared libraries. 20096build_libtool_need_lc=$archive_cmds_need_lc 20097 20098# Whether or not to disallow shared libs when runtime libs are static. 20099allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20100 20101# Compiler flag to allow reflexive dlopens. 20102export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20103 20104# Compiler flag to generate shared objects directly from archives. 20105whole_archive_flag_spec=$lt_whole_archive_flag_spec 20106 20107# Whether the compiler copes with passing no objects directly. 20108compiler_needs_object=$lt_compiler_needs_object 20109 20110# Create an old-style archive from a shared archive. 20111old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20112 20113# Create a temporary old-style archive to link instead of a shared archive. 20114old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20115 20116# Commands used to build a shared archive. 20117archive_cmds=$lt_archive_cmds 20118archive_expsym_cmds=$lt_archive_expsym_cmds 20119 20120# Commands used to build a loadable module if different from building 20121# a shared archive. 20122module_cmds=$lt_module_cmds 20123module_expsym_cmds=$lt_module_expsym_cmds 20124 20125# Whether we are building with GNU ld or not. 20126with_gnu_ld=$lt_with_gnu_ld 20127 20128# Flag that allows shared libraries with undefined symbols to be built. 20129allow_undefined_flag=$lt_allow_undefined_flag 20130 20131# Flag that enforces no undefined symbols. 20132no_undefined_flag=$lt_no_undefined_flag 20133 20134# Flag to hardcode \$libdir into a binary during linking. 20135# This must work even if \$libdir does not exist 20136hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20137 20138# Whether we need a single "-rpath" flag with a separated argument. 20139hardcode_libdir_separator=$lt_hardcode_libdir_separator 20140 20141# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20142# DIR into the resulting binary. 20143hardcode_direct=$hardcode_direct 20144 20145# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20146# DIR into the resulting binary and the resulting library dependency is 20147# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 20148# library is relocated. 20149hardcode_direct_absolute=$hardcode_direct_absolute 20150 20151# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20152# into the resulting binary. 20153hardcode_minus_L=$hardcode_minus_L 20154 20155# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20156# into the resulting binary. 20157hardcode_shlibpath_var=$hardcode_shlibpath_var 20158 20159# Set to "yes" if building a shared library automatically hardcodes DIR 20160# into the library and all subsequent libraries and executables linked 20161# against it. 20162hardcode_automatic=$hardcode_automatic 20163 20164# Set to yes if linker adds runtime paths of dependent libraries 20165# to runtime path list. 20166inherit_rpath=$inherit_rpath 20167 20168# Whether libtool must link a program against all its dependency libraries. 20169link_all_deplibs=$link_all_deplibs 20170 20171# Set to "yes" if exported symbols are required. 20172always_export_symbols=$always_export_symbols 20173 20174# The commands to list exported symbols. 20175export_symbols_cmds=$lt_export_symbols_cmds 20176 20177# Symbols that should not be listed in the preloaded symbols. 20178exclude_expsyms=$lt_exclude_expsyms 20179 20180# Symbols that must always be exported. 20181include_expsyms=$lt_include_expsyms 20182 20183# Commands necessary for linking programs (against libraries) with templates. 20184prelink_cmds=$lt_prelink_cmds 20185 20186# Commands necessary for finishing linking programs. 20187postlink_cmds=$lt_postlink_cmds 20188 20189# Specify filename containing input files. 20190file_list_spec=$lt_file_list_spec 20191 20192# How to hardcode a shared library path into an executable. 20193hardcode_action=$hardcode_action 20194 20195# ### END LIBTOOL CONFIG 20196 20197_LT_EOF 20198 20199 case $host_os in 20200 aix3*) 20201 cat <<\_LT_EOF >> "$cfgfile" 20202# AIX sometimes has problems with the GCC collect2 program. For some 20203# reason, if we set the COLLECT_NAMES environment variable, the problems 20204# vanish in a puff of smoke. 20205if test "X${COLLECT_NAMES+set}" != Xset; then 20206 COLLECT_NAMES= 20207 export COLLECT_NAMES 20208fi 20209_LT_EOF 20210 ;; 20211 esac 20212 20213 20214ltmain="$ac_aux_dir/ltmain.sh" 20215 20216 20217 # We use sed instead of cat because bash on DJGPP gets confused if 20218 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20219 # text mode, it properly converts lines to CR/LF. This bash problem 20220 # is reportedly fixed, but why not run on old versions too? 20221 sed '$q' "$ltmain" >> "$cfgfile" \ 20222 || (rm -f "$cfgfile"; exit 1) 20223 20224 if test x"$xsi_shell" = xyes; then 20225 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 20226func_dirname ()\ 20227{\ 20228\ case ${1} in\ 20229\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20230\ * ) func_dirname_result="${3}" ;;\ 20231\ esac\ 20232} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 20233 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20234 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20235test 0 -eq $? || _lt_function_replace_fail=: 20236 20237 20238 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 20239func_basename ()\ 20240{\ 20241\ func_basename_result="${1##*/}"\ 20242} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20243 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20244 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20245test 0 -eq $? || _lt_function_replace_fail=: 20246 20247 20248 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 20249func_dirname_and_basename ()\ 20250{\ 20251\ case ${1} in\ 20252\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20253\ * ) func_dirname_result="${3}" ;;\ 20254\ esac\ 20255\ func_basename_result="${1##*/}"\ 20256} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20257 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20258 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20259test 0 -eq $? || _lt_function_replace_fail=: 20260 20261 20262 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 20263func_stripname ()\ 20264{\ 20265\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 20266\ # positional parameters, so assign one to ordinary parameter first.\ 20267\ func_stripname_result=${3}\ 20268\ func_stripname_result=${func_stripname_result#"${1}"}\ 20269\ func_stripname_result=${func_stripname_result%"${2}"}\ 20270} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 20271 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20272 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20273test 0 -eq $? || _lt_function_replace_fail=: 20274 20275 20276 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 20277func_split_long_opt ()\ 20278{\ 20279\ func_split_long_opt_name=${1%%=*}\ 20280\ func_split_long_opt_arg=${1#*=}\ 20281} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20282 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20283 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20284test 0 -eq $? || _lt_function_replace_fail=: 20285 20286 20287 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 20288func_split_short_opt ()\ 20289{\ 20290\ func_split_short_opt_arg=${1#??}\ 20291\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 20292} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20293 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20294 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20295test 0 -eq $? || _lt_function_replace_fail=: 20296 20297 20298 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 20299func_lo2o ()\ 20300{\ 20301\ case ${1} in\ 20302\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 20303\ *) func_lo2o_result=${1} ;;\ 20304\ esac\ 20305} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 20306 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20307 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20308test 0 -eq $? || _lt_function_replace_fail=: 20309 20310 20311 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 20312func_xform ()\ 20313{\ 20314 func_xform_result=${1%.*}.lo\ 20315} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 20316 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20317 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20318test 0 -eq $? || _lt_function_replace_fail=: 20319 20320 20321 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 20322func_arith ()\ 20323{\ 20324 func_arith_result=$(( $* ))\ 20325} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 20326 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20327 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20328test 0 -eq $? || _lt_function_replace_fail=: 20329 20330 20331 sed -e '/^func_len ()$/,/^} # func_len /c\ 20332func_len ()\ 20333{\ 20334 func_len_result=${#1}\ 20335} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 20336 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20337 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20338test 0 -eq $? || _lt_function_replace_fail=: 20339 20340fi 20341 20342if test x"$lt_shell_append" = xyes; then 20343 sed -e '/^func_append ()$/,/^} # func_append /c\ 20344func_append ()\ 20345{\ 20346 eval "${1}+=\\${2}"\ 20347} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 20348 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20349 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20350test 0 -eq $? || _lt_function_replace_fail=: 20351 20352 20353 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 20354func_append_quoted ()\ 20355{\ 20356\ func_quote_for_eval "${2}"\ 20357\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 20358} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 20359 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20360 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20361test 0 -eq $? || _lt_function_replace_fail=: 20362 20363 20364 # Save a `func_append' function call where possible by direct use of '+=' 20365 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 20366 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20367 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20368 test 0 -eq $? || _lt_function_replace_fail=: 20369else 20370 # Save a `func_append' function call even when '+=' is not available 20371 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 20372 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20373 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20374 test 0 -eq $? || _lt_function_replace_fail=: 20375fi 20376 20377if test x"$_lt_function_replace_fail" = x":"; then 20378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 20379$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 20380fi 20381 20382 20383 mv -f "$cfgfile" "$ofile" || 20384 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20385 chmod +x "$ofile" 20386 20387 ;; 20388 20389 esac 20390done # for ac_tag 20391 20392 20393as_fn_exit 0 20394_ACEOF 20395ac_clean_files=$ac_clean_files_save 20396 20397test $ac_write_fail = 0 || 20398 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20399 20400 20401# configure is writing to config.log, and then calls config.status. 20402# config.status does its own redirection, appending to config.log. 20403# Unfortunately, on DOS this fails, as config.log is still kept open 20404# by configure, so config.status won't be able to write to it; its 20405# output is simply discarded. So we exec the FD to /dev/null, 20406# effectively closing config.log, so it can be properly (re)opened and 20407# appended to by config.status. When coming back to configure, we 20408# need to make the FD available again. 20409if test "$no_create" != yes; then 20410 ac_cs_success=: 20411 ac_config_status_args= 20412 test "$silent" = yes && 20413 ac_config_status_args="$ac_config_status_args --quiet" 20414 exec 5>/dev/null 20415 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20416 exec 5>>config.log 20417 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20418 # would make configure fail if this is the last instruction. 20419 $ac_cs_success || as_fn_exit 1 20420fi 20421if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20423$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20424fi 20425 20426