configure revision 1bedbe3f
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for libFS 1.0.5. 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='libFS' 573PACKAGE_TARNAME='libFS' 574PACKAGE_VERSION='1.0.5' 575PACKAGE_STRING='libFS 1.0.5' 576PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 577PACKAGE_URL='' 578 579ac_unique_file="Makefile.am" 580# Factoring default headers for most tests. 581ac_includes_default="\ 582#include <stdio.h> 583#ifdef HAVE_SYS_TYPES_H 584# include <sys/types.h> 585#endif 586#ifdef HAVE_SYS_STAT_H 587# include <sys/stat.h> 588#endif 589#ifdef STDC_HEADERS 590# include <stdlib.h> 591# include <stddef.h> 592#else 593# ifdef HAVE_STDLIB_H 594# include <stdlib.h> 595# endif 596#endif 597#ifdef HAVE_STRING_H 598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 599# include <memory.h> 600# endif 601# include <string.h> 602#endif 603#ifdef HAVE_STRINGS_H 604# include <strings.h> 605#endif 606#ifdef HAVE_INTTYPES_H 607# include <inttypes.h> 608#endif 609#ifdef HAVE_STDINT_H 610# include <stdint.h> 611#endif 612#ifdef HAVE_UNISTD_H 613# include <unistd.h> 614#endif" 615 616ac_subst_vars='am__EXEEXT_FALSE 617am__EXEEXT_TRUE 618LTLIBOBJS 619LIBOBJS 620MAKE_LINT_LIB_FALSE 621MAKE_LINT_LIB_TRUE 622LINTLIB 623LINT_FALSE 624LINT_TRUE 625LINT_FLAGS 626LINT 627FS_LIBS 628FS_CFLAGS 629XTMALLOC_ZERO_CFLAGS 630XMALLOC_ZERO_CFLAGS 631MALLOC_ZERO_CFLAGS 632MAN_SUBSTS 633XORG_MAN_PAGE 634ADMIN_MAN_DIR 635DRIVER_MAN_DIR 636MISC_MAN_DIR 637FILE_MAN_DIR 638LIB_MAN_DIR 639APP_MAN_DIR 640ADMIN_MAN_SUFFIX 641DRIVER_MAN_SUFFIX 642MISC_MAN_SUFFIX 643FILE_MAN_SUFFIX 644LIB_MAN_SUFFIX 645APP_MAN_SUFFIX 646INSTALL_CMD 647PKG_CONFIG 648CHANGELOG_CMD 649STRICT_CFLAGS 650CWARNFLAGS 651BASE_CFLAGS 652CPP 653OTOOL64 654OTOOL 655LIPO 656NMEDIT 657DSYMUTIL 658MANIFEST_TOOL 659RANLIB 660ac_ct_AR 661AR 662DLLTOOL 663OBJDUMP 664LN_S 665NM 666ac_ct_DUMPBIN 667DUMPBIN 668LD 669FGREP 670EGREP 671GREP 672SED 673am__fastdepCC_FALSE 674am__fastdepCC_TRUE 675CCDEPMODE 676am__nodep 677AMDEPBACKSLASH 678AMDEP_FALSE 679AMDEP_TRUE 680am__quote 681am__include 682DEPDIR 683OBJEXT 684EXEEXT 685ac_ct_CC 686CPPFLAGS 687LDFLAGS 688CFLAGS 689CC 690host_os 691host_vendor 692host_cpu 693host 694build_os 695build_vendor 696build_cpu 697build 698LIBTOOL 699AM_BACKSLASH 700AM_DEFAULT_VERBOSITY 701AM_DEFAULT_V 702AM_V 703am__untar 704am__tar 705AMTAR 706am__leading_dot 707SET_MAKE 708AWK 709mkdir_p 710MKDIR_P 711INSTALL_STRIP_PROGRAM 712STRIP 713install_sh 714MAKEINFO 715AUTOHEADER 716AUTOMAKE 717AUTOCONF 718ACLOCAL 719VERSION 720PACKAGE 721CYGPATH_W 722am__isrc 723INSTALL_DATA 724INSTALL_SCRIPT 725INSTALL_PROGRAM 726target_alias 727host_alias 728build_alias 729LIBS 730ECHO_T 731ECHO_N 732ECHO_C 733DEFS 734mandir 735localedir 736libdir 737psdir 738pdfdir 739dvidir 740htmldir 741infodir 742docdir 743oldincludedir 744includedir 745localstatedir 746sharedstatedir 747sysconfdir 748datadir 749datarootdir 750libexecdir 751sbindir 752bindir 753program_transform_name 754prefix 755exec_prefix 756PACKAGE_URL 757PACKAGE_BUGREPORT 758PACKAGE_STRING 759PACKAGE_VERSION 760PACKAGE_TARNAME 761PACKAGE_NAME 762PATH_SEPARATOR 763SHELL' 764ac_subst_files='' 765ac_user_opts=' 766enable_option_checking 767enable_silent_rules 768enable_shared 769enable_static 770with_pic 771enable_fast_install 772enable_dependency_tracking 773with_gnu_ld 774with_sysroot 775enable_libtool_lock 776enable_selective_werror 777enable_strict_compilation 778enable_malloc0returnsnull 779enable_unix_transport 780enable_tcp_transport 781enable_ipv6 782enable_local_transport 783with_lint 784enable_lint_library 785' 786 ac_precious_vars='build_alias 787host_alias 788target_alias 789CC 790CFLAGS 791LDFLAGS 792LIBS 793CPPFLAGS 794CPP 795PKG_CONFIG 796FS_CFLAGS 797FS_LIBS 798LINT 799LINT_FLAGS' 800 801 802# Initialize some variables set by options. 803ac_init_help= 804ac_init_version=false 805ac_unrecognized_opts= 806ac_unrecognized_sep= 807# The variables have the same names as the options, with 808# dashes changed to underlines. 809cache_file=/dev/null 810exec_prefix=NONE 811no_create= 812no_recursion= 813prefix=NONE 814program_prefix=NONE 815program_suffix=NONE 816program_transform_name=s,x,x, 817silent= 818site= 819srcdir= 820verbose= 821x_includes=NONE 822x_libraries=NONE 823 824# Installation directory options. 825# These are left unexpanded so users can "make install exec_prefix=/foo" 826# and all the variables that are supposed to be based on exec_prefix 827# by default will actually change. 828# Use braces instead of parens because sh, perl, etc. also accept them. 829# (The list follows the same order as the GNU Coding Standards.) 830bindir='${exec_prefix}/bin' 831sbindir='${exec_prefix}/sbin' 832libexecdir='${exec_prefix}/libexec' 833datarootdir='${prefix}/share' 834datadir='${datarootdir}' 835sysconfdir='${prefix}/etc' 836sharedstatedir='${prefix}/com' 837localstatedir='${prefix}/var' 838includedir='${prefix}/include' 839oldincludedir='/usr/include' 840docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 841infodir='${datarootdir}/info' 842htmldir='${docdir}' 843dvidir='${docdir}' 844pdfdir='${docdir}' 845psdir='${docdir}' 846libdir='${exec_prefix}/lib' 847localedir='${datarootdir}/locale' 848mandir='${datarootdir}/man' 849 850ac_prev= 851ac_dashdash= 852for ac_option 853do 854 # If the previous option needs an argument, assign it. 855 if test -n "$ac_prev"; then 856 eval $ac_prev=\$ac_option 857 ac_prev= 858 continue 859 fi 860 861 case $ac_option in 862 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 863 *=) ac_optarg= ;; 864 *) ac_optarg=yes ;; 865 esac 866 867 # Accept the important Cygnus configure options, so we can diagnose typos. 868 869 case $ac_dashdash$ac_option in 870 --) 871 ac_dashdash=yes ;; 872 873 -bindir | --bindir | --bindi | --bind | --bin | --bi) 874 ac_prev=bindir ;; 875 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 876 bindir=$ac_optarg ;; 877 878 -build | --build | --buil | --bui | --bu) 879 ac_prev=build_alias ;; 880 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 881 build_alias=$ac_optarg ;; 882 883 -cache-file | --cache-file | --cache-fil | --cache-fi \ 884 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 885 ac_prev=cache_file ;; 886 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 887 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 888 cache_file=$ac_optarg ;; 889 890 --config-cache | -C) 891 cache_file=config.cache ;; 892 893 -datadir | --datadir | --datadi | --datad) 894 ac_prev=datadir ;; 895 -datadir=* | --datadir=* | --datadi=* | --datad=*) 896 datadir=$ac_optarg ;; 897 898 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 899 | --dataroo | --dataro | --datar) 900 ac_prev=datarootdir ;; 901 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 902 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 903 datarootdir=$ac_optarg ;; 904 905 -disable-* | --disable-*) 906 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 907 # Reject names that are not valid shell variable names. 908 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 909 as_fn_error $? "invalid feature name: $ac_useropt" 910 ac_useropt_orig=$ac_useropt 911 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 912 case $ac_user_opts in 913 *" 914"enable_$ac_useropt" 915"*) ;; 916 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 917 ac_unrecognized_sep=', ';; 918 esac 919 eval enable_$ac_useropt=no ;; 920 921 -docdir | --docdir | --docdi | --doc | --do) 922 ac_prev=docdir ;; 923 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 924 docdir=$ac_optarg ;; 925 926 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 927 ac_prev=dvidir ;; 928 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 929 dvidir=$ac_optarg ;; 930 931 -enable-* | --enable-*) 932 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 933 # Reject names that are not valid shell variable names. 934 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 935 as_fn_error $? "invalid feature name: $ac_useropt" 936 ac_useropt_orig=$ac_useropt 937 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 938 case $ac_user_opts in 939 *" 940"enable_$ac_useropt" 941"*) ;; 942 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 943 ac_unrecognized_sep=', ';; 944 esac 945 eval enable_$ac_useropt=\$ac_optarg ;; 946 947 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 948 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 949 | --exec | --exe | --ex) 950 ac_prev=exec_prefix ;; 951 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 952 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 953 | --exec=* | --exe=* | --ex=*) 954 exec_prefix=$ac_optarg ;; 955 956 -gas | --gas | --ga | --g) 957 # Obsolete; use --with-gas. 958 with_gas=yes ;; 959 960 -help | --help | --hel | --he | -h) 961 ac_init_help=long ;; 962 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 963 ac_init_help=recursive ;; 964 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 965 ac_init_help=short ;; 966 967 -host | --host | --hos | --ho) 968 ac_prev=host_alias ;; 969 -host=* | --host=* | --hos=* | --ho=*) 970 host_alias=$ac_optarg ;; 971 972 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 973 ac_prev=htmldir ;; 974 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 975 | --ht=*) 976 htmldir=$ac_optarg ;; 977 978 -includedir | --includedir | --includedi | --included | --include \ 979 | --includ | --inclu | --incl | --inc) 980 ac_prev=includedir ;; 981 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 982 | --includ=* | --inclu=* | --incl=* | --inc=*) 983 includedir=$ac_optarg ;; 984 985 -infodir | --infodir | --infodi | --infod | --info | --inf) 986 ac_prev=infodir ;; 987 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 988 infodir=$ac_optarg ;; 989 990 -libdir | --libdir | --libdi | --libd) 991 ac_prev=libdir ;; 992 -libdir=* | --libdir=* | --libdi=* | --libd=*) 993 libdir=$ac_optarg ;; 994 995 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 996 | --libexe | --libex | --libe) 997 ac_prev=libexecdir ;; 998 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 999 | --libexe=* | --libex=* | --libe=*) 1000 libexecdir=$ac_optarg ;; 1001 1002 -localedir | --localedir | --localedi | --localed | --locale) 1003 ac_prev=localedir ;; 1004 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1005 localedir=$ac_optarg ;; 1006 1007 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1008 | --localstate | --localstat | --localsta | --localst | --locals) 1009 ac_prev=localstatedir ;; 1010 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1011 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1012 localstatedir=$ac_optarg ;; 1013 1014 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1015 ac_prev=mandir ;; 1016 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1017 mandir=$ac_optarg ;; 1018 1019 -nfp | --nfp | --nf) 1020 # Obsolete; use --without-fp. 1021 with_fp=no ;; 1022 1023 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1024 | --no-cr | --no-c | -n) 1025 no_create=yes ;; 1026 1027 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1028 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1029 no_recursion=yes ;; 1030 1031 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1032 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1033 | --oldin | --oldi | --old | --ol | --o) 1034 ac_prev=oldincludedir ;; 1035 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1036 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1037 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1038 oldincludedir=$ac_optarg ;; 1039 1040 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1041 ac_prev=prefix ;; 1042 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1043 prefix=$ac_optarg ;; 1044 1045 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1046 | --program-pre | --program-pr | --program-p) 1047 ac_prev=program_prefix ;; 1048 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1049 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1050 program_prefix=$ac_optarg ;; 1051 1052 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1053 | --program-suf | --program-su | --program-s) 1054 ac_prev=program_suffix ;; 1055 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1056 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1057 program_suffix=$ac_optarg ;; 1058 1059 -program-transform-name | --program-transform-name \ 1060 | --program-transform-nam | --program-transform-na \ 1061 | --program-transform-n | --program-transform- \ 1062 | --program-transform | --program-transfor \ 1063 | --program-transfo | --program-transf \ 1064 | --program-trans | --program-tran \ 1065 | --progr-tra | --program-tr | --program-t) 1066 ac_prev=program_transform_name ;; 1067 -program-transform-name=* | --program-transform-name=* \ 1068 | --program-transform-nam=* | --program-transform-na=* \ 1069 | --program-transform-n=* | --program-transform-=* \ 1070 | --program-transform=* | --program-transfor=* \ 1071 | --program-transfo=* | --program-transf=* \ 1072 | --program-trans=* | --program-tran=* \ 1073 | --progr-tra=* | --program-tr=* | --program-t=*) 1074 program_transform_name=$ac_optarg ;; 1075 1076 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1077 ac_prev=pdfdir ;; 1078 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1079 pdfdir=$ac_optarg ;; 1080 1081 -psdir | --psdir | --psdi | --psd | --ps) 1082 ac_prev=psdir ;; 1083 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1084 psdir=$ac_optarg ;; 1085 1086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1087 | -silent | --silent | --silen | --sile | --sil) 1088 silent=yes ;; 1089 1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1091 ac_prev=sbindir ;; 1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1093 | --sbi=* | --sb=*) 1094 sbindir=$ac_optarg ;; 1095 1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1098 | --sharedst | --shareds | --shared | --share | --shar \ 1099 | --sha | --sh) 1100 ac_prev=sharedstatedir ;; 1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1104 | --sha=* | --sh=*) 1105 sharedstatedir=$ac_optarg ;; 1106 1107 -site | --site | --sit) 1108 ac_prev=site ;; 1109 -site=* | --site=* | --sit=*) 1110 site=$ac_optarg ;; 1111 1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1113 ac_prev=srcdir ;; 1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1115 srcdir=$ac_optarg ;; 1116 1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1118 | --syscon | --sysco | --sysc | --sys | --sy) 1119 ac_prev=sysconfdir ;; 1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1122 sysconfdir=$ac_optarg ;; 1123 1124 -target | --target | --targe | --targ | --tar | --ta | --t) 1125 ac_prev=target_alias ;; 1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1127 target_alias=$ac_optarg ;; 1128 1129 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1130 verbose=yes ;; 1131 1132 -version | --version | --versio | --versi | --vers | -V) 1133 ac_init_version=: ;; 1134 1135 -with-* | --with-*) 1136 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1137 # Reject names that are not valid shell variable names. 1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1139 as_fn_error $? "invalid package name: $ac_useropt" 1140 ac_useropt_orig=$ac_useropt 1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1142 case $ac_user_opts in 1143 *" 1144"with_$ac_useropt" 1145"*) ;; 1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1147 ac_unrecognized_sep=', ';; 1148 esac 1149 eval with_$ac_useropt=\$ac_optarg ;; 1150 1151 -without-* | --without-*) 1152 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1153 # Reject names that are not valid shell variable names. 1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1155 as_fn_error $? "invalid package name: $ac_useropt" 1156 ac_useropt_orig=$ac_useropt 1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1158 case $ac_user_opts in 1159 *" 1160"with_$ac_useropt" 1161"*) ;; 1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1163 ac_unrecognized_sep=', ';; 1164 esac 1165 eval with_$ac_useropt=no ;; 1166 1167 --x) 1168 # Obsolete; use --with-x. 1169 with_x=yes ;; 1170 1171 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1172 | --x-incl | --x-inc | --x-in | --x-i) 1173 ac_prev=x_includes ;; 1174 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1175 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1176 x_includes=$ac_optarg ;; 1177 1178 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1179 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1180 ac_prev=x_libraries ;; 1181 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1182 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1183 x_libraries=$ac_optarg ;; 1184 1185 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1186Try \`$0 --help' for more information" 1187 ;; 1188 1189 *=*) 1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1191 # Reject names that are not valid shell variable names. 1192 case $ac_envvar in #( 1193 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1194 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1195 esac 1196 eval $ac_envvar=\$ac_optarg 1197 export $ac_envvar ;; 1198 1199 *) 1200 # FIXME: should be removed in autoconf 3.0. 1201 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1202 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1203 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1204 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1205 ;; 1206 1207 esac 1208done 1209 1210if test -n "$ac_prev"; then 1211 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1212 as_fn_error $? "missing argument to $ac_option" 1213fi 1214 1215if test -n "$ac_unrecognized_opts"; then 1216 case $enable_option_checking in 1217 no) ;; 1218 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1219 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1220 esac 1221fi 1222 1223# Check all directory arguments for consistency. 1224for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1225 datadir sysconfdir sharedstatedir localstatedir includedir \ 1226 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1227 libdir localedir mandir 1228do 1229 eval ac_val=\$$ac_var 1230 # Remove trailing slashes. 1231 case $ac_val in 1232 */ ) 1233 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1234 eval $ac_var=\$ac_val;; 1235 esac 1236 # Be sure to have absolute directory names. 1237 case $ac_val in 1238 [\\/$]* | ?:[\\/]* ) continue;; 1239 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1240 esac 1241 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1242done 1243 1244# There might be people who depend on the old broken behavior: `$host' 1245# used to hold the argument of --host etc. 1246# FIXME: To remove some day. 1247build=$build_alias 1248host=$host_alias 1249target=$target_alias 1250 1251# FIXME: To remove some day. 1252if test "x$host_alias" != x; then 1253 if test "x$build_alias" = x; then 1254 cross_compiling=maybe 1255 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1256 If a cross compiler is detected then cross compile mode will be used" >&2 1257 elif test "x$build_alias" != "x$host_alias"; then 1258 cross_compiling=yes 1259 fi 1260fi 1261 1262ac_tool_prefix= 1263test -n "$host_alias" && ac_tool_prefix=$host_alias- 1264 1265test "$silent" = yes && exec 6>/dev/null 1266 1267 1268ac_pwd=`pwd` && test -n "$ac_pwd" && 1269ac_ls_di=`ls -di .` && 1270ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1271 as_fn_error $? "working directory cannot be determined" 1272test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1273 as_fn_error $? "pwd does not report name of working directory" 1274 1275 1276# Find the source files, if location was not specified. 1277if test -z "$srcdir"; then 1278 ac_srcdir_defaulted=yes 1279 # Try the directory containing this script, then the parent directory. 1280 ac_confdir=`$as_dirname -- "$as_myself" || 1281$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1282 X"$as_myself" : 'X\(//\)[^/]' \| \ 1283 X"$as_myself" : 'X\(//\)$' \| \ 1284 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1285$as_echo X"$as_myself" | 1286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1287 s//\1/ 1288 q 1289 } 1290 /^X\(\/\/\)[^/].*/{ 1291 s//\1/ 1292 q 1293 } 1294 /^X\(\/\/\)$/{ 1295 s//\1/ 1296 q 1297 } 1298 /^X\(\/\).*/{ 1299 s//\1/ 1300 q 1301 } 1302 s/.*/./; q'` 1303 srcdir=$ac_confdir 1304 if test ! -r "$srcdir/$ac_unique_file"; then 1305 srcdir=.. 1306 fi 1307else 1308 ac_srcdir_defaulted=no 1309fi 1310if test ! -r "$srcdir/$ac_unique_file"; then 1311 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1312 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1313fi 1314ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1315ac_abs_confdir=`( 1316 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1317 pwd)` 1318# When building in place, set srcdir=. 1319if test "$ac_abs_confdir" = "$ac_pwd"; then 1320 srcdir=. 1321fi 1322# Remove unnecessary trailing slashes from srcdir. 1323# Double slashes in file names in object file debugging info 1324# mess up M-x gdb in Emacs. 1325case $srcdir in 1326*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1327esac 1328for ac_var in $ac_precious_vars; do 1329 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1330 eval ac_env_${ac_var}_value=\$${ac_var} 1331 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1332 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1333done 1334 1335# 1336# Report the --help message. 1337# 1338if test "$ac_init_help" = "long"; then 1339 # Omit some internal or obsolete options to make the list less imposing. 1340 # This message is too long to be a string in the A/UX 3.1 sh. 1341 cat <<_ACEOF 1342\`configure' configures libFS 1.0.5 to adapt to many kinds of systems. 1343 1344Usage: $0 [OPTION]... [VAR=VALUE]... 1345 1346To assign environment variables (e.g., CC, CFLAGS...), specify them as 1347VAR=VALUE. See below for descriptions of some of the useful variables. 1348 1349Defaults for the options are specified in brackets. 1350 1351Configuration: 1352 -h, --help display this help and exit 1353 --help=short display options specific to this package 1354 --help=recursive display the short help of all the included packages 1355 -V, --version display version information and exit 1356 -q, --quiet, --silent do not print \`checking ...' messages 1357 --cache-file=FILE cache test results in FILE [disabled] 1358 -C, --config-cache alias for \`--cache-file=config.cache' 1359 -n, --no-create do not create output files 1360 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1361 1362Installation directories: 1363 --prefix=PREFIX install architecture-independent files in PREFIX 1364 [$ac_default_prefix] 1365 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1366 [PREFIX] 1367 1368By default, \`make install' will install all the files in 1369\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1370an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1371for instance \`--prefix=\$HOME'. 1372 1373For better control, use the options below. 1374 1375Fine tuning of the installation directories: 1376 --bindir=DIR user executables [EPREFIX/bin] 1377 --sbindir=DIR system admin executables [EPREFIX/sbin] 1378 --libexecdir=DIR program executables [EPREFIX/libexec] 1379 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1380 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1381 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1382 --libdir=DIR object code libraries [EPREFIX/lib] 1383 --includedir=DIR C header files [PREFIX/include] 1384 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1385 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1386 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1387 --infodir=DIR info documentation [DATAROOTDIR/info] 1388 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1389 --mandir=DIR man documentation [DATAROOTDIR/man] 1390 --docdir=DIR documentation root [DATAROOTDIR/doc/libFS] 1391 --htmldir=DIR html documentation [DOCDIR] 1392 --dvidir=DIR dvi documentation [DOCDIR] 1393 --pdfdir=DIR pdf documentation [DOCDIR] 1394 --psdir=DIR ps documentation [DOCDIR] 1395_ACEOF 1396 1397 cat <<\_ACEOF 1398 1399Program names: 1400 --program-prefix=PREFIX prepend PREFIX to installed program names 1401 --program-suffix=SUFFIX append SUFFIX to installed program names 1402 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1403 1404System types: 1405 --build=BUILD configure for building on BUILD [guessed] 1406 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1407_ACEOF 1408fi 1409 1410if test -n "$ac_init_help"; then 1411 case $ac_init_help in 1412 short | recursive ) echo "Configuration of libFS 1.0.5:";; 1413 esac 1414 cat <<\_ACEOF 1415 1416Optional Features: 1417 --disable-option-checking ignore unrecognized --enable/--with options 1418 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1419 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1420 --enable-silent-rules less verbose build output (undo: "make V=1") 1421 --disable-silent-rules verbose build output (undo: "make V=0") 1422 --enable-shared[=PKGS] build shared libraries [default=yes] 1423 --enable-static[=PKGS] build static libraries [default=yes] 1424 --enable-fast-install[=PKGS] 1425 optimize for fast installation [default=yes] 1426 --enable-dependency-tracking 1427 do not reject slow dependency extractors 1428 --disable-dependency-tracking 1429 speeds up one-time build 1430 --disable-libtool-lock avoid locking (might break parallel builds) 1431 --disable-selective-werror 1432 Turn off selective compiler errors. (default: 1433 enabled) 1434 --enable-strict-compilation 1435 Enable all warnings from compiler and make them 1436 errors (default: disabled) 1437 --enable-malloc0returnsnull 1438 malloc(0) returns NULL (default: auto) 1439 --enable-unix-transport Enable UNIX domain socket transport 1440 --enable-tcp-transport Enable TCP socket transport 1441 --enable-ipv6 Enable IPv6 support 1442 --enable-local-transport 1443 Enable os-specific local transport 1444 --enable-lint-library Create lint library (default: disabled) 1445 1446Optional Packages: 1447 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1448 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1449 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1450 both] 1451 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1452 --with-sysroot=DIR Search for dependent libraries within DIR 1453 (or the compiler's sysroot if not specified). 1454 --with-lint Use a lint-style source code checker (default: 1455 disabled) 1456 1457Some influential environment variables: 1458 CC C compiler command 1459 CFLAGS C compiler flags 1460 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1461 nonstandard directory <lib dir> 1462 LIBS libraries to pass to the linker, e.g. -l<library> 1463 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1464 you have headers in a nonstandard directory <include dir> 1465 CPP C preprocessor 1466 PKG_CONFIG path to pkg-config utility 1467 FS_CFLAGS C compiler flags for FS, overriding pkg-config 1468 FS_LIBS linker flags for FS, overriding pkg-config 1469 LINT Path to a lint-style command 1470 LINT_FLAGS Flags for the lint-style command 1471 1472Use these variables to override the choices made by `configure' or to help 1473it to find libraries and programs with nonstandard names/locations. 1474 1475Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1476_ACEOF 1477ac_status=$? 1478fi 1479 1480if test "$ac_init_help" = "recursive"; then 1481 # If there are subdirs, report their specific --help. 1482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1483 test -d "$ac_dir" || 1484 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1485 continue 1486 ac_builddir=. 1487 1488case "$ac_dir" in 1489.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1490*) 1491 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1492 # A ".." for each directory in $ac_dir_suffix. 1493 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1494 case $ac_top_builddir_sub in 1495 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1496 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1497 esac ;; 1498esac 1499ac_abs_top_builddir=$ac_pwd 1500ac_abs_builddir=$ac_pwd$ac_dir_suffix 1501# for backward compatibility: 1502ac_top_builddir=$ac_top_build_prefix 1503 1504case $srcdir in 1505 .) # We are building in place. 1506 ac_srcdir=. 1507 ac_top_srcdir=$ac_top_builddir_sub 1508 ac_abs_top_srcdir=$ac_pwd ;; 1509 [\\/]* | ?:[\\/]* ) # Absolute name. 1510 ac_srcdir=$srcdir$ac_dir_suffix; 1511 ac_top_srcdir=$srcdir 1512 ac_abs_top_srcdir=$srcdir ;; 1513 *) # Relative name. 1514 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1515 ac_top_srcdir=$ac_top_build_prefix$srcdir 1516 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1517esac 1518ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1519 1520 cd "$ac_dir" || { ac_status=$?; continue; } 1521 # Check for guested configure. 1522 if test -f "$ac_srcdir/configure.gnu"; then 1523 echo && 1524 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1525 elif test -f "$ac_srcdir/configure"; then 1526 echo && 1527 $SHELL "$ac_srcdir/configure" --help=recursive 1528 else 1529 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1530 fi || ac_status=$? 1531 cd "$ac_pwd" || { ac_status=$?; break; } 1532 done 1533fi 1534 1535test -n "$ac_init_help" && exit $ac_status 1536if $ac_init_version; then 1537 cat <<\_ACEOF 1538libFS configure 1.0.5 1539generated by GNU Autoconf 2.68 1540 1541Copyright (C) 2010 Free Software Foundation, Inc. 1542This configure script is free software; the Free Software Foundation 1543gives unlimited permission to copy, distribute and modify it. 1544_ACEOF 1545 exit 1546fi 1547 1548## ------------------------ ## 1549## Autoconf initialization. ## 1550## ------------------------ ## 1551 1552# ac_fn_c_try_compile LINENO 1553# -------------------------- 1554# Try to compile conftest.$ac_ext, and return whether this succeeded. 1555ac_fn_c_try_compile () 1556{ 1557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1558 rm -f conftest.$ac_objext 1559 if { { ac_try="$ac_compile" 1560case "(($ac_try" in 1561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1562 *) ac_try_echo=$ac_try;; 1563esac 1564eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1565$as_echo "$ac_try_echo"; } >&5 1566 (eval "$ac_compile") 2>conftest.err 1567 ac_status=$? 1568 if test -s conftest.err; then 1569 grep -v '^ *+' conftest.err >conftest.er1 1570 cat conftest.er1 >&5 1571 mv -f conftest.er1 conftest.err 1572 fi 1573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1574 test $ac_status = 0; } && { 1575 test -z "$ac_c_werror_flag" || 1576 test ! -s conftest.err 1577 } && test -s conftest.$ac_objext; then : 1578 ac_retval=0 1579else 1580 $as_echo "$as_me: failed program was:" >&5 1581sed 's/^/| /' conftest.$ac_ext >&5 1582 1583 ac_retval=1 1584fi 1585 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1586 as_fn_set_status $ac_retval 1587 1588} # ac_fn_c_try_compile 1589 1590# ac_fn_c_try_link LINENO 1591# ----------------------- 1592# Try to link conftest.$ac_ext, and return whether this succeeded. 1593ac_fn_c_try_link () 1594{ 1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1596 rm -f conftest.$ac_objext conftest$ac_exeext 1597 if { { ac_try="$ac_link" 1598case "(($ac_try" in 1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1600 *) ac_try_echo=$ac_try;; 1601esac 1602eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1603$as_echo "$ac_try_echo"; } >&5 1604 (eval "$ac_link") 2>conftest.err 1605 ac_status=$? 1606 if test -s conftest.err; then 1607 grep -v '^ *+' conftest.err >conftest.er1 1608 cat conftest.er1 >&5 1609 mv -f conftest.er1 conftest.err 1610 fi 1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1612 test $ac_status = 0; } && { 1613 test -z "$ac_c_werror_flag" || 1614 test ! -s conftest.err 1615 } && test -s conftest$ac_exeext && { 1616 test "$cross_compiling" = yes || 1617 $as_test_x conftest$ac_exeext 1618 }; then : 1619 ac_retval=0 1620else 1621 $as_echo "$as_me: failed program was:" >&5 1622sed 's/^/| /' conftest.$ac_ext >&5 1623 1624 ac_retval=1 1625fi 1626 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1627 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1628 # interfere with the next link command; also delete a directory that is 1629 # left behind by Apple's compiler. We do this before executing the actions. 1630 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1632 as_fn_set_status $ac_retval 1633 1634} # ac_fn_c_try_link 1635 1636# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1637# ------------------------------------------------------- 1638# Tests whether HEADER exists and can be compiled using the include files in 1639# INCLUDES, setting the cache variable VAR accordingly. 1640ac_fn_c_check_header_compile () 1641{ 1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1644$as_echo_n "checking for $2... " >&6; } 1645if eval \${$3+:} false; then : 1646 $as_echo_n "(cached) " >&6 1647else 1648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1649/* end confdefs.h. */ 1650$4 1651#include <$2> 1652_ACEOF 1653if ac_fn_c_try_compile "$LINENO"; then : 1654 eval "$3=yes" 1655else 1656 eval "$3=no" 1657fi 1658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1659fi 1660eval ac_res=\$$3 1661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1662$as_echo "$ac_res" >&6; } 1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1664 1665} # ac_fn_c_check_header_compile 1666 1667# ac_fn_c_try_cpp LINENO 1668# ---------------------- 1669# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1670ac_fn_c_try_cpp () 1671{ 1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1673 if { { ac_try="$ac_cpp conftest.$ac_ext" 1674case "(($ac_try" in 1675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1676 *) ac_try_echo=$ac_try;; 1677esac 1678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1679$as_echo "$ac_try_echo"; } >&5 1680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1681 ac_status=$? 1682 if test -s conftest.err; then 1683 grep -v '^ *+' conftest.err >conftest.er1 1684 cat conftest.er1 >&5 1685 mv -f conftest.er1 conftest.err 1686 fi 1687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1688 test $ac_status = 0; } > conftest.i && { 1689 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1690 test ! -s conftest.err 1691 }; then : 1692 ac_retval=0 1693else 1694 $as_echo "$as_me: failed program was:" >&5 1695sed 's/^/| /' conftest.$ac_ext >&5 1696 1697 ac_retval=1 1698fi 1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1700 as_fn_set_status $ac_retval 1701 1702} # ac_fn_c_try_cpp 1703 1704# ac_fn_c_try_run LINENO 1705# ---------------------- 1706# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1707# that executables *can* be run. 1708ac_fn_c_try_run () 1709{ 1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1711 if { { ac_try="$ac_link" 1712case "(($ac_try" in 1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1714 *) ac_try_echo=$ac_try;; 1715esac 1716eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1717$as_echo "$ac_try_echo"; } >&5 1718 (eval "$ac_link") 2>&5 1719 ac_status=$? 1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1721 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1722 { { case "(($ac_try" in 1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1724 *) ac_try_echo=$ac_try;; 1725esac 1726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1727$as_echo "$ac_try_echo"; } >&5 1728 (eval "$ac_try") 2>&5 1729 ac_status=$? 1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1731 test $ac_status = 0; }; }; then : 1732 ac_retval=0 1733else 1734 $as_echo "$as_me: program exited with status $ac_status" >&5 1735 $as_echo "$as_me: failed program was:" >&5 1736sed 's/^/| /' conftest.$ac_ext >&5 1737 1738 ac_retval=$ac_status 1739fi 1740 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1742 as_fn_set_status $ac_retval 1743 1744} # ac_fn_c_try_run 1745 1746# ac_fn_c_check_func LINENO FUNC VAR 1747# ---------------------------------- 1748# Tests whether FUNC exists, setting the cache variable VAR accordingly 1749ac_fn_c_check_func () 1750{ 1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1753$as_echo_n "checking for $2... " >&6; } 1754if eval \${$3+:} false; then : 1755 $as_echo_n "(cached) " >&6 1756else 1757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1758/* end confdefs.h. */ 1759/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1760 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1761#define $2 innocuous_$2 1762 1763/* System header to define __stub macros and hopefully few prototypes, 1764 which can conflict with char $2 (); below. 1765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1766 <limits.h> exists even on freestanding compilers. */ 1767 1768#ifdef __STDC__ 1769# include <limits.h> 1770#else 1771# include <assert.h> 1772#endif 1773 1774#undef $2 1775 1776/* Override any GCC internal prototype to avoid an error. 1777 Use char because int might match the return type of a GCC 1778 builtin and then its argument prototype would still apply. */ 1779#ifdef __cplusplus 1780extern "C" 1781#endif 1782char $2 (); 1783/* The GNU C library defines this for functions which it implements 1784 to always fail with ENOSYS. Some functions are actually named 1785 something starting with __ and the normal name is an alias. */ 1786#if defined __stub_$2 || defined __stub___$2 1787choke me 1788#endif 1789 1790int 1791main () 1792{ 1793return $2 (); 1794 ; 1795 return 0; 1796} 1797_ACEOF 1798if ac_fn_c_try_link "$LINENO"; then : 1799 eval "$3=yes" 1800else 1801 eval "$3=no" 1802fi 1803rm -f core conftest.err conftest.$ac_objext \ 1804 conftest$ac_exeext conftest.$ac_ext 1805fi 1806eval ac_res=\$$3 1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1808$as_echo "$ac_res" >&6; } 1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1810 1811} # ac_fn_c_check_func 1812 1813# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1814# --------------------------------------------- 1815# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1816# accordingly. 1817ac_fn_c_check_decl () 1818{ 1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1820 as_decl_name=`echo $2|sed 's/ *(.*//'` 1821 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1823$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1824if eval \${$3+:} false; then : 1825 $as_echo_n "(cached) " >&6 1826else 1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1828/* end confdefs.h. */ 1829$4 1830int 1831main () 1832{ 1833#ifndef $as_decl_name 1834#ifdef __cplusplus 1835 (void) $as_decl_use; 1836#else 1837 (void) $as_decl_name; 1838#endif 1839#endif 1840 1841 ; 1842 return 0; 1843} 1844_ACEOF 1845if ac_fn_c_try_compile "$LINENO"; then : 1846 eval "$3=yes" 1847else 1848 eval "$3=no" 1849fi 1850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1851fi 1852eval ac_res=\$$3 1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1854$as_echo "$ac_res" >&6; } 1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1856 1857} # ac_fn_c_check_decl 1858 1859# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1860# ---------------------------------------------------- 1861# Tries to find if the field MEMBER exists in type AGGR, after including 1862# INCLUDES, setting cache variable VAR accordingly. 1863ac_fn_c_check_member () 1864{ 1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1867$as_echo_n "checking for $2.$3... " >&6; } 1868if eval \${$4+:} false; then : 1869 $as_echo_n "(cached) " >&6 1870else 1871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1872/* end confdefs.h. */ 1873$5 1874int 1875main () 1876{ 1877static $2 ac_aggr; 1878if (ac_aggr.$3) 1879return 0; 1880 ; 1881 return 0; 1882} 1883_ACEOF 1884if ac_fn_c_try_compile "$LINENO"; then : 1885 eval "$4=yes" 1886else 1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1888/* end confdefs.h. */ 1889$5 1890int 1891main () 1892{ 1893static $2 ac_aggr; 1894if (sizeof ac_aggr.$3) 1895return 0; 1896 ; 1897 return 0; 1898} 1899_ACEOF 1900if ac_fn_c_try_compile "$LINENO"; then : 1901 eval "$4=yes" 1902else 1903 eval "$4=no" 1904fi 1905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1906fi 1907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1908fi 1909eval ac_res=\$$4 1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1911$as_echo "$ac_res" >&6; } 1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1913 1914} # ac_fn_c_check_member 1915 1916# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1917# ------------------------------------------- 1918# Tests whether TYPE exists after having included INCLUDES, setting cache 1919# variable VAR accordingly. 1920ac_fn_c_check_type () 1921{ 1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1924$as_echo_n "checking for $2... " >&6; } 1925if eval \${$3+:} false; then : 1926 $as_echo_n "(cached) " >&6 1927else 1928 eval "$3=no" 1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1930/* end confdefs.h. */ 1931$4 1932int 1933main () 1934{ 1935if (sizeof ($2)) 1936 return 0; 1937 ; 1938 return 0; 1939} 1940_ACEOF 1941if ac_fn_c_try_compile "$LINENO"; then : 1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1943/* end confdefs.h. */ 1944$4 1945int 1946main () 1947{ 1948if (sizeof (($2))) 1949 return 0; 1950 ; 1951 return 0; 1952} 1953_ACEOF 1954if ac_fn_c_try_compile "$LINENO"; then : 1955 1956else 1957 eval "$3=yes" 1958fi 1959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1960fi 1961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1962fi 1963eval ac_res=\$$3 1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1965$as_echo "$ac_res" >&6; } 1966 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1967 1968} # ac_fn_c_check_type 1969cat >config.log <<_ACEOF 1970This file contains any messages produced by compilers while 1971running configure, to aid debugging if configure makes a mistake. 1972 1973It was created by libFS $as_me 1.0.5, which was 1974generated by GNU Autoconf 2.68. Invocation command line was 1975 1976 $ $0 $@ 1977 1978_ACEOF 1979exec 5>>config.log 1980{ 1981cat <<_ASUNAME 1982## --------- ## 1983## Platform. ## 1984## --------- ## 1985 1986hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1987uname -m = `(uname -m) 2>/dev/null || echo unknown` 1988uname -r = `(uname -r) 2>/dev/null || echo unknown` 1989uname -s = `(uname -s) 2>/dev/null || echo unknown` 1990uname -v = `(uname -v) 2>/dev/null || echo unknown` 1991 1992/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1993/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1994 1995/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1996/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1997/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1998/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1999/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2000/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2001/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2002 2003_ASUNAME 2004 2005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2006for as_dir in $PATH 2007do 2008 IFS=$as_save_IFS 2009 test -z "$as_dir" && as_dir=. 2010 $as_echo "PATH: $as_dir" 2011 done 2012IFS=$as_save_IFS 2013 2014} >&5 2015 2016cat >&5 <<_ACEOF 2017 2018 2019## ----------- ## 2020## Core tests. ## 2021## ----------- ## 2022 2023_ACEOF 2024 2025 2026# Keep a trace of the command line. 2027# Strip out --no-create and --no-recursion so they do not pile up. 2028# Strip out --silent because we don't want to record it for future runs. 2029# Also quote any args containing shell meta-characters. 2030# Make two passes to allow for proper duplicate-argument suppression. 2031ac_configure_args= 2032ac_configure_args0= 2033ac_configure_args1= 2034ac_must_keep_next=false 2035for ac_pass in 1 2 2036do 2037 for ac_arg 2038 do 2039 case $ac_arg in 2040 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2041 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2042 | -silent | --silent | --silen | --sile | --sil) 2043 continue ;; 2044 *\'*) 2045 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2046 esac 2047 case $ac_pass in 2048 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2049 2) 2050 as_fn_append ac_configure_args1 " '$ac_arg'" 2051 if test $ac_must_keep_next = true; then 2052 ac_must_keep_next=false # Got value, back to normal. 2053 else 2054 case $ac_arg in 2055 *=* | --config-cache | -C | -disable-* | --disable-* \ 2056 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2057 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2058 | -with-* | --with-* | -without-* | --without-* | --x) 2059 case "$ac_configure_args0 " in 2060 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2061 esac 2062 ;; 2063 -* ) ac_must_keep_next=true ;; 2064 esac 2065 fi 2066 as_fn_append ac_configure_args " '$ac_arg'" 2067 ;; 2068 esac 2069 done 2070done 2071{ ac_configure_args0=; unset ac_configure_args0;} 2072{ ac_configure_args1=; unset ac_configure_args1;} 2073 2074# When interrupted or exit'd, cleanup temporary files, and complete 2075# config.log. We remove comments because anyway the quotes in there 2076# would cause problems or look ugly. 2077# WARNING: Use '\'' to represent an apostrophe within the trap. 2078# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2079trap 'exit_status=$? 2080 # Save into config.log some information that might help in debugging. 2081 { 2082 echo 2083 2084 $as_echo "## ---------------- ## 2085## Cache variables. ## 2086## ---------------- ##" 2087 echo 2088 # The following way of writing the cache mishandles newlines in values, 2089( 2090 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2091 eval ac_val=\$$ac_var 2092 case $ac_val in #( 2093 *${as_nl}*) 2094 case $ac_var in #( 2095 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2096$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2097 esac 2098 case $ac_var in #( 2099 _ | IFS | as_nl) ;; #( 2100 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2101 *) { eval $ac_var=; unset $ac_var;} ;; 2102 esac ;; 2103 esac 2104 done 2105 (set) 2>&1 | 2106 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2107 *${as_nl}ac_space=\ *) 2108 sed -n \ 2109 "s/'\''/'\''\\\\'\'''\''/g; 2110 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2111 ;; #( 2112 *) 2113 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2114 ;; 2115 esac | 2116 sort 2117) 2118 echo 2119 2120 $as_echo "## ----------------- ## 2121## Output variables. ## 2122## ----------------- ##" 2123 echo 2124 for ac_var in $ac_subst_vars 2125 do 2126 eval ac_val=\$$ac_var 2127 case $ac_val in 2128 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2129 esac 2130 $as_echo "$ac_var='\''$ac_val'\''" 2131 done | sort 2132 echo 2133 2134 if test -n "$ac_subst_files"; then 2135 $as_echo "## ------------------- ## 2136## File substitutions. ## 2137## ------------------- ##" 2138 echo 2139 for ac_var in $ac_subst_files 2140 do 2141 eval ac_val=\$$ac_var 2142 case $ac_val in 2143 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2144 esac 2145 $as_echo "$ac_var='\''$ac_val'\''" 2146 done | sort 2147 echo 2148 fi 2149 2150 if test -s confdefs.h; then 2151 $as_echo "## ----------- ## 2152## confdefs.h. ## 2153## ----------- ##" 2154 echo 2155 cat confdefs.h 2156 echo 2157 fi 2158 test "$ac_signal" != 0 && 2159 $as_echo "$as_me: caught signal $ac_signal" 2160 $as_echo "$as_me: exit $exit_status" 2161 } >&5 2162 rm -f core *.core core.conftest.* && 2163 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2164 exit $exit_status 2165' 0 2166for ac_signal in 1 2 13 15; do 2167 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2168done 2169ac_signal=0 2170 2171# confdefs.h avoids OS command line length limits that DEFS can exceed. 2172rm -f -r conftest* confdefs.h 2173 2174$as_echo "/* confdefs.h */" > confdefs.h 2175 2176# Predefined preprocessor variables. 2177 2178cat >>confdefs.h <<_ACEOF 2179#define PACKAGE_NAME "$PACKAGE_NAME" 2180_ACEOF 2181 2182cat >>confdefs.h <<_ACEOF 2183#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2184_ACEOF 2185 2186cat >>confdefs.h <<_ACEOF 2187#define PACKAGE_VERSION "$PACKAGE_VERSION" 2188_ACEOF 2189 2190cat >>confdefs.h <<_ACEOF 2191#define PACKAGE_STRING "$PACKAGE_STRING" 2192_ACEOF 2193 2194cat >>confdefs.h <<_ACEOF 2195#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2196_ACEOF 2197 2198cat >>confdefs.h <<_ACEOF 2199#define PACKAGE_URL "$PACKAGE_URL" 2200_ACEOF 2201 2202 2203# Let the site file select an alternate cache file if it wants to. 2204# Prefer an explicitly selected file to automatically selected ones. 2205ac_site_file1=NONE 2206ac_site_file2=NONE 2207if test -n "$CONFIG_SITE"; then 2208 # We do not want a PATH search for config.site. 2209 case $CONFIG_SITE in #(( 2210 -*) ac_site_file1=./$CONFIG_SITE;; 2211 */*) ac_site_file1=$CONFIG_SITE;; 2212 *) ac_site_file1=./$CONFIG_SITE;; 2213 esac 2214elif test "x$prefix" != xNONE; then 2215 ac_site_file1=$prefix/share/config.site 2216 ac_site_file2=$prefix/etc/config.site 2217else 2218 ac_site_file1=$ac_default_prefix/share/config.site 2219 ac_site_file2=$ac_default_prefix/etc/config.site 2220fi 2221for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2222do 2223 test "x$ac_site_file" = xNONE && continue 2224 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2225 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2226$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2227 sed 's/^/| /' "$ac_site_file" >&5 2228 . "$ac_site_file" \ 2229 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2230$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2231as_fn_error $? "failed to load site script $ac_site_file 2232See \`config.log' for more details" "$LINENO" 5; } 2233 fi 2234done 2235 2236if test -r "$cache_file"; then 2237 # Some versions of bash will fail to source /dev/null (special files 2238 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2239 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2240 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2241$as_echo "$as_me: loading cache $cache_file" >&6;} 2242 case $cache_file in 2243 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2244 *) . "./$cache_file";; 2245 esac 2246 fi 2247else 2248 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2249$as_echo "$as_me: creating cache $cache_file" >&6;} 2250 >$cache_file 2251fi 2252 2253# Check that the precious variables saved in the cache have kept the same 2254# value. 2255ac_cache_corrupted=false 2256for ac_var in $ac_precious_vars; do 2257 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2258 eval ac_new_set=\$ac_env_${ac_var}_set 2259 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2260 eval ac_new_val=\$ac_env_${ac_var}_value 2261 case $ac_old_set,$ac_new_set in 2262 set,) 2263 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2264$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2265 ac_cache_corrupted=: ;; 2266 ,set) 2267 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2268$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2269 ac_cache_corrupted=: ;; 2270 ,);; 2271 *) 2272 if test "x$ac_old_val" != "x$ac_new_val"; then 2273 # differences in whitespace do not lead to failure. 2274 ac_old_val_w=`echo x $ac_old_val` 2275 ac_new_val_w=`echo x $ac_new_val` 2276 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2277 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2278$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2279 ac_cache_corrupted=: 2280 else 2281 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2282$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2283 eval $ac_var=\$ac_old_val 2284 fi 2285 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2286$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2287 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2288$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2289 fi;; 2290 esac 2291 # Pass precious variables to config.status. 2292 if test "$ac_new_set" = set; then 2293 case $ac_new_val in 2294 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2295 *) ac_arg=$ac_var=$ac_new_val ;; 2296 esac 2297 case " $ac_configure_args " in 2298 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2299 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2300 esac 2301 fi 2302done 2303if $ac_cache_corrupted; then 2304 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2305$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2306 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2307$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2308 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2309fi 2310## -------------------- ## 2311## Main body of script. ## 2312## -------------------- ## 2313 2314ac_ext=c 2315ac_cpp='$CPP $CPPFLAGS' 2316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2318ac_compiler_gnu=$ac_cv_c_compiler_gnu 2319 2320 2321 2322ac_config_headers="$ac_config_headers config.h" 2323 2324 2325# Initialize Automake 2326am__api_version='1.13' 2327 2328ac_aux_dir= 2329for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2330 if test -f "$ac_dir/install-sh"; then 2331 ac_aux_dir=$ac_dir 2332 ac_install_sh="$ac_aux_dir/install-sh -c" 2333 break 2334 elif test -f "$ac_dir/install.sh"; then 2335 ac_aux_dir=$ac_dir 2336 ac_install_sh="$ac_aux_dir/install.sh -c" 2337 break 2338 elif test -f "$ac_dir/shtool"; then 2339 ac_aux_dir=$ac_dir 2340 ac_install_sh="$ac_aux_dir/shtool install -c" 2341 break 2342 fi 2343done 2344if test -z "$ac_aux_dir"; then 2345 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2346fi 2347 2348# These three variables are undocumented and unsupported, 2349# and are intended to be withdrawn in a future Autoconf release. 2350# They can cause serious problems if a builder's source tree is in a directory 2351# whose full name contains unusual characters. 2352ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2353ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2354ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2355 2356 2357# Find a good install program. We prefer a C program (faster), 2358# so one script is as good as another. But avoid the broken or 2359# incompatible versions: 2360# SysV /etc/install, /usr/sbin/install 2361# SunOS /usr/etc/install 2362# IRIX /sbin/install 2363# AIX /bin/install 2364# AmigaOS /C/install, which installs bootblocks on floppy discs 2365# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2366# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2367# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2368# OS/2's system install, which has a completely different semantic 2369# ./install, which can be erroneously created by make from ./install.sh. 2370# Reject install programs that cannot install multiple files. 2371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2372$as_echo_n "checking for a BSD-compatible install... " >&6; } 2373if test -z "$INSTALL"; then 2374if ${ac_cv_path_install+:} false; then : 2375 $as_echo_n "(cached) " >&6 2376else 2377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2378for as_dir in $PATH 2379do 2380 IFS=$as_save_IFS 2381 test -z "$as_dir" && as_dir=. 2382 # Account for people who put trailing slashes in PATH elements. 2383case $as_dir/ in #(( 2384 ./ | .// | /[cC]/* | \ 2385 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2386 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2387 /usr/ucb/* ) ;; 2388 *) 2389 # OSF1 and SCO ODT 3.0 have their own names for install. 2390 # Don't use installbsd from OSF since it installs stuff as root 2391 # by default. 2392 for ac_prog in ginstall scoinst install; do 2393 for ac_exec_ext in '' $ac_executable_extensions; do 2394 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2395 if test $ac_prog = install && 2396 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2397 # AIX install. It has an incompatible calling convention. 2398 : 2399 elif test $ac_prog = install && 2400 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2401 # program-specific install script used by HP pwplus--don't use. 2402 : 2403 else 2404 rm -rf conftest.one conftest.two conftest.dir 2405 echo one > conftest.one 2406 echo two > conftest.two 2407 mkdir conftest.dir 2408 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2409 test -s conftest.one && test -s conftest.two && 2410 test -s conftest.dir/conftest.one && 2411 test -s conftest.dir/conftest.two 2412 then 2413 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2414 break 3 2415 fi 2416 fi 2417 fi 2418 done 2419 done 2420 ;; 2421esac 2422 2423 done 2424IFS=$as_save_IFS 2425 2426rm -rf conftest.one conftest.two conftest.dir 2427 2428fi 2429 if test "${ac_cv_path_install+set}" = set; then 2430 INSTALL=$ac_cv_path_install 2431 else 2432 # As a last resort, use the slow shell script. Don't cache a 2433 # value for INSTALL within a source directory, because that will 2434 # break other packages using the cache if that directory is 2435 # removed, or if the value is a relative name. 2436 INSTALL=$ac_install_sh 2437 fi 2438fi 2439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2440$as_echo "$INSTALL" >&6; } 2441 2442# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2443# It thinks the first close brace ends the variable substitution. 2444test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2445 2446test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2447 2448test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2449 2450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2451$as_echo_n "checking whether build environment is sane... " >&6; } 2452# Reject unsafe characters in $srcdir or the absolute working directory 2453# name. Accept space and tab only in the latter. 2454am_lf=' 2455' 2456case `pwd` in 2457 *[\\\"\#\$\&\'\`$am_lf]*) 2458 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2459esac 2460case $srcdir in 2461 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2462 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2463esac 2464 2465# Do 'set' in a subshell so we don't clobber the current shell's 2466# arguments. Must try -L first in case configure is actually a 2467# symlink; some systems play weird games with the mod time of symlinks 2468# (eg FreeBSD returns the mod time of the symlink's containing 2469# directory). 2470if ( 2471 am_has_slept=no 2472 for am_try in 1 2; do 2473 echo "timestamp, slept: $am_has_slept" > conftest.file 2474 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2475 if test "$*" = "X"; then 2476 # -L didn't work. 2477 set X `ls -t "$srcdir/configure" conftest.file` 2478 fi 2479 if test "$*" != "X $srcdir/configure conftest.file" \ 2480 && test "$*" != "X conftest.file $srcdir/configure"; then 2481 2482 # If neither matched, then we have a broken ls. This can happen 2483 # if, for instance, CONFIG_SHELL is bash and it inherits a 2484 # broken ls alias from the environment. This has actually 2485 # happened. Such a system could not be considered "sane". 2486 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2487 alias in your environment" "$LINENO" 5 2488 fi 2489 if test "$2" = conftest.file || test $am_try -eq 2; then 2490 break 2491 fi 2492 # Just in case. 2493 sleep 1 2494 am_has_slept=yes 2495 done 2496 test "$2" = conftest.file 2497 ) 2498then 2499 # Ok. 2500 : 2501else 2502 as_fn_error $? "newly created file is older than distributed files! 2503Check your system clock" "$LINENO" 5 2504fi 2505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2506$as_echo "yes" >&6; } 2507# If we didn't sleep, we still need to ensure time stamps of config.status and 2508# generated files are strictly newer. 2509am_sleep_pid= 2510if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2511 ( sleep 1 ) & 2512 am_sleep_pid=$! 2513fi 2514 2515rm -f conftest.file 2516 2517test "$program_prefix" != NONE && 2518 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2519# Use a double $ so make ignores it. 2520test "$program_suffix" != NONE && 2521 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2522# Double any \ or $. 2523# By default was `s,x,x', remove it if useless. 2524ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2525program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2526 2527# expand $ac_aux_dir to an absolute path 2528am_aux_dir=`cd $ac_aux_dir && pwd` 2529 2530if test x"${MISSING+set}" != xset; then 2531 case $am_aux_dir in 2532 *\ * | *\ *) 2533 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2534 *) 2535 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2536 esac 2537fi 2538# Use eval to expand $SHELL 2539if eval "$MISSING --is-lightweight"; then 2540 am_missing_run="$MISSING " 2541else 2542 am_missing_run= 2543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2544$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2545fi 2546 2547if test x"${install_sh}" != xset; then 2548 case $am_aux_dir in 2549 *\ * | *\ *) 2550 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2551 *) 2552 install_sh="\${SHELL} $am_aux_dir/install-sh" 2553 esac 2554fi 2555 2556# Installed binaries are usually stripped using 'strip' when the user 2557# run "make install-strip". However 'strip' might not be the right 2558# tool to use in cross-compilation environments, therefore Automake 2559# will honor the 'STRIP' environment variable to overrule this program. 2560if test "$cross_compiling" != no; then 2561 if test -n "$ac_tool_prefix"; then 2562 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2563set dummy ${ac_tool_prefix}strip; ac_word=$2 2564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2565$as_echo_n "checking for $ac_word... " >&6; } 2566if ${ac_cv_prog_STRIP+:} false; then : 2567 $as_echo_n "(cached) " >&6 2568else 2569 if test -n "$STRIP"; then 2570 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2571else 2572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2573for as_dir in $PATH 2574do 2575 IFS=$as_save_IFS 2576 test -z "$as_dir" && as_dir=. 2577 for ac_exec_ext in '' $ac_executable_extensions; do 2578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2579 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2581 break 2 2582 fi 2583done 2584 done 2585IFS=$as_save_IFS 2586 2587fi 2588fi 2589STRIP=$ac_cv_prog_STRIP 2590if test -n "$STRIP"; then 2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2592$as_echo "$STRIP" >&6; } 2593else 2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2595$as_echo "no" >&6; } 2596fi 2597 2598 2599fi 2600if test -z "$ac_cv_prog_STRIP"; then 2601 ac_ct_STRIP=$STRIP 2602 # Extract the first word of "strip", so it can be a program name with args. 2603set dummy strip; ac_word=$2 2604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2605$as_echo_n "checking for $ac_word... " >&6; } 2606if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2607 $as_echo_n "(cached) " >&6 2608else 2609 if test -n "$ac_ct_STRIP"; then 2610 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2611else 2612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2613for as_dir in $PATH 2614do 2615 IFS=$as_save_IFS 2616 test -z "$as_dir" && as_dir=. 2617 for ac_exec_ext in '' $ac_executable_extensions; do 2618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2619 ac_cv_prog_ac_ct_STRIP="strip" 2620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2621 break 2 2622 fi 2623done 2624 done 2625IFS=$as_save_IFS 2626 2627fi 2628fi 2629ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2630if test -n "$ac_ct_STRIP"; then 2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2632$as_echo "$ac_ct_STRIP" >&6; } 2633else 2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2635$as_echo "no" >&6; } 2636fi 2637 2638 if test "x$ac_ct_STRIP" = x; then 2639 STRIP=":" 2640 else 2641 case $cross_compiling:$ac_tool_warned in 2642yes:) 2643{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2644$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2645ac_tool_warned=yes ;; 2646esac 2647 STRIP=$ac_ct_STRIP 2648 fi 2649else 2650 STRIP="$ac_cv_prog_STRIP" 2651fi 2652 2653fi 2654INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2655 2656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2657$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2658if test -z "$MKDIR_P"; then 2659 if ${ac_cv_path_mkdir+:} false; then : 2660 $as_echo_n "(cached) " >&6 2661else 2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2663for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2664do 2665 IFS=$as_save_IFS 2666 test -z "$as_dir" && as_dir=. 2667 for ac_prog in mkdir gmkdir; do 2668 for ac_exec_ext in '' $ac_executable_extensions; do 2669 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2670 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2671 'mkdir (GNU coreutils) '* | \ 2672 'mkdir (coreutils) '* | \ 2673 'mkdir (fileutils) '4.1*) 2674 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2675 break 3;; 2676 esac 2677 done 2678 done 2679 done 2680IFS=$as_save_IFS 2681 2682fi 2683 2684 test -d ./--version && rmdir ./--version 2685 if test "${ac_cv_path_mkdir+set}" = set; then 2686 MKDIR_P="$ac_cv_path_mkdir -p" 2687 else 2688 # As a last resort, use the slow shell script. Don't cache a 2689 # value for MKDIR_P within a source directory, because that will 2690 # break other packages using the cache if that directory is 2691 # removed, or if the value is a relative name. 2692 MKDIR_P="$ac_install_sh -d" 2693 fi 2694fi 2695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2696$as_echo "$MKDIR_P" >&6; } 2697 2698for ac_prog in gawk mawk nawk awk 2699do 2700 # Extract the first word of "$ac_prog", so it can be a program name with args. 2701set dummy $ac_prog; ac_word=$2 2702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2703$as_echo_n "checking for $ac_word... " >&6; } 2704if ${ac_cv_prog_AWK+:} false; then : 2705 $as_echo_n "(cached) " >&6 2706else 2707 if test -n "$AWK"; then 2708 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2709else 2710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2711for as_dir in $PATH 2712do 2713 IFS=$as_save_IFS 2714 test -z "$as_dir" && as_dir=. 2715 for ac_exec_ext in '' $ac_executable_extensions; do 2716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2717 ac_cv_prog_AWK="$ac_prog" 2718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2719 break 2 2720 fi 2721done 2722 done 2723IFS=$as_save_IFS 2724 2725fi 2726fi 2727AWK=$ac_cv_prog_AWK 2728if test -n "$AWK"; then 2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2730$as_echo "$AWK" >&6; } 2731else 2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2733$as_echo "no" >&6; } 2734fi 2735 2736 2737 test -n "$AWK" && break 2738done 2739 2740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2741$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2742set x ${MAKE-make} 2743ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2744if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2745 $as_echo_n "(cached) " >&6 2746else 2747 cat >conftest.make <<\_ACEOF 2748SHELL = /bin/sh 2749all: 2750 @echo '@@@%%%=$(MAKE)=@@@%%%' 2751_ACEOF 2752# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2753case `${MAKE-make} -f conftest.make 2>/dev/null` in 2754 *@@@%%%=?*=@@@%%%*) 2755 eval ac_cv_prog_make_${ac_make}_set=yes;; 2756 *) 2757 eval ac_cv_prog_make_${ac_make}_set=no;; 2758esac 2759rm -f conftest.make 2760fi 2761if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2763$as_echo "yes" >&6; } 2764 SET_MAKE= 2765else 2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2767$as_echo "no" >&6; } 2768 SET_MAKE="MAKE=${MAKE-make}" 2769fi 2770 2771rm -rf .tst 2>/dev/null 2772mkdir .tst 2>/dev/null 2773if test -d .tst; then 2774 am__leading_dot=. 2775else 2776 am__leading_dot=_ 2777fi 2778rmdir .tst 2>/dev/null 2779 2780# Check whether --enable-silent-rules was given. 2781if test "${enable_silent_rules+set}" = set; then : 2782 enableval=$enable_silent_rules; 2783fi 2784 2785case $enable_silent_rules in # ((( 2786 yes) AM_DEFAULT_VERBOSITY=0;; 2787 no) AM_DEFAULT_VERBOSITY=1;; 2788 *) AM_DEFAULT_VERBOSITY=1;; 2789esac 2790am_make=${MAKE-make} 2791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2792$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2793if ${am_cv_make_support_nested_variables+:} false; then : 2794 $as_echo_n "(cached) " >&6 2795else 2796 if $as_echo 'TRUE=$(BAR$(V)) 2797BAR0=false 2798BAR1=true 2799V=1 2800am__doit: 2801 @$(TRUE) 2802.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2803 am_cv_make_support_nested_variables=yes 2804else 2805 am_cv_make_support_nested_variables=no 2806fi 2807fi 2808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2809$as_echo "$am_cv_make_support_nested_variables" >&6; } 2810if test $am_cv_make_support_nested_variables = yes; then 2811 AM_V='$(V)' 2812 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2813else 2814 AM_V=$AM_DEFAULT_VERBOSITY 2815 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2816fi 2817AM_BACKSLASH='\' 2818 2819if test "`cd $srcdir && pwd`" != "`pwd`"; then 2820 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2821 # is not polluted with repeated "-I." 2822 am__isrc=' -I$(srcdir)' 2823 # test to see if srcdir already configured 2824 if test -f $srcdir/config.status; then 2825 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2826 fi 2827fi 2828 2829# test whether we have cygpath 2830if test -z "$CYGPATH_W"; then 2831 if (cygpath --version) >/dev/null 2>/dev/null; then 2832 CYGPATH_W='cygpath -w' 2833 else 2834 CYGPATH_W=echo 2835 fi 2836fi 2837 2838 2839# Define the identity of the package. 2840 PACKAGE='libFS' 2841 VERSION='1.0.5' 2842 2843 2844cat >>confdefs.h <<_ACEOF 2845#define PACKAGE "$PACKAGE" 2846_ACEOF 2847 2848 2849cat >>confdefs.h <<_ACEOF 2850#define VERSION "$VERSION" 2851_ACEOF 2852 2853# Some tools Automake needs. 2854 2855ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2856 2857 2858AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2859 2860 2861AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2862 2863 2864AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2865 2866 2867MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2868 2869# For better backward compatibility. To be removed once Automake 1.9.x 2870# dies out for good. For more background, see: 2871# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2872# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2873mkdir_p='$(MKDIR_P)' 2874 2875# We need awk for the "check" target. The system "awk" is bad on 2876# some platforms. 2877# Always define AMTAR for backward compatibility. Yes, it's still used 2878# in the wild :-( We should find a proper way to deprecate it ... 2879AMTAR='$${TAR-tar}' 2880 2881 2882# We'll loop over all known methods to create a tar archive until one works. 2883_am_tools='gnutar pax cpio none' 2884 2885am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2886 2887 2888 2889 2890 2891 2892 2893# Initialize libtool 2894case `pwd` in 2895 *\ * | *\ *) 2896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2897$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2898esac 2899 2900 2901 2902macro_version='2.4.2' 2903macro_revision='1.3337' 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917ltmain="$ac_aux_dir/ltmain.sh" 2918 2919# Make sure we can run config.sub. 2920$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2921 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2922 2923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2924$as_echo_n "checking build system type... " >&6; } 2925if ${ac_cv_build+:} false; then : 2926 $as_echo_n "(cached) " >&6 2927else 2928 ac_build_alias=$build_alias 2929test "x$ac_build_alias" = x && 2930 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2931test "x$ac_build_alias" = x && 2932 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2933ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2934 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2935 2936fi 2937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2938$as_echo "$ac_cv_build" >&6; } 2939case $ac_cv_build in 2940*-*-*) ;; 2941*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2942esac 2943build=$ac_cv_build 2944ac_save_IFS=$IFS; IFS='-' 2945set x $ac_cv_build 2946shift 2947build_cpu=$1 2948build_vendor=$2 2949shift; shift 2950# Remember, the first character of IFS is used to create $*, 2951# except with old shells: 2952build_os=$* 2953IFS=$ac_save_IFS 2954case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2955 2956 2957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2958$as_echo_n "checking host system type... " >&6; } 2959if ${ac_cv_host+:} false; then : 2960 $as_echo_n "(cached) " >&6 2961else 2962 if test "x$host_alias" = x; then 2963 ac_cv_host=$ac_cv_build 2964else 2965 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2966 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2967fi 2968 2969fi 2970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2971$as_echo "$ac_cv_host" >&6; } 2972case $ac_cv_host in 2973*-*-*) ;; 2974*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2975esac 2976host=$ac_cv_host 2977ac_save_IFS=$IFS; IFS='-' 2978set x $ac_cv_host 2979shift 2980host_cpu=$1 2981host_vendor=$2 2982shift; shift 2983# Remember, the first character of IFS is used to create $*, 2984# except with old shells: 2985host_os=$* 2986IFS=$ac_save_IFS 2987case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2988 2989 2990# Backslashify metacharacters that are still active within 2991# double-quoted strings. 2992sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 2993 2994# Same as above, but do not quote variable references. 2995double_quote_subst='s/\(["`\\]\)/\\\1/g' 2996 2997# Sed substitution to delay expansion of an escaped shell variable in a 2998# double_quote_subst'ed string. 2999delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3000 3001# Sed substitution to delay expansion of an escaped single quote. 3002delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3003 3004# Sed substitution to avoid accidental globbing in evaled expressions 3005no_glob_subst='s/\*/\\\*/g' 3006 3007ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3008ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3009ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3010 3011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3012$as_echo_n "checking how to print strings... " >&6; } 3013# Test print first, because it will be a builtin if present. 3014if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3015 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3016 ECHO='print -r --' 3017elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3018 ECHO='printf %s\n' 3019else 3020 # Use this function as a fallback that always works. 3021 func_fallback_echo () 3022 { 3023 eval 'cat <<_LTECHO_EOF 3024$1 3025_LTECHO_EOF' 3026 } 3027 ECHO='func_fallback_echo' 3028fi 3029 3030# func_echo_all arg... 3031# Invoke $ECHO with all args, space-separated. 3032func_echo_all () 3033{ 3034 $ECHO "" 3035} 3036 3037case "$ECHO" in 3038 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3039$as_echo "printf" >&6; } ;; 3040 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3041$as_echo "print -r" >&6; } ;; 3042 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3043$as_echo "cat" >&6; } ;; 3044esac 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059DEPDIR="${am__leading_dot}deps" 3060 3061ac_config_commands="$ac_config_commands depfiles" 3062 3063 3064am_make=${MAKE-make} 3065cat > confinc << 'END' 3066am__doit: 3067 @echo this is the am__doit target 3068.PHONY: am__doit 3069END 3070# If we don't find an include directive, just comment out the code. 3071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3072$as_echo_n "checking for style of include used by $am_make... " >&6; } 3073am__include="#" 3074am__quote= 3075_am_result=none 3076# First try GNU make style include. 3077echo "include confinc" > confmf 3078# Ignore all kinds of additional output from 'make'. 3079case `$am_make -s -f confmf 2> /dev/null` in #( 3080*the\ am__doit\ target*) 3081 am__include=include 3082 am__quote= 3083 _am_result=GNU 3084 ;; 3085esac 3086# Now try BSD make style include. 3087if test "$am__include" = "#"; then 3088 echo '.include "confinc"' > confmf 3089 case `$am_make -s -f confmf 2> /dev/null` in #( 3090 *the\ am__doit\ target*) 3091 am__include=.include 3092 am__quote="\"" 3093 _am_result=BSD 3094 ;; 3095 esac 3096fi 3097 3098 3099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3100$as_echo "$_am_result" >&6; } 3101rm -f confinc confmf 3102 3103# Check whether --enable-dependency-tracking was given. 3104if test "${enable_dependency_tracking+set}" = set; then : 3105 enableval=$enable_dependency_tracking; 3106fi 3107 3108if test "x$enable_dependency_tracking" != xno; then 3109 am_depcomp="$ac_aux_dir/depcomp" 3110 AMDEPBACKSLASH='\' 3111 am__nodep='_no' 3112fi 3113 if test "x$enable_dependency_tracking" != xno; then 3114 AMDEP_TRUE= 3115 AMDEP_FALSE='#' 3116else 3117 AMDEP_TRUE='#' 3118 AMDEP_FALSE= 3119fi 3120 3121 3122ac_ext=c 3123ac_cpp='$CPP $CPPFLAGS' 3124ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3125ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3126ac_compiler_gnu=$ac_cv_c_compiler_gnu 3127if test -n "$ac_tool_prefix"; then 3128 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3129set dummy ${ac_tool_prefix}gcc; ac_word=$2 3130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3131$as_echo_n "checking for $ac_word... " >&6; } 3132if ${ac_cv_prog_CC+:} false; then : 3133 $as_echo_n "(cached) " >&6 3134else 3135 if test -n "$CC"; then 3136 ac_cv_prog_CC="$CC" # Let the user override the test. 3137else 3138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3139for as_dir in $PATH 3140do 3141 IFS=$as_save_IFS 3142 test -z "$as_dir" && as_dir=. 3143 for ac_exec_ext in '' $ac_executable_extensions; do 3144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3145 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3147 break 2 3148 fi 3149done 3150 done 3151IFS=$as_save_IFS 3152 3153fi 3154fi 3155CC=$ac_cv_prog_CC 3156if test -n "$CC"; then 3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3158$as_echo "$CC" >&6; } 3159else 3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3161$as_echo "no" >&6; } 3162fi 3163 3164 3165fi 3166if test -z "$ac_cv_prog_CC"; then 3167 ac_ct_CC=$CC 3168 # Extract the first word of "gcc", so it can be a program name with args. 3169set dummy gcc; ac_word=$2 3170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3171$as_echo_n "checking for $ac_word... " >&6; } 3172if ${ac_cv_prog_ac_ct_CC+:} false; then : 3173 $as_echo_n "(cached) " >&6 3174else 3175 if test -n "$ac_ct_CC"; then 3176 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3177else 3178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3179for as_dir in $PATH 3180do 3181 IFS=$as_save_IFS 3182 test -z "$as_dir" && as_dir=. 3183 for ac_exec_ext in '' $ac_executable_extensions; do 3184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3185 ac_cv_prog_ac_ct_CC="gcc" 3186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3187 break 2 3188 fi 3189done 3190 done 3191IFS=$as_save_IFS 3192 3193fi 3194fi 3195ac_ct_CC=$ac_cv_prog_ac_ct_CC 3196if test -n "$ac_ct_CC"; then 3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3198$as_echo "$ac_ct_CC" >&6; } 3199else 3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3201$as_echo "no" >&6; } 3202fi 3203 3204 if test "x$ac_ct_CC" = x; then 3205 CC="" 3206 else 3207 case $cross_compiling:$ac_tool_warned in 3208yes:) 3209{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3210$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3211ac_tool_warned=yes ;; 3212esac 3213 CC=$ac_ct_CC 3214 fi 3215else 3216 CC="$ac_cv_prog_CC" 3217fi 3218 3219if test -z "$CC"; then 3220 if test -n "$ac_tool_prefix"; then 3221 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3222set dummy ${ac_tool_prefix}cc; ac_word=$2 3223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3224$as_echo_n "checking for $ac_word... " >&6; } 3225if ${ac_cv_prog_CC+:} false; then : 3226 $as_echo_n "(cached) " >&6 3227else 3228 if test -n "$CC"; then 3229 ac_cv_prog_CC="$CC" # Let the user override the test. 3230else 3231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3232for as_dir in $PATH 3233do 3234 IFS=$as_save_IFS 3235 test -z "$as_dir" && as_dir=. 3236 for ac_exec_ext in '' $ac_executable_extensions; do 3237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3238 ac_cv_prog_CC="${ac_tool_prefix}cc" 3239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3240 break 2 3241 fi 3242done 3243 done 3244IFS=$as_save_IFS 3245 3246fi 3247fi 3248CC=$ac_cv_prog_CC 3249if test -n "$CC"; then 3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3251$as_echo "$CC" >&6; } 3252else 3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3254$as_echo "no" >&6; } 3255fi 3256 3257 3258 fi 3259fi 3260if test -z "$CC"; then 3261 # Extract the first word of "cc", so it can be a program name with args. 3262set dummy cc; ac_word=$2 3263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3264$as_echo_n "checking for $ac_word... " >&6; } 3265if ${ac_cv_prog_CC+:} false; then : 3266 $as_echo_n "(cached) " >&6 3267else 3268 if test -n "$CC"; then 3269 ac_cv_prog_CC="$CC" # Let the user override the test. 3270else 3271 ac_prog_rejected=no 3272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3273for as_dir in $PATH 3274do 3275 IFS=$as_save_IFS 3276 test -z "$as_dir" && as_dir=. 3277 for ac_exec_ext in '' $ac_executable_extensions; do 3278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3279 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3280 ac_prog_rejected=yes 3281 continue 3282 fi 3283 ac_cv_prog_CC="cc" 3284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3285 break 2 3286 fi 3287done 3288 done 3289IFS=$as_save_IFS 3290 3291if test $ac_prog_rejected = yes; then 3292 # We found a bogon in the path, so make sure we never use it. 3293 set dummy $ac_cv_prog_CC 3294 shift 3295 if test $# != 0; then 3296 # We chose a different compiler from the bogus one. 3297 # However, it has the same basename, so the bogon will be chosen 3298 # first if we set CC to just the basename; use the full file name. 3299 shift 3300 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3301 fi 3302fi 3303fi 3304fi 3305CC=$ac_cv_prog_CC 3306if test -n "$CC"; then 3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3308$as_echo "$CC" >&6; } 3309else 3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3311$as_echo "no" >&6; } 3312fi 3313 3314 3315fi 3316if test -z "$CC"; then 3317 if test -n "$ac_tool_prefix"; then 3318 for ac_prog in cl.exe 3319 do 3320 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3321set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3323$as_echo_n "checking for $ac_word... " >&6; } 3324if ${ac_cv_prog_CC+:} false; then : 3325 $as_echo_n "(cached) " >&6 3326else 3327 if test -n "$CC"; then 3328 ac_cv_prog_CC="$CC" # Let the user override the test. 3329else 3330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3331for as_dir in $PATH 3332do 3333 IFS=$as_save_IFS 3334 test -z "$as_dir" && as_dir=. 3335 for ac_exec_ext in '' $ac_executable_extensions; do 3336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3337 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3339 break 2 3340 fi 3341done 3342 done 3343IFS=$as_save_IFS 3344 3345fi 3346fi 3347CC=$ac_cv_prog_CC 3348if test -n "$CC"; then 3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3350$as_echo "$CC" >&6; } 3351else 3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3353$as_echo "no" >&6; } 3354fi 3355 3356 3357 test -n "$CC" && break 3358 done 3359fi 3360if test -z "$CC"; then 3361 ac_ct_CC=$CC 3362 for ac_prog in cl.exe 3363do 3364 # Extract the first word of "$ac_prog", so it can be a program name with args. 3365set dummy $ac_prog; ac_word=$2 3366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3367$as_echo_n "checking for $ac_word... " >&6; } 3368if ${ac_cv_prog_ac_ct_CC+:} false; then : 3369 $as_echo_n "(cached) " >&6 3370else 3371 if test -n "$ac_ct_CC"; then 3372 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3373else 3374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3375for as_dir in $PATH 3376do 3377 IFS=$as_save_IFS 3378 test -z "$as_dir" && as_dir=. 3379 for ac_exec_ext in '' $ac_executable_extensions; do 3380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3381 ac_cv_prog_ac_ct_CC="$ac_prog" 3382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3383 break 2 3384 fi 3385done 3386 done 3387IFS=$as_save_IFS 3388 3389fi 3390fi 3391ac_ct_CC=$ac_cv_prog_ac_ct_CC 3392if test -n "$ac_ct_CC"; then 3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3394$as_echo "$ac_ct_CC" >&6; } 3395else 3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3397$as_echo "no" >&6; } 3398fi 3399 3400 3401 test -n "$ac_ct_CC" && break 3402done 3403 3404 if test "x$ac_ct_CC" = x; then 3405 CC="" 3406 else 3407 case $cross_compiling:$ac_tool_warned in 3408yes:) 3409{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3410$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3411ac_tool_warned=yes ;; 3412esac 3413 CC=$ac_ct_CC 3414 fi 3415fi 3416 3417fi 3418 3419 3420test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3421$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3422as_fn_error $? "no acceptable C compiler found in \$PATH 3423See \`config.log' for more details" "$LINENO" 5; } 3424 3425# Provide some information about the compiler. 3426$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3427set X $ac_compile 3428ac_compiler=$2 3429for ac_option in --version -v -V -qversion; do 3430 { { ac_try="$ac_compiler $ac_option >&5" 3431case "(($ac_try" in 3432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3433 *) ac_try_echo=$ac_try;; 3434esac 3435eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3436$as_echo "$ac_try_echo"; } >&5 3437 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3438 ac_status=$? 3439 if test -s conftest.err; then 3440 sed '10a\ 3441... rest of stderr output deleted ... 3442 10q' conftest.err >conftest.er1 3443 cat conftest.er1 >&5 3444 fi 3445 rm -f conftest.er1 conftest.err 3446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3447 test $ac_status = 0; } 3448done 3449 3450cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3451/* end confdefs.h. */ 3452 3453int 3454main () 3455{ 3456 3457 ; 3458 return 0; 3459} 3460_ACEOF 3461ac_clean_files_save=$ac_clean_files 3462ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3463# Try to create an executable without -o first, disregard a.out. 3464# It will help us diagnose broken compilers, and finding out an intuition 3465# of exeext. 3466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3467$as_echo_n "checking whether the C compiler works... " >&6; } 3468ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3469 3470# The possible output files: 3471ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3472 3473ac_rmfiles= 3474for ac_file in $ac_files 3475do 3476 case $ac_file in 3477 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3478 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3479 esac 3480done 3481rm -f $ac_rmfiles 3482 3483if { { ac_try="$ac_link_default" 3484case "(($ac_try" in 3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3486 *) ac_try_echo=$ac_try;; 3487esac 3488eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3489$as_echo "$ac_try_echo"; } >&5 3490 (eval "$ac_link_default") 2>&5 3491 ac_status=$? 3492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3493 test $ac_status = 0; }; then : 3494 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3495# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3496# in a Makefile. We should not override ac_cv_exeext if it was cached, 3497# so that the user can short-circuit this test for compilers unknown to 3498# Autoconf. 3499for ac_file in $ac_files '' 3500do 3501 test -f "$ac_file" || continue 3502 case $ac_file in 3503 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3504 ;; 3505 [ab].out ) 3506 # We found the default executable, but exeext='' is most 3507 # certainly right. 3508 break;; 3509 *.* ) 3510 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3511 then :; else 3512 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3513 fi 3514 # We set ac_cv_exeext here because the later test for it is not 3515 # safe: cross compilers may not add the suffix if given an `-o' 3516 # argument, so we may need to know it at that point already. 3517 # Even if this section looks crufty: it has the advantage of 3518 # actually working. 3519 break;; 3520 * ) 3521 break;; 3522 esac 3523done 3524test "$ac_cv_exeext" = no && ac_cv_exeext= 3525 3526else 3527 ac_file='' 3528fi 3529if test -z "$ac_file"; then : 3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3531$as_echo "no" >&6; } 3532$as_echo "$as_me: failed program was:" >&5 3533sed 's/^/| /' conftest.$ac_ext >&5 3534 3535{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3536$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3537as_fn_error 77 "C compiler cannot create executables 3538See \`config.log' for more details" "$LINENO" 5; } 3539else 3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3541$as_echo "yes" >&6; } 3542fi 3543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3544$as_echo_n "checking for C compiler default output file name... " >&6; } 3545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3546$as_echo "$ac_file" >&6; } 3547ac_exeext=$ac_cv_exeext 3548 3549rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3550ac_clean_files=$ac_clean_files_save 3551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3552$as_echo_n "checking for suffix of executables... " >&6; } 3553if { { ac_try="$ac_link" 3554case "(($ac_try" in 3555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3556 *) ac_try_echo=$ac_try;; 3557esac 3558eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3559$as_echo "$ac_try_echo"; } >&5 3560 (eval "$ac_link") 2>&5 3561 ac_status=$? 3562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3563 test $ac_status = 0; }; then : 3564 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3565# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3566# work properly (i.e., refer to `conftest.exe'), while it won't with 3567# `rm'. 3568for ac_file in conftest.exe conftest conftest.*; do 3569 test -f "$ac_file" || continue 3570 case $ac_file in 3571 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3572 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3573 break;; 3574 * ) break;; 3575 esac 3576done 3577else 3578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3579$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3580as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3581See \`config.log' for more details" "$LINENO" 5; } 3582fi 3583rm -f conftest conftest$ac_cv_exeext 3584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3585$as_echo "$ac_cv_exeext" >&6; } 3586 3587rm -f conftest.$ac_ext 3588EXEEXT=$ac_cv_exeext 3589ac_exeext=$EXEEXT 3590cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3591/* end confdefs.h. */ 3592#include <stdio.h> 3593int 3594main () 3595{ 3596FILE *f = fopen ("conftest.out", "w"); 3597 return ferror (f) || fclose (f) != 0; 3598 3599 ; 3600 return 0; 3601} 3602_ACEOF 3603ac_clean_files="$ac_clean_files conftest.out" 3604# Check that the compiler produces executables we can run. If not, either 3605# the compiler is broken, or we cross compile. 3606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3607$as_echo_n "checking whether we are cross compiling... " >&6; } 3608if test "$cross_compiling" != yes; then 3609 { { ac_try="$ac_link" 3610case "(($ac_try" in 3611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3612 *) ac_try_echo=$ac_try;; 3613esac 3614eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3615$as_echo "$ac_try_echo"; } >&5 3616 (eval "$ac_link") 2>&5 3617 ac_status=$? 3618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3619 test $ac_status = 0; } 3620 if { ac_try='./conftest$ac_cv_exeext' 3621 { { case "(($ac_try" in 3622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3623 *) ac_try_echo=$ac_try;; 3624esac 3625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3626$as_echo "$ac_try_echo"; } >&5 3627 (eval "$ac_try") 2>&5 3628 ac_status=$? 3629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3630 test $ac_status = 0; }; }; then 3631 cross_compiling=no 3632 else 3633 if test "$cross_compiling" = maybe; then 3634 cross_compiling=yes 3635 else 3636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3637$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3638as_fn_error $? "cannot run C compiled programs. 3639If you meant to cross compile, use \`--host'. 3640See \`config.log' for more details" "$LINENO" 5; } 3641 fi 3642 fi 3643fi 3644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3645$as_echo "$cross_compiling" >&6; } 3646 3647rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3648ac_clean_files=$ac_clean_files_save 3649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3650$as_echo_n "checking for suffix of object files... " >&6; } 3651if ${ac_cv_objext+:} false; then : 3652 $as_echo_n "(cached) " >&6 3653else 3654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3655/* end confdefs.h. */ 3656 3657int 3658main () 3659{ 3660 3661 ; 3662 return 0; 3663} 3664_ACEOF 3665rm -f conftest.o conftest.obj 3666if { { ac_try="$ac_compile" 3667case "(($ac_try" in 3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3669 *) ac_try_echo=$ac_try;; 3670esac 3671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3672$as_echo "$ac_try_echo"; } >&5 3673 (eval "$ac_compile") 2>&5 3674 ac_status=$? 3675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3676 test $ac_status = 0; }; then : 3677 for ac_file in conftest.o conftest.obj conftest.*; do 3678 test -f "$ac_file" || continue; 3679 case $ac_file in 3680 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3681 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3682 break;; 3683 esac 3684done 3685else 3686 $as_echo "$as_me: failed program was:" >&5 3687sed 's/^/| /' conftest.$ac_ext >&5 3688 3689{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3690$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3691as_fn_error $? "cannot compute suffix of object files: cannot compile 3692See \`config.log' for more details" "$LINENO" 5; } 3693fi 3694rm -f conftest.$ac_cv_objext conftest.$ac_ext 3695fi 3696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3697$as_echo "$ac_cv_objext" >&6; } 3698OBJEXT=$ac_cv_objext 3699ac_objext=$OBJEXT 3700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3701$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3702if ${ac_cv_c_compiler_gnu+:} false; then : 3703 $as_echo_n "(cached) " >&6 3704else 3705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3706/* end confdefs.h. */ 3707 3708int 3709main () 3710{ 3711#ifndef __GNUC__ 3712 choke me 3713#endif 3714 3715 ; 3716 return 0; 3717} 3718_ACEOF 3719if ac_fn_c_try_compile "$LINENO"; then : 3720 ac_compiler_gnu=yes 3721else 3722 ac_compiler_gnu=no 3723fi 3724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3725ac_cv_c_compiler_gnu=$ac_compiler_gnu 3726 3727fi 3728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3729$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3730if test $ac_compiler_gnu = yes; then 3731 GCC=yes 3732else 3733 GCC= 3734fi 3735ac_test_CFLAGS=${CFLAGS+set} 3736ac_save_CFLAGS=$CFLAGS 3737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3738$as_echo_n "checking whether $CC accepts -g... " >&6; } 3739if ${ac_cv_prog_cc_g+:} false; then : 3740 $as_echo_n "(cached) " >&6 3741else 3742 ac_save_c_werror_flag=$ac_c_werror_flag 3743 ac_c_werror_flag=yes 3744 ac_cv_prog_cc_g=no 3745 CFLAGS="-g" 3746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3747/* end confdefs.h. */ 3748 3749int 3750main () 3751{ 3752 3753 ; 3754 return 0; 3755} 3756_ACEOF 3757if ac_fn_c_try_compile "$LINENO"; then : 3758 ac_cv_prog_cc_g=yes 3759else 3760 CFLAGS="" 3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3762/* end confdefs.h. */ 3763 3764int 3765main () 3766{ 3767 3768 ; 3769 return 0; 3770} 3771_ACEOF 3772if ac_fn_c_try_compile "$LINENO"; then : 3773 3774else 3775 ac_c_werror_flag=$ac_save_c_werror_flag 3776 CFLAGS="-g" 3777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3778/* end confdefs.h. */ 3779 3780int 3781main () 3782{ 3783 3784 ; 3785 return 0; 3786} 3787_ACEOF 3788if ac_fn_c_try_compile "$LINENO"; then : 3789 ac_cv_prog_cc_g=yes 3790fi 3791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3792fi 3793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3794fi 3795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3796 ac_c_werror_flag=$ac_save_c_werror_flag 3797fi 3798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3799$as_echo "$ac_cv_prog_cc_g" >&6; } 3800if test "$ac_test_CFLAGS" = set; then 3801 CFLAGS=$ac_save_CFLAGS 3802elif test $ac_cv_prog_cc_g = yes; then 3803 if test "$GCC" = yes; then 3804 CFLAGS="-g -O2" 3805 else 3806 CFLAGS="-g" 3807 fi 3808else 3809 if test "$GCC" = yes; then 3810 CFLAGS="-O2" 3811 else 3812 CFLAGS= 3813 fi 3814fi 3815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3816$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3817if ${ac_cv_prog_cc_c89+:} false; then : 3818 $as_echo_n "(cached) " >&6 3819else 3820 ac_cv_prog_cc_c89=no 3821ac_save_CC=$CC 3822cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3823/* end confdefs.h. */ 3824#include <stdarg.h> 3825#include <stdio.h> 3826#include <sys/types.h> 3827#include <sys/stat.h> 3828/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3829struct buf { int x; }; 3830FILE * (*rcsopen) (struct buf *, struct stat *, int); 3831static char *e (p, i) 3832 char **p; 3833 int i; 3834{ 3835 return p[i]; 3836} 3837static char *f (char * (*g) (char **, int), char **p, ...) 3838{ 3839 char *s; 3840 va_list v; 3841 va_start (v,p); 3842 s = g (p, va_arg (v,int)); 3843 va_end (v); 3844 return s; 3845} 3846 3847/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3848 function prototypes and stuff, but not '\xHH' hex character constants. 3849 These don't provoke an error unfortunately, instead are silently treated 3850 as 'x'. The following induces an error, until -std is added to get 3851 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3852 array size at least. It's necessary to write '\x00'==0 to get something 3853 that's true only with -std. */ 3854int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3855 3856/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3857 inside strings and character constants. */ 3858#define FOO(x) 'x' 3859int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3860 3861int test (int i, double x); 3862struct s1 {int (*f) (int a);}; 3863struct s2 {int (*f) (double a);}; 3864int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3865int argc; 3866char **argv; 3867int 3868main () 3869{ 3870return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3871 ; 3872 return 0; 3873} 3874_ACEOF 3875for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3876 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3877do 3878 CC="$ac_save_CC $ac_arg" 3879 if ac_fn_c_try_compile "$LINENO"; then : 3880 ac_cv_prog_cc_c89=$ac_arg 3881fi 3882rm -f core conftest.err conftest.$ac_objext 3883 test "x$ac_cv_prog_cc_c89" != "xno" && break 3884done 3885rm -f conftest.$ac_ext 3886CC=$ac_save_CC 3887 3888fi 3889# AC_CACHE_VAL 3890case "x$ac_cv_prog_cc_c89" in 3891 x) 3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3893$as_echo "none needed" >&6; } ;; 3894 xno) 3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3896$as_echo "unsupported" >&6; } ;; 3897 *) 3898 CC="$CC $ac_cv_prog_cc_c89" 3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3900$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3901esac 3902if test "x$ac_cv_prog_cc_c89" != xno; then : 3903 3904fi 3905 3906ac_ext=c 3907ac_cpp='$CPP $CPPFLAGS' 3908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3910ac_compiler_gnu=$ac_cv_c_compiler_gnu 3911 3912depcc="$CC" am_compiler_list= 3913 3914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3915$as_echo_n "checking dependency style of $depcc... " >&6; } 3916if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3917 $as_echo_n "(cached) " >&6 3918else 3919 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3920 # We make a subdir and do the tests there. Otherwise we can end up 3921 # making bogus files that we don't know about and never remove. For 3922 # instance it was reported that on HP-UX the gcc test will end up 3923 # making a dummy file named 'D' -- because '-MD' means "put the output 3924 # in D". 3925 rm -rf conftest.dir 3926 mkdir conftest.dir 3927 # Copy depcomp to subdir because otherwise we won't find it if we're 3928 # using a relative directory. 3929 cp "$am_depcomp" conftest.dir 3930 cd conftest.dir 3931 # We will build objects and dependencies in a subdirectory because 3932 # it helps to detect inapplicable dependency modes. For instance 3933 # both Tru64's cc and ICC support -MD to output dependencies as a 3934 # side effect of compilation, but ICC will put the dependencies in 3935 # the current directory while Tru64 will put them in the object 3936 # directory. 3937 mkdir sub 3938 3939 am_cv_CC_dependencies_compiler_type=none 3940 if test "$am_compiler_list" = ""; then 3941 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3942 fi 3943 am__universal=false 3944 case " $depcc " in #( 3945 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3946 esac 3947 3948 for depmode in $am_compiler_list; do 3949 # Setup a source with many dependencies, because some compilers 3950 # like to wrap large dependency lists on column 80 (with \), and 3951 # we should not choose a depcomp mode which is confused by this. 3952 # 3953 # We need to recreate these files for each test, as the compiler may 3954 # overwrite some of them when testing with obscure command lines. 3955 # This happens at least with the AIX C compiler. 3956 : > sub/conftest.c 3957 for i in 1 2 3 4 5 6; do 3958 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3959 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3960 # Solaris 10 /bin/sh. 3961 echo '/* dummy */' > sub/conftst$i.h 3962 done 3963 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3964 3965 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3966 # mode. It turns out that the SunPro C++ compiler does not properly 3967 # handle '-M -o', and we need to detect this. Also, some Intel 3968 # versions had trouble with output in subdirs. 3969 am__obj=sub/conftest.${OBJEXT-o} 3970 am__minus_obj="-o $am__obj" 3971 case $depmode in 3972 gcc) 3973 # This depmode causes a compiler race in universal mode. 3974 test "$am__universal" = false || continue 3975 ;; 3976 nosideeffect) 3977 # After this tag, mechanisms are not by side-effect, so they'll 3978 # only be used when explicitly requested. 3979 if test "x$enable_dependency_tracking" = xyes; then 3980 continue 3981 else 3982 break 3983 fi 3984 ;; 3985 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3986 # This compiler won't grok '-c -o', but also, the minuso test has 3987 # not run yet. These depmodes are late enough in the game, and 3988 # so weak that their functioning should not be impacted. 3989 am__obj=conftest.${OBJEXT-o} 3990 am__minus_obj= 3991 ;; 3992 none) break ;; 3993 esac 3994 if depmode=$depmode \ 3995 source=sub/conftest.c object=$am__obj \ 3996 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3997 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3998 >/dev/null 2>conftest.err && 3999 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4000 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4001 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4002 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4003 # icc doesn't choke on unknown options, it will just issue warnings 4004 # or remarks (even with -Werror). So we grep stderr for any message 4005 # that says an option was ignored or not supported. 4006 # When given -MP, icc 7.0 and 7.1 complain thusly: 4007 # icc: Command line warning: ignoring option '-M'; no argument required 4008 # The diagnosis changed in icc 8.0: 4009 # icc: Command line remark: option '-MP' not supported 4010 if (grep 'ignoring option' conftest.err || 4011 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4012 am_cv_CC_dependencies_compiler_type=$depmode 4013 break 4014 fi 4015 fi 4016 done 4017 4018 cd .. 4019 rm -rf conftest.dir 4020else 4021 am_cv_CC_dependencies_compiler_type=none 4022fi 4023 4024fi 4025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4026$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4027CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4028 4029 if 4030 test "x$enable_dependency_tracking" != xno \ 4031 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4032 am__fastdepCC_TRUE= 4033 am__fastdepCC_FALSE='#' 4034else 4035 am__fastdepCC_TRUE='#' 4036 am__fastdepCC_FALSE= 4037fi 4038 4039 4040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4041$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4042if ${ac_cv_path_SED+:} false; then : 4043 $as_echo_n "(cached) " >&6 4044else 4045 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4046 for ac_i in 1 2 3 4 5 6 7; do 4047 ac_script="$ac_script$as_nl$ac_script" 4048 done 4049 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4050 { ac_script=; unset ac_script;} 4051 if test -z "$SED"; then 4052 ac_path_SED_found=false 4053 # Loop through the user's path and test for each of PROGNAME-LIST 4054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4055for as_dir in $PATH 4056do 4057 IFS=$as_save_IFS 4058 test -z "$as_dir" && as_dir=. 4059 for ac_prog in sed gsed; do 4060 for ac_exec_ext in '' $ac_executable_extensions; do 4061 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4062 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4063# Check for GNU ac_path_SED and select it if it is found. 4064 # Check for GNU $ac_path_SED 4065case `"$ac_path_SED" --version 2>&1` in 4066*GNU*) 4067 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4068*) 4069 ac_count=0 4070 $as_echo_n 0123456789 >"conftest.in" 4071 while : 4072 do 4073 cat "conftest.in" "conftest.in" >"conftest.tmp" 4074 mv "conftest.tmp" "conftest.in" 4075 cp "conftest.in" "conftest.nl" 4076 $as_echo '' >> "conftest.nl" 4077 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4078 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4079 as_fn_arith $ac_count + 1 && ac_count=$as_val 4080 if test $ac_count -gt ${ac_path_SED_max-0}; then 4081 # Best one so far, save it but keep looking for a better one 4082 ac_cv_path_SED="$ac_path_SED" 4083 ac_path_SED_max=$ac_count 4084 fi 4085 # 10*(2^10) chars as input seems more than enough 4086 test $ac_count -gt 10 && break 4087 done 4088 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4089esac 4090 4091 $ac_path_SED_found && break 3 4092 done 4093 done 4094 done 4095IFS=$as_save_IFS 4096 if test -z "$ac_cv_path_SED"; then 4097 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4098 fi 4099else 4100 ac_cv_path_SED=$SED 4101fi 4102 4103fi 4104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4105$as_echo "$ac_cv_path_SED" >&6; } 4106 SED="$ac_cv_path_SED" 4107 rm -f conftest.sed 4108 4109test -z "$SED" && SED=sed 4110Xsed="$SED -e 1s/^X//" 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4123$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4124if ${ac_cv_path_GREP+:} false; then : 4125 $as_echo_n "(cached) " >&6 4126else 4127 if test -z "$GREP"; then 4128 ac_path_GREP_found=false 4129 # Loop through the user's path and test for each of PROGNAME-LIST 4130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4131for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4132do 4133 IFS=$as_save_IFS 4134 test -z "$as_dir" && as_dir=. 4135 for ac_prog in grep ggrep; do 4136 for ac_exec_ext in '' $ac_executable_extensions; do 4137 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4138 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4139# Check for GNU ac_path_GREP and select it if it is found. 4140 # Check for GNU $ac_path_GREP 4141case `"$ac_path_GREP" --version 2>&1` in 4142*GNU*) 4143 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4144*) 4145 ac_count=0 4146 $as_echo_n 0123456789 >"conftest.in" 4147 while : 4148 do 4149 cat "conftest.in" "conftest.in" >"conftest.tmp" 4150 mv "conftest.tmp" "conftest.in" 4151 cp "conftest.in" "conftest.nl" 4152 $as_echo 'GREP' >> "conftest.nl" 4153 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4154 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4155 as_fn_arith $ac_count + 1 && ac_count=$as_val 4156 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4157 # Best one so far, save it but keep looking for a better one 4158 ac_cv_path_GREP="$ac_path_GREP" 4159 ac_path_GREP_max=$ac_count 4160 fi 4161 # 10*(2^10) chars as input seems more than enough 4162 test $ac_count -gt 10 && break 4163 done 4164 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4165esac 4166 4167 $ac_path_GREP_found && break 3 4168 done 4169 done 4170 done 4171IFS=$as_save_IFS 4172 if test -z "$ac_cv_path_GREP"; then 4173 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4174 fi 4175else 4176 ac_cv_path_GREP=$GREP 4177fi 4178 4179fi 4180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4181$as_echo "$ac_cv_path_GREP" >&6; } 4182 GREP="$ac_cv_path_GREP" 4183 4184 4185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4186$as_echo_n "checking for egrep... " >&6; } 4187if ${ac_cv_path_EGREP+:} false; then : 4188 $as_echo_n "(cached) " >&6 4189else 4190 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4191 then ac_cv_path_EGREP="$GREP -E" 4192 else 4193 if test -z "$EGREP"; then 4194 ac_path_EGREP_found=false 4195 # Loop through the user's path and test for each of PROGNAME-LIST 4196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4197for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4198do 4199 IFS=$as_save_IFS 4200 test -z "$as_dir" && as_dir=. 4201 for ac_prog in egrep; do 4202 for ac_exec_ext in '' $ac_executable_extensions; do 4203 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4204 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4205# Check for GNU ac_path_EGREP and select it if it is found. 4206 # Check for GNU $ac_path_EGREP 4207case `"$ac_path_EGREP" --version 2>&1` in 4208*GNU*) 4209 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4210*) 4211 ac_count=0 4212 $as_echo_n 0123456789 >"conftest.in" 4213 while : 4214 do 4215 cat "conftest.in" "conftest.in" >"conftest.tmp" 4216 mv "conftest.tmp" "conftest.in" 4217 cp "conftest.in" "conftest.nl" 4218 $as_echo 'EGREP' >> "conftest.nl" 4219 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4220 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4221 as_fn_arith $ac_count + 1 && ac_count=$as_val 4222 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4223 # Best one so far, save it but keep looking for a better one 4224 ac_cv_path_EGREP="$ac_path_EGREP" 4225 ac_path_EGREP_max=$ac_count 4226 fi 4227 # 10*(2^10) chars as input seems more than enough 4228 test $ac_count -gt 10 && break 4229 done 4230 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4231esac 4232 4233 $ac_path_EGREP_found && break 3 4234 done 4235 done 4236 done 4237IFS=$as_save_IFS 4238 if test -z "$ac_cv_path_EGREP"; then 4239 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4240 fi 4241else 4242 ac_cv_path_EGREP=$EGREP 4243fi 4244 4245 fi 4246fi 4247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4248$as_echo "$ac_cv_path_EGREP" >&6; } 4249 EGREP="$ac_cv_path_EGREP" 4250 4251 4252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4253$as_echo_n "checking for fgrep... " >&6; } 4254if ${ac_cv_path_FGREP+:} false; then : 4255 $as_echo_n "(cached) " >&6 4256else 4257 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4258 then ac_cv_path_FGREP="$GREP -F" 4259 else 4260 if test -z "$FGREP"; then 4261 ac_path_FGREP_found=false 4262 # Loop through the user's path and test for each of PROGNAME-LIST 4263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4264for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4265do 4266 IFS=$as_save_IFS 4267 test -z "$as_dir" && as_dir=. 4268 for ac_prog in fgrep; do 4269 for ac_exec_ext in '' $ac_executable_extensions; do 4270 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4271 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4272# Check for GNU ac_path_FGREP and select it if it is found. 4273 # Check for GNU $ac_path_FGREP 4274case `"$ac_path_FGREP" --version 2>&1` in 4275*GNU*) 4276 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4277*) 4278 ac_count=0 4279 $as_echo_n 0123456789 >"conftest.in" 4280 while : 4281 do 4282 cat "conftest.in" "conftest.in" >"conftest.tmp" 4283 mv "conftest.tmp" "conftest.in" 4284 cp "conftest.in" "conftest.nl" 4285 $as_echo 'FGREP' >> "conftest.nl" 4286 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4287 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4288 as_fn_arith $ac_count + 1 && ac_count=$as_val 4289 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4290 # Best one so far, save it but keep looking for a better one 4291 ac_cv_path_FGREP="$ac_path_FGREP" 4292 ac_path_FGREP_max=$ac_count 4293 fi 4294 # 10*(2^10) chars as input seems more than enough 4295 test $ac_count -gt 10 && break 4296 done 4297 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4298esac 4299 4300 $ac_path_FGREP_found && break 3 4301 done 4302 done 4303 done 4304IFS=$as_save_IFS 4305 if test -z "$ac_cv_path_FGREP"; then 4306 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4307 fi 4308else 4309 ac_cv_path_FGREP=$FGREP 4310fi 4311 4312 fi 4313fi 4314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4315$as_echo "$ac_cv_path_FGREP" >&6; } 4316 FGREP="$ac_cv_path_FGREP" 4317 4318 4319test -z "$GREP" && GREP=grep 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339# Check whether --with-gnu-ld was given. 4340if test "${with_gnu_ld+set}" = set; then : 4341 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4342else 4343 with_gnu_ld=no 4344fi 4345 4346ac_prog=ld 4347if test "$GCC" = yes; then 4348 # Check if gcc -print-prog-name=ld gives a path. 4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4350$as_echo_n "checking for ld used by $CC... " >&6; } 4351 case $host in 4352 *-*-mingw*) 4353 # gcc leaves a trailing carriage return which upsets mingw 4354 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4355 *) 4356 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4357 esac 4358 case $ac_prog in 4359 # Accept absolute paths. 4360 [\\/]* | ?:[\\/]*) 4361 re_direlt='/[^/][^/]*/\.\./' 4362 # Canonicalize the pathname of ld 4363 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4364 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4365 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4366 done 4367 test -z "$LD" && LD="$ac_prog" 4368 ;; 4369 "") 4370 # If it fails, then pretend we aren't using GCC. 4371 ac_prog=ld 4372 ;; 4373 *) 4374 # If it is relative, then search for the first ld in PATH. 4375 with_gnu_ld=unknown 4376 ;; 4377 esac 4378elif test "$with_gnu_ld" = yes; then 4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4380$as_echo_n "checking for GNU ld... " >&6; } 4381else 4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4383$as_echo_n "checking for non-GNU ld... " >&6; } 4384fi 4385if ${lt_cv_path_LD+:} false; then : 4386 $as_echo_n "(cached) " >&6 4387else 4388 if test -z "$LD"; then 4389 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4390 for ac_dir in $PATH; do 4391 IFS="$lt_save_ifs" 4392 test -z "$ac_dir" && ac_dir=. 4393 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4394 lt_cv_path_LD="$ac_dir/$ac_prog" 4395 # Check to see if the program is GNU ld. I'd rather use --version, 4396 # but apparently some variants of GNU ld only accept -v. 4397 # Break only if it was the GNU/non-GNU ld that we prefer. 4398 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4399 *GNU* | *'with BFD'*) 4400 test "$with_gnu_ld" != no && break 4401 ;; 4402 *) 4403 test "$with_gnu_ld" != yes && break 4404 ;; 4405 esac 4406 fi 4407 done 4408 IFS="$lt_save_ifs" 4409else 4410 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4411fi 4412fi 4413 4414LD="$lt_cv_path_LD" 4415if test -n "$LD"; then 4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4417$as_echo "$LD" >&6; } 4418else 4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4420$as_echo "no" >&6; } 4421fi 4422test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4424$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4425if ${lt_cv_prog_gnu_ld+:} false; then : 4426 $as_echo_n "(cached) " >&6 4427else 4428 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4429case `$LD -v 2>&1 </dev/null` in 4430*GNU* | *'with BFD'*) 4431 lt_cv_prog_gnu_ld=yes 4432 ;; 4433*) 4434 lt_cv_prog_gnu_ld=no 4435 ;; 4436esac 4437fi 4438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4439$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4440with_gnu_ld=$lt_cv_prog_gnu_ld 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4451$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4452if ${lt_cv_path_NM+:} false; then : 4453 $as_echo_n "(cached) " >&6 4454else 4455 if test -n "$NM"; then 4456 # Let the user override the test. 4457 lt_cv_path_NM="$NM" 4458else 4459 lt_nm_to_check="${ac_tool_prefix}nm" 4460 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4461 lt_nm_to_check="$lt_nm_to_check nm" 4462 fi 4463 for lt_tmp_nm in $lt_nm_to_check; do 4464 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4465 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4466 IFS="$lt_save_ifs" 4467 test -z "$ac_dir" && ac_dir=. 4468 tmp_nm="$ac_dir/$lt_tmp_nm" 4469 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4470 # Check to see if the nm accepts a BSD-compat flag. 4471 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4472 # nm: unknown option "B" ignored 4473 # Tru64's nm complains that /dev/null is an invalid object file 4474 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4475 */dev/null* | *'Invalid file or object type'*) 4476 lt_cv_path_NM="$tmp_nm -B" 4477 break 4478 ;; 4479 *) 4480 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4481 */dev/null*) 4482 lt_cv_path_NM="$tmp_nm -p" 4483 break 4484 ;; 4485 *) 4486 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4487 continue # so that we can try to find one that supports BSD flags 4488 ;; 4489 esac 4490 ;; 4491 esac 4492 fi 4493 done 4494 IFS="$lt_save_ifs" 4495 done 4496 : ${lt_cv_path_NM=no} 4497fi 4498fi 4499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4500$as_echo "$lt_cv_path_NM" >&6; } 4501if test "$lt_cv_path_NM" != "no"; then 4502 NM="$lt_cv_path_NM" 4503else 4504 # Didn't find any BSD compatible name lister, look for dumpbin. 4505 if test -n "$DUMPBIN"; then : 4506 # Let the user override the test. 4507 else 4508 if test -n "$ac_tool_prefix"; then 4509 for ac_prog in dumpbin "link -dump" 4510 do 4511 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4512set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4514$as_echo_n "checking for $ac_word... " >&6; } 4515if ${ac_cv_prog_DUMPBIN+:} false; then : 4516 $as_echo_n "(cached) " >&6 4517else 4518 if test -n "$DUMPBIN"; then 4519 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4520else 4521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4522for as_dir in $PATH 4523do 4524 IFS=$as_save_IFS 4525 test -z "$as_dir" && as_dir=. 4526 for ac_exec_ext in '' $ac_executable_extensions; do 4527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4528 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4530 break 2 4531 fi 4532done 4533 done 4534IFS=$as_save_IFS 4535 4536fi 4537fi 4538DUMPBIN=$ac_cv_prog_DUMPBIN 4539if test -n "$DUMPBIN"; then 4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4541$as_echo "$DUMPBIN" >&6; } 4542else 4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4544$as_echo "no" >&6; } 4545fi 4546 4547 4548 test -n "$DUMPBIN" && break 4549 done 4550fi 4551if test -z "$DUMPBIN"; then 4552 ac_ct_DUMPBIN=$DUMPBIN 4553 for ac_prog in dumpbin "link -dump" 4554do 4555 # Extract the first word of "$ac_prog", so it can be a program name with args. 4556set dummy $ac_prog; ac_word=$2 4557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4558$as_echo_n "checking for $ac_word... " >&6; } 4559if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4560 $as_echo_n "(cached) " >&6 4561else 4562 if test -n "$ac_ct_DUMPBIN"; then 4563 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4564else 4565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4566for as_dir in $PATH 4567do 4568 IFS=$as_save_IFS 4569 test -z "$as_dir" && as_dir=. 4570 for ac_exec_ext in '' $ac_executable_extensions; do 4571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4572 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4574 break 2 4575 fi 4576done 4577 done 4578IFS=$as_save_IFS 4579 4580fi 4581fi 4582ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4583if test -n "$ac_ct_DUMPBIN"; then 4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4585$as_echo "$ac_ct_DUMPBIN" >&6; } 4586else 4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4588$as_echo "no" >&6; } 4589fi 4590 4591 4592 test -n "$ac_ct_DUMPBIN" && break 4593done 4594 4595 if test "x$ac_ct_DUMPBIN" = x; then 4596 DUMPBIN=":" 4597 else 4598 case $cross_compiling:$ac_tool_warned in 4599yes:) 4600{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4601$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4602ac_tool_warned=yes ;; 4603esac 4604 DUMPBIN=$ac_ct_DUMPBIN 4605 fi 4606fi 4607 4608 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4609 *COFF*) 4610 DUMPBIN="$DUMPBIN -symbols" 4611 ;; 4612 *) 4613 DUMPBIN=: 4614 ;; 4615 esac 4616 fi 4617 4618 if test "$DUMPBIN" != ":"; then 4619 NM="$DUMPBIN" 4620 fi 4621fi 4622test -z "$NM" && NM=nm 4623 4624 4625 4626 4627 4628 4629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4630$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4631if ${lt_cv_nm_interface+:} false; then : 4632 $as_echo_n "(cached) " >&6 4633else 4634 lt_cv_nm_interface="BSD nm" 4635 echo "int some_variable = 0;" > conftest.$ac_ext 4636 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4637 (eval "$ac_compile" 2>conftest.err) 4638 cat conftest.err >&5 4639 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4640 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4641 cat conftest.err >&5 4642 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4643 cat conftest.out >&5 4644 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4645 lt_cv_nm_interface="MS dumpbin" 4646 fi 4647 rm -f conftest* 4648fi 4649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4650$as_echo "$lt_cv_nm_interface" >&6; } 4651 4652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4653$as_echo_n "checking whether ln -s works... " >&6; } 4654LN_S=$as_ln_s 4655if test "$LN_S" = "ln -s"; then 4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4657$as_echo "yes" >&6; } 4658else 4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4660$as_echo "no, using $LN_S" >&6; } 4661fi 4662 4663# find the maximum length of command line arguments 4664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4665$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4666if ${lt_cv_sys_max_cmd_len+:} false; then : 4667 $as_echo_n "(cached) " >&6 4668else 4669 i=0 4670 teststring="ABCD" 4671 4672 case $build_os in 4673 msdosdjgpp*) 4674 # On DJGPP, this test can blow up pretty badly due to problems in libc 4675 # (any single argument exceeding 2000 bytes causes a buffer overrun 4676 # during glob expansion). Even if it were fixed, the result of this 4677 # check would be larger than it should be. 4678 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4679 ;; 4680 4681 gnu*) 4682 # Under GNU Hurd, this test is not required because there is 4683 # no limit to the length of command line arguments. 4684 # Libtool will interpret -1 as no limit whatsoever 4685 lt_cv_sys_max_cmd_len=-1; 4686 ;; 4687 4688 cygwin* | mingw* | cegcc*) 4689 # On Win9x/ME, this test blows up -- it succeeds, but takes 4690 # about 5 minutes as the teststring grows exponentially. 4691 # Worse, since 9x/ME are not pre-emptively multitasking, 4692 # you end up with a "frozen" computer, even though with patience 4693 # the test eventually succeeds (with a max line length of 256k). 4694 # Instead, let's just punt: use the minimum linelength reported by 4695 # all of the supported platforms: 8192 (on NT/2K/XP). 4696 lt_cv_sys_max_cmd_len=8192; 4697 ;; 4698 4699 mint*) 4700 # On MiNT this can take a long time and run out of memory. 4701 lt_cv_sys_max_cmd_len=8192; 4702 ;; 4703 4704 amigaos*) 4705 # On AmigaOS with pdksh, this test takes hours, literally. 4706 # So we just punt and use a minimum line length of 8192. 4707 lt_cv_sys_max_cmd_len=8192; 4708 ;; 4709 4710 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4711 # This has been around since 386BSD, at least. Likely further. 4712 if test -x /sbin/sysctl; then 4713 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4714 elif test -x /usr/sbin/sysctl; then 4715 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4716 else 4717 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4718 fi 4719 # And add a safety zone 4720 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4721 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4722 ;; 4723 4724 interix*) 4725 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4726 lt_cv_sys_max_cmd_len=196608 4727 ;; 4728 4729 os2*) 4730 # The test takes a long time on OS/2. 4731 lt_cv_sys_max_cmd_len=8192 4732 ;; 4733 4734 osf*) 4735 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4736 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4737 # nice to cause kernel panics so lets avoid the loop below. 4738 # First set a reasonable default. 4739 lt_cv_sys_max_cmd_len=16384 4740 # 4741 if test -x /sbin/sysconfig; then 4742 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4743 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4744 esac 4745 fi 4746 ;; 4747 sco3.2v5*) 4748 lt_cv_sys_max_cmd_len=102400 4749 ;; 4750 sysv5* | sco5v6* | sysv4.2uw2*) 4751 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4752 if test -n "$kargmax"; then 4753 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4754 else 4755 lt_cv_sys_max_cmd_len=32768 4756 fi 4757 ;; 4758 *) 4759 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4760 if test -n "$lt_cv_sys_max_cmd_len"; then 4761 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4762 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4763 else 4764 # Make teststring a little bigger before we do anything with it. 4765 # a 1K string should be a reasonable start. 4766 for i in 1 2 3 4 5 6 7 8 ; do 4767 teststring=$teststring$teststring 4768 done 4769 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4770 # If test is not a shell built-in, we'll probably end up computing a 4771 # maximum length that is only half of the actual maximum length, but 4772 # we can't tell. 4773 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 4774 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4775 test $i != 17 # 1/2 MB should be enough 4776 do 4777 i=`expr $i + 1` 4778 teststring=$teststring$teststring 4779 done 4780 # Only check the string length outside the loop. 4781 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4782 teststring= 4783 # Add a significant safety factor because C++ compilers can tack on 4784 # massive amounts of additional arguments before passing them to the 4785 # linker. It appears as though 1/2 is a usable value. 4786 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4787 fi 4788 ;; 4789 esac 4790 4791fi 4792 4793if test -n $lt_cv_sys_max_cmd_len ; then 4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4795$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4796else 4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4798$as_echo "none" >&6; } 4799fi 4800max_cmd_len=$lt_cv_sys_max_cmd_len 4801 4802 4803 4804 4805 4806 4807: ${CP="cp -f"} 4808: ${MV="mv -f"} 4809: ${RM="rm -f"} 4810 4811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4812$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4813# Try some XSI features 4814xsi_shell=no 4815( _lt_dummy="a/b/c" 4816 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 4817 = c,a/b,b/c, \ 4818 && eval 'test $(( 1 + 1 )) -eq 2 \ 4819 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4820 && xsi_shell=yes 4821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4822$as_echo "$xsi_shell" >&6; } 4823 4824 4825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4826$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4827lt_shell_append=no 4828( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4829 >/dev/null 2>&1 \ 4830 && lt_shell_append=yes 4831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4832$as_echo "$lt_shell_append" >&6; } 4833 4834 4835if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4836 lt_unset=unset 4837else 4838 lt_unset=false 4839fi 4840 4841 4842 4843 4844 4845# test EBCDIC or ASCII 4846case `echo X|tr X '\101'` in 4847 A) # ASCII based system 4848 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4849 lt_SP2NL='tr \040 \012' 4850 lt_NL2SP='tr \015\012 \040\040' 4851 ;; 4852 *) # EBCDIC based system 4853 lt_SP2NL='tr \100 \n' 4854 lt_NL2SP='tr \r\n \100\100' 4855 ;; 4856esac 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4867$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4868if ${lt_cv_to_host_file_cmd+:} false; then : 4869 $as_echo_n "(cached) " >&6 4870else 4871 case $host in 4872 *-*-mingw* ) 4873 case $build in 4874 *-*-mingw* ) # actually msys 4875 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4876 ;; 4877 *-*-cygwin* ) 4878 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4879 ;; 4880 * ) # otherwise, assume *nix 4881 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4882 ;; 4883 esac 4884 ;; 4885 *-*-cygwin* ) 4886 case $build in 4887 *-*-mingw* ) # actually msys 4888 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4889 ;; 4890 *-*-cygwin* ) 4891 lt_cv_to_host_file_cmd=func_convert_file_noop 4892 ;; 4893 * ) # otherwise, assume *nix 4894 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4895 ;; 4896 esac 4897 ;; 4898 * ) # unhandled hosts (and "normal" native builds) 4899 lt_cv_to_host_file_cmd=func_convert_file_noop 4900 ;; 4901esac 4902 4903fi 4904 4905to_host_file_cmd=$lt_cv_to_host_file_cmd 4906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4907$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4908 4909 4910 4911 4912 4913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4914$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4915if ${lt_cv_to_tool_file_cmd+:} false; then : 4916 $as_echo_n "(cached) " >&6 4917else 4918 #assume ordinary cross tools, or native build. 4919lt_cv_to_tool_file_cmd=func_convert_file_noop 4920case $host in 4921 *-*-mingw* ) 4922 case $build in 4923 *-*-mingw* ) # actually msys 4924 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4925 ;; 4926 esac 4927 ;; 4928esac 4929 4930fi 4931 4932to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4934$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4935 4936 4937 4938 4939 4940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4941$as_echo_n "checking for $LD option to reload object files... " >&6; } 4942if ${lt_cv_ld_reload_flag+:} false; then : 4943 $as_echo_n "(cached) " >&6 4944else 4945 lt_cv_ld_reload_flag='-r' 4946fi 4947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4948$as_echo "$lt_cv_ld_reload_flag" >&6; } 4949reload_flag=$lt_cv_ld_reload_flag 4950case $reload_flag in 4951"" | " "*) ;; 4952*) reload_flag=" $reload_flag" ;; 4953esac 4954reload_cmds='$LD$reload_flag -o $output$reload_objs' 4955case $host_os in 4956 cygwin* | mingw* | pw32* | cegcc*) 4957 if test "$GCC" != yes; then 4958 reload_cmds=false 4959 fi 4960 ;; 4961 darwin*) 4962 if test "$GCC" = yes; then 4963 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4964 else 4965 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4966 fi 4967 ;; 4968esac 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978if test -n "$ac_tool_prefix"; then 4979 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4980set dummy ${ac_tool_prefix}objdump; ac_word=$2 4981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4982$as_echo_n "checking for $ac_word... " >&6; } 4983if ${ac_cv_prog_OBJDUMP+:} false; then : 4984 $as_echo_n "(cached) " >&6 4985else 4986 if test -n "$OBJDUMP"; then 4987 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4988else 4989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4990for as_dir in $PATH 4991do 4992 IFS=$as_save_IFS 4993 test -z "$as_dir" && as_dir=. 4994 for ac_exec_ext in '' $ac_executable_extensions; do 4995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4996 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4998 break 2 4999 fi 5000done 5001 done 5002IFS=$as_save_IFS 5003 5004fi 5005fi 5006OBJDUMP=$ac_cv_prog_OBJDUMP 5007if test -n "$OBJDUMP"; then 5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5009$as_echo "$OBJDUMP" >&6; } 5010else 5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5012$as_echo "no" >&6; } 5013fi 5014 5015 5016fi 5017if test -z "$ac_cv_prog_OBJDUMP"; then 5018 ac_ct_OBJDUMP=$OBJDUMP 5019 # Extract the first word of "objdump", so it can be a program name with args. 5020set dummy objdump; ac_word=$2 5021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5022$as_echo_n "checking for $ac_word... " >&6; } 5023if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5024 $as_echo_n "(cached) " >&6 5025else 5026 if test -n "$ac_ct_OBJDUMP"; then 5027 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5028else 5029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5030for as_dir in $PATH 5031do 5032 IFS=$as_save_IFS 5033 test -z "$as_dir" && as_dir=. 5034 for ac_exec_ext in '' $ac_executable_extensions; do 5035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5036 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5038 break 2 5039 fi 5040done 5041 done 5042IFS=$as_save_IFS 5043 5044fi 5045fi 5046ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5047if test -n "$ac_ct_OBJDUMP"; then 5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5049$as_echo "$ac_ct_OBJDUMP" >&6; } 5050else 5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5052$as_echo "no" >&6; } 5053fi 5054 5055 if test "x$ac_ct_OBJDUMP" = x; then 5056 OBJDUMP="false" 5057 else 5058 case $cross_compiling:$ac_tool_warned in 5059yes:) 5060{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5061$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5062ac_tool_warned=yes ;; 5063esac 5064 OBJDUMP=$ac_ct_OBJDUMP 5065 fi 5066else 5067 OBJDUMP="$ac_cv_prog_OBJDUMP" 5068fi 5069 5070test -z "$OBJDUMP" && OBJDUMP=objdump 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5081$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5082if ${lt_cv_deplibs_check_method+:} false; then : 5083 $as_echo_n "(cached) " >&6 5084else 5085 lt_cv_file_magic_cmd='$MAGIC_CMD' 5086lt_cv_file_magic_test_file= 5087lt_cv_deplibs_check_method='unknown' 5088# Need to set the preceding variable on all platforms that support 5089# interlibrary dependencies. 5090# 'none' -- dependencies not supported. 5091# `unknown' -- same as none, but documents that we really don't know. 5092# 'pass_all' -- all dependencies passed with no checks. 5093# 'test_compile' -- check by making test program. 5094# 'file_magic [[regex]]' -- check by looking for files in library path 5095# which responds to the $file_magic_cmd with a given extended regex. 5096# If you have `file' or equivalent on your system and you're not sure 5097# whether `pass_all' will *always* work, you probably want this one. 5098 5099case $host_os in 5100aix[4-9]*) 5101 lt_cv_deplibs_check_method=pass_all 5102 ;; 5103 5104beos*) 5105 lt_cv_deplibs_check_method=pass_all 5106 ;; 5107 5108bsdi[45]*) 5109 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5110 lt_cv_file_magic_cmd='/usr/bin/file -L' 5111 lt_cv_file_magic_test_file=/shlib/libc.so 5112 ;; 5113 5114cygwin*) 5115 # func_win32_libid is a shell function defined in ltmain.sh 5116 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5117 lt_cv_file_magic_cmd='func_win32_libid' 5118 ;; 5119 5120mingw* | pw32*) 5121 # Base MSYS/MinGW do not provide the 'file' command needed by 5122 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5123 # unless we find 'file', for example because we are cross-compiling. 5124 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5125 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5126 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5127 lt_cv_file_magic_cmd='func_win32_libid' 5128 else 5129 # Keep this pattern in sync with the one in func_win32_libid. 5130 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5131 lt_cv_file_magic_cmd='$OBJDUMP -f' 5132 fi 5133 ;; 5134 5135cegcc*) 5136 # use the weaker test based on 'objdump'. See mingw*. 5137 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5138 lt_cv_file_magic_cmd='$OBJDUMP -f' 5139 ;; 5140 5141darwin* | rhapsody*) 5142 lt_cv_deplibs_check_method=pass_all 5143 ;; 5144 5145freebsd* | dragonfly*) 5146 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5147 case $host_cpu in 5148 i*86 ) 5149 # Not sure whether the presence of OpenBSD here was a mistake. 5150 # Let's accept both of them until this is cleared up. 5151 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5152 lt_cv_file_magic_cmd=/usr/bin/file 5153 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5154 ;; 5155 esac 5156 else 5157 lt_cv_deplibs_check_method=pass_all 5158 fi 5159 ;; 5160 5161gnu*) 5162 lt_cv_deplibs_check_method=pass_all 5163 ;; 5164 5165haiku*) 5166 lt_cv_deplibs_check_method=pass_all 5167 ;; 5168 5169hpux10.20* | hpux11*) 5170 lt_cv_file_magic_cmd=/usr/bin/file 5171 case $host_cpu in 5172 ia64*) 5173 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5174 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5175 ;; 5176 hppa*64*) 5177 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]' 5178 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5179 ;; 5180 *) 5181 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5182 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5183 ;; 5184 esac 5185 ;; 5186 5187interix[3-9]*) 5188 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5189 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5190 ;; 5191 5192irix5* | irix6* | nonstopux*) 5193 case $LD in 5194 *-32|*"-32 ") libmagic=32-bit;; 5195 *-n32|*"-n32 ") libmagic=N32;; 5196 *-64|*"-64 ") libmagic=64-bit;; 5197 *) libmagic=never-match;; 5198 esac 5199 lt_cv_deplibs_check_method=pass_all 5200 ;; 5201 5202# This must be glibc/ELF. 5203linux* | k*bsd*-gnu | kopensolaris*-gnu) 5204 lt_cv_deplibs_check_method=pass_all 5205 ;; 5206 5207netbsd*) 5208 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5209 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5210 else 5211 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5212 fi 5213 ;; 5214 5215newos6*) 5216 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5217 lt_cv_file_magic_cmd=/usr/bin/file 5218 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5219 ;; 5220 5221*nto* | *qnx*) 5222 lt_cv_deplibs_check_method=pass_all 5223 ;; 5224 5225openbsd*) 5226 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5227 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5228 else 5229 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5230 fi 5231 ;; 5232 5233osf3* | osf4* | osf5*) 5234 lt_cv_deplibs_check_method=pass_all 5235 ;; 5236 5237rdos*) 5238 lt_cv_deplibs_check_method=pass_all 5239 ;; 5240 5241solaris*) 5242 lt_cv_deplibs_check_method=pass_all 5243 ;; 5244 5245sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5246 lt_cv_deplibs_check_method=pass_all 5247 ;; 5248 5249sysv4 | sysv4.3*) 5250 case $host_vendor in 5251 motorola) 5252 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]' 5253 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5254 ;; 5255 ncr) 5256 lt_cv_deplibs_check_method=pass_all 5257 ;; 5258 sequent) 5259 lt_cv_file_magic_cmd='/bin/file' 5260 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5261 ;; 5262 sni) 5263 lt_cv_file_magic_cmd='/bin/file' 5264 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5265 lt_cv_file_magic_test_file=/lib/libc.so 5266 ;; 5267 siemens) 5268 lt_cv_deplibs_check_method=pass_all 5269 ;; 5270 pc) 5271 lt_cv_deplibs_check_method=pass_all 5272 ;; 5273 esac 5274 ;; 5275 5276tpf*) 5277 lt_cv_deplibs_check_method=pass_all 5278 ;; 5279esac 5280 5281fi 5282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5283$as_echo "$lt_cv_deplibs_check_method" >&6; } 5284 5285file_magic_glob= 5286want_nocaseglob=no 5287if test "$build" = "$host"; then 5288 case $host_os in 5289 mingw* | pw32*) 5290 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5291 want_nocaseglob=yes 5292 else 5293 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5294 fi 5295 ;; 5296 esac 5297fi 5298 5299file_magic_cmd=$lt_cv_file_magic_cmd 5300deplibs_check_method=$lt_cv_deplibs_check_method 5301test -z "$deplibs_check_method" && deplibs_check_method=unknown 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324if test -n "$ac_tool_prefix"; then 5325 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5326set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5328$as_echo_n "checking for $ac_word... " >&6; } 5329if ${ac_cv_prog_DLLTOOL+:} false; then : 5330 $as_echo_n "(cached) " >&6 5331else 5332 if test -n "$DLLTOOL"; then 5333 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5334else 5335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5336for as_dir in $PATH 5337do 5338 IFS=$as_save_IFS 5339 test -z "$as_dir" && as_dir=. 5340 for ac_exec_ext in '' $ac_executable_extensions; do 5341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5342 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5344 break 2 5345 fi 5346done 5347 done 5348IFS=$as_save_IFS 5349 5350fi 5351fi 5352DLLTOOL=$ac_cv_prog_DLLTOOL 5353if test -n "$DLLTOOL"; then 5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5355$as_echo "$DLLTOOL" >&6; } 5356else 5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5358$as_echo "no" >&6; } 5359fi 5360 5361 5362fi 5363if test -z "$ac_cv_prog_DLLTOOL"; then 5364 ac_ct_DLLTOOL=$DLLTOOL 5365 # Extract the first word of "dlltool", so it can be a program name with args. 5366set dummy dlltool; ac_word=$2 5367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5368$as_echo_n "checking for $ac_word... " >&6; } 5369if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5370 $as_echo_n "(cached) " >&6 5371else 5372 if test -n "$ac_ct_DLLTOOL"; then 5373 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5374else 5375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5376for as_dir in $PATH 5377do 5378 IFS=$as_save_IFS 5379 test -z "$as_dir" && as_dir=. 5380 for ac_exec_ext in '' $ac_executable_extensions; do 5381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5382 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5384 break 2 5385 fi 5386done 5387 done 5388IFS=$as_save_IFS 5389 5390fi 5391fi 5392ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5393if test -n "$ac_ct_DLLTOOL"; then 5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5395$as_echo "$ac_ct_DLLTOOL" >&6; } 5396else 5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5398$as_echo "no" >&6; } 5399fi 5400 5401 if test "x$ac_ct_DLLTOOL" = x; then 5402 DLLTOOL="false" 5403 else 5404 case $cross_compiling:$ac_tool_warned in 5405yes:) 5406{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5407$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5408ac_tool_warned=yes ;; 5409esac 5410 DLLTOOL=$ac_ct_DLLTOOL 5411 fi 5412else 5413 DLLTOOL="$ac_cv_prog_DLLTOOL" 5414fi 5415 5416test -z "$DLLTOOL" && DLLTOOL=dlltool 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5428$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5429if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5430 $as_echo_n "(cached) " >&6 5431else 5432 lt_cv_sharedlib_from_linklib_cmd='unknown' 5433 5434case $host_os in 5435cygwin* | mingw* | pw32* | cegcc*) 5436 # two different shell functions defined in ltmain.sh 5437 # decide which to use based on capabilities of $DLLTOOL 5438 case `$DLLTOOL --help 2>&1` in 5439 *--identify-strict*) 5440 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5441 ;; 5442 *) 5443 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5444 ;; 5445 esac 5446 ;; 5447*) 5448 # fallback: assume linklib IS sharedlib 5449 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5450 ;; 5451esac 5452 5453fi 5454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5455$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5456sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5457test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5458 5459 5460 5461 5462 5463 5464 5465 5466if test -n "$ac_tool_prefix"; then 5467 for ac_prog in ar 5468 do 5469 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5470set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5472$as_echo_n "checking for $ac_word... " >&6; } 5473if ${ac_cv_prog_AR+:} false; then : 5474 $as_echo_n "(cached) " >&6 5475else 5476 if test -n "$AR"; then 5477 ac_cv_prog_AR="$AR" # Let the user override the test. 5478else 5479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5480for as_dir in $PATH 5481do 5482 IFS=$as_save_IFS 5483 test -z "$as_dir" && as_dir=. 5484 for ac_exec_ext in '' $ac_executable_extensions; do 5485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5486 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5488 break 2 5489 fi 5490done 5491 done 5492IFS=$as_save_IFS 5493 5494fi 5495fi 5496AR=$ac_cv_prog_AR 5497if test -n "$AR"; then 5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5499$as_echo "$AR" >&6; } 5500else 5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5502$as_echo "no" >&6; } 5503fi 5504 5505 5506 test -n "$AR" && break 5507 done 5508fi 5509if test -z "$AR"; then 5510 ac_ct_AR=$AR 5511 for ac_prog in ar 5512do 5513 # Extract the first word of "$ac_prog", so it can be a program name with args. 5514set dummy $ac_prog; ac_word=$2 5515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5516$as_echo_n "checking for $ac_word... " >&6; } 5517if ${ac_cv_prog_ac_ct_AR+:} false; then : 5518 $as_echo_n "(cached) " >&6 5519else 5520 if test -n "$ac_ct_AR"; then 5521 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5522else 5523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5524for as_dir in $PATH 5525do 5526 IFS=$as_save_IFS 5527 test -z "$as_dir" && as_dir=. 5528 for ac_exec_ext in '' $ac_executable_extensions; do 5529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5530 ac_cv_prog_ac_ct_AR="$ac_prog" 5531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5532 break 2 5533 fi 5534done 5535 done 5536IFS=$as_save_IFS 5537 5538fi 5539fi 5540ac_ct_AR=$ac_cv_prog_ac_ct_AR 5541if test -n "$ac_ct_AR"; then 5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5543$as_echo "$ac_ct_AR" >&6; } 5544else 5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5546$as_echo "no" >&6; } 5547fi 5548 5549 5550 test -n "$ac_ct_AR" && break 5551done 5552 5553 if test "x$ac_ct_AR" = x; then 5554 AR="false" 5555 else 5556 case $cross_compiling:$ac_tool_warned in 5557yes:) 5558{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5559$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5560ac_tool_warned=yes ;; 5561esac 5562 AR=$ac_ct_AR 5563 fi 5564fi 5565 5566: ${AR=ar} 5567: ${AR_FLAGS=cru} 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5580$as_echo_n "checking for archiver @FILE support... " >&6; } 5581if ${lt_cv_ar_at_file+:} false; then : 5582 $as_echo_n "(cached) " >&6 5583else 5584 lt_cv_ar_at_file=no 5585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5586/* end confdefs.h. */ 5587 5588int 5589main () 5590{ 5591 5592 ; 5593 return 0; 5594} 5595_ACEOF 5596if ac_fn_c_try_compile "$LINENO"; then : 5597 echo conftest.$ac_objext > conftest.lst 5598 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5599 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5600 (eval $lt_ar_try) 2>&5 5601 ac_status=$? 5602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5603 test $ac_status = 0; } 5604 if test "$ac_status" -eq 0; then 5605 # Ensure the archiver fails upon bogus file names. 5606 rm -f conftest.$ac_objext libconftest.a 5607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5608 (eval $lt_ar_try) 2>&5 5609 ac_status=$? 5610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5611 test $ac_status = 0; } 5612 if test "$ac_status" -ne 0; then 5613 lt_cv_ar_at_file=@ 5614 fi 5615 fi 5616 rm -f conftest.* libconftest.a 5617 5618fi 5619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5620 5621fi 5622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5623$as_echo "$lt_cv_ar_at_file" >&6; } 5624 5625if test "x$lt_cv_ar_at_file" = xno; then 5626 archiver_list_spec= 5627else 5628 archiver_list_spec=$lt_cv_ar_at_file 5629fi 5630 5631 5632 5633 5634 5635 5636 5637if test -n "$ac_tool_prefix"; then 5638 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5639set dummy ${ac_tool_prefix}strip; ac_word=$2 5640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5641$as_echo_n "checking for $ac_word... " >&6; } 5642if ${ac_cv_prog_STRIP+:} false; then : 5643 $as_echo_n "(cached) " >&6 5644else 5645 if test -n "$STRIP"; then 5646 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5647else 5648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5649for as_dir in $PATH 5650do 5651 IFS=$as_save_IFS 5652 test -z "$as_dir" && as_dir=. 5653 for ac_exec_ext in '' $ac_executable_extensions; do 5654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5655 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5657 break 2 5658 fi 5659done 5660 done 5661IFS=$as_save_IFS 5662 5663fi 5664fi 5665STRIP=$ac_cv_prog_STRIP 5666if test -n "$STRIP"; then 5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5668$as_echo "$STRIP" >&6; } 5669else 5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5671$as_echo "no" >&6; } 5672fi 5673 5674 5675fi 5676if test -z "$ac_cv_prog_STRIP"; then 5677 ac_ct_STRIP=$STRIP 5678 # Extract the first word of "strip", so it can be a program name with args. 5679set dummy strip; ac_word=$2 5680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5681$as_echo_n "checking for $ac_word... " >&6; } 5682if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5683 $as_echo_n "(cached) " >&6 5684else 5685 if test -n "$ac_ct_STRIP"; then 5686 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5687else 5688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5689for as_dir in $PATH 5690do 5691 IFS=$as_save_IFS 5692 test -z "$as_dir" && as_dir=. 5693 for ac_exec_ext in '' $ac_executable_extensions; do 5694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5695 ac_cv_prog_ac_ct_STRIP="strip" 5696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5697 break 2 5698 fi 5699done 5700 done 5701IFS=$as_save_IFS 5702 5703fi 5704fi 5705ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5706if test -n "$ac_ct_STRIP"; then 5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5708$as_echo "$ac_ct_STRIP" >&6; } 5709else 5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5711$as_echo "no" >&6; } 5712fi 5713 5714 if test "x$ac_ct_STRIP" = x; then 5715 STRIP=":" 5716 else 5717 case $cross_compiling:$ac_tool_warned in 5718yes:) 5719{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5720$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5721ac_tool_warned=yes ;; 5722esac 5723 STRIP=$ac_ct_STRIP 5724 fi 5725else 5726 STRIP="$ac_cv_prog_STRIP" 5727fi 5728 5729test -z "$STRIP" && STRIP=: 5730 5731 5732 5733 5734 5735 5736if test -n "$ac_tool_prefix"; then 5737 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5738set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5740$as_echo_n "checking for $ac_word... " >&6; } 5741if ${ac_cv_prog_RANLIB+:} false; then : 5742 $as_echo_n "(cached) " >&6 5743else 5744 if test -n "$RANLIB"; then 5745 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5746else 5747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5748for as_dir in $PATH 5749do 5750 IFS=$as_save_IFS 5751 test -z "$as_dir" && as_dir=. 5752 for ac_exec_ext in '' $ac_executable_extensions; do 5753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5754 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5756 break 2 5757 fi 5758done 5759 done 5760IFS=$as_save_IFS 5761 5762fi 5763fi 5764RANLIB=$ac_cv_prog_RANLIB 5765if test -n "$RANLIB"; then 5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5767$as_echo "$RANLIB" >&6; } 5768else 5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5770$as_echo "no" >&6; } 5771fi 5772 5773 5774fi 5775if test -z "$ac_cv_prog_RANLIB"; then 5776 ac_ct_RANLIB=$RANLIB 5777 # Extract the first word of "ranlib", so it can be a program name with args. 5778set dummy ranlib; ac_word=$2 5779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5780$as_echo_n "checking for $ac_word... " >&6; } 5781if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5782 $as_echo_n "(cached) " >&6 5783else 5784 if test -n "$ac_ct_RANLIB"; then 5785 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5786else 5787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5788for as_dir in $PATH 5789do 5790 IFS=$as_save_IFS 5791 test -z "$as_dir" && as_dir=. 5792 for ac_exec_ext in '' $ac_executable_extensions; do 5793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5794 ac_cv_prog_ac_ct_RANLIB="ranlib" 5795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5796 break 2 5797 fi 5798done 5799 done 5800IFS=$as_save_IFS 5801 5802fi 5803fi 5804ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5805if test -n "$ac_ct_RANLIB"; then 5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5807$as_echo "$ac_ct_RANLIB" >&6; } 5808else 5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5810$as_echo "no" >&6; } 5811fi 5812 5813 if test "x$ac_ct_RANLIB" = x; then 5814 RANLIB=":" 5815 else 5816 case $cross_compiling:$ac_tool_warned in 5817yes:) 5818{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5819$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5820ac_tool_warned=yes ;; 5821esac 5822 RANLIB=$ac_ct_RANLIB 5823 fi 5824else 5825 RANLIB="$ac_cv_prog_RANLIB" 5826fi 5827 5828test -z "$RANLIB" && RANLIB=: 5829 5830 5831 5832 5833 5834 5835# Determine commands to create old-style static archives. 5836old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5837old_postinstall_cmds='chmod 644 $oldlib' 5838old_postuninstall_cmds= 5839 5840if test -n "$RANLIB"; then 5841 case $host_os in 5842 openbsd*) 5843 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5844 ;; 5845 *) 5846 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5847 ;; 5848 esac 5849 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5850fi 5851 5852case $host_os in 5853 darwin*) 5854 lock_old_archive_extraction=yes ;; 5855 *) 5856 lock_old_archive_extraction=no ;; 5857esac 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897# If no C compiler was specified, use CC. 5898LTCC=${LTCC-"$CC"} 5899 5900# If no C compiler flags were specified, use CFLAGS. 5901LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5902 5903# Allow CC to be a program name with arguments. 5904compiler=$CC 5905 5906 5907# Check for command to grab the raw symbol name followed by C symbol from nm. 5908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5909$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5910if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5911 $as_echo_n "(cached) " >&6 5912else 5913 5914# These are sane defaults that work on at least a few old systems. 5915# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5916 5917# Character class describing NM global symbol codes. 5918symcode='[BCDEGRST]' 5919 5920# Regexp to match symbols that can be accessed directly from C. 5921sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5922 5923# Define system-specific variables. 5924case $host_os in 5925aix*) 5926 symcode='[BCDT]' 5927 ;; 5928cygwin* | mingw* | pw32* | cegcc*) 5929 symcode='[ABCDGISTW]' 5930 ;; 5931hpux*) 5932 if test "$host_cpu" = ia64; then 5933 symcode='[ABCDEGRST]' 5934 fi 5935 ;; 5936irix* | nonstopux*) 5937 symcode='[BCDEGRST]' 5938 ;; 5939osf*) 5940 symcode='[BCDEGQRST]' 5941 ;; 5942solaris*) 5943 symcode='[BDRT]' 5944 ;; 5945sco3.2v5*) 5946 symcode='[DT]' 5947 ;; 5948sysv4.2uw2*) 5949 symcode='[DT]' 5950 ;; 5951sysv5* | sco5v6* | unixware* | OpenUNIX*) 5952 symcode='[ABDT]' 5953 ;; 5954sysv4) 5955 symcode='[DFNSTU]' 5956 ;; 5957esac 5958 5959# If we're using GNU nm, then use its standard symbol codes. 5960case `$NM -V 2>&1` in 5961*GNU* | *'with BFD'*) 5962 symcode='[ABCDGIRSTW]' ;; 5963esac 5964 5965# Transform an extracted symbol line into a proper C declaration. 5966# Some systems (esp. on ia64) link data and code symbols differently, 5967# so use this general approach. 5968lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5969 5970# Transform an extracted symbol line into symbol name and symbol address 5971lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5972lt_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'" 5973 5974# Handle CRLF in mingw tool chain 5975opt_cr= 5976case $build_os in 5977mingw*) 5978 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5979 ;; 5980esac 5981 5982# Try without a prefix underscore, then with it. 5983for ac_symprfx in "" "_"; do 5984 5985 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5986 symxfrm="\\1 $ac_symprfx\\2 \\2" 5987 5988 # Write the raw and C identifiers. 5989 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5990 # Fake it for dumpbin and say T for any non-static function 5991 # and D for any global variable. 5992 # Also find C++ and __fastcall symbols from MSVC++, 5993 # which start with @ or ?. 5994 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5995" {last_section=section; section=\$ 3};"\ 5996" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 5997" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5998" \$ 0!~/External *\|/{next};"\ 5999" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6000" {if(hide[section]) next};"\ 6001" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6002" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6003" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6004" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6005" ' prfx=^$ac_symprfx" 6006 else 6007 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6008 fi 6009 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6010 6011 # Check to see that the pipe works correctly. 6012 pipe_works=no 6013 6014 rm -f conftest* 6015 cat > conftest.$ac_ext <<_LT_EOF 6016#ifdef __cplusplus 6017extern "C" { 6018#endif 6019char nm_test_var; 6020void nm_test_func(void); 6021void nm_test_func(void){} 6022#ifdef __cplusplus 6023} 6024#endif 6025int main(){nm_test_var='a';nm_test_func();return(0);} 6026_LT_EOF 6027 6028 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6029 (eval $ac_compile) 2>&5 6030 ac_status=$? 6031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6032 test $ac_status = 0; }; then 6033 # Now try to grab the symbols. 6034 nlist=conftest.nm 6035 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6036 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6037 ac_status=$? 6038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6039 test $ac_status = 0; } && test -s "$nlist"; then 6040 # Try sorting and uniquifying the output. 6041 if sort "$nlist" | uniq > "$nlist"T; then 6042 mv -f "$nlist"T "$nlist" 6043 else 6044 rm -f "$nlist"T 6045 fi 6046 6047 # Make sure that we snagged all the symbols we need. 6048 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6049 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6050 cat <<_LT_EOF > conftest.$ac_ext 6051/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6052#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6053/* DATA imports from DLLs on WIN32 con't be const, because runtime 6054 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6055# define LT_DLSYM_CONST 6056#elif defined(__osf__) 6057/* This system does not cope well with relocations in const data. */ 6058# define LT_DLSYM_CONST 6059#else 6060# define LT_DLSYM_CONST const 6061#endif 6062 6063#ifdef __cplusplus 6064extern "C" { 6065#endif 6066 6067_LT_EOF 6068 # Now generate the symbol file. 6069 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6070 6071 cat <<_LT_EOF >> conftest.$ac_ext 6072 6073/* The mapping between symbol names and symbols. */ 6074LT_DLSYM_CONST struct { 6075 const char *name; 6076 void *address; 6077} 6078lt__PROGRAM__LTX_preloaded_symbols[] = 6079{ 6080 { "@PROGRAM@", (void *) 0 }, 6081_LT_EOF 6082 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6083 cat <<\_LT_EOF >> conftest.$ac_ext 6084 {0, (void *) 0} 6085}; 6086 6087/* This works around a problem in FreeBSD linker */ 6088#ifdef FREEBSD_WORKAROUND 6089static const void *lt_preloaded_setup() { 6090 return lt__PROGRAM__LTX_preloaded_symbols; 6091} 6092#endif 6093 6094#ifdef __cplusplus 6095} 6096#endif 6097_LT_EOF 6098 # Now try linking the two files. 6099 mv conftest.$ac_objext conftstm.$ac_objext 6100 lt_globsym_save_LIBS=$LIBS 6101 lt_globsym_save_CFLAGS=$CFLAGS 6102 LIBS="conftstm.$ac_objext" 6103 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6105 (eval $ac_link) 2>&5 6106 ac_status=$? 6107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6108 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6109 pipe_works=yes 6110 fi 6111 LIBS=$lt_globsym_save_LIBS 6112 CFLAGS=$lt_globsym_save_CFLAGS 6113 else 6114 echo "cannot find nm_test_func in $nlist" >&5 6115 fi 6116 else 6117 echo "cannot find nm_test_var in $nlist" >&5 6118 fi 6119 else 6120 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6121 fi 6122 else 6123 echo "$progname: failed program was:" >&5 6124 cat conftest.$ac_ext >&5 6125 fi 6126 rm -rf conftest* conftst* 6127 6128 # Do not use the global_symbol_pipe unless it works. 6129 if test "$pipe_works" = yes; then 6130 break 6131 else 6132 lt_cv_sys_global_symbol_pipe= 6133 fi 6134done 6135 6136fi 6137 6138if test -z "$lt_cv_sys_global_symbol_pipe"; then 6139 lt_cv_sys_global_symbol_to_cdecl= 6140fi 6141if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6143$as_echo "failed" >&6; } 6144else 6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6146$as_echo "ok" >&6; } 6147fi 6148 6149# Response file support. 6150if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6151 nm_file_list_spec='@' 6152elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6153 nm_file_list_spec='@' 6154fi 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6183$as_echo_n "checking for sysroot... " >&6; } 6184 6185# Check whether --with-sysroot was given. 6186if test "${with_sysroot+set}" = set; then : 6187 withval=$with_sysroot; 6188else 6189 with_sysroot=no 6190fi 6191 6192 6193lt_sysroot= 6194case ${with_sysroot} in #( 6195 yes) 6196 if test "$GCC" = yes; then 6197 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6198 fi 6199 ;; #( 6200 /*) 6201 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6202 ;; #( 6203 no|'') 6204 ;; #( 6205 *) 6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6207$as_echo "${with_sysroot}" >&6; } 6208 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6209 ;; 6210esac 6211 6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6213$as_echo "${lt_sysroot:-no}" >&6; } 6214 6215 6216 6217 6218 6219# Check whether --enable-libtool-lock was given. 6220if test "${enable_libtool_lock+set}" = set; then : 6221 enableval=$enable_libtool_lock; 6222fi 6223 6224test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6225 6226# Some flags need to be propagated to the compiler or linker for good 6227# libtool support. 6228case $host in 6229ia64-*-hpux*) 6230 # Find out which ABI we are using. 6231 echo 'int i;' > conftest.$ac_ext 6232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6233 (eval $ac_compile) 2>&5 6234 ac_status=$? 6235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6236 test $ac_status = 0; }; then 6237 case `/usr/bin/file conftest.$ac_objext` in 6238 *ELF-32*) 6239 HPUX_IA64_MODE="32" 6240 ;; 6241 *ELF-64*) 6242 HPUX_IA64_MODE="64" 6243 ;; 6244 esac 6245 fi 6246 rm -rf conftest* 6247 ;; 6248*-*-irix6*) 6249 # Find out which ABI we are using. 6250 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6252 (eval $ac_compile) 2>&5 6253 ac_status=$? 6254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6255 test $ac_status = 0; }; then 6256 if test "$lt_cv_prog_gnu_ld" = yes; then 6257 case `/usr/bin/file conftest.$ac_objext` in 6258 *32-bit*) 6259 LD="${LD-ld} -melf32bsmip" 6260 ;; 6261 *N32*) 6262 LD="${LD-ld} -melf32bmipn32" 6263 ;; 6264 *64-bit*) 6265 LD="${LD-ld} -melf64bmip" 6266 ;; 6267 esac 6268 else 6269 case `/usr/bin/file conftest.$ac_objext` in 6270 *32-bit*) 6271 LD="${LD-ld} -32" 6272 ;; 6273 *N32*) 6274 LD="${LD-ld} -n32" 6275 ;; 6276 *64-bit*) 6277 LD="${LD-ld} -64" 6278 ;; 6279 esac 6280 fi 6281 fi 6282 rm -rf conftest* 6283 ;; 6284 6285x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6286s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6287 # Find out which ABI we are using. 6288 echo 'int i;' > conftest.$ac_ext 6289 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6290 (eval $ac_compile) 2>&5 6291 ac_status=$? 6292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6293 test $ac_status = 0; }; then 6294 case `/usr/bin/file conftest.o` in 6295 *32-bit*) 6296 case $host in 6297 x86_64-*kfreebsd*-gnu) 6298 LD="${LD-ld} -m elf_i386_fbsd" 6299 ;; 6300 x86_64-*linux*) 6301 LD="${LD-ld} -m elf_i386" 6302 ;; 6303 ppc64-*linux*|powerpc64-*linux*) 6304 LD="${LD-ld} -m elf32ppclinux" 6305 ;; 6306 s390x-*linux*) 6307 LD="${LD-ld} -m elf_s390" 6308 ;; 6309 sparc64-*linux*) 6310 LD="${LD-ld} -m elf32_sparc" 6311 ;; 6312 esac 6313 ;; 6314 *64-bit*) 6315 case $host in 6316 x86_64-*kfreebsd*-gnu) 6317 LD="${LD-ld} -m elf_x86_64_fbsd" 6318 ;; 6319 x86_64-*linux*) 6320 LD="${LD-ld} -m elf_x86_64" 6321 ;; 6322 ppc*-*linux*|powerpc*-*linux*) 6323 LD="${LD-ld} -m elf64ppc" 6324 ;; 6325 s390*-*linux*|s390*-*tpf*) 6326 LD="${LD-ld} -m elf64_s390" 6327 ;; 6328 sparc*-*linux*) 6329 LD="${LD-ld} -m elf64_sparc" 6330 ;; 6331 esac 6332 ;; 6333 esac 6334 fi 6335 rm -rf conftest* 6336 ;; 6337 6338*-*-sco3.2v5*) 6339 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6340 SAVE_CFLAGS="$CFLAGS" 6341 CFLAGS="$CFLAGS -belf" 6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6343$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6344if ${lt_cv_cc_needs_belf+:} false; then : 6345 $as_echo_n "(cached) " >&6 6346else 6347 ac_ext=c 6348ac_cpp='$CPP $CPPFLAGS' 6349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6351ac_compiler_gnu=$ac_cv_c_compiler_gnu 6352 6353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6354/* end confdefs.h. */ 6355 6356int 6357main () 6358{ 6359 6360 ; 6361 return 0; 6362} 6363_ACEOF 6364if ac_fn_c_try_link "$LINENO"; then : 6365 lt_cv_cc_needs_belf=yes 6366else 6367 lt_cv_cc_needs_belf=no 6368fi 6369rm -f core conftest.err conftest.$ac_objext \ 6370 conftest$ac_exeext conftest.$ac_ext 6371 ac_ext=c 6372ac_cpp='$CPP $CPPFLAGS' 6373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6375ac_compiler_gnu=$ac_cv_c_compiler_gnu 6376 6377fi 6378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6379$as_echo "$lt_cv_cc_needs_belf" >&6; } 6380 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6381 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6382 CFLAGS="$SAVE_CFLAGS" 6383 fi 6384 ;; 6385*-*solaris*) 6386 # Find out which ABI we are using. 6387 echo 'int i;' > conftest.$ac_ext 6388 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6389 (eval $ac_compile) 2>&5 6390 ac_status=$? 6391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6392 test $ac_status = 0; }; then 6393 case `/usr/bin/file conftest.o` in 6394 *64-bit*) 6395 case $lt_cv_prog_gnu_ld in 6396 yes*) 6397 case $host in 6398 i?86-*-solaris*) 6399 LD="${LD-ld} -m elf_x86_64" 6400 ;; 6401 sparc*-*-solaris*) 6402 LD="${LD-ld} -m elf64_sparc" 6403 ;; 6404 esac 6405 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6406 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6407 LD="${LD-ld}_sol2" 6408 fi 6409 ;; 6410 *) 6411 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6412 LD="${LD-ld} -64" 6413 fi 6414 ;; 6415 esac 6416 ;; 6417 esac 6418 fi 6419 rm -rf conftest* 6420 ;; 6421esac 6422 6423need_locks="$enable_libtool_lock" 6424 6425if test -n "$ac_tool_prefix"; then 6426 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6427set dummy ${ac_tool_prefix}mt; ac_word=$2 6428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6429$as_echo_n "checking for $ac_word... " >&6; } 6430if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6431 $as_echo_n "(cached) " >&6 6432else 6433 if test -n "$MANIFEST_TOOL"; then 6434 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6435else 6436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6437for as_dir in $PATH 6438do 6439 IFS=$as_save_IFS 6440 test -z "$as_dir" && as_dir=. 6441 for ac_exec_ext in '' $ac_executable_extensions; do 6442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6443 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6445 break 2 6446 fi 6447done 6448 done 6449IFS=$as_save_IFS 6450 6451fi 6452fi 6453MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6454if test -n "$MANIFEST_TOOL"; then 6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6456$as_echo "$MANIFEST_TOOL" >&6; } 6457else 6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6459$as_echo "no" >&6; } 6460fi 6461 6462 6463fi 6464if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6465 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6466 # Extract the first word of "mt", so it can be a program name with args. 6467set dummy mt; ac_word=$2 6468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6469$as_echo_n "checking for $ac_word... " >&6; } 6470if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6471 $as_echo_n "(cached) " >&6 6472else 6473 if test -n "$ac_ct_MANIFEST_TOOL"; then 6474 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6475else 6476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6477for as_dir in $PATH 6478do 6479 IFS=$as_save_IFS 6480 test -z "$as_dir" && as_dir=. 6481 for ac_exec_ext in '' $ac_executable_extensions; do 6482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6483 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6485 break 2 6486 fi 6487done 6488 done 6489IFS=$as_save_IFS 6490 6491fi 6492fi 6493ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6494if test -n "$ac_ct_MANIFEST_TOOL"; then 6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6496$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6497else 6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6499$as_echo "no" >&6; } 6500fi 6501 6502 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6503 MANIFEST_TOOL=":" 6504 else 6505 case $cross_compiling:$ac_tool_warned in 6506yes:) 6507{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6508$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6509ac_tool_warned=yes ;; 6510esac 6511 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6512 fi 6513else 6514 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6515fi 6516 6517test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6519$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6520if ${lt_cv_path_mainfest_tool+:} false; then : 6521 $as_echo_n "(cached) " >&6 6522else 6523 lt_cv_path_mainfest_tool=no 6524 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6525 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6526 cat conftest.err >&5 6527 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6528 lt_cv_path_mainfest_tool=yes 6529 fi 6530 rm -f conftest* 6531fi 6532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6533$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6534if test "x$lt_cv_path_mainfest_tool" != xyes; then 6535 MANIFEST_TOOL=: 6536fi 6537 6538 6539 6540 6541 6542 6543 case $host_os in 6544 rhapsody* | darwin*) 6545 if test -n "$ac_tool_prefix"; then 6546 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6547set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6549$as_echo_n "checking for $ac_word... " >&6; } 6550if ${ac_cv_prog_DSYMUTIL+:} false; then : 6551 $as_echo_n "(cached) " >&6 6552else 6553 if test -n "$DSYMUTIL"; then 6554 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6555else 6556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6557for as_dir in $PATH 6558do 6559 IFS=$as_save_IFS 6560 test -z "$as_dir" && as_dir=. 6561 for ac_exec_ext in '' $ac_executable_extensions; do 6562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6563 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6565 break 2 6566 fi 6567done 6568 done 6569IFS=$as_save_IFS 6570 6571fi 6572fi 6573DSYMUTIL=$ac_cv_prog_DSYMUTIL 6574if test -n "$DSYMUTIL"; then 6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6576$as_echo "$DSYMUTIL" >&6; } 6577else 6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6579$as_echo "no" >&6; } 6580fi 6581 6582 6583fi 6584if test -z "$ac_cv_prog_DSYMUTIL"; then 6585 ac_ct_DSYMUTIL=$DSYMUTIL 6586 # Extract the first word of "dsymutil", so it can be a program name with args. 6587set dummy dsymutil; ac_word=$2 6588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6589$as_echo_n "checking for $ac_word... " >&6; } 6590if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6591 $as_echo_n "(cached) " >&6 6592else 6593 if test -n "$ac_ct_DSYMUTIL"; then 6594 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6595else 6596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6597for as_dir in $PATH 6598do 6599 IFS=$as_save_IFS 6600 test -z "$as_dir" && as_dir=. 6601 for ac_exec_ext in '' $ac_executable_extensions; do 6602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6603 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6605 break 2 6606 fi 6607done 6608 done 6609IFS=$as_save_IFS 6610 6611fi 6612fi 6613ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6614if test -n "$ac_ct_DSYMUTIL"; then 6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6616$as_echo "$ac_ct_DSYMUTIL" >&6; } 6617else 6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6619$as_echo "no" >&6; } 6620fi 6621 6622 if test "x$ac_ct_DSYMUTIL" = x; then 6623 DSYMUTIL=":" 6624 else 6625 case $cross_compiling:$ac_tool_warned in 6626yes:) 6627{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6628$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6629ac_tool_warned=yes ;; 6630esac 6631 DSYMUTIL=$ac_ct_DSYMUTIL 6632 fi 6633else 6634 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6635fi 6636 6637 if test -n "$ac_tool_prefix"; then 6638 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6639set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6641$as_echo_n "checking for $ac_word... " >&6; } 6642if ${ac_cv_prog_NMEDIT+:} false; then : 6643 $as_echo_n "(cached) " >&6 6644else 6645 if test -n "$NMEDIT"; then 6646 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6647else 6648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6649for as_dir in $PATH 6650do 6651 IFS=$as_save_IFS 6652 test -z "$as_dir" && as_dir=. 6653 for ac_exec_ext in '' $ac_executable_extensions; do 6654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6655 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6657 break 2 6658 fi 6659done 6660 done 6661IFS=$as_save_IFS 6662 6663fi 6664fi 6665NMEDIT=$ac_cv_prog_NMEDIT 6666if test -n "$NMEDIT"; then 6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6668$as_echo "$NMEDIT" >&6; } 6669else 6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6671$as_echo "no" >&6; } 6672fi 6673 6674 6675fi 6676if test -z "$ac_cv_prog_NMEDIT"; then 6677 ac_ct_NMEDIT=$NMEDIT 6678 # Extract the first word of "nmedit", so it can be a program name with args. 6679set dummy nmedit; ac_word=$2 6680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6681$as_echo_n "checking for $ac_word... " >&6; } 6682if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6683 $as_echo_n "(cached) " >&6 6684else 6685 if test -n "$ac_ct_NMEDIT"; then 6686 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6687else 6688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6689for as_dir in $PATH 6690do 6691 IFS=$as_save_IFS 6692 test -z "$as_dir" && as_dir=. 6693 for ac_exec_ext in '' $ac_executable_extensions; do 6694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6695 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6697 break 2 6698 fi 6699done 6700 done 6701IFS=$as_save_IFS 6702 6703fi 6704fi 6705ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6706if test -n "$ac_ct_NMEDIT"; then 6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6708$as_echo "$ac_ct_NMEDIT" >&6; } 6709else 6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6711$as_echo "no" >&6; } 6712fi 6713 6714 if test "x$ac_ct_NMEDIT" = x; then 6715 NMEDIT=":" 6716 else 6717 case $cross_compiling:$ac_tool_warned in 6718yes:) 6719{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6720$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6721ac_tool_warned=yes ;; 6722esac 6723 NMEDIT=$ac_ct_NMEDIT 6724 fi 6725else 6726 NMEDIT="$ac_cv_prog_NMEDIT" 6727fi 6728 6729 if test -n "$ac_tool_prefix"; then 6730 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6731set dummy ${ac_tool_prefix}lipo; ac_word=$2 6732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6733$as_echo_n "checking for $ac_word... " >&6; } 6734if ${ac_cv_prog_LIPO+:} false; then : 6735 $as_echo_n "(cached) " >&6 6736else 6737 if test -n "$LIPO"; then 6738 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6739else 6740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6741for as_dir in $PATH 6742do 6743 IFS=$as_save_IFS 6744 test -z "$as_dir" && as_dir=. 6745 for ac_exec_ext in '' $ac_executable_extensions; do 6746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6747 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6749 break 2 6750 fi 6751done 6752 done 6753IFS=$as_save_IFS 6754 6755fi 6756fi 6757LIPO=$ac_cv_prog_LIPO 6758if test -n "$LIPO"; then 6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6760$as_echo "$LIPO" >&6; } 6761else 6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6763$as_echo "no" >&6; } 6764fi 6765 6766 6767fi 6768if test -z "$ac_cv_prog_LIPO"; then 6769 ac_ct_LIPO=$LIPO 6770 # Extract the first word of "lipo", so it can be a program name with args. 6771set dummy lipo; ac_word=$2 6772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6773$as_echo_n "checking for $ac_word... " >&6; } 6774if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6775 $as_echo_n "(cached) " >&6 6776else 6777 if test -n "$ac_ct_LIPO"; then 6778 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6779else 6780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6781for as_dir in $PATH 6782do 6783 IFS=$as_save_IFS 6784 test -z "$as_dir" && as_dir=. 6785 for ac_exec_ext in '' $ac_executable_extensions; do 6786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6787 ac_cv_prog_ac_ct_LIPO="lipo" 6788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6789 break 2 6790 fi 6791done 6792 done 6793IFS=$as_save_IFS 6794 6795fi 6796fi 6797ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6798if test -n "$ac_ct_LIPO"; then 6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6800$as_echo "$ac_ct_LIPO" >&6; } 6801else 6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6803$as_echo "no" >&6; } 6804fi 6805 6806 if test "x$ac_ct_LIPO" = x; then 6807 LIPO=":" 6808 else 6809 case $cross_compiling:$ac_tool_warned in 6810yes:) 6811{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6812$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6813ac_tool_warned=yes ;; 6814esac 6815 LIPO=$ac_ct_LIPO 6816 fi 6817else 6818 LIPO="$ac_cv_prog_LIPO" 6819fi 6820 6821 if test -n "$ac_tool_prefix"; then 6822 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6823set dummy ${ac_tool_prefix}otool; ac_word=$2 6824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6825$as_echo_n "checking for $ac_word... " >&6; } 6826if ${ac_cv_prog_OTOOL+:} false; then : 6827 $as_echo_n "(cached) " >&6 6828else 6829 if test -n "$OTOOL"; then 6830 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6831else 6832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6833for as_dir in $PATH 6834do 6835 IFS=$as_save_IFS 6836 test -z "$as_dir" && as_dir=. 6837 for ac_exec_ext in '' $ac_executable_extensions; do 6838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6839 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6841 break 2 6842 fi 6843done 6844 done 6845IFS=$as_save_IFS 6846 6847fi 6848fi 6849OTOOL=$ac_cv_prog_OTOOL 6850if test -n "$OTOOL"; then 6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6852$as_echo "$OTOOL" >&6; } 6853else 6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6855$as_echo "no" >&6; } 6856fi 6857 6858 6859fi 6860if test -z "$ac_cv_prog_OTOOL"; then 6861 ac_ct_OTOOL=$OTOOL 6862 # Extract the first word of "otool", so it can be a program name with args. 6863set dummy otool; ac_word=$2 6864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6865$as_echo_n "checking for $ac_word... " >&6; } 6866if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6867 $as_echo_n "(cached) " >&6 6868else 6869 if test -n "$ac_ct_OTOOL"; then 6870 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6871else 6872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6873for as_dir in $PATH 6874do 6875 IFS=$as_save_IFS 6876 test -z "$as_dir" && as_dir=. 6877 for ac_exec_ext in '' $ac_executable_extensions; do 6878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6879 ac_cv_prog_ac_ct_OTOOL="otool" 6880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6881 break 2 6882 fi 6883done 6884 done 6885IFS=$as_save_IFS 6886 6887fi 6888fi 6889ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6890if test -n "$ac_ct_OTOOL"; then 6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6892$as_echo "$ac_ct_OTOOL" >&6; } 6893else 6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6895$as_echo "no" >&6; } 6896fi 6897 6898 if test "x$ac_ct_OTOOL" = x; then 6899 OTOOL=":" 6900 else 6901 case $cross_compiling:$ac_tool_warned in 6902yes:) 6903{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6904$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6905ac_tool_warned=yes ;; 6906esac 6907 OTOOL=$ac_ct_OTOOL 6908 fi 6909else 6910 OTOOL="$ac_cv_prog_OTOOL" 6911fi 6912 6913 if test -n "$ac_tool_prefix"; then 6914 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6915set dummy ${ac_tool_prefix}otool64; ac_word=$2 6916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6917$as_echo_n "checking for $ac_word... " >&6; } 6918if ${ac_cv_prog_OTOOL64+:} false; then : 6919 $as_echo_n "(cached) " >&6 6920else 6921 if test -n "$OTOOL64"; then 6922 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6923else 6924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6925for as_dir in $PATH 6926do 6927 IFS=$as_save_IFS 6928 test -z "$as_dir" && as_dir=. 6929 for ac_exec_ext in '' $ac_executable_extensions; do 6930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6931 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6933 break 2 6934 fi 6935done 6936 done 6937IFS=$as_save_IFS 6938 6939fi 6940fi 6941OTOOL64=$ac_cv_prog_OTOOL64 6942if test -n "$OTOOL64"; then 6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6944$as_echo "$OTOOL64" >&6; } 6945else 6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6947$as_echo "no" >&6; } 6948fi 6949 6950 6951fi 6952if test -z "$ac_cv_prog_OTOOL64"; then 6953 ac_ct_OTOOL64=$OTOOL64 6954 # Extract the first word of "otool64", so it can be a program name with args. 6955set dummy otool64; ac_word=$2 6956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6957$as_echo_n "checking for $ac_word... " >&6; } 6958if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 6959 $as_echo_n "(cached) " >&6 6960else 6961 if test -n "$ac_ct_OTOOL64"; then 6962 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6963else 6964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6965for as_dir in $PATH 6966do 6967 IFS=$as_save_IFS 6968 test -z "$as_dir" && as_dir=. 6969 for ac_exec_ext in '' $ac_executable_extensions; do 6970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6971 ac_cv_prog_ac_ct_OTOOL64="otool64" 6972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6973 break 2 6974 fi 6975done 6976 done 6977IFS=$as_save_IFS 6978 6979fi 6980fi 6981ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6982if test -n "$ac_ct_OTOOL64"; then 6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6984$as_echo "$ac_ct_OTOOL64" >&6; } 6985else 6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6987$as_echo "no" >&6; } 6988fi 6989 6990 if test "x$ac_ct_OTOOL64" = x; then 6991 OTOOL64=":" 6992 else 6993 case $cross_compiling:$ac_tool_warned in 6994yes:) 6995{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6996$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6997ac_tool_warned=yes ;; 6998esac 6999 OTOOL64=$ac_ct_OTOOL64 7000 fi 7001else 7002 OTOOL64="$ac_cv_prog_OTOOL64" 7003fi 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7032$as_echo_n "checking for -single_module linker flag... " >&6; } 7033if ${lt_cv_apple_cc_single_mod+:} false; then : 7034 $as_echo_n "(cached) " >&6 7035else 7036 lt_cv_apple_cc_single_mod=no 7037 if test -z "${LT_MULTI_MODULE}"; then 7038 # By default we will add the -single_module flag. You can override 7039 # by either setting the environment variable LT_MULTI_MODULE 7040 # non-empty at configure time, or by adding -multi_module to the 7041 # link flags. 7042 rm -rf libconftest.dylib* 7043 echo "int foo(void){return 1;}" > conftest.c 7044 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7045-dynamiclib -Wl,-single_module conftest.c" >&5 7046 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7047 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7048 _lt_result=$? 7049 # If there is a non-empty error log, and "single_module" 7050 # appears in it, assume the flag caused a linker warning 7051 if test -s conftest.err && $GREP single_module conftest.err; then 7052 cat conftest.err >&5 7053 # Otherwise, if the output was created with a 0 exit code from 7054 # the compiler, it worked. 7055 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7056 lt_cv_apple_cc_single_mod=yes 7057 else 7058 cat conftest.err >&5 7059 fi 7060 rm -rf libconftest.dylib* 7061 rm -f conftest.* 7062 fi 7063fi 7064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7065$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7066 7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7068$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7069if ${lt_cv_ld_exported_symbols_list+:} false; then : 7070 $as_echo_n "(cached) " >&6 7071else 7072 lt_cv_ld_exported_symbols_list=no 7073 save_LDFLAGS=$LDFLAGS 7074 echo "_main" > conftest.sym 7075 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7077/* end confdefs.h. */ 7078 7079int 7080main () 7081{ 7082 7083 ; 7084 return 0; 7085} 7086_ACEOF 7087if ac_fn_c_try_link "$LINENO"; then : 7088 lt_cv_ld_exported_symbols_list=yes 7089else 7090 lt_cv_ld_exported_symbols_list=no 7091fi 7092rm -f core conftest.err conftest.$ac_objext \ 7093 conftest$ac_exeext conftest.$ac_ext 7094 LDFLAGS="$save_LDFLAGS" 7095 7096fi 7097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7098$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7099 7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7101$as_echo_n "checking for -force_load linker flag... " >&6; } 7102if ${lt_cv_ld_force_load+:} false; then : 7103 $as_echo_n "(cached) " >&6 7104else 7105 lt_cv_ld_force_load=no 7106 cat > conftest.c << _LT_EOF 7107int forced_loaded() { return 2;} 7108_LT_EOF 7109 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7110 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7111 echo "$AR cru libconftest.a conftest.o" >&5 7112 $AR cru libconftest.a conftest.o 2>&5 7113 echo "$RANLIB libconftest.a" >&5 7114 $RANLIB libconftest.a 2>&5 7115 cat > conftest.c << _LT_EOF 7116int main() { return 0;} 7117_LT_EOF 7118 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7119 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7120 _lt_result=$? 7121 if test -s conftest.err && $GREP force_load conftest.err; then 7122 cat conftest.err >&5 7123 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7124 lt_cv_ld_force_load=yes 7125 else 7126 cat conftest.err >&5 7127 fi 7128 rm -f conftest.err libconftest.a conftest conftest.c 7129 rm -rf conftest.dSYM 7130 7131fi 7132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7133$as_echo "$lt_cv_ld_force_load" >&6; } 7134 case $host_os in 7135 rhapsody* | darwin1.[012]) 7136 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7137 darwin1.*) 7138 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7139 darwin*) # darwin 5.x on 7140 # if running on 10.5 or later, the deployment target defaults 7141 # to the OS version, if on x86, and 10.4, the deployment 7142 # target defaults to 10.4. Don't you love it? 7143 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7144 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7145 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7146 10.[012]*) 7147 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7148 10.*) 7149 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7150 esac 7151 ;; 7152 esac 7153 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7154 _lt_dar_single_mod='$single_module' 7155 fi 7156 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7157 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7158 else 7159 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7160 fi 7161 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7162 _lt_dsymutil='~$DSYMUTIL $lib || :' 7163 else 7164 _lt_dsymutil= 7165 fi 7166 ;; 7167 esac 7168 7169ac_ext=c 7170ac_cpp='$CPP $CPPFLAGS' 7171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7173ac_compiler_gnu=$ac_cv_c_compiler_gnu 7174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7175$as_echo_n "checking how to run the C preprocessor... " >&6; } 7176# On Suns, sometimes $CPP names a directory. 7177if test -n "$CPP" && test -d "$CPP"; then 7178 CPP= 7179fi 7180if test -z "$CPP"; then 7181 if ${ac_cv_prog_CPP+:} false; then : 7182 $as_echo_n "(cached) " >&6 7183else 7184 # Double quotes because CPP needs to be expanded 7185 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7186 do 7187 ac_preproc_ok=false 7188for ac_c_preproc_warn_flag in '' yes 7189do 7190 # Use a header file that comes with gcc, so configuring glibc 7191 # with a fresh cross-compiler works. 7192 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7193 # <limits.h> exists even on freestanding compilers. 7194 # On the NeXT, cc -E runs the code through the compiler's parser, 7195 # not just through cpp. "Syntax error" is here to catch this case. 7196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7197/* end confdefs.h. */ 7198#ifdef __STDC__ 7199# include <limits.h> 7200#else 7201# include <assert.h> 7202#endif 7203 Syntax error 7204_ACEOF 7205if ac_fn_c_try_cpp "$LINENO"; then : 7206 7207else 7208 # Broken: fails on valid input. 7209continue 7210fi 7211rm -f conftest.err conftest.i conftest.$ac_ext 7212 7213 # OK, works on sane cases. Now check whether nonexistent headers 7214 # can be detected and how. 7215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7216/* end confdefs.h. */ 7217#include <ac_nonexistent.h> 7218_ACEOF 7219if ac_fn_c_try_cpp "$LINENO"; then : 7220 # Broken: success on invalid input. 7221continue 7222else 7223 # Passes both tests. 7224ac_preproc_ok=: 7225break 7226fi 7227rm -f conftest.err conftest.i conftest.$ac_ext 7228 7229done 7230# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7231rm -f conftest.i conftest.err conftest.$ac_ext 7232if $ac_preproc_ok; then : 7233 break 7234fi 7235 7236 done 7237 ac_cv_prog_CPP=$CPP 7238 7239fi 7240 CPP=$ac_cv_prog_CPP 7241else 7242 ac_cv_prog_CPP=$CPP 7243fi 7244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7245$as_echo "$CPP" >&6; } 7246ac_preproc_ok=false 7247for ac_c_preproc_warn_flag in '' yes 7248do 7249 # Use a header file that comes with gcc, so configuring glibc 7250 # with a fresh cross-compiler works. 7251 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7252 # <limits.h> exists even on freestanding compilers. 7253 # On the NeXT, cc -E runs the code through the compiler's parser, 7254 # not just through cpp. "Syntax error" is here to catch this case. 7255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7256/* end confdefs.h. */ 7257#ifdef __STDC__ 7258# include <limits.h> 7259#else 7260# include <assert.h> 7261#endif 7262 Syntax error 7263_ACEOF 7264if ac_fn_c_try_cpp "$LINENO"; then : 7265 7266else 7267 # Broken: fails on valid input. 7268continue 7269fi 7270rm -f conftest.err conftest.i conftest.$ac_ext 7271 7272 # OK, works on sane cases. Now check whether nonexistent headers 7273 # can be detected and how. 7274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7275/* end confdefs.h. */ 7276#include <ac_nonexistent.h> 7277_ACEOF 7278if ac_fn_c_try_cpp "$LINENO"; then : 7279 # Broken: success on invalid input. 7280continue 7281else 7282 # Passes both tests. 7283ac_preproc_ok=: 7284break 7285fi 7286rm -f conftest.err conftest.i conftest.$ac_ext 7287 7288done 7289# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7290rm -f conftest.i conftest.err conftest.$ac_ext 7291if $ac_preproc_ok; then : 7292 7293else 7294 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7295$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7296as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7297See \`config.log' for more details" "$LINENO" 5; } 7298fi 7299 7300ac_ext=c 7301ac_cpp='$CPP $CPPFLAGS' 7302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7304ac_compiler_gnu=$ac_cv_c_compiler_gnu 7305 7306 7307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7308$as_echo_n "checking for ANSI C header files... " >&6; } 7309if ${ac_cv_header_stdc+:} false; then : 7310 $as_echo_n "(cached) " >&6 7311else 7312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7313/* end confdefs.h. */ 7314#include <stdlib.h> 7315#include <stdarg.h> 7316#include <string.h> 7317#include <float.h> 7318 7319int 7320main () 7321{ 7322 7323 ; 7324 return 0; 7325} 7326_ACEOF 7327if ac_fn_c_try_compile "$LINENO"; then : 7328 ac_cv_header_stdc=yes 7329else 7330 ac_cv_header_stdc=no 7331fi 7332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7333 7334if test $ac_cv_header_stdc = yes; then 7335 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7337/* end confdefs.h. */ 7338#include <string.h> 7339 7340_ACEOF 7341if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7342 $EGREP "memchr" >/dev/null 2>&1; then : 7343 7344else 7345 ac_cv_header_stdc=no 7346fi 7347rm -f conftest* 7348 7349fi 7350 7351if test $ac_cv_header_stdc = yes; then 7352 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7354/* end confdefs.h. */ 7355#include <stdlib.h> 7356 7357_ACEOF 7358if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7359 $EGREP "free" >/dev/null 2>&1; then : 7360 7361else 7362 ac_cv_header_stdc=no 7363fi 7364rm -f conftest* 7365 7366fi 7367 7368if test $ac_cv_header_stdc = yes; then 7369 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7370 if test "$cross_compiling" = yes; then : 7371 : 7372else 7373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7374/* end confdefs.h. */ 7375#include <ctype.h> 7376#include <stdlib.h> 7377#if ((' ' & 0x0FF) == 0x020) 7378# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7379# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7380#else 7381# define ISLOWER(c) \ 7382 (('a' <= (c) && (c) <= 'i') \ 7383 || ('j' <= (c) && (c) <= 'r') \ 7384 || ('s' <= (c) && (c) <= 'z')) 7385# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7386#endif 7387 7388#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7389int 7390main () 7391{ 7392 int i; 7393 for (i = 0; i < 256; i++) 7394 if (XOR (islower (i), ISLOWER (i)) 7395 || toupper (i) != TOUPPER (i)) 7396 return 2; 7397 return 0; 7398} 7399_ACEOF 7400if ac_fn_c_try_run "$LINENO"; then : 7401 7402else 7403 ac_cv_header_stdc=no 7404fi 7405rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7406 conftest.$ac_objext conftest.beam conftest.$ac_ext 7407fi 7408 7409fi 7410fi 7411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7412$as_echo "$ac_cv_header_stdc" >&6; } 7413if test $ac_cv_header_stdc = yes; then 7414 7415$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7416 7417fi 7418 7419# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7420for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7421 inttypes.h stdint.h unistd.h 7422do : 7423 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7424ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7425" 7426if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7427 cat >>confdefs.h <<_ACEOF 7428#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7429_ACEOF 7430 7431fi 7432 7433done 7434 7435 7436for ac_header in dlfcn.h 7437do : 7438 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7439" 7440if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7441 cat >>confdefs.h <<_ACEOF 7442#define HAVE_DLFCN_H 1 7443_ACEOF 7444 7445fi 7446 7447done 7448 7449 7450 7451 7452 7453# Set options 7454 7455 7456 7457 enable_dlopen=no 7458 7459 7460 enable_win32_dll=no 7461 7462 7463 # Check whether --enable-shared was given. 7464if test "${enable_shared+set}" = set; then : 7465 enableval=$enable_shared; p=${PACKAGE-default} 7466 case $enableval in 7467 yes) enable_shared=yes ;; 7468 no) enable_shared=no ;; 7469 *) 7470 enable_shared=no 7471 # Look at the argument we got. We use all the common list separators. 7472 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7473 for pkg in $enableval; do 7474 IFS="$lt_save_ifs" 7475 if test "X$pkg" = "X$p"; then 7476 enable_shared=yes 7477 fi 7478 done 7479 IFS="$lt_save_ifs" 7480 ;; 7481 esac 7482else 7483 enable_shared=yes 7484fi 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 # Check whether --enable-static was given. 7495if test "${enable_static+set}" = set; then : 7496 enableval=$enable_static; p=${PACKAGE-default} 7497 case $enableval in 7498 yes) enable_static=yes ;; 7499 no) enable_static=no ;; 7500 *) 7501 enable_static=no 7502 # Look at the argument we got. We use all the common list separators. 7503 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7504 for pkg in $enableval; do 7505 IFS="$lt_save_ifs" 7506 if test "X$pkg" = "X$p"; then 7507 enable_static=yes 7508 fi 7509 done 7510 IFS="$lt_save_ifs" 7511 ;; 7512 esac 7513else 7514 enable_static=yes 7515fi 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526# Check whether --with-pic was given. 7527if test "${with_pic+set}" = set; then : 7528 withval=$with_pic; lt_p=${PACKAGE-default} 7529 case $withval in 7530 yes|no) pic_mode=$withval ;; 7531 *) 7532 pic_mode=default 7533 # Look at the argument we got. We use all the common list separators. 7534 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7535 for lt_pkg in $withval; do 7536 IFS="$lt_save_ifs" 7537 if test "X$lt_pkg" = "X$lt_p"; then 7538 pic_mode=yes 7539 fi 7540 done 7541 IFS="$lt_save_ifs" 7542 ;; 7543 esac 7544else 7545 pic_mode=default 7546fi 7547 7548 7549test -z "$pic_mode" && pic_mode=default 7550 7551 7552 7553 7554 7555 7556 7557 # Check whether --enable-fast-install was given. 7558if test "${enable_fast_install+set}" = set; then : 7559 enableval=$enable_fast_install; p=${PACKAGE-default} 7560 case $enableval in 7561 yes) enable_fast_install=yes ;; 7562 no) enable_fast_install=no ;; 7563 *) 7564 enable_fast_install=no 7565 # Look at the argument we got. We use all the common list separators. 7566 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7567 for pkg in $enableval; do 7568 IFS="$lt_save_ifs" 7569 if test "X$pkg" = "X$p"; then 7570 enable_fast_install=yes 7571 fi 7572 done 7573 IFS="$lt_save_ifs" 7574 ;; 7575 esac 7576else 7577 enable_fast_install=yes 7578fi 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590# This can be used to rebuild libtool when needed 7591LIBTOOL_DEPS="$ltmain" 7592 7593# Always use our own libtool. 7594LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625test -z "$LN_S" && LN_S="ln -s" 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640if test -n "${ZSH_VERSION+set}" ; then 7641 setopt NO_GLOB_SUBST 7642fi 7643 7644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7645$as_echo_n "checking for objdir... " >&6; } 7646if ${lt_cv_objdir+:} false; then : 7647 $as_echo_n "(cached) " >&6 7648else 7649 rm -f .libs 2>/dev/null 7650mkdir .libs 2>/dev/null 7651if test -d .libs; then 7652 lt_cv_objdir=.libs 7653else 7654 # MS-DOS does not allow filenames that begin with a dot. 7655 lt_cv_objdir=_libs 7656fi 7657rmdir .libs 2>/dev/null 7658fi 7659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7660$as_echo "$lt_cv_objdir" >&6; } 7661objdir=$lt_cv_objdir 7662 7663 7664 7665 7666 7667cat >>confdefs.h <<_ACEOF 7668#define LT_OBJDIR "$lt_cv_objdir/" 7669_ACEOF 7670 7671 7672 7673 7674case $host_os in 7675aix3*) 7676 # AIX sometimes has problems with the GCC collect2 program. For some 7677 # reason, if we set the COLLECT_NAMES environment variable, the problems 7678 # vanish in a puff of smoke. 7679 if test "X${COLLECT_NAMES+set}" != Xset; then 7680 COLLECT_NAMES= 7681 export COLLECT_NAMES 7682 fi 7683 ;; 7684esac 7685 7686# Global variables: 7687ofile=libtool 7688can_build_shared=yes 7689 7690# All known linkers require a `.a' archive for static linking (except MSVC, 7691# which needs '.lib'). 7692libext=a 7693 7694with_gnu_ld="$lt_cv_prog_gnu_ld" 7695 7696old_CC="$CC" 7697old_CFLAGS="$CFLAGS" 7698 7699# Set sane defaults for various variables 7700test -z "$CC" && CC=cc 7701test -z "$LTCC" && LTCC=$CC 7702test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7703test -z "$LD" && LD=ld 7704test -z "$ac_objext" && ac_objext=o 7705 7706for cc_temp in $compiler""; do 7707 case $cc_temp in 7708 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7709 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7710 \-*) ;; 7711 *) break;; 7712 esac 7713done 7714cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7715 7716 7717# Only perform the check for file, if the check method requires it 7718test -z "$MAGIC_CMD" && MAGIC_CMD=file 7719case $deplibs_check_method in 7720file_magic*) 7721 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7723$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7724if ${lt_cv_path_MAGIC_CMD+:} false; then : 7725 $as_echo_n "(cached) " >&6 7726else 7727 case $MAGIC_CMD in 7728[\\/*] | ?:[\\/]*) 7729 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7730 ;; 7731*) 7732 lt_save_MAGIC_CMD="$MAGIC_CMD" 7733 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7734 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7735 for ac_dir in $ac_dummy; do 7736 IFS="$lt_save_ifs" 7737 test -z "$ac_dir" && ac_dir=. 7738 if test -f $ac_dir/${ac_tool_prefix}file; then 7739 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7740 if test -n "$file_magic_test_file"; then 7741 case $deplibs_check_method in 7742 "file_magic "*) 7743 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7744 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7745 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7746 $EGREP "$file_magic_regex" > /dev/null; then 7747 : 7748 else 7749 cat <<_LT_EOF 1>&2 7750 7751*** Warning: the command libtool uses to detect shared libraries, 7752*** $file_magic_cmd, produces output that libtool cannot recognize. 7753*** The result is that libtool may fail to recognize shared libraries 7754*** as such. This will affect the creation of libtool libraries that 7755*** depend on shared libraries, but programs linked with such libtool 7756*** libraries will work regardless of this problem. Nevertheless, you 7757*** may want to report the problem to your system manager and/or to 7758*** bug-libtool@gnu.org 7759 7760_LT_EOF 7761 fi ;; 7762 esac 7763 fi 7764 break 7765 fi 7766 done 7767 IFS="$lt_save_ifs" 7768 MAGIC_CMD="$lt_save_MAGIC_CMD" 7769 ;; 7770esac 7771fi 7772 7773MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7774if test -n "$MAGIC_CMD"; then 7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7776$as_echo "$MAGIC_CMD" >&6; } 7777else 7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7779$as_echo "no" >&6; } 7780fi 7781 7782 7783 7784 7785 7786if test -z "$lt_cv_path_MAGIC_CMD"; then 7787 if test -n "$ac_tool_prefix"; then 7788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7789$as_echo_n "checking for file... " >&6; } 7790if ${lt_cv_path_MAGIC_CMD+:} false; then : 7791 $as_echo_n "(cached) " >&6 7792else 7793 case $MAGIC_CMD in 7794[\\/*] | ?:[\\/]*) 7795 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7796 ;; 7797*) 7798 lt_save_MAGIC_CMD="$MAGIC_CMD" 7799 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7800 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7801 for ac_dir in $ac_dummy; do 7802 IFS="$lt_save_ifs" 7803 test -z "$ac_dir" && ac_dir=. 7804 if test -f $ac_dir/file; then 7805 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7806 if test -n "$file_magic_test_file"; then 7807 case $deplibs_check_method in 7808 "file_magic "*) 7809 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7810 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7811 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7812 $EGREP "$file_magic_regex" > /dev/null; then 7813 : 7814 else 7815 cat <<_LT_EOF 1>&2 7816 7817*** Warning: the command libtool uses to detect shared libraries, 7818*** $file_magic_cmd, produces output that libtool cannot recognize. 7819*** The result is that libtool may fail to recognize shared libraries 7820*** as such. This will affect the creation of libtool libraries that 7821*** depend on shared libraries, but programs linked with such libtool 7822*** libraries will work regardless of this problem. Nevertheless, you 7823*** may want to report the problem to your system manager and/or to 7824*** bug-libtool@gnu.org 7825 7826_LT_EOF 7827 fi ;; 7828 esac 7829 fi 7830 break 7831 fi 7832 done 7833 IFS="$lt_save_ifs" 7834 MAGIC_CMD="$lt_save_MAGIC_CMD" 7835 ;; 7836esac 7837fi 7838 7839MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7840if test -n "$MAGIC_CMD"; then 7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7842$as_echo "$MAGIC_CMD" >&6; } 7843else 7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7845$as_echo "no" >&6; } 7846fi 7847 7848 7849 else 7850 MAGIC_CMD=: 7851 fi 7852fi 7853 7854 fi 7855 ;; 7856esac 7857 7858# Use C for the default configuration in the libtool script 7859 7860lt_save_CC="$CC" 7861ac_ext=c 7862ac_cpp='$CPP $CPPFLAGS' 7863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7865ac_compiler_gnu=$ac_cv_c_compiler_gnu 7866 7867 7868# Source file extension for C test sources. 7869ac_ext=c 7870 7871# Object file extension for compiled C test sources. 7872objext=o 7873objext=$objext 7874 7875# Code to be used in simple compile tests 7876lt_simple_compile_test_code="int some_variable = 0;" 7877 7878# Code to be used in simple link tests 7879lt_simple_link_test_code='int main(){return(0);}' 7880 7881 7882 7883 7884 7885 7886 7887# If no C compiler was specified, use CC. 7888LTCC=${LTCC-"$CC"} 7889 7890# If no C compiler flags were specified, use CFLAGS. 7891LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7892 7893# Allow CC to be a program name with arguments. 7894compiler=$CC 7895 7896# Save the default compiler, since it gets overwritten when the other 7897# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7898compiler_DEFAULT=$CC 7899 7900# save warnings/boilerplate of simple test code 7901ac_outfile=conftest.$ac_objext 7902echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7903eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7904_lt_compiler_boilerplate=`cat conftest.err` 7905$RM conftest* 7906 7907ac_outfile=conftest.$ac_objext 7908echo "$lt_simple_link_test_code" >conftest.$ac_ext 7909eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7910_lt_linker_boilerplate=`cat conftest.err` 7911$RM -r conftest* 7912 7913 7914if test -n "$compiler"; then 7915 7916lt_prog_compiler_no_builtin_flag= 7917 7918if test "$GCC" = yes; then 7919 case $cc_basename in 7920 nvcc*) 7921 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7922 *) 7923 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7924 esac 7925 7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7927$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7928if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7929 $as_echo_n "(cached) " >&6 7930else 7931 lt_cv_prog_compiler_rtti_exceptions=no 7932 ac_outfile=conftest.$ac_objext 7933 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7934 lt_compiler_flag="-fno-rtti -fno-exceptions" 7935 # Insert the option either (1) after the last *FLAGS variable, or 7936 # (2) before a word containing "conftest.", or (3) at the end. 7937 # Note that $ac_compile itself does not contain backslashes and begins 7938 # with a dollar sign (not a hyphen), so the echo should work correctly. 7939 # The option is referenced via a variable to avoid confusing sed. 7940 lt_compile=`echo "$ac_compile" | $SED \ 7941 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7942 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7943 -e 's:$: $lt_compiler_flag:'` 7944 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7945 (eval "$lt_compile" 2>conftest.err) 7946 ac_status=$? 7947 cat conftest.err >&5 7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7949 if (exit $ac_status) && test -s "$ac_outfile"; then 7950 # The compiler can only warn and ignore the option if not recognized 7951 # So say no if there are warnings other than the usual output. 7952 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7953 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7954 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7955 lt_cv_prog_compiler_rtti_exceptions=yes 7956 fi 7957 fi 7958 $RM conftest* 7959 7960fi 7961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7962$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7963 7964if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7965 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7966else 7967 : 7968fi 7969 7970fi 7971 7972 7973 7974 7975 7976 7977 lt_prog_compiler_wl= 7978lt_prog_compiler_pic= 7979lt_prog_compiler_static= 7980 7981 7982 if test "$GCC" = yes; then 7983 lt_prog_compiler_wl='-Wl,' 7984 lt_prog_compiler_static='-static' 7985 7986 case $host_os in 7987 aix*) 7988 # All AIX code is PIC. 7989 if test "$host_cpu" = ia64; then 7990 # AIX 5 now supports IA64 processor 7991 lt_prog_compiler_static='-Bstatic' 7992 fi 7993 ;; 7994 7995 amigaos*) 7996 case $host_cpu in 7997 powerpc) 7998 # see comment about AmigaOS4 .so support 7999 lt_prog_compiler_pic='-fPIC' 8000 ;; 8001 m68k) 8002 # FIXME: we need at least 68020 code to build shared libraries, but 8003 # adding the `-m68020' flag to GCC prevents building anything better, 8004 # like `-m68040'. 8005 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8006 ;; 8007 esac 8008 ;; 8009 8010 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8011 # PIC is the default for these OSes. 8012 ;; 8013 8014 mingw* | cygwin* | pw32* | os2* | cegcc*) 8015 # This hack is so that the source file can tell whether it is being 8016 # built for inclusion in a dll (and should export symbols for example). 8017 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8018 # (--disable-auto-import) libraries 8019 lt_prog_compiler_pic='-DDLL_EXPORT' 8020 ;; 8021 8022 darwin* | rhapsody*) 8023 # PIC is the default on this platform 8024 # Common symbols not allowed in MH_DYLIB files 8025 lt_prog_compiler_pic='-fno-common' 8026 ;; 8027 8028 haiku*) 8029 # PIC is the default for Haiku. 8030 # The "-static" flag exists, but is broken. 8031 lt_prog_compiler_static= 8032 ;; 8033 8034 hpux*) 8035 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8036 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8037 # sets the default TLS model and affects inlining. 8038 case $host_cpu in 8039 hppa*64*) 8040 # +Z the default 8041 ;; 8042 *) 8043 lt_prog_compiler_pic='-fPIC' 8044 ;; 8045 esac 8046 ;; 8047 8048 interix[3-9]*) 8049 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8050 # Instead, we relocate shared libraries at runtime. 8051 ;; 8052 8053 msdosdjgpp*) 8054 # Just because we use GCC doesn't mean we suddenly get shared libraries 8055 # on systems that don't support them. 8056 lt_prog_compiler_can_build_shared=no 8057 enable_shared=no 8058 ;; 8059 8060 *nto* | *qnx*) 8061 # QNX uses GNU C++, but need to define -shared option too, otherwise 8062 # it will coredump. 8063 lt_prog_compiler_pic='-fPIC -shared' 8064 ;; 8065 8066 sysv4*MP*) 8067 if test -d /usr/nec; then 8068 lt_prog_compiler_pic=-Kconform_pic 8069 fi 8070 ;; 8071 8072 *) 8073 lt_prog_compiler_pic='-fPIC' 8074 ;; 8075 esac 8076 8077 case $cc_basename in 8078 nvcc*) # Cuda Compiler Driver 2.2 8079 lt_prog_compiler_wl='-Xlinker ' 8080 if test -n "$lt_prog_compiler_pic"; then 8081 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8082 fi 8083 ;; 8084 esac 8085 else 8086 # PORTME Check for flag to pass linker flags through the system compiler. 8087 case $host_os in 8088 aix*) 8089 lt_prog_compiler_wl='-Wl,' 8090 if test "$host_cpu" = ia64; then 8091 # AIX 5 now supports IA64 processor 8092 lt_prog_compiler_static='-Bstatic' 8093 else 8094 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8095 fi 8096 ;; 8097 8098 mingw* | cygwin* | pw32* | os2* | cegcc*) 8099 # This hack is so that the source file can tell whether it is being 8100 # built for inclusion in a dll (and should export symbols for example). 8101 lt_prog_compiler_pic='-DDLL_EXPORT' 8102 ;; 8103 8104 hpux9* | hpux10* | hpux11*) 8105 lt_prog_compiler_wl='-Wl,' 8106 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8107 # not for PA HP-UX. 8108 case $host_cpu in 8109 hppa*64*|ia64*) 8110 # +Z the default 8111 ;; 8112 *) 8113 lt_prog_compiler_pic='+Z' 8114 ;; 8115 esac 8116 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8117 lt_prog_compiler_static='${wl}-a ${wl}archive' 8118 ;; 8119 8120 irix5* | irix6* | nonstopux*) 8121 lt_prog_compiler_wl='-Wl,' 8122 # PIC (with -KPIC) is the default. 8123 lt_prog_compiler_static='-non_shared' 8124 ;; 8125 8126 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8127 case $cc_basename in 8128 # old Intel for x86_64 which still supported -KPIC. 8129 ecc*) 8130 lt_prog_compiler_wl='-Wl,' 8131 lt_prog_compiler_pic='-KPIC' 8132 lt_prog_compiler_static='-static' 8133 ;; 8134 # icc used to be incompatible with GCC. 8135 # ICC 10 doesn't accept -KPIC any more. 8136 icc* | ifort*) 8137 lt_prog_compiler_wl='-Wl,' 8138 lt_prog_compiler_pic='-fPIC' 8139 lt_prog_compiler_static='-static' 8140 ;; 8141 # Lahey Fortran 8.1. 8142 lf95*) 8143 lt_prog_compiler_wl='-Wl,' 8144 lt_prog_compiler_pic='--shared' 8145 lt_prog_compiler_static='--static' 8146 ;; 8147 nagfor*) 8148 # NAG Fortran compiler 8149 lt_prog_compiler_wl='-Wl,-Wl,,' 8150 lt_prog_compiler_pic='-PIC' 8151 lt_prog_compiler_static='-Bstatic' 8152 ;; 8153 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8154 # Portland Group compilers (*not* the Pentium gcc compiler, 8155 # which looks to be a dead project) 8156 lt_prog_compiler_wl='-Wl,' 8157 lt_prog_compiler_pic='-fpic' 8158 lt_prog_compiler_static='-Bstatic' 8159 ;; 8160 ccc*) 8161 lt_prog_compiler_wl='-Wl,' 8162 # All Alpha code is PIC. 8163 lt_prog_compiler_static='-non_shared' 8164 ;; 8165 xl* | bgxl* | bgf* | mpixl*) 8166 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8167 lt_prog_compiler_wl='-Wl,' 8168 lt_prog_compiler_pic='-qpic' 8169 lt_prog_compiler_static='-qstaticlink' 8170 ;; 8171 *) 8172 case `$CC -V 2>&1 | sed 5q` in 8173 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8174 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8175 lt_prog_compiler_pic='-KPIC' 8176 lt_prog_compiler_static='-Bstatic' 8177 lt_prog_compiler_wl='' 8178 ;; 8179 *Sun\ F* | *Sun*Fortran*) 8180 lt_prog_compiler_pic='-KPIC' 8181 lt_prog_compiler_static='-Bstatic' 8182 lt_prog_compiler_wl='-Qoption ld ' 8183 ;; 8184 *Sun\ C*) 8185 # Sun C 5.9 8186 lt_prog_compiler_pic='-KPIC' 8187 lt_prog_compiler_static='-Bstatic' 8188 lt_prog_compiler_wl='-Wl,' 8189 ;; 8190 *Intel*\ [CF]*Compiler*) 8191 lt_prog_compiler_wl='-Wl,' 8192 lt_prog_compiler_pic='-fPIC' 8193 lt_prog_compiler_static='-static' 8194 ;; 8195 *Portland\ Group*) 8196 lt_prog_compiler_wl='-Wl,' 8197 lt_prog_compiler_pic='-fpic' 8198 lt_prog_compiler_static='-Bstatic' 8199 ;; 8200 esac 8201 ;; 8202 esac 8203 ;; 8204 8205 newsos6) 8206 lt_prog_compiler_pic='-KPIC' 8207 lt_prog_compiler_static='-Bstatic' 8208 ;; 8209 8210 *nto* | *qnx*) 8211 # QNX uses GNU C++, but need to define -shared option too, otherwise 8212 # it will coredump. 8213 lt_prog_compiler_pic='-fPIC -shared' 8214 ;; 8215 8216 osf3* | osf4* | osf5*) 8217 lt_prog_compiler_wl='-Wl,' 8218 # All OSF/1 code is PIC. 8219 lt_prog_compiler_static='-non_shared' 8220 ;; 8221 8222 rdos*) 8223 lt_prog_compiler_static='-non_shared' 8224 ;; 8225 8226 solaris*) 8227 lt_prog_compiler_pic='-KPIC' 8228 lt_prog_compiler_static='-Bstatic' 8229 case $cc_basename in 8230 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8231 lt_prog_compiler_wl='-Qoption ld ';; 8232 *) 8233 lt_prog_compiler_wl='-Wl,';; 8234 esac 8235 ;; 8236 8237 sunos4*) 8238 lt_prog_compiler_wl='-Qoption ld ' 8239 lt_prog_compiler_pic='-PIC' 8240 lt_prog_compiler_static='-Bstatic' 8241 ;; 8242 8243 sysv4 | sysv4.2uw2* | sysv4.3*) 8244 lt_prog_compiler_wl='-Wl,' 8245 lt_prog_compiler_pic='-KPIC' 8246 lt_prog_compiler_static='-Bstatic' 8247 ;; 8248 8249 sysv4*MP*) 8250 if test -d /usr/nec ;then 8251 lt_prog_compiler_pic='-Kconform_pic' 8252 lt_prog_compiler_static='-Bstatic' 8253 fi 8254 ;; 8255 8256 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8257 lt_prog_compiler_wl='-Wl,' 8258 lt_prog_compiler_pic='-KPIC' 8259 lt_prog_compiler_static='-Bstatic' 8260 ;; 8261 8262 unicos*) 8263 lt_prog_compiler_wl='-Wl,' 8264 lt_prog_compiler_can_build_shared=no 8265 ;; 8266 8267 uts4*) 8268 lt_prog_compiler_pic='-pic' 8269 lt_prog_compiler_static='-Bstatic' 8270 ;; 8271 8272 *) 8273 lt_prog_compiler_can_build_shared=no 8274 ;; 8275 esac 8276 fi 8277 8278case $host_os in 8279 # For platforms which do not support PIC, -DPIC is meaningless: 8280 *djgpp*) 8281 lt_prog_compiler_pic= 8282 ;; 8283 *) 8284 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8285 ;; 8286esac 8287 8288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8289$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8290if ${lt_cv_prog_compiler_pic+:} false; then : 8291 $as_echo_n "(cached) " >&6 8292else 8293 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8294fi 8295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8296$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8297lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8298 8299# 8300# Check to make sure the PIC flag actually works. 8301# 8302if test -n "$lt_prog_compiler_pic"; then 8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8304$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8305if ${lt_cv_prog_compiler_pic_works+:} false; then : 8306 $as_echo_n "(cached) " >&6 8307else 8308 lt_cv_prog_compiler_pic_works=no 8309 ac_outfile=conftest.$ac_objext 8310 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8311 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8312 # Insert the option either (1) after the last *FLAGS variable, or 8313 # (2) before a word containing "conftest.", or (3) at the end. 8314 # Note that $ac_compile itself does not contain backslashes and begins 8315 # with a dollar sign (not a hyphen), so the echo should work correctly. 8316 # The option is referenced via a variable to avoid confusing sed. 8317 lt_compile=`echo "$ac_compile" | $SED \ 8318 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8319 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8320 -e 's:$: $lt_compiler_flag:'` 8321 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8322 (eval "$lt_compile" 2>conftest.err) 8323 ac_status=$? 8324 cat conftest.err >&5 8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8326 if (exit $ac_status) && test -s "$ac_outfile"; then 8327 # The compiler can only warn and ignore the option if not recognized 8328 # So say no if there are warnings other than the usual output. 8329 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8330 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8331 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8332 lt_cv_prog_compiler_pic_works=yes 8333 fi 8334 fi 8335 $RM conftest* 8336 8337fi 8338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8339$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8340 8341if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8342 case $lt_prog_compiler_pic in 8343 "" | " "*) ;; 8344 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8345 esac 8346else 8347 lt_prog_compiler_pic= 8348 lt_prog_compiler_can_build_shared=no 8349fi 8350 8351fi 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363# 8364# Check to make sure the static flag actually works. 8365# 8366wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8368$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8369if ${lt_cv_prog_compiler_static_works+:} false; then : 8370 $as_echo_n "(cached) " >&6 8371else 8372 lt_cv_prog_compiler_static_works=no 8373 save_LDFLAGS="$LDFLAGS" 8374 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8375 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8376 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8377 # The linker can only warn and ignore the option if not recognized 8378 # So say no if there are warnings 8379 if test -s conftest.err; then 8380 # Append any errors to the config.log. 8381 cat conftest.err 1>&5 8382 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8383 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8384 if diff conftest.exp conftest.er2 >/dev/null; then 8385 lt_cv_prog_compiler_static_works=yes 8386 fi 8387 else 8388 lt_cv_prog_compiler_static_works=yes 8389 fi 8390 fi 8391 $RM -r conftest* 8392 LDFLAGS="$save_LDFLAGS" 8393 8394fi 8395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8396$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8397 8398if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8399 : 8400else 8401 lt_prog_compiler_static= 8402fi 8403 8404 8405 8406 8407 8408 8409 8410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8411$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8412if ${lt_cv_prog_compiler_c_o+:} false; then : 8413 $as_echo_n "(cached) " >&6 8414else 8415 lt_cv_prog_compiler_c_o=no 8416 $RM -r conftest 2>/dev/null 8417 mkdir conftest 8418 cd conftest 8419 mkdir out 8420 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8421 8422 lt_compiler_flag="-o out/conftest2.$ac_objext" 8423 # Insert the option either (1) after the last *FLAGS variable, or 8424 # (2) before a word containing "conftest.", or (3) at the end. 8425 # Note that $ac_compile itself does not contain backslashes and begins 8426 # with a dollar sign (not a hyphen), so the echo should work correctly. 8427 lt_compile=`echo "$ac_compile" | $SED \ 8428 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8429 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8430 -e 's:$: $lt_compiler_flag:'` 8431 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8432 (eval "$lt_compile" 2>out/conftest.err) 8433 ac_status=$? 8434 cat out/conftest.err >&5 8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8436 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8437 then 8438 # The compiler can only warn and ignore the option if not recognized 8439 # So say no if there are warnings 8440 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8441 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8442 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8443 lt_cv_prog_compiler_c_o=yes 8444 fi 8445 fi 8446 chmod u+w . 2>&5 8447 $RM conftest* 8448 # SGI C++ compiler will create directory out/ii_files/ for 8449 # template instantiation 8450 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8451 $RM out/* && rmdir out 8452 cd .. 8453 $RM -r conftest 8454 $RM conftest* 8455 8456fi 8457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8458$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8459 8460 8461 8462 8463 8464 8465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8466$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8467if ${lt_cv_prog_compiler_c_o+:} false; then : 8468 $as_echo_n "(cached) " >&6 8469else 8470 lt_cv_prog_compiler_c_o=no 8471 $RM -r conftest 2>/dev/null 8472 mkdir conftest 8473 cd conftest 8474 mkdir out 8475 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8476 8477 lt_compiler_flag="-o out/conftest2.$ac_objext" 8478 # Insert the option either (1) after the last *FLAGS variable, or 8479 # (2) before a word containing "conftest.", or (3) at the end. 8480 # Note that $ac_compile itself does not contain backslashes and begins 8481 # with a dollar sign (not a hyphen), so the echo should work correctly. 8482 lt_compile=`echo "$ac_compile" | $SED \ 8483 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8484 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8485 -e 's:$: $lt_compiler_flag:'` 8486 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8487 (eval "$lt_compile" 2>out/conftest.err) 8488 ac_status=$? 8489 cat out/conftest.err >&5 8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8491 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8492 then 8493 # The compiler can only warn and ignore the option if not recognized 8494 # So say no if there are warnings 8495 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8496 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8497 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8498 lt_cv_prog_compiler_c_o=yes 8499 fi 8500 fi 8501 chmod u+w . 2>&5 8502 $RM conftest* 8503 # SGI C++ compiler will create directory out/ii_files/ for 8504 # template instantiation 8505 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8506 $RM out/* && rmdir out 8507 cd .. 8508 $RM -r conftest 8509 $RM conftest* 8510 8511fi 8512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8513$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8514 8515 8516 8517 8518hard_links="nottested" 8519if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8520 # do not overwrite the value of need_locks provided by the user 8521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8522$as_echo_n "checking if we can lock with hard links... " >&6; } 8523 hard_links=yes 8524 $RM conftest* 8525 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8526 touch conftest.a 8527 ln conftest.a conftest.b 2>&5 || hard_links=no 8528 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8530$as_echo "$hard_links" >&6; } 8531 if test "$hard_links" = no; then 8532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8533$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8534 need_locks=warn 8535 fi 8536else 8537 need_locks=no 8538fi 8539 8540 8541 8542 8543 8544 8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8546$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8547 8548 runpath_var= 8549 allow_undefined_flag= 8550 always_export_symbols=no 8551 archive_cmds= 8552 archive_expsym_cmds= 8553 compiler_needs_object=no 8554 enable_shared_with_static_runtimes=no 8555 export_dynamic_flag_spec= 8556 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8557 hardcode_automatic=no 8558 hardcode_direct=no 8559 hardcode_direct_absolute=no 8560 hardcode_libdir_flag_spec= 8561 hardcode_libdir_separator= 8562 hardcode_minus_L=no 8563 hardcode_shlibpath_var=unsupported 8564 inherit_rpath=no 8565 link_all_deplibs=unknown 8566 module_cmds= 8567 module_expsym_cmds= 8568 old_archive_from_new_cmds= 8569 old_archive_from_expsyms_cmds= 8570 thread_safe_flag_spec= 8571 whole_archive_flag_spec= 8572 # include_expsyms should be a list of space-separated symbols to be *always* 8573 # included in the symbol list 8574 include_expsyms= 8575 # exclude_expsyms can be an extended regexp of symbols to exclude 8576 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8577 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8578 # as well as any symbol that contains `d'. 8579 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8580 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8581 # platforms (ab)use it in PIC code, but their linkers get confused if 8582 # the symbol is explicitly referenced. Since portable code cannot 8583 # rely on this symbol name, it's probably fine to never include it in 8584 # preloaded symbol tables. 8585 # Exclude shared library initialization/finalization symbols. 8586 extract_expsyms_cmds= 8587 8588 case $host_os in 8589 cygwin* | mingw* | pw32* | cegcc*) 8590 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8591 # When not using gcc, we currently assume that we are using 8592 # Microsoft Visual C++. 8593 if test "$GCC" != yes; then 8594 with_gnu_ld=no 8595 fi 8596 ;; 8597 interix*) 8598 # we just hope/assume this is gcc and not c89 (= MSVC++) 8599 with_gnu_ld=yes 8600 ;; 8601 openbsd*) 8602 with_gnu_ld=no 8603 ;; 8604 esac 8605 8606 ld_shlibs=yes 8607 8608 # On some targets, GNU ld is compatible enough with the native linker 8609 # that we're better off using the native interface for both. 8610 lt_use_gnu_ld_interface=no 8611 if test "$with_gnu_ld" = yes; then 8612 case $host_os in 8613 aix*) 8614 # The AIX port of GNU ld has always aspired to compatibility 8615 # with the native linker. However, as the warning in the GNU ld 8616 # block says, versions before 2.19.5* couldn't really create working 8617 # shared libraries, regardless of the interface used. 8618 case `$LD -v 2>&1` in 8619 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8620 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8621 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8622 *) 8623 lt_use_gnu_ld_interface=yes 8624 ;; 8625 esac 8626 ;; 8627 *) 8628 lt_use_gnu_ld_interface=yes 8629 ;; 8630 esac 8631 fi 8632 8633 if test "$lt_use_gnu_ld_interface" = yes; then 8634 # If archive_cmds runs LD, not CC, wlarc should be empty 8635 wlarc='${wl}' 8636 8637 # Set some defaults for GNU ld with shared library support. These 8638 # are reset later if shared libraries are not supported. Putting them 8639 # here allows them to be overridden if necessary. 8640 runpath_var=LD_RUN_PATH 8641 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8642 export_dynamic_flag_spec='${wl}--export-dynamic' 8643 # ancient GNU ld didn't support --whole-archive et. al. 8644 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8645 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8646 else 8647 whole_archive_flag_spec= 8648 fi 8649 supports_anon_versioning=no 8650 case `$LD -v 2>&1` in 8651 *GNU\ gold*) supports_anon_versioning=yes ;; 8652 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8653 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8654 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8655 *\ 2.11.*) ;; # other 2.11 versions 8656 *) supports_anon_versioning=yes ;; 8657 esac 8658 8659 # See if GNU ld supports shared libraries. 8660 case $host_os in 8661 aix[3-9]*) 8662 # On AIX/PPC, the GNU linker is very broken 8663 if test "$host_cpu" != ia64; then 8664 ld_shlibs=no 8665 cat <<_LT_EOF 1>&2 8666 8667*** Warning: the GNU linker, at least up to release 2.19, is reported 8668*** to be unable to reliably create shared libraries on AIX. 8669*** Therefore, libtool is disabling shared libraries support. If you 8670*** really care for shared libraries, you may want to install binutils 8671*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8672*** You will then need to restart the configuration process. 8673 8674_LT_EOF 8675 fi 8676 ;; 8677 8678 amigaos*) 8679 case $host_cpu in 8680 powerpc) 8681 # see comment about AmigaOS4 .so support 8682 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8683 archive_expsym_cmds='' 8684 ;; 8685 m68k) 8686 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)' 8687 hardcode_libdir_flag_spec='-L$libdir' 8688 hardcode_minus_L=yes 8689 ;; 8690 esac 8691 ;; 8692 8693 beos*) 8694 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8695 allow_undefined_flag=unsupported 8696 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8697 # support --undefined. This deserves some investigation. FIXME 8698 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8699 else 8700 ld_shlibs=no 8701 fi 8702 ;; 8703 8704 cygwin* | mingw* | pw32* | cegcc*) 8705 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8706 # as there is no search path for DLLs. 8707 hardcode_libdir_flag_spec='-L$libdir' 8708 export_dynamic_flag_spec='${wl}--export-all-symbols' 8709 allow_undefined_flag=unsupported 8710 always_export_symbols=no 8711 enable_shared_with_static_runtimes=yes 8712 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' 8713 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8714 8715 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8716 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8717 # If the export-symbols file already is a .def file (1st line 8718 # is EXPORTS), use it as is; otherwise, prepend... 8719 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8720 cp $export_symbols $output_objdir/$soname.def; 8721 else 8722 echo EXPORTS > $output_objdir/$soname.def; 8723 cat $export_symbols >> $output_objdir/$soname.def; 8724 fi~ 8725 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8726 else 8727 ld_shlibs=no 8728 fi 8729 ;; 8730 8731 haiku*) 8732 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8733 link_all_deplibs=yes 8734 ;; 8735 8736 interix[3-9]*) 8737 hardcode_direct=no 8738 hardcode_shlibpath_var=no 8739 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8740 export_dynamic_flag_spec='${wl}-E' 8741 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8742 # Instead, shared libraries are loaded at an image base (0x10000000 by 8743 # default) and relocated if they conflict, which is a slow very memory 8744 # consuming and fragmenting process. To avoid this, we pick a random, 8745 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8746 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8747 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8748 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' 8749 ;; 8750 8751 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8752 tmp_diet=no 8753 if test "$host_os" = linux-dietlibc; then 8754 case $cc_basename in 8755 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8756 esac 8757 fi 8758 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8759 && test "$tmp_diet" = no 8760 then 8761 tmp_addflag=' $pic_flag' 8762 tmp_sharedflag='-shared' 8763 case $cc_basename,$host_cpu in 8764 pgcc*) # Portland Group C compiler 8765 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' 8766 tmp_addflag=' $pic_flag' 8767 ;; 8768 pgf77* | pgf90* | pgf95* | pgfortran*) 8769 # Portland Group f77 and f90 compilers 8770 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' 8771 tmp_addflag=' $pic_flag -Mnomain' ;; 8772 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8773 tmp_addflag=' -i_dynamic' ;; 8774 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8775 tmp_addflag=' -i_dynamic -nofor_main' ;; 8776 ifc* | ifort*) # Intel Fortran compiler 8777 tmp_addflag=' -nofor_main' ;; 8778 lf95*) # Lahey Fortran 8.1 8779 whole_archive_flag_spec= 8780 tmp_sharedflag='--shared' ;; 8781 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8782 tmp_sharedflag='-qmkshrobj' 8783 tmp_addflag= ;; 8784 nvcc*) # Cuda Compiler Driver 2.2 8785 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' 8786 compiler_needs_object=yes 8787 ;; 8788 esac 8789 case `$CC -V 2>&1 | sed 5q` in 8790 *Sun\ C*) # Sun C 5.9 8791 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' 8792 compiler_needs_object=yes 8793 tmp_sharedflag='-G' ;; 8794 *Sun\ F*) # Sun Fortran 8.3 8795 tmp_sharedflag='-G' ;; 8796 esac 8797 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8798 8799 if test "x$supports_anon_versioning" = xyes; then 8800 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8801 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8802 echo "local: *; };" >> $output_objdir/$libname.ver~ 8803 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8804 fi 8805 8806 case $cc_basename in 8807 xlf* | bgf* | bgxlf* | mpixlf*) 8808 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8809 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8810 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8811 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8812 if test "x$supports_anon_versioning" = xyes; then 8813 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8814 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8815 echo "local: *; };" >> $output_objdir/$libname.ver~ 8816 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8817 fi 8818 ;; 8819 esac 8820 else 8821 ld_shlibs=no 8822 fi 8823 ;; 8824 8825 netbsd*) 8826 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8827 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8828 wlarc= 8829 else 8830 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8831 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8832 fi 8833 ;; 8834 8835 solaris*) 8836 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8837 ld_shlibs=no 8838 cat <<_LT_EOF 1>&2 8839 8840*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8841*** create shared libraries on Solaris systems. Therefore, libtool 8842*** is disabling shared libraries support. We urge you to upgrade GNU 8843*** binutils to release 2.9.1 or newer. Another option is to modify 8844*** your PATH or compiler configuration so that the native linker is 8845*** used, and then restart. 8846 8847_LT_EOF 8848 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8849 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8850 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8851 else 8852 ld_shlibs=no 8853 fi 8854 ;; 8855 8856 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8857 case `$LD -v 2>&1` in 8858 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8859 ld_shlibs=no 8860 cat <<_LT_EOF 1>&2 8861 8862*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8863*** reliably create shared libraries on SCO systems. Therefore, libtool 8864*** is disabling shared libraries support. We urge you to upgrade GNU 8865*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8866*** your PATH or compiler configuration so that the native linker is 8867*** used, and then restart. 8868 8869_LT_EOF 8870 ;; 8871 *) 8872 # For security reasons, it is highly recommended that you always 8873 # use absolute paths for naming shared libraries, and exclude the 8874 # DT_RUNPATH tag from executables and libraries. But doing so 8875 # requires that you compile everything twice, which is a pain. 8876 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8877 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8878 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8879 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8880 else 8881 ld_shlibs=no 8882 fi 8883 ;; 8884 esac 8885 ;; 8886 8887 sunos4*) 8888 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8889 wlarc= 8890 hardcode_direct=yes 8891 hardcode_shlibpath_var=no 8892 ;; 8893 8894 *) 8895 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8896 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8897 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8898 else 8899 ld_shlibs=no 8900 fi 8901 ;; 8902 esac 8903 8904 if test "$ld_shlibs" = no; then 8905 runpath_var= 8906 hardcode_libdir_flag_spec= 8907 export_dynamic_flag_spec= 8908 whole_archive_flag_spec= 8909 fi 8910 else 8911 # PORTME fill in a description of your system's linker (not GNU ld) 8912 case $host_os in 8913 aix3*) 8914 allow_undefined_flag=unsupported 8915 always_export_symbols=yes 8916 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' 8917 # Note: this linker hardcodes the directories in LIBPATH if there 8918 # are no directories specified by -L. 8919 hardcode_minus_L=yes 8920 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8921 # Neither direct hardcoding nor static linking is supported with a 8922 # broken collect2. 8923 hardcode_direct=unsupported 8924 fi 8925 ;; 8926 8927 aix[4-9]*) 8928 if test "$host_cpu" = ia64; then 8929 # On IA64, the linker does run time linking by default, so we don't 8930 # have to do anything special. 8931 aix_use_runtimelinking=no 8932 exp_sym_flag='-Bexport' 8933 no_entry_flag="" 8934 else 8935 # If we're using GNU nm, then we don't want the "-C" option. 8936 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8937 # Also, AIX nm treats weak defined symbols like other global 8938 # defined symbols, whereas GNU nm marks them as "W". 8939 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8940 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' 8941 else 8942 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' 8943 fi 8944 aix_use_runtimelinking=no 8945 8946 # Test if we are trying to use run time linking or normal 8947 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8948 # need to do runtime linking. 8949 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8950 for ld_flag in $LDFLAGS; do 8951 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8952 aix_use_runtimelinking=yes 8953 break 8954 fi 8955 done 8956 ;; 8957 esac 8958 8959 exp_sym_flag='-bexport' 8960 no_entry_flag='-bnoentry' 8961 fi 8962 8963 # When large executables or shared objects are built, AIX ld can 8964 # have problems creating the table of contents. If linking a library 8965 # or program results in "error TOC overflow" add -mminimal-toc to 8966 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8967 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8968 8969 archive_cmds='' 8970 hardcode_direct=yes 8971 hardcode_direct_absolute=yes 8972 hardcode_libdir_separator=':' 8973 link_all_deplibs=yes 8974 file_list_spec='${wl}-f,' 8975 8976 if test "$GCC" = yes; then 8977 case $host_os in aix4.[012]|aix4.[012].*) 8978 # We only want to do this on AIX 4.2 and lower, the check 8979 # below for broken collect2 doesn't work under 4.3+ 8980 collect2name=`${CC} -print-prog-name=collect2` 8981 if test -f "$collect2name" && 8982 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8983 then 8984 # We have reworked collect2 8985 : 8986 else 8987 # We have old collect2 8988 hardcode_direct=unsupported 8989 # It fails to find uninstalled libraries when the uninstalled 8990 # path is not listed in the libpath. Setting hardcode_minus_L 8991 # to unsupported forces relinking 8992 hardcode_minus_L=yes 8993 hardcode_libdir_flag_spec='-L$libdir' 8994 hardcode_libdir_separator= 8995 fi 8996 ;; 8997 esac 8998 shared_flag='-shared' 8999 if test "$aix_use_runtimelinking" = yes; then 9000 shared_flag="$shared_flag "'${wl}-G' 9001 fi 9002 else 9003 # not using gcc 9004 if test "$host_cpu" = ia64; then 9005 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9006 # chokes on -Wl,-G. The following line is correct: 9007 shared_flag='-G' 9008 else 9009 if test "$aix_use_runtimelinking" = yes; then 9010 shared_flag='${wl}-G' 9011 else 9012 shared_flag='${wl}-bM:SRE' 9013 fi 9014 fi 9015 fi 9016 9017 export_dynamic_flag_spec='${wl}-bexpall' 9018 # It seems that -bexpall does not export symbols beginning with 9019 # underscore (_), so it is better to generate a list of symbols to export. 9020 always_export_symbols=yes 9021 if test "$aix_use_runtimelinking" = yes; then 9022 # Warning - without using the other runtime loading flags (-brtl), 9023 # -berok will link without error, but may produce a broken library. 9024 allow_undefined_flag='-berok' 9025 # Determine the default libpath from the value encoded in an 9026 # empty executable. 9027 if test "${lt_cv_aix_libpath+set}" = set; then 9028 aix_libpath=$lt_cv_aix_libpath 9029else 9030 if ${lt_cv_aix_libpath_+:} false; then : 9031 $as_echo_n "(cached) " >&6 9032else 9033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9034/* end confdefs.h. */ 9035 9036int 9037main () 9038{ 9039 9040 ; 9041 return 0; 9042} 9043_ACEOF 9044if ac_fn_c_try_link "$LINENO"; then : 9045 9046 lt_aix_libpath_sed=' 9047 /Import File Strings/,/^$/ { 9048 /^0/ { 9049 s/^0 *\([^ ]*\) *$/\1/ 9050 p 9051 } 9052 }' 9053 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9054 # Check for a 64-bit object if we didn't find anything. 9055 if test -z "$lt_cv_aix_libpath_"; then 9056 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9057 fi 9058fi 9059rm -f core conftest.err conftest.$ac_objext \ 9060 conftest$ac_exeext conftest.$ac_ext 9061 if test -z "$lt_cv_aix_libpath_"; then 9062 lt_cv_aix_libpath_="/usr/lib:/lib" 9063 fi 9064 9065fi 9066 9067 aix_libpath=$lt_cv_aix_libpath_ 9068fi 9069 9070 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9071 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" 9072 else 9073 if test "$host_cpu" = ia64; then 9074 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9075 allow_undefined_flag="-z nodefs" 9076 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" 9077 else 9078 # Determine the default libpath from the value encoded in an 9079 # empty executable. 9080 if test "${lt_cv_aix_libpath+set}" = set; then 9081 aix_libpath=$lt_cv_aix_libpath 9082else 9083 if ${lt_cv_aix_libpath_+:} false; then : 9084 $as_echo_n "(cached) " >&6 9085else 9086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9087/* end confdefs.h. */ 9088 9089int 9090main () 9091{ 9092 9093 ; 9094 return 0; 9095} 9096_ACEOF 9097if ac_fn_c_try_link "$LINENO"; then : 9098 9099 lt_aix_libpath_sed=' 9100 /Import File Strings/,/^$/ { 9101 /^0/ { 9102 s/^0 *\([^ ]*\) *$/\1/ 9103 p 9104 } 9105 }' 9106 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9107 # Check for a 64-bit object if we didn't find anything. 9108 if test -z "$lt_cv_aix_libpath_"; then 9109 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9110 fi 9111fi 9112rm -f core conftest.err conftest.$ac_objext \ 9113 conftest$ac_exeext conftest.$ac_ext 9114 if test -z "$lt_cv_aix_libpath_"; then 9115 lt_cv_aix_libpath_="/usr/lib:/lib" 9116 fi 9117 9118fi 9119 9120 aix_libpath=$lt_cv_aix_libpath_ 9121fi 9122 9123 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9124 # Warning - without using the other run time loading flags, 9125 # -berok will link without error, but may produce a broken library. 9126 no_undefined_flag=' ${wl}-bernotok' 9127 allow_undefined_flag=' ${wl}-berok' 9128 if test "$with_gnu_ld" = yes; then 9129 # We only use this code for GNU lds that support --whole-archive. 9130 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9131 else 9132 # Exported symbols can be pulled into shared objects from archives 9133 whole_archive_flag_spec='$convenience' 9134 fi 9135 archive_cmds_need_lc=yes 9136 # This is similar to how AIX traditionally builds its shared libraries. 9137 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' 9138 fi 9139 fi 9140 ;; 9141 9142 amigaos*) 9143 case $host_cpu in 9144 powerpc) 9145 # see comment about AmigaOS4 .so support 9146 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9147 archive_expsym_cmds='' 9148 ;; 9149 m68k) 9150 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)' 9151 hardcode_libdir_flag_spec='-L$libdir' 9152 hardcode_minus_L=yes 9153 ;; 9154 esac 9155 ;; 9156 9157 bsdi[45]*) 9158 export_dynamic_flag_spec=-rdynamic 9159 ;; 9160 9161 cygwin* | mingw* | pw32* | cegcc*) 9162 # When not using gcc, we currently assume that we are using 9163 # Microsoft Visual C++. 9164 # hardcode_libdir_flag_spec is actually meaningless, as there is 9165 # no search path for DLLs. 9166 case $cc_basename in 9167 cl*) 9168 # Native MSVC 9169 hardcode_libdir_flag_spec=' ' 9170 allow_undefined_flag=unsupported 9171 always_export_symbols=yes 9172 file_list_spec='@' 9173 # Tell ltmain to make .lib files, not .a files. 9174 libext=lib 9175 # Tell ltmain to make .dll files, not .so files. 9176 shrext_cmds=".dll" 9177 # FIXME: Setting linknames here is a bad hack. 9178 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9179 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9180 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9181 else 9182 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9183 fi~ 9184 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9185 linknames=' 9186 # The linker will not automatically build a static lib if we build a DLL. 9187 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9188 enable_shared_with_static_runtimes=yes 9189 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9190 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9191 # Don't use ranlib 9192 old_postinstall_cmds='chmod 644 $oldlib' 9193 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9194 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9195 case $lt_outputfile in 9196 *.exe|*.EXE) ;; 9197 *) 9198 lt_outputfile="$lt_outputfile.exe" 9199 lt_tool_outputfile="$lt_tool_outputfile.exe" 9200 ;; 9201 esac~ 9202 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9203 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9204 $RM "$lt_outputfile.manifest"; 9205 fi' 9206 ;; 9207 *) 9208 # Assume MSVC wrapper 9209 hardcode_libdir_flag_spec=' ' 9210 allow_undefined_flag=unsupported 9211 # Tell ltmain to make .lib files, not .a files. 9212 libext=lib 9213 # Tell ltmain to make .dll files, not .so files. 9214 shrext_cmds=".dll" 9215 # FIXME: Setting linknames here is a bad hack. 9216 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9217 # The linker will automatically build a .lib file if we build a DLL. 9218 old_archive_from_new_cmds='true' 9219 # FIXME: Should let the user specify the lib program. 9220 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9221 enable_shared_with_static_runtimes=yes 9222 ;; 9223 esac 9224 ;; 9225 9226 darwin* | rhapsody*) 9227 9228 9229 archive_cmds_need_lc=no 9230 hardcode_direct=no 9231 hardcode_automatic=yes 9232 hardcode_shlibpath_var=unsupported 9233 if test "$lt_cv_ld_force_load" = "yes"; then 9234 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\"`' 9235 9236 else 9237 whole_archive_flag_spec='' 9238 fi 9239 link_all_deplibs=yes 9240 allow_undefined_flag="$_lt_dar_allow_undefined" 9241 case $cc_basename in 9242 ifort*) _lt_dar_can_shared=yes ;; 9243 *) _lt_dar_can_shared=$GCC ;; 9244 esac 9245 if test "$_lt_dar_can_shared" = "yes"; then 9246 output_verbose_link_cmd=func_echo_all 9247 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9248 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9249 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}" 9250 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}" 9251 9252 else 9253 ld_shlibs=no 9254 fi 9255 9256 ;; 9257 9258 dgux*) 9259 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9260 hardcode_libdir_flag_spec='-L$libdir' 9261 hardcode_shlibpath_var=no 9262 ;; 9263 9264 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9265 # support. Future versions do this automatically, but an explicit c++rt0.o 9266 # does not break anything, and helps significantly (at the cost of a little 9267 # extra space). 9268 freebsd2.2*) 9269 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9270 hardcode_libdir_flag_spec='-R$libdir' 9271 hardcode_direct=yes 9272 hardcode_shlibpath_var=no 9273 ;; 9274 9275 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9276 freebsd2.*) 9277 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9278 hardcode_direct=yes 9279 hardcode_minus_L=yes 9280 hardcode_shlibpath_var=no 9281 ;; 9282 9283 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9284 freebsd* | dragonfly*) 9285 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9286 hardcode_libdir_flag_spec='-R$libdir' 9287 hardcode_direct=yes 9288 hardcode_shlibpath_var=no 9289 ;; 9290 9291 hpux9*) 9292 if test "$GCC" = yes; then 9293 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' 9294 else 9295 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' 9296 fi 9297 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9298 hardcode_libdir_separator=: 9299 hardcode_direct=yes 9300 9301 # hardcode_minus_L: Not really in the search PATH, 9302 # but as the default location of the library. 9303 hardcode_minus_L=yes 9304 export_dynamic_flag_spec='${wl}-E' 9305 ;; 9306 9307 hpux10*) 9308 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9309 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9310 else 9311 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9312 fi 9313 if test "$with_gnu_ld" = no; then 9314 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9315 hardcode_libdir_separator=: 9316 hardcode_direct=yes 9317 hardcode_direct_absolute=yes 9318 export_dynamic_flag_spec='${wl}-E' 9319 # hardcode_minus_L: Not really in the search PATH, 9320 # but as the default location of the library. 9321 hardcode_minus_L=yes 9322 fi 9323 ;; 9324 9325 hpux11*) 9326 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9327 case $host_cpu in 9328 hppa*64*) 9329 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9330 ;; 9331 ia64*) 9332 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9333 ;; 9334 *) 9335 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9336 ;; 9337 esac 9338 else 9339 case $host_cpu in 9340 hppa*64*) 9341 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9342 ;; 9343 ia64*) 9344 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9345 ;; 9346 *) 9347 9348 # Older versions of the 11.00 compiler do not understand -b yet 9349 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9351$as_echo_n "checking if $CC understands -b... " >&6; } 9352if ${lt_cv_prog_compiler__b+:} false; then : 9353 $as_echo_n "(cached) " >&6 9354else 9355 lt_cv_prog_compiler__b=no 9356 save_LDFLAGS="$LDFLAGS" 9357 LDFLAGS="$LDFLAGS -b" 9358 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9359 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9360 # The linker can only warn and ignore the option if not recognized 9361 # So say no if there are warnings 9362 if test -s conftest.err; then 9363 # Append any errors to the config.log. 9364 cat conftest.err 1>&5 9365 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9366 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9367 if diff conftest.exp conftest.er2 >/dev/null; then 9368 lt_cv_prog_compiler__b=yes 9369 fi 9370 else 9371 lt_cv_prog_compiler__b=yes 9372 fi 9373 fi 9374 $RM -r conftest* 9375 LDFLAGS="$save_LDFLAGS" 9376 9377fi 9378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9379$as_echo "$lt_cv_prog_compiler__b" >&6; } 9380 9381if test x"$lt_cv_prog_compiler__b" = xyes; then 9382 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9383else 9384 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9385fi 9386 9387 ;; 9388 esac 9389 fi 9390 if test "$with_gnu_ld" = no; then 9391 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9392 hardcode_libdir_separator=: 9393 9394 case $host_cpu in 9395 hppa*64*|ia64*) 9396 hardcode_direct=no 9397 hardcode_shlibpath_var=no 9398 ;; 9399 *) 9400 hardcode_direct=yes 9401 hardcode_direct_absolute=yes 9402 export_dynamic_flag_spec='${wl}-E' 9403 9404 # hardcode_minus_L: Not really in the search PATH, 9405 # but as the default location of the library. 9406 hardcode_minus_L=yes 9407 ;; 9408 esac 9409 fi 9410 ;; 9411 9412 irix5* | irix6* | nonstopux*) 9413 if test "$GCC" = yes; then 9414 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' 9415 # Try to use the -exported_symbol ld option, if it does not 9416 # work, assume that -exports_file does not work either and 9417 # implicitly export all symbols. 9418 # This should be the same for all languages, so no per-tag cache variable. 9419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9420$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9421if ${lt_cv_irix_exported_symbol+:} false; then : 9422 $as_echo_n "(cached) " >&6 9423else 9424 save_LDFLAGS="$LDFLAGS" 9425 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9427/* end confdefs.h. */ 9428int foo (void) { return 0; } 9429_ACEOF 9430if ac_fn_c_try_link "$LINENO"; then : 9431 lt_cv_irix_exported_symbol=yes 9432else 9433 lt_cv_irix_exported_symbol=no 9434fi 9435rm -f core conftest.err conftest.$ac_objext \ 9436 conftest$ac_exeext conftest.$ac_ext 9437 LDFLAGS="$save_LDFLAGS" 9438fi 9439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9440$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9441 if test "$lt_cv_irix_exported_symbol" = yes; then 9442 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' 9443 fi 9444 else 9445 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' 9446 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' 9447 fi 9448 archive_cmds_need_lc='no' 9449 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9450 hardcode_libdir_separator=: 9451 inherit_rpath=yes 9452 link_all_deplibs=yes 9453 ;; 9454 9455 netbsd*) 9456 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9457 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9458 else 9459 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9460 fi 9461 hardcode_libdir_flag_spec='-R$libdir' 9462 hardcode_direct=yes 9463 hardcode_shlibpath_var=no 9464 ;; 9465 9466 newsos6) 9467 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9468 hardcode_direct=yes 9469 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9470 hardcode_libdir_separator=: 9471 hardcode_shlibpath_var=no 9472 ;; 9473 9474 *nto* | *qnx*) 9475 ;; 9476 9477 openbsd*) 9478 if test -f /usr/libexec/ld.so; then 9479 hardcode_direct=yes 9480 hardcode_shlibpath_var=no 9481 hardcode_direct_absolute=yes 9482 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9483 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9484 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9485 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9486 export_dynamic_flag_spec='${wl}-E' 9487 else 9488 case $host_os in 9489 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9490 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9491 hardcode_libdir_flag_spec='-R$libdir' 9492 ;; 9493 *) 9494 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9495 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9496 ;; 9497 esac 9498 fi 9499 else 9500 ld_shlibs=no 9501 fi 9502 ;; 9503 9504 os2*) 9505 hardcode_libdir_flag_spec='-L$libdir' 9506 hardcode_minus_L=yes 9507 allow_undefined_flag=unsupported 9508 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' 9509 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9510 ;; 9511 9512 osf3*) 9513 if test "$GCC" = yes; then 9514 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9515 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' 9516 else 9517 allow_undefined_flag=' -expect_unresolved \*' 9518 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' 9519 fi 9520 archive_cmds_need_lc='no' 9521 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9522 hardcode_libdir_separator=: 9523 ;; 9524 9525 osf4* | osf5*) # as osf3* with the addition of -msym flag 9526 if test "$GCC" = yes; then 9527 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9528 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' 9529 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9530 else 9531 allow_undefined_flag=' -expect_unresolved \*' 9532 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' 9533 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~ 9534 $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' 9535 9536 # Both c and cxx compiler support -rpath directly 9537 hardcode_libdir_flag_spec='-rpath $libdir' 9538 fi 9539 archive_cmds_need_lc='no' 9540 hardcode_libdir_separator=: 9541 ;; 9542 9543 solaris*) 9544 no_undefined_flag=' -z defs' 9545 if test "$GCC" = yes; then 9546 wlarc='${wl}' 9547 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9548 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9549 $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' 9550 else 9551 case `$CC -V 2>&1` in 9552 *"Compilers 5.0"*) 9553 wlarc='' 9554 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9555 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9556 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9557 ;; 9558 *) 9559 wlarc='${wl}' 9560 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9561 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9562 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9563 ;; 9564 esac 9565 fi 9566 hardcode_libdir_flag_spec='-R$libdir' 9567 hardcode_shlibpath_var=no 9568 case $host_os in 9569 solaris2.[0-5] | solaris2.[0-5].*) ;; 9570 *) 9571 # The compiler driver will combine and reorder linker options, 9572 # but understands `-z linker_flag'. GCC discards it without `$wl', 9573 # but is careful enough not to reorder. 9574 # Supported since Solaris 2.6 (maybe 2.5.1?) 9575 if test "$GCC" = yes; then 9576 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9577 else 9578 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9579 fi 9580 ;; 9581 esac 9582 link_all_deplibs=yes 9583 ;; 9584 9585 sunos4*) 9586 if test "x$host_vendor" = xsequent; then 9587 # Use $CC to link under sequent, because it throws in some extra .o 9588 # files that make .init and .fini sections work. 9589 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9590 else 9591 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9592 fi 9593 hardcode_libdir_flag_spec='-L$libdir' 9594 hardcode_direct=yes 9595 hardcode_minus_L=yes 9596 hardcode_shlibpath_var=no 9597 ;; 9598 9599 sysv4) 9600 case $host_vendor in 9601 sni) 9602 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9603 hardcode_direct=yes # is this really true??? 9604 ;; 9605 siemens) 9606 ## LD is ld it makes a PLAMLIB 9607 ## CC just makes a GrossModule. 9608 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9609 reload_cmds='$CC -r -o $output$reload_objs' 9610 hardcode_direct=no 9611 ;; 9612 motorola) 9613 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9614 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9615 ;; 9616 esac 9617 runpath_var='LD_RUN_PATH' 9618 hardcode_shlibpath_var=no 9619 ;; 9620 9621 sysv4.3*) 9622 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9623 hardcode_shlibpath_var=no 9624 export_dynamic_flag_spec='-Bexport' 9625 ;; 9626 9627 sysv4*MP*) 9628 if test -d /usr/nec; then 9629 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9630 hardcode_shlibpath_var=no 9631 runpath_var=LD_RUN_PATH 9632 hardcode_runpath_var=yes 9633 ld_shlibs=yes 9634 fi 9635 ;; 9636 9637 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9638 no_undefined_flag='${wl}-z,text' 9639 archive_cmds_need_lc=no 9640 hardcode_shlibpath_var=no 9641 runpath_var='LD_RUN_PATH' 9642 9643 if test "$GCC" = yes; then 9644 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9645 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9646 else 9647 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9648 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9649 fi 9650 ;; 9651 9652 sysv5* | sco3.2v5* | sco5v6*) 9653 # Note: We can NOT use -z defs as we might desire, because we do not 9654 # link with -lc, and that would cause any symbols used from libc to 9655 # always be unresolved, which means just about no library would 9656 # ever link correctly. If we're not using GNU ld we use -z text 9657 # though, which does catch some bad symbols but isn't as heavy-handed 9658 # as -z defs. 9659 no_undefined_flag='${wl}-z,text' 9660 allow_undefined_flag='${wl}-z,nodefs' 9661 archive_cmds_need_lc=no 9662 hardcode_shlibpath_var=no 9663 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9664 hardcode_libdir_separator=':' 9665 link_all_deplibs=yes 9666 export_dynamic_flag_spec='${wl}-Bexport' 9667 runpath_var='LD_RUN_PATH' 9668 9669 if test "$GCC" = yes; then 9670 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9671 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9672 else 9673 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9674 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9675 fi 9676 ;; 9677 9678 uts4*) 9679 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9680 hardcode_libdir_flag_spec='-L$libdir' 9681 hardcode_shlibpath_var=no 9682 ;; 9683 9684 *) 9685 ld_shlibs=no 9686 ;; 9687 esac 9688 9689 if test x$host_vendor = xsni; then 9690 case $host in 9691 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9692 export_dynamic_flag_spec='${wl}-Blargedynsym' 9693 ;; 9694 esac 9695 fi 9696 fi 9697 9698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9699$as_echo "$ld_shlibs" >&6; } 9700test "$ld_shlibs" = no && can_build_shared=no 9701 9702with_gnu_ld=$with_gnu_ld 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718# 9719# Do we need to explicitly link libc? 9720# 9721case "x$archive_cmds_need_lc" in 9722x|xyes) 9723 # Assume -lc should be added 9724 archive_cmds_need_lc=yes 9725 9726 if test "$enable_shared" = yes && test "$GCC" = yes; then 9727 case $archive_cmds in 9728 *'~'*) 9729 # FIXME: we may have to deal with multi-command sequences. 9730 ;; 9731 '$CC '*) 9732 # Test whether the compiler implicitly links with -lc since on some 9733 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9734 # to ld, don't add -lc before -lgcc. 9735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9736$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9737if ${lt_cv_archive_cmds_need_lc+:} false; then : 9738 $as_echo_n "(cached) " >&6 9739else 9740 $RM conftest* 9741 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9742 9743 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9744 (eval $ac_compile) 2>&5 9745 ac_status=$? 9746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9747 test $ac_status = 0; } 2>conftest.err; then 9748 soname=conftest 9749 lib=conftest 9750 libobjs=conftest.$ac_objext 9751 deplibs= 9752 wl=$lt_prog_compiler_wl 9753 pic_flag=$lt_prog_compiler_pic 9754 compiler_flags=-v 9755 linker_flags=-v 9756 verstring= 9757 output_objdir=. 9758 libname=conftest 9759 lt_save_allow_undefined_flag=$allow_undefined_flag 9760 allow_undefined_flag= 9761 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9762 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9763 ac_status=$? 9764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9765 test $ac_status = 0; } 9766 then 9767 lt_cv_archive_cmds_need_lc=no 9768 else 9769 lt_cv_archive_cmds_need_lc=yes 9770 fi 9771 allow_undefined_flag=$lt_save_allow_undefined_flag 9772 else 9773 cat conftest.err 1>&5 9774 fi 9775 $RM conftest* 9776 9777fi 9778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9779$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9780 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9781 ;; 9782 esac 9783 fi 9784 ;; 9785esac 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 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9939$as_echo_n "checking dynamic linker characteristics... " >&6; } 9940 9941if test "$GCC" = yes; then 9942 case $host_os in 9943 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9944 *) lt_awk_arg="/^libraries:/" ;; 9945 esac 9946 case $host_os in 9947 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9948 *) lt_sed_strip_eq="s,=/,/,g" ;; 9949 esac 9950 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9951 case $lt_search_path_spec in 9952 *\;*) 9953 # if the path contains ";" then we assume it to be the separator 9954 # otherwise default to the standard path separator (i.e. ":") - it is 9955 # assumed that no part of a normal pathname contains ";" but that should 9956 # okay in the real world where ";" in dirpaths is itself problematic. 9957 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9958 ;; 9959 *) 9960 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9961 ;; 9962 esac 9963 # Ok, now we have the path, separated by spaces, we can step through it 9964 # and add multilib dir if necessary. 9965 lt_tmp_lt_search_path_spec= 9966 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9967 for lt_sys_path in $lt_search_path_spec; do 9968 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9969 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9970 else 9971 test -d "$lt_sys_path" && \ 9972 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9973 fi 9974 done 9975 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9976BEGIN {RS=" "; FS="/|\n";} { 9977 lt_foo=""; 9978 lt_count=0; 9979 for (lt_i = NF; lt_i > 0; lt_i--) { 9980 if ($lt_i != "" && $lt_i != ".") { 9981 if ($lt_i == "..") { 9982 lt_count++; 9983 } else { 9984 if (lt_count == 0) { 9985 lt_foo="/" $lt_i lt_foo; 9986 } else { 9987 lt_count--; 9988 } 9989 } 9990 } 9991 } 9992 if (lt_foo != "") { lt_freq[lt_foo]++; } 9993 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9994}'` 9995 # AWK program above erroneously prepends '/' to C:/dos/paths 9996 # for these hosts. 9997 case $host_os in 9998 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 9999 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10000 esac 10001 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10002else 10003 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10004fi 10005library_names_spec= 10006libname_spec='lib$name' 10007soname_spec= 10008shrext_cmds=".so" 10009postinstall_cmds= 10010postuninstall_cmds= 10011finish_cmds= 10012finish_eval= 10013shlibpath_var= 10014shlibpath_overrides_runpath=unknown 10015version_type=none 10016dynamic_linker="$host_os ld.so" 10017sys_lib_dlsearch_path_spec="/lib /usr/lib" 10018need_lib_prefix=unknown 10019hardcode_into_libs=no 10020 10021# when you set need_version to no, make sure it does not cause -set_version 10022# flags to be left without arguments 10023need_version=unknown 10024 10025case $host_os in 10026aix3*) 10027 version_type=linux # correct to gnu/linux during the next big refactor 10028 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10029 shlibpath_var=LIBPATH 10030 10031 # AIX 3 has no versioning support, so we append a major version to the name. 10032 soname_spec='${libname}${release}${shared_ext}$major' 10033 ;; 10034 10035aix[4-9]*) 10036 version_type=linux # correct to gnu/linux during the next big refactor 10037 need_lib_prefix=no 10038 need_version=no 10039 hardcode_into_libs=yes 10040 if test "$host_cpu" = ia64; then 10041 # AIX 5 supports IA64 10042 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10043 shlibpath_var=LD_LIBRARY_PATH 10044 else 10045 # With GCC up to 2.95.x, collect2 would create an import file 10046 # for dependence libraries. The import file would start with 10047 # the line `#! .'. This would cause the generated library to 10048 # depend on `.', always an invalid library. This was fixed in 10049 # development snapshots of GCC prior to 3.0. 10050 case $host_os in 10051 aix4 | aix4.[01] | aix4.[01].*) 10052 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10053 echo ' yes ' 10054 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10055 : 10056 else 10057 can_build_shared=no 10058 fi 10059 ;; 10060 esac 10061 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10062 # soname into executable. Probably we can add versioning support to 10063 # collect2, so additional links can be useful in future. 10064 if test "$aix_use_runtimelinking" = yes; then 10065 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10066 # instead of lib<name>.a to let people know that these are not 10067 # typical AIX shared libraries. 10068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10069 else 10070 # We preserve .a as extension for shared libraries through AIX4.2 10071 # and later when we are not doing run time linking. 10072 library_names_spec='${libname}${release}.a $libname.a' 10073 soname_spec='${libname}${release}${shared_ext}$major' 10074 fi 10075 shlibpath_var=LIBPATH 10076 fi 10077 ;; 10078 10079amigaos*) 10080 case $host_cpu in 10081 powerpc) 10082 # Since July 2007 AmigaOS4 officially supports .so libraries. 10083 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10085 ;; 10086 m68k) 10087 library_names_spec='$libname.ixlibrary $libname.a' 10088 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10089 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' 10090 ;; 10091 esac 10092 ;; 10093 10094beos*) 10095 library_names_spec='${libname}${shared_ext}' 10096 dynamic_linker="$host_os ld.so" 10097 shlibpath_var=LIBRARY_PATH 10098 ;; 10099 10100bsdi[45]*) 10101 version_type=linux # correct to gnu/linux during the next big refactor 10102 need_version=no 10103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10104 soname_spec='${libname}${release}${shared_ext}$major' 10105 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10106 shlibpath_var=LD_LIBRARY_PATH 10107 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10108 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10109 # the default ld.so.conf also contains /usr/contrib/lib and 10110 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10111 # libtool to hard-code these into programs 10112 ;; 10113 10114cygwin* | mingw* | pw32* | cegcc*) 10115 version_type=windows 10116 shrext_cmds=".dll" 10117 need_version=no 10118 need_lib_prefix=no 10119 10120 case $GCC,$cc_basename in 10121 yes,*) 10122 # gcc 10123 library_names_spec='$libname.dll.a' 10124 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10125 postinstall_cmds='base_file=`basename \${file}`~ 10126 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10127 dldir=$destdir/`dirname \$dlpath`~ 10128 test -d \$dldir || mkdir -p \$dldir~ 10129 $install_prog $dir/$dlname \$dldir/$dlname~ 10130 chmod a+x \$dldir/$dlname~ 10131 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10132 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10133 fi' 10134 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10135 dlpath=$dir/\$dldll~ 10136 $RM \$dlpath' 10137 shlibpath_overrides_runpath=yes 10138 10139 case $host_os in 10140 cygwin*) 10141 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10142 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10143 10144 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10145 ;; 10146 mingw* | cegcc*) 10147 # MinGW DLLs use traditional 'lib' prefix 10148 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10149 ;; 10150 pw32*) 10151 # pw32 DLLs use 'pw' prefix rather than 'lib' 10152 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10153 ;; 10154 esac 10155 dynamic_linker='Win32 ld.exe' 10156 ;; 10157 10158 *,cl*) 10159 # Native MSVC 10160 libname_spec='$name' 10161 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10162 library_names_spec='${libname}.dll.lib' 10163 10164 case $build_os in 10165 mingw*) 10166 sys_lib_search_path_spec= 10167 lt_save_ifs=$IFS 10168 IFS=';' 10169 for lt_path in $LIB 10170 do 10171 IFS=$lt_save_ifs 10172 # Let DOS variable expansion print the short 8.3 style file name. 10173 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10174 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10175 done 10176 IFS=$lt_save_ifs 10177 # Convert to MSYS style. 10178 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10179 ;; 10180 cygwin*) 10181 # Convert to unix form, then to dos form, then back to unix form 10182 # but this time dos style (no spaces!) so that the unix form looks 10183 # like /cygdrive/c/PROGRA~1:/cygdr... 10184 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10185 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10186 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10187 ;; 10188 *) 10189 sys_lib_search_path_spec="$LIB" 10190 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10191 # It is most probably a Windows format PATH. 10192 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10193 else 10194 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10195 fi 10196 # FIXME: find the short name or the path components, as spaces are 10197 # common. (e.g. "Program Files" -> "PROGRA~1") 10198 ;; 10199 esac 10200 10201 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10202 postinstall_cmds='base_file=`basename \${file}`~ 10203 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10204 dldir=$destdir/`dirname \$dlpath`~ 10205 test -d \$dldir || mkdir -p \$dldir~ 10206 $install_prog $dir/$dlname \$dldir/$dlname' 10207 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10208 dlpath=$dir/\$dldll~ 10209 $RM \$dlpath' 10210 shlibpath_overrides_runpath=yes 10211 dynamic_linker='Win32 link.exe' 10212 ;; 10213 10214 *) 10215 # Assume MSVC wrapper 10216 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10217 dynamic_linker='Win32 ld.exe' 10218 ;; 10219 esac 10220 # FIXME: first we should search . and the directory the executable is in 10221 shlibpath_var=PATH 10222 ;; 10223 10224darwin* | rhapsody*) 10225 dynamic_linker="$host_os dyld" 10226 version_type=darwin 10227 need_lib_prefix=no 10228 need_version=no 10229 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10230 soname_spec='${libname}${release}${major}$shared_ext' 10231 shlibpath_overrides_runpath=yes 10232 shlibpath_var=DYLD_LIBRARY_PATH 10233 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10234 10235 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10236 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10237 ;; 10238 10239dgux*) 10240 version_type=linux # correct to gnu/linux during the next big refactor 10241 need_lib_prefix=no 10242 need_version=no 10243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10244 soname_spec='${libname}${release}${shared_ext}$major' 10245 shlibpath_var=LD_LIBRARY_PATH 10246 ;; 10247 10248freebsd* | dragonfly*) 10249 # DragonFly does not have aout. When/if they implement a new 10250 # versioning mechanism, adjust this. 10251 if test -x /usr/bin/objformat; then 10252 objformat=`/usr/bin/objformat` 10253 else 10254 case $host_os in 10255 freebsd[23].*) objformat=aout ;; 10256 *) objformat=elf ;; 10257 esac 10258 fi 10259 version_type=freebsd-$objformat 10260 case $version_type in 10261 freebsd-elf*) 10262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10263 need_version=no 10264 need_lib_prefix=no 10265 ;; 10266 freebsd-*) 10267 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10268 need_version=yes 10269 ;; 10270 esac 10271 shlibpath_var=LD_LIBRARY_PATH 10272 case $host_os in 10273 freebsd2.*) 10274 shlibpath_overrides_runpath=yes 10275 ;; 10276 freebsd3.[01]* | freebsdelf3.[01]*) 10277 shlibpath_overrides_runpath=yes 10278 hardcode_into_libs=yes 10279 ;; 10280 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10281 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10282 shlibpath_overrides_runpath=no 10283 hardcode_into_libs=yes 10284 ;; 10285 *) # from 4.6 on, and DragonFly 10286 shlibpath_overrides_runpath=yes 10287 hardcode_into_libs=yes 10288 ;; 10289 esac 10290 ;; 10291 10292gnu*) 10293 version_type=linux # correct to gnu/linux during the next big refactor 10294 need_lib_prefix=no 10295 need_version=no 10296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10297 soname_spec='${libname}${release}${shared_ext}$major' 10298 shlibpath_var=LD_LIBRARY_PATH 10299 shlibpath_overrides_runpath=no 10300 hardcode_into_libs=yes 10301 ;; 10302 10303haiku*) 10304 version_type=linux # correct to gnu/linux during the next big refactor 10305 need_lib_prefix=no 10306 need_version=no 10307 dynamic_linker="$host_os runtime_loader" 10308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10309 soname_spec='${libname}${release}${shared_ext}$major' 10310 shlibpath_var=LIBRARY_PATH 10311 shlibpath_overrides_runpath=yes 10312 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10313 hardcode_into_libs=yes 10314 ;; 10315 10316hpux9* | hpux10* | hpux11*) 10317 # Give a soname corresponding to the major version so that dld.sl refuses to 10318 # link against other versions. 10319 version_type=sunos 10320 need_lib_prefix=no 10321 need_version=no 10322 case $host_cpu in 10323 ia64*) 10324 shrext_cmds='.so' 10325 hardcode_into_libs=yes 10326 dynamic_linker="$host_os dld.so" 10327 shlibpath_var=LD_LIBRARY_PATH 10328 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10330 soname_spec='${libname}${release}${shared_ext}$major' 10331 if test "X$HPUX_IA64_MODE" = X32; then 10332 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10333 else 10334 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10335 fi 10336 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10337 ;; 10338 hppa*64*) 10339 shrext_cmds='.sl' 10340 hardcode_into_libs=yes 10341 dynamic_linker="$host_os dld.sl" 10342 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10343 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10345 soname_spec='${libname}${release}${shared_ext}$major' 10346 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10347 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10348 ;; 10349 *) 10350 shrext_cmds='.sl' 10351 dynamic_linker="$host_os dld.sl" 10352 shlibpath_var=SHLIB_PATH 10353 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10355 soname_spec='${libname}${release}${shared_ext}$major' 10356 ;; 10357 esac 10358 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10359 postinstall_cmds='chmod 555 $lib' 10360 # or fails outright, so override atomically: 10361 install_override_mode=555 10362 ;; 10363 10364interix[3-9]*) 10365 version_type=linux # correct to gnu/linux during the next big refactor 10366 need_lib_prefix=no 10367 need_version=no 10368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10369 soname_spec='${libname}${release}${shared_ext}$major' 10370 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10371 shlibpath_var=LD_LIBRARY_PATH 10372 shlibpath_overrides_runpath=no 10373 hardcode_into_libs=yes 10374 ;; 10375 10376irix5* | irix6* | nonstopux*) 10377 case $host_os in 10378 nonstopux*) version_type=nonstopux ;; 10379 *) 10380 if test "$lt_cv_prog_gnu_ld" = yes; then 10381 version_type=linux # correct to gnu/linux during the next big refactor 10382 else 10383 version_type=irix 10384 fi ;; 10385 esac 10386 need_lib_prefix=no 10387 need_version=no 10388 soname_spec='${libname}${release}${shared_ext}$major' 10389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10390 case $host_os in 10391 irix5* | nonstopux*) 10392 libsuff= shlibsuff= 10393 ;; 10394 *) 10395 case $LD in # libtool.m4 will add one of these switches to LD 10396 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10397 libsuff= shlibsuff= libmagic=32-bit;; 10398 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10399 libsuff=32 shlibsuff=N32 libmagic=N32;; 10400 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10401 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10402 *) libsuff= shlibsuff= libmagic=never-match;; 10403 esac 10404 ;; 10405 esac 10406 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10407 shlibpath_overrides_runpath=no 10408 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10409 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10410 hardcode_into_libs=yes 10411 ;; 10412 10413# No shared lib support for Linux oldld, aout, or coff. 10414linux*oldld* | linux*aout* | linux*coff*) 10415 dynamic_linker=no 10416 ;; 10417 10418# This must be glibc/ELF. 10419linux* | k*bsd*-gnu | kopensolaris*-gnu) 10420 version_type=linux # correct to gnu/linux during the next big refactor 10421 need_lib_prefix=no 10422 need_version=no 10423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10424 soname_spec='${libname}${release}${shared_ext}$major' 10425 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10426 shlibpath_var=LD_LIBRARY_PATH 10427 shlibpath_overrides_runpath=no 10428 10429 # Some binutils ld are patched to set DT_RUNPATH 10430 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10431 $as_echo_n "(cached) " >&6 10432else 10433 lt_cv_shlibpath_overrides_runpath=no 10434 save_LDFLAGS=$LDFLAGS 10435 save_libdir=$libdir 10436 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10437 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10439/* end confdefs.h. */ 10440 10441int 10442main () 10443{ 10444 10445 ; 10446 return 0; 10447} 10448_ACEOF 10449if ac_fn_c_try_link "$LINENO"; then : 10450 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10451 lt_cv_shlibpath_overrides_runpath=yes 10452fi 10453fi 10454rm -f core conftest.err conftest.$ac_objext \ 10455 conftest$ac_exeext conftest.$ac_ext 10456 LDFLAGS=$save_LDFLAGS 10457 libdir=$save_libdir 10458 10459fi 10460 10461 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10462 10463 # This implies no fast_install, which is unacceptable. 10464 # Some rework will be needed to allow for fast_install 10465 # before this can be enabled. 10466 hardcode_into_libs=yes 10467 10468 # Append ld.so.conf contents to the search path 10469 if test -f /etc/ld.so.conf; then 10470 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' ' '` 10471 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10472 fi 10473 10474 # We used to test for /lib/ld.so.1 and disable shared libraries on 10475 # powerpc, because MkLinux only supported shared libraries with the 10476 # GNU dynamic linker. Since this was broken with cross compilers, 10477 # most powerpc-linux boxes support dynamic linking these days and 10478 # people can always --disable-shared, the test was removed, and we 10479 # assume the GNU/Linux dynamic linker is in use. 10480 dynamic_linker='GNU/Linux ld.so' 10481 ;; 10482 10483netbsd*) 10484 version_type=sunos 10485 need_lib_prefix=no 10486 need_version=no 10487 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10489 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10490 dynamic_linker='NetBSD (a.out) ld.so' 10491 else 10492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10493 soname_spec='${libname}${release}${shared_ext}$major' 10494 dynamic_linker='NetBSD ld.elf_so' 10495 fi 10496 shlibpath_var=LD_LIBRARY_PATH 10497 shlibpath_overrides_runpath=yes 10498 hardcode_into_libs=yes 10499 ;; 10500 10501newsos6) 10502 version_type=linux # correct to gnu/linux during the next big refactor 10503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10504 shlibpath_var=LD_LIBRARY_PATH 10505 shlibpath_overrides_runpath=yes 10506 ;; 10507 10508*nto* | *qnx*) 10509 version_type=qnx 10510 need_lib_prefix=no 10511 need_version=no 10512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10513 soname_spec='${libname}${release}${shared_ext}$major' 10514 shlibpath_var=LD_LIBRARY_PATH 10515 shlibpath_overrides_runpath=no 10516 hardcode_into_libs=yes 10517 dynamic_linker='ldqnx.so' 10518 ;; 10519 10520openbsd*) 10521 version_type=sunos 10522 sys_lib_dlsearch_path_spec="/usr/lib" 10523 need_lib_prefix=no 10524 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10525 case $host_os in 10526 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10527 *) need_version=no ;; 10528 esac 10529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10530 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10531 shlibpath_var=LD_LIBRARY_PATH 10532 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10533 case $host_os in 10534 openbsd2.[89] | openbsd2.[89].*) 10535 shlibpath_overrides_runpath=no 10536 ;; 10537 *) 10538 shlibpath_overrides_runpath=yes 10539 ;; 10540 esac 10541 else 10542 shlibpath_overrides_runpath=yes 10543 fi 10544 ;; 10545 10546os2*) 10547 libname_spec='$name' 10548 shrext_cmds=".dll" 10549 need_lib_prefix=no 10550 library_names_spec='$libname${shared_ext} $libname.a' 10551 dynamic_linker='OS/2 ld.exe' 10552 shlibpath_var=LIBPATH 10553 ;; 10554 10555osf3* | osf4* | osf5*) 10556 version_type=osf 10557 need_lib_prefix=no 10558 need_version=no 10559 soname_spec='${libname}${release}${shared_ext}$major' 10560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10561 shlibpath_var=LD_LIBRARY_PATH 10562 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10563 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10564 ;; 10565 10566rdos*) 10567 dynamic_linker=no 10568 ;; 10569 10570solaris*) 10571 version_type=linux # correct to gnu/linux during the next big refactor 10572 need_lib_prefix=no 10573 need_version=no 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 shlibpath_overrides_runpath=yes 10578 hardcode_into_libs=yes 10579 # ldd complains unless libraries are executable 10580 postinstall_cmds='chmod +x $lib' 10581 ;; 10582 10583sunos4*) 10584 version_type=sunos 10585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10586 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10587 shlibpath_var=LD_LIBRARY_PATH 10588 shlibpath_overrides_runpath=yes 10589 if test "$with_gnu_ld" = yes; then 10590 need_lib_prefix=no 10591 fi 10592 need_version=yes 10593 ;; 10594 10595sysv4 | sysv4.3*) 10596 version_type=linux # correct to gnu/linux during the next big refactor 10597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10598 soname_spec='${libname}${release}${shared_ext}$major' 10599 shlibpath_var=LD_LIBRARY_PATH 10600 case $host_vendor in 10601 sni) 10602 shlibpath_overrides_runpath=no 10603 need_lib_prefix=no 10604 runpath_var=LD_RUN_PATH 10605 ;; 10606 siemens) 10607 need_lib_prefix=no 10608 ;; 10609 motorola) 10610 need_lib_prefix=no 10611 need_version=no 10612 shlibpath_overrides_runpath=no 10613 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10614 ;; 10615 esac 10616 ;; 10617 10618sysv4*MP*) 10619 if test -d /usr/nec ;then 10620 version_type=linux # correct to gnu/linux during the next big refactor 10621 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10622 soname_spec='$libname${shared_ext}.$major' 10623 shlibpath_var=LD_LIBRARY_PATH 10624 fi 10625 ;; 10626 10627sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10628 version_type=freebsd-elf 10629 need_lib_prefix=no 10630 need_version=no 10631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10632 soname_spec='${libname}${release}${shared_ext}$major' 10633 shlibpath_var=LD_LIBRARY_PATH 10634 shlibpath_overrides_runpath=yes 10635 hardcode_into_libs=yes 10636 if test "$with_gnu_ld" = yes; then 10637 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10638 else 10639 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10640 case $host_os in 10641 sco3.2v5*) 10642 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10643 ;; 10644 esac 10645 fi 10646 sys_lib_dlsearch_path_spec='/usr/lib' 10647 ;; 10648 10649tpf*) 10650 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10651 version_type=linux # correct to gnu/linux during the next big refactor 10652 need_lib_prefix=no 10653 need_version=no 10654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10655 shlibpath_var=LD_LIBRARY_PATH 10656 shlibpath_overrides_runpath=no 10657 hardcode_into_libs=yes 10658 ;; 10659 10660uts4*) 10661 version_type=linux # correct to gnu/linux during the next big refactor 10662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10663 soname_spec='${libname}${release}${shared_ext}$major' 10664 shlibpath_var=LD_LIBRARY_PATH 10665 ;; 10666 10667*) 10668 dynamic_linker=no 10669 ;; 10670esac 10671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10672$as_echo "$dynamic_linker" >&6; } 10673test "$dynamic_linker" = no && can_build_shared=no 10674 10675variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10676if test "$GCC" = yes; then 10677 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10678fi 10679 10680if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10681 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10682fi 10683if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10684 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10685fi 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 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10779$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10780hardcode_action= 10781if test -n "$hardcode_libdir_flag_spec" || 10782 test -n "$runpath_var" || 10783 test "X$hardcode_automatic" = "Xyes" ; then 10784 10785 # We can hardcode non-existent directories. 10786 if test "$hardcode_direct" != no && 10787 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10788 # have to relink, otherwise we might link with an installed library 10789 # when we should be linking with a yet-to-be-installed one 10790 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10791 test "$hardcode_minus_L" != no; then 10792 # Linking always hardcodes the temporary library directory. 10793 hardcode_action=relink 10794 else 10795 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10796 hardcode_action=immediate 10797 fi 10798else 10799 # We cannot hardcode anything, or else we can only hardcode existing 10800 # directories. 10801 hardcode_action=unsupported 10802fi 10803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10804$as_echo "$hardcode_action" >&6; } 10805 10806if test "$hardcode_action" = relink || 10807 test "$inherit_rpath" = yes; then 10808 # Fast installation is not supported 10809 enable_fast_install=no 10810elif test "$shlibpath_overrides_runpath" = yes || 10811 test "$enable_shared" = no; then 10812 # Fast installation is not necessary 10813 enable_fast_install=needless 10814fi 10815 10816 10817 10818 10819 10820 10821 if test "x$enable_dlopen" != xyes; then 10822 enable_dlopen=unknown 10823 enable_dlopen_self=unknown 10824 enable_dlopen_self_static=unknown 10825else 10826 lt_cv_dlopen=no 10827 lt_cv_dlopen_libs= 10828 10829 case $host_os in 10830 beos*) 10831 lt_cv_dlopen="load_add_on" 10832 lt_cv_dlopen_libs= 10833 lt_cv_dlopen_self=yes 10834 ;; 10835 10836 mingw* | pw32* | cegcc*) 10837 lt_cv_dlopen="LoadLibrary" 10838 lt_cv_dlopen_libs= 10839 ;; 10840 10841 cygwin*) 10842 lt_cv_dlopen="dlopen" 10843 lt_cv_dlopen_libs= 10844 ;; 10845 10846 darwin*) 10847 # if libdl is installed we need to link against it 10848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10849$as_echo_n "checking for dlopen in -ldl... " >&6; } 10850if ${ac_cv_lib_dl_dlopen+:} false; then : 10851 $as_echo_n "(cached) " >&6 10852else 10853 ac_check_lib_save_LIBS=$LIBS 10854LIBS="-ldl $LIBS" 10855cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10856/* end confdefs.h. */ 10857 10858/* Override any GCC internal prototype to avoid an error. 10859 Use char because int might match the return type of a GCC 10860 builtin and then its argument prototype would still apply. */ 10861#ifdef __cplusplus 10862extern "C" 10863#endif 10864char dlopen (); 10865int 10866main () 10867{ 10868return dlopen (); 10869 ; 10870 return 0; 10871} 10872_ACEOF 10873if ac_fn_c_try_link "$LINENO"; then : 10874 ac_cv_lib_dl_dlopen=yes 10875else 10876 ac_cv_lib_dl_dlopen=no 10877fi 10878rm -f core conftest.err conftest.$ac_objext \ 10879 conftest$ac_exeext conftest.$ac_ext 10880LIBS=$ac_check_lib_save_LIBS 10881fi 10882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10883$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10884if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10885 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10886else 10887 10888 lt_cv_dlopen="dyld" 10889 lt_cv_dlopen_libs= 10890 lt_cv_dlopen_self=yes 10891 10892fi 10893 10894 ;; 10895 10896 *) 10897 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10898if test "x$ac_cv_func_shl_load" = xyes; then : 10899 lt_cv_dlopen="shl_load" 10900else 10901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10902$as_echo_n "checking for shl_load in -ldld... " >&6; } 10903if ${ac_cv_lib_dld_shl_load+:} false; then : 10904 $as_echo_n "(cached) " >&6 10905else 10906 ac_check_lib_save_LIBS=$LIBS 10907LIBS="-ldld $LIBS" 10908cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10909/* end confdefs.h. */ 10910 10911/* Override any GCC internal prototype to avoid an error. 10912 Use char because int might match the return type of a GCC 10913 builtin and then its argument prototype would still apply. */ 10914#ifdef __cplusplus 10915extern "C" 10916#endif 10917char shl_load (); 10918int 10919main () 10920{ 10921return shl_load (); 10922 ; 10923 return 0; 10924} 10925_ACEOF 10926if ac_fn_c_try_link "$LINENO"; then : 10927 ac_cv_lib_dld_shl_load=yes 10928else 10929 ac_cv_lib_dld_shl_load=no 10930fi 10931rm -f core conftest.err conftest.$ac_objext \ 10932 conftest$ac_exeext conftest.$ac_ext 10933LIBS=$ac_check_lib_save_LIBS 10934fi 10935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10936$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10937if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10938 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10939else 10940 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10941if test "x$ac_cv_func_dlopen" = xyes; then : 10942 lt_cv_dlopen="dlopen" 10943else 10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10945$as_echo_n "checking for dlopen in -ldl... " >&6; } 10946if ${ac_cv_lib_dl_dlopen+:} false; then : 10947 $as_echo_n "(cached) " >&6 10948else 10949 ac_check_lib_save_LIBS=$LIBS 10950LIBS="-ldl $LIBS" 10951cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10952/* end confdefs.h. */ 10953 10954/* Override any GCC internal prototype to avoid an error. 10955 Use char because int might match the return type of a GCC 10956 builtin and then its argument prototype would still apply. */ 10957#ifdef __cplusplus 10958extern "C" 10959#endif 10960char dlopen (); 10961int 10962main () 10963{ 10964return dlopen (); 10965 ; 10966 return 0; 10967} 10968_ACEOF 10969if ac_fn_c_try_link "$LINENO"; then : 10970 ac_cv_lib_dl_dlopen=yes 10971else 10972 ac_cv_lib_dl_dlopen=no 10973fi 10974rm -f core conftest.err conftest.$ac_objext \ 10975 conftest$ac_exeext conftest.$ac_ext 10976LIBS=$ac_check_lib_save_LIBS 10977fi 10978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10979$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10980if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10981 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10982else 10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10984$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10985if ${ac_cv_lib_svld_dlopen+:} false; then : 10986 $as_echo_n "(cached) " >&6 10987else 10988 ac_check_lib_save_LIBS=$LIBS 10989LIBS="-lsvld $LIBS" 10990cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10991/* end confdefs.h. */ 10992 10993/* Override any GCC internal prototype to avoid an error. 10994 Use char because int might match the return type of a GCC 10995 builtin and then its argument prototype would still apply. */ 10996#ifdef __cplusplus 10997extern "C" 10998#endif 10999char dlopen (); 11000int 11001main () 11002{ 11003return dlopen (); 11004 ; 11005 return 0; 11006} 11007_ACEOF 11008if ac_fn_c_try_link "$LINENO"; then : 11009 ac_cv_lib_svld_dlopen=yes 11010else 11011 ac_cv_lib_svld_dlopen=no 11012fi 11013rm -f core conftest.err conftest.$ac_objext \ 11014 conftest$ac_exeext conftest.$ac_ext 11015LIBS=$ac_check_lib_save_LIBS 11016fi 11017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11018$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11019if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11020 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11021else 11022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11023$as_echo_n "checking for dld_link in -ldld... " >&6; } 11024if ${ac_cv_lib_dld_dld_link+:} false; then : 11025 $as_echo_n "(cached) " >&6 11026else 11027 ac_check_lib_save_LIBS=$LIBS 11028LIBS="-ldld $LIBS" 11029cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11030/* end confdefs.h. */ 11031 11032/* Override any GCC internal prototype to avoid an error. 11033 Use char because int might match the return type of a GCC 11034 builtin and then its argument prototype would still apply. */ 11035#ifdef __cplusplus 11036extern "C" 11037#endif 11038char dld_link (); 11039int 11040main () 11041{ 11042return dld_link (); 11043 ; 11044 return 0; 11045} 11046_ACEOF 11047if ac_fn_c_try_link "$LINENO"; then : 11048 ac_cv_lib_dld_dld_link=yes 11049else 11050 ac_cv_lib_dld_dld_link=no 11051fi 11052rm -f core conftest.err conftest.$ac_objext \ 11053 conftest$ac_exeext conftest.$ac_ext 11054LIBS=$ac_check_lib_save_LIBS 11055fi 11056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11057$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11058if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11059 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11060fi 11061 11062 11063fi 11064 11065 11066fi 11067 11068 11069fi 11070 11071 11072fi 11073 11074 11075fi 11076 11077 ;; 11078 esac 11079 11080 if test "x$lt_cv_dlopen" != xno; then 11081 enable_dlopen=yes 11082 else 11083 enable_dlopen=no 11084 fi 11085 11086 case $lt_cv_dlopen in 11087 dlopen) 11088 save_CPPFLAGS="$CPPFLAGS" 11089 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11090 11091 save_LDFLAGS="$LDFLAGS" 11092 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11093 11094 save_LIBS="$LIBS" 11095 LIBS="$lt_cv_dlopen_libs $LIBS" 11096 11097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11098$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11099if ${lt_cv_dlopen_self+:} false; then : 11100 $as_echo_n "(cached) " >&6 11101else 11102 if test "$cross_compiling" = yes; then : 11103 lt_cv_dlopen_self=cross 11104else 11105 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11106 lt_status=$lt_dlunknown 11107 cat > conftest.$ac_ext <<_LT_EOF 11108#line $LINENO "configure" 11109#include "confdefs.h" 11110 11111#if HAVE_DLFCN_H 11112#include <dlfcn.h> 11113#endif 11114 11115#include <stdio.h> 11116 11117#ifdef RTLD_GLOBAL 11118# define LT_DLGLOBAL RTLD_GLOBAL 11119#else 11120# ifdef DL_GLOBAL 11121# define LT_DLGLOBAL DL_GLOBAL 11122# else 11123# define LT_DLGLOBAL 0 11124# endif 11125#endif 11126 11127/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11128 find out it does not work in some platform. */ 11129#ifndef LT_DLLAZY_OR_NOW 11130# ifdef RTLD_LAZY 11131# define LT_DLLAZY_OR_NOW RTLD_LAZY 11132# else 11133# ifdef DL_LAZY 11134# define LT_DLLAZY_OR_NOW DL_LAZY 11135# else 11136# ifdef RTLD_NOW 11137# define LT_DLLAZY_OR_NOW RTLD_NOW 11138# else 11139# ifdef DL_NOW 11140# define LT_DLLAZY_OR_NOW DL_NOW 11141# else 11142# define LT_DLLAZY_OR_NOW 0 11143# endif 11144# endif 11145# endif 11146# endif 11147#endif 11148 11149/* When -fvisbility=hidden is used, assume the code has been annotated 11150 correspondingly for the symbols needed. */ 11151#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11152int fnord () __attribute__((visibility("default"))); 11153#endif 11154 11155int fnord () { return 42; } 11156int main () 11157{ 11158 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11159 int status = $lt_dlunknown; 11160 11161 if (self) 11162 { 11163 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11164 else 11165 { 11166 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11167 else puts (dlerror ()); 11168 } 11169 /* dlclose (self); */ 11170 } 11171 else 11172 puts (dlerror ()); 11173 11174 return status; 11175} 11176_LT_EOF 11177 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11178 (eval $ac_link) 2>&5 11179 ac_status=$? 11180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11181 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11182 (./conftest; exit; ) >&5 2>/dev/null 11183 lt_status=$? 11184 case x$lt_status in 11185 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11186 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11187 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11188 esac 11189 else : 11190 # compilation failed 11191 lt_cv_dlopen_self=no 11192 fi 11193fi 11194rm -fr conftest* 11195 11196 11197fi 11198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11199$as_echo "$lt_cv_dlopen_self" >&6; } 11200 11201 if test "x$lt_cv_dlopen_self" = xyes; then 11202 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11204$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11205if ${lt_cv_dlopen_self_static+:} false; then : 11206 $as_echo_n "(cached) " >&6 11207else 11208 if test "$cross_compiling" = yes; then : 11209 lt_cv_dlopen_self_static=cross 11210else 11211 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11212 lt_status=$lt_dlunknown 11213 cat > conftest.$ac_ext <<_LT_EOF 11214#line $LINENO "configure" 11215#include "confdefs.h" 11216 11217#if HAVE_DLFCN_H 11218#include <dlfcn.h> 11219#endif 11220 11221#include <stdio.h> 11222 11223#ifdef RTLD_GLOBAL 11224# define LT_DLGLOBAL RTLD_GLOBAL 11225#else 11226# ifdef DL_GLOBAL 11227# define LT_DLGLOBAL DL_GLOBAL 11228# else 11229# define LT_DLGLOBAL 0 11230# endif 11231#endif 11232 11233/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11234 find out it does not work in some platform. */ 11235#ifndef LT_DLLAZY_OR_NOW 11236# ifdef RTLD_LAZY 11237# define LT_DLLAZY_OR_NOW RTLD_LAZY 11238# else 11239# ifdef DL_LAZY 11240# define LT_DLLAZY_OR_NOW DL_LAZY 11241# else 11242# ifdef RTLD_NOW 11243# define LT_DLLAZY_OR_NOW RTLD_NOW 11244# else 11245# ifdef DL_NOW 11246# define LT_DLLAZY_OR_NOW DL_NOW 11247# else 11248# define LT_DLLAZY_OR_NOW 0 11249# endif 11250# endif 11251# endif 11252# endif 11253#endif 11254 11255/* When -fvisbility=hidden is used, assume the code has been annotated 11256 correspondingly for the symbols needed. */ 11257#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11258int fnord () __attribute__((visibility("default"))); 11259#endif 11260 11261int fnord () { return 42; } 11262int main () 11263{ 11264 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11265 int status = $lt_dlunknown; 11266 11267 if (self) 11268 { 11269 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11270 else 11271 { 11272 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11273 else puts (dlerror ()); 11274 } 11275 /* dlclose (self); */ 11276 } 11277 else 11278 puts (dlerror ()); 11279 11280 return status; 11281} 11282_LT_EOF 11283 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11284 (eval $ac_link) 2>&5 11285 ac_status=$? 11286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11287 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11288 (./conftest; exit; ) >&5 2>/dev/null 11289 lt_status=$? 11290 case x$lt_status in 11291 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11292 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11293 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11294 esac 11295 else : 11296 # compilation failed 11297 lt_cv_dlopen_self_static=no 11298 fi 11299fi 11300rm -fr conftest* 11301 11302 11303fi 11304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11305$as_echo "$lt_cv_dlopen_self_static" >&6; } 11306 fi 11307 11308 CPPFLAGS="$save_CPPFLAGS" 11309 LDFLAGS="$save_LDFLAGS" 11310 LIBS="$save_LIBS" 11311 ;; 11312 esac 11313 11314 case $lt_cv_dlopen_self in 11315 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11316 *) enable_dlopen_self=unknown ;; 11317 esac 11318 11319 case $lt_cv_dlopen_self_static in 11320 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11321 *) enable_dlopen_self_static=unknown ;; 11322 esac 11323fi 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341striplib= 11342old_striplib= 11343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11344$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11345if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11346 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11347 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11349$as_echo "yes" >&6; } 11350else 11351# FIXME - insert some real tests, host_os isn't really good enough 11352 case $host_os in 11353 darwin*) 11354 if test -n "$STRIP" ; then 11355 striplib="$STRIP -x" 11356 old_striplib="$STRIP -S" 11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11358$as_echo "yes" >&6; } 11359 else 11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11361$as_echo "no" >&6; } 11362 fi 11363 ;; 11364 *) 11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11366$as_echo "no" >&6; } 11367 ;; 11368 esac 11369fi 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 # Report which library types will actually be built 11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11384$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11386$as_echo "$can_build_shared" >&6; } 11387 11388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11389$as_echo_n "checking whether to build shared libraries... " >&6; } 11390 test "$can_build_shared" = "no" && enable_shared=no 11391 11392 # On AIX, shared libraries and static libraries use the same namespace, and 11393 # are all built from PIC. 11394 case $host_os in 11395 aix3*) 11396 test "$enable_shared" = yes && enable_static=no 11397 if test -n "$RANLIB"; then 11398 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11399 postinstall_cmds='$RANLIB $lib' 11400 fi 11401 ;; 11402 11403 aix[4-9]*) 11404 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11405 test "$enable_shared" = yes && enable_static=no 11406 fi 11407 ;; 11408 esac 11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11410$as_echo "$enable_shared" >&6; } 11411 11412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11413$as_echo_n "checking whether to build static libraries... " >&6; } 11414 # Make sure either enable_shared or enable_static is yes. 11415 test "$enable_shared" = yes || enable_static=yes 11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11417$as_echo "$enable_static" >&6; } 11418 11419 11420 11421 11422fi 11423ac_ext=c 11424ac_cpp='$CPP $CPPFLAGS' 11425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11427ac_compiler_gnu=$ac_cv_c_compiler_gnu 11428 11429CC="$lt_save_CC" 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 ac_config_commands="$ac_config_commands libtool" 11446 11447 11448 11449 11450# Only expand once: 11451 11452 11453 11454# Require X.Org macros 1.8 or later 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11467$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11468if ${ac_cv_prog_cc_c99+:} false; then : 11469 $as_echo_n "(cached) " >&6 11470else 11471 ac_cv_prog_cc_c99=no 11472ac_save_CC=$CC 11473cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11474/* end confdefs.h. */ 11475#include <stdarg.h> 11476#include <stdbool.h> 11477#include <stdlib.h> 11478#include <wchar.h> 11479#include <stdio.h> 11480 11481// Check varargs macros. These examples are taken from C99 6.10.3.5. 11482#define debug(...) fprintf (stderr, __VA_ARGS__) 11483#define showlist(...) puts (#__VA_ARGS__) 11484#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11485static void 11486test_varargs_macros (void) 11487{ 11488 int x = 1234; 11489 int y = 5678; 11490 debug ("Flag"); 11491 debug ("X = %d\n", x); 11492 showlist (The first, second, and third items.); 11493 report (x>y, "x is %d but y is %d", x, y); 11494} 11495 11496// Check long long types. 11497#define BIG64 18446744073709551615ull 11498#define BIG32 4294967295ul 11499#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 11500#if !BIG_OK 11501 your preprocessor is broken; 11502#endif 11503#if BIG_OK 11504#else 11505 your preprocessor is broken; 11506#endif 11507static long long int bignum = -9223372036854775807LL; 11508static unsigned long long int ubignum = BIG64; 11509 11510struct incomplete_array 11511{ 11512 int datasize; 11513 double data[]; 11514}; 11515 11516struct named_init { 11517 int number; 11518 const wchar_t *name; 11519 double average; 11520}; 11521 11522typedef const char *ccp; 11523 11524static inline int 11525test_restrict (ccp restrict text) 11526{ 11527 // See if C++-style comments work. 11528 // Iterate through items via the restricted pointer. 11529 // Also check for declarations in for loops. 11530 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 11531 continue; 11532 return 0; 11533} 11534 11535// Check varargs and va_copy. 11536static void 11537test_varargs (const char *format, ...) 11538{ 11539 va_list args; 11540 va_start (args, format); 11541 va_list args_copy; 11542 va_copy (args_copy, args); 11543 11544 const char *str; 11545 int number; 11546 float fnumber; 11547 11548 while (*format) 11549 { 11550 switch (*format++) 11551 { 11552 case 's': // string 11553 str = va_arg (args_copy, const char *); 11554 break; 11555 case 'd': // int 11556 number = va_arg (args_copy, int); 11557 break; 11558 case 'f': // float 11559 fnumber = va_arg (args_copy, double); 11560 break; 11561 default: 11562 break; 11563 } 11564 } 11565 va_end (args_copy); 11566 va_end (args); 11567} 11568 11569int 11570main () 11571{ 11572 11573 // Check bool. 11574 _Bool success = false; 11575 11576 // Check restrict. 11577 if (test_restrict ("String literal") == 0) 11578 success = true; 11579 char *restrict newvar = "Another string"; 11580 11581 // Check varargs. 11582 test_varargs ("s, d' f .", "string", 65, 34.234); 11583 test_varargs_macros (); 11584 11585 // Check flexible array members. 11586 struct incomplete_array *ia = 11587 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 11588 ia->datasize = 10; 11589 for (int i = 0; i < ia->datasize; ++i) 11590 ia->data[i] = i * 1.234; 11591 11592 // Check named initializers. 11593 struct named_init ni = { 11594 .number = 34, 11595 .name = L"Test wide string", 11596 .average = 543.34343, 11597 }; 11598 11599 ni.number = 58; 11600 11601 int dynamic_array[ni.number]; 11602 dynamic_array[ni.number - 1] = 543; 11603 11604 // work around unused variable warnings 11605 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 11606 || dynamic_array[ni.number - 1] != 543); 11607 11608 ; 11609 return 0; 11610} 11611_ACEOF 11612for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 11613do 11614 CC="$ac_save_CC $ac_arg" 11615 if ac_fn_c_try_compile "$LINENO"; then : 11616 ac_cv_prog_cc_c99=$ac_arg 11617fi 11618rm -f core conftest.err conftest.$ac_objext 11619 test "x$ac_cv_prog_cc_c99" != "xno" && break 11620done 11621rm -f conftest.$ac_ext 11622CC=$ac_save_CC 11623 11624fi 11625# AC_CACHE_VAL 11626case "x$ac_cv_prog_cc_c99" in 11627 x) 11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11629$as_echo "none needed" >&6; } ;; 11630 xno) 11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11632$as_echo "unsupported" >&6; } ;; 11633 *) 11634 CC="$CC $ac_cv_prog_cc_c99" 11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 11636$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 11637esac 11638if test "x$ac_cv_prog_cc_c99" != xno; then : 11639 11640fi 11641 11642 11643 11644 11645 11646 11647ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 11648if test "x$ac_cv_have_decl___clang__" = xyes; then : 11649 CLANGCC="yes" 11650else 11651 CLANGCC="no" 11652fi 11653 11654ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 11655if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 11656 INTELCC="yes" 11657else 11658 INTELCC="no" 11659fi 11660 11661ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 11662if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 11663 SUNCC="yes" 11664else 11665 SUNCC="no" 11666fi 11667 11668 11669 11670 11671if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11672 if test -n "$ac_tool_prefix"; then 11673 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11674set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11676$as_echo_n "checking for $ac_word... " >&6; } 11677if ${ac_cv_path_PKG_CONFIG+:} false; then : 11678 $as_echo_n "(cached) " >&6 11679else 11680 case $PKG_CONFIG in 11681 [\\/]* | ?:[\\/]*) 11682 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11683 ;; 11684 *) 11685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11686for as_dir in $PATH 11687do 11688 IFS=$as_save_IFS 11689 test -z "$as_dir" && as_dir=. 11690 for ac_exec_ext in '' $ac_executable_extensions; do 11691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11692 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11694 break 2 11695 fi 11696done 11697 done 11698IFS=$as_save_IFS 11699 11700 ;; 11701esac 11702fi 11703PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11704if test -n "$PKG_CONFIG"; then 11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11706$as_echo "$PKG_CONFIG" >&6; } 11707else 11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11709$as_echo "no" >&6; } 11710fi 11711 11712 11713fi 11714if test -z "$ac_cv_path_PKG_CONFIG"; then 11715 ac_pt_PKG_CONFIG=$PKG_CONFIG 11716 # Extract the first word of "pkg-config", so it can be a program name with args. 11717set dummy pkg-config; ac_word=$2 11718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11719$as_echo_n "checking for $ac_word... " >&6; } 11720if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 11721 $as_echo_n "(cached) " >&6 11722else 11723 case $ac_pt_PKG_CONFIG in 11724 [\\/]* | ?:[\\/]*) 11725 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11726 ;; 11727 *) 11728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11729for as_dir in $PATH 11730do 11731 IFS=$as_save_IFS 11732 test -z "$as_dir" && as_dir=. 11733 for ac_exec_ext in '' $ac_executable_extensions; do 11734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11735 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11737 break 2 11738 fi 11739done 11740 done 11741IFS=$as_save_IFS 11742 11743 ;; 11744esac 11745fi 11746ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 11747if test -n "$ac_pt_PKG_CONFIG"; then 11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 11749$as_echo "$ac_pt_PKG_CONFIG" >&6; } 11750else 11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11752$as_echo "no" >&6; } 11753fi 11754 11755 if test "x$ac_pt_PKG_CONFIG" = x; then 11756 PKG_CONFIG="" 11757 else 11758 case $cross_compiling:$ac_tool_warned in 11759yes:) 11760{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11761$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11762ac_tool_warned=yes ;; 11763esac 11764 PKG_CONFIG=$ac_pt_PKG_CONFIG 11765 fi 11766else 11767 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 11768fi 11769 11770fi 11771if test -n "$PKG_CONFIG"; then 11772 _pkg_min_version=0.9.0 11773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 11774$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 11775 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11777$as_echo "yes" >&6; } 11778 else 11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11780$as_echo "no" >&6; } 11781 PKG_CONFIG="" 11782 fi 11783 11784fi 11785 11786 11787 11788 11789 11790# Check whether --enable-selective-werror was given. 11791if test "${enable_selective_werror+set}" = set; then : 11792 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 11793else 11794 SELECTIVE_WERROR=yes 11795fi 11796 11797 11798 11799 11800 11801# -v is too short to test reliably with XORG_TESTSET_CFLAG 11802if test "x$SUNCC" = "xyes"; then 11803 BASE_CFLAGS="-v" 11804else 11805 BASE_CFLAGS="" 11806fi 11807 11808# This chunk of warnings were those that existed in the legacy CWARNFLAGS 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822xorg_testset_save_CFLAGS="$CFLAGS" 11823 11824if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11827$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11828if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11829 $as_echo_n "(cached) " >&6 11830else 11831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11832/* end confdefs.h. */ 11833int i; 11834_ACEOF 11835if ac_fn_c_try_compile "$LINENO"; then : 11836 xorg_cv_cc_flag_unknown_warning_option=yes 11837else 11838 xorg_cv_cc_flag_unknown_warning_option=no 11839fi 11840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11841fi 11842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11843$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11844 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11845 CFLAGS="$xorg_testset_save_CFLAGS" 11846fi 11847 11848if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11849 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11850 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11851 fi 11852 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11854$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11855if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11856 $as_echo_n "(cached) " >&6 11857else 11858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11859/* end confdefs.h. */ 11860int i; 11861_ACEOF 11862if ac_fn_c_try_compile "$LINENO"; then : 11863 xorg_cv_cc_flag_unused_command_line_argument=yes 11864else 11865 xorg_cv_cc_flag_unused_command_line_argument=no 11866fi 11867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11868fi 11869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11870$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11871 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11872 CFLAGS="$xorg_testset_save_CFLAGS" 11873fi 11874 11875found="no" 11876 11877 if test $found = "no" ; then 11878 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11879 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11880 fi 11881 11882 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 11883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11884 fi 11885 11886 CFLAGS="$CFLAGS -Wall" 11887 11888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 11889$as_echo_n "checking if $CC supports -Wall... " >&6; } 11890 cacheid=xorg_cv_cc_flag__Wall 11891 if eval \${$cacheid+:} false; then : 11892 $as_echo_n "(cached) " >&6 11893else 11894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11895/* end confdefs.h. */ 11896int i; 11897int 11898main () 11899{ 11900 11901 ; 11902 return 0; 11903} 11904_ACEOF 11905if ac_fn_c_try_link "$LINENO"; then : 11906 eval $cacheid=yes 11907else 11908 eval $cacheid=no 11909fi 11910rm -f core conftest.err conftest.$ac_objext \ 11911 conftest$ac_exeext conftest.$ac_ext 11912fi 11913 11914 11915 CFLAGS="$xorg_testset_save_CFLAGS" 11916 11917 eval supported=\$$cacheid 11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11919$as_echo "$supported" >&6; } 11920 if test "$supported" = "yes" ; then 11921 BASE_CFLAGS="$BASE_CFLAGS -Wall" 11922 found="yes" 11923 fi 11924 fi 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940xorg_testset_save_CFLAGS="$CFLAGS" 11941 11942if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11945$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11946if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11947 $as_echo_n "(cached) " >&6 11948else 11949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11950/* end confdefs.h. */ 11951int i; 11952_ACEOF 11953if ac_fn_c_try_compile "$LINENO"; then : 11954 xorg_cv_cc_flag_unknown_warning_option=yes 11955else 11956 xorg_cv_cc_flag_unknown_warning_option=no 11957fi 11958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11959fi 11960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11961$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11962 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11963 CFLAGS="$xorg_testset_save_CFLAGS" 11964fi 11965 11966if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11969 fi 11970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11972$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11973if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11974 $as_echo_n "(cached) " >&6 11975else 11976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11977/* end confdefs.h. */ 11978int i; 11979_ACEOF 11980if ac_fn_c_try_compile "$LINENO"; then : 11981 xorg_cv_cc_flag_unused_command_line_argument=yes 11982else 11983 xorg_cv_cc_flag_unused_command_line_argument=no 11984fi 11985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11986fi 11987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11988$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11989 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11990 CFLAGS="$xorg_testset_save_CFLAGS" 11991fi 11992 11993found="no" 11994 11995 if test $found = "no" ; then 11996 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11997 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11998 fi 11999 12000 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12002 fi 12003 12004 CFLAGS="$CFLAGS -Wpointer-arith" 12005 12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 12007$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 12008 cacheid=xorg_cv_cc_flag__Wpointer_arith 12009 if eval \${$cacheid+:} false; then : 12010 $as_echo_n "(cached) " >&6 12011else 12012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12013/* end confdefs.h. */ 12014int i; 12015int 12016main () 12017{ 12018 12019 ; 12020 return 0; 12021} 12022_ACEOF 12023if ac_fn_c_try_link "$LINENO"; then : 12024 eval $cacheid=yes 12025else 12026 eval $cacheid=no 12027fi 12028rm -f core conftest.err conftest.$ac_objext \ 12029 conftest$ac_exeext conftest.$ac_ext 12030fi 12031 12032 12033 CFLAGS="$xorg_testset_save_CFLAGS" 12034 12035 eval supported=\$$cacheid 12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12037$as_echo "$supported" >&6; } 12038 if test "$supported" = "yes" ; then 12039 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12040 found="yes" 12041 fi 12042 fi 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058xorg_testset_save_CFLAGS="$CFLAGS" 12059 12060if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12061 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12063$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12064if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12065 $as_echo_n "(cached) " >&6 12066else 12067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12068/* end confdefs.h. */ 12069int i; 12070_ACEOF 12071if ac_fn_c_try_compile "$LINENO"; then : 12072 xorg_cv_cc_flag_unknown_warning_option=yes 12073else 12074 xorg_cv_cc_flag_unknown_warning_option=no 12075fi 12076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12077fi 12078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12079$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12080 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12081 CFLAGS="$xorg_testset_save_CFLAGS" 12082fi 12083 12084if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12087 fi 12088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12090$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12091if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12092 $as_echo_n "(cached) " >&6 12093else 12094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12095/* end confdefs.h. */ 12096int i; 12097_ACEOF 12098if ac_fn_c_try_compile "$LINENO"; then : 12099 xorg_cv_cc_flag_unused_command_line_argument=yes 12100else 12101 xorg_cv_cc_flag_unused_command_line_argument=no 12102fi 12103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12104fi 12105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12106$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12107 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12108 CFLAGS="$xorg_testset_save_CFLAGS" 12109fi 12110 12111found="no" 12112 12113 if test $found = "no" ; then 12114 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12115 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12116 fi 12117 12118 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12120 fi 12121 12122 CFLAGS="$CFLAGS -Wmissing-declarations" 12123 12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 12125$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 12126 cacheid=xorg_cv_cc_flag__Wmissing_declarations 12127 if eval \${$cacheid+:} false; then : 12128 $as_echo_n "(cached) " >&6 12129else 12130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12131/* end confdefs.h. */ 12132int i; 12133int 12134main () 12135{ 12136 12137 ; 12138 return 0; 12139} 12140_ACEOF 12141if ac_fn_c_try_link "$LINENO"; then : 12142 eval $cacheid=yes 12143else 12144 eval $cacheid=no 12145fi 12146rm -f core conftest.err conftest.$ac_objext \ 12147 conftest$ac_exeext conftest.$ac_ext 12148fi 12149 12150 12151 CFLAGS="$xorg_testset_save_CFLAGS" 12152 12153 eval supported=\$$cacheid 12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12155$as_echo "$supported" >&6; } 12156 if test "$supported" = "yes" ; then 12157 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12158 found="yes" 12159 fi 12160 fi 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176xorg_testset_save_CFLAGS="$CFLAGS" 12177 12178if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12181$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12182if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12183 $as_echo_n "(cached) " >&6 12184else 12185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12186/* end confdefs.h. */ 12187int i; 12188_ACEOF 12189if ac_fn_c_try_compile "$LINENO"; then : 12190 xorg_cv_cc_flag_unknown_warning_option=yes 12191else 12192 xorg_cv_cc_flag_unknown_warning_option=no 12193fi 12194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12195fi 12196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12197$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12198 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12199 CFLAGS="$xorg_testset_save_CFLAGS" 12200fi 12201 12202if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12203 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12204 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12205 fi 12206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12208$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12209if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12210 $as_echo_n "(cached) " >&6 12211else 12212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12213/* end confdefs.h. */ 12214int i; 12215_ACEOF 12216if ac_fn_c_try_compile "$LINENO"; then : 12217 xorg_cv_cc_flag_unused_command_line_argument=yes 12218else 12219 xorg_cv_cc_flag_unused_command_line_argument=no 12220fi 12221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12222fi 12223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12224$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12225 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12226 CFLAGS="$xorg_testset_save_CFLAGS" 12227fi 12228 12229found="no" 12230 12231 if test $found = "no" ; then 12232 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12233 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12234 fi 12235 12236 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12238 fi 12239 12240 CFLAGS="$CFLAGS -Wformat=2" 12241 12242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12243$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12244 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 12245 if eval \${$cacheid+:} false; then : 12246 $as_echo_n "(cached) " >&6 12247else 12248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12249/* end confdefs.h. */ 12250int i; 12251int 12252main () 12253{ 12254 12255 ; 12256 return 0; 12257} 12258_ACEOF 12259if ac_fn_c_try_link "$LINENO"; then : 12260 eval $cacheid=yes 12261else 12262 eval $cacheid=no 12263fi 12264rm -f core conftest.err conftest.$ac_objext \ 12265 conftest$ac_exeext conftest.$ac_ext 12266fi 12267 12268 12269 CFLAGS="$xorg_testset_save_CFLAGS" 12270 12271 eval supported=\$$cacheid 12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12273$as_echo "$supported" >&6; } 12274 if test "$supported" = "yes" ; then 12275 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12276 found="yes" 12277 fi 12278 fi 12279 12280 if test $found = "no" ; then 12281 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12282 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12283 fi 12284 12285 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12287 fi 12288 12289 CFLAGS="$CFLAGS -Wformat" 12290 12291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 12292$as_echo_n "checking if $CC supports -Wformat... " >&6; } 12293 cacheid=xorg_cv_cc_flag__Wformat 12294 if eval \${$cacheid+:} false; then : 12295 $as_echo_n "(cached) " >&6 12296else 12297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12298/* end confdefs.h. */ 12299int i; 12300int 12301main () 12302{ 12303 12304 ; 12305 return 0; 12306} 12307_ACEOF 12308if ac_fn_c_try_link "$LINENO"; then : 12309 eval $cacheid=yes 12310else 12311 eval $cacheid=no 12312fi 12313rm -f core conftest.err conftest.$ac_objext \ 12314 conftest$ac_exeext conftest.$ac_ext 12315fi 12316 12317 12318 CFLAGS="$xorg_testset_save_CFLAGS" 12319 12320 eval supported=\$$cacheid 12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12322$as_echo "$supported" >&6; } 12323 if test "$supported" = "yes" ; then 12324 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 12325 found="yes" 12326 fi 12327 fi 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345xorg_testset_save_CFLAGS="$CFLAGS" 12346 12347if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12348 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12350$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12351if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12352 $as_echo_n "(cached) " >&6 12353else 12354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12355/* end confdefs.h. */ 12356int i; 12357_ACEOF 12358if ac_fn_c_try_compile "$LINENO"; then : 12359 xorg_cv_cc_flag_unknown_warning_option=yes 12360else 12361 xorg_cv_cc_flag_unknown_warning_option=no 12362fi 12363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12364fi 12365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12366$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12367 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12368 CFLAGS="$xorg_testset_save_CFLAGS" 12369fi 12370 12371if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12372 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12373 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12374 fi 12375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12377$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12378if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12379 $as_echo_n "(cached) " >&6 12380else 12381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12382/* end confdefs.h. */ 12383int i; 12384_ACEOF 12385if ac_fn_c_try_compile "$LINENO"; then : 12386 xorg_cv_cc_flag_unused_command_line_argument=yes 12387else 12388 xorg_cv_cc_flag_unused_command_line_argument=no 12389fi 12390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12391fi 12392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12393$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12394 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12395 CFLAGS="$xorg_testset_save_CFLAGS" 12396fi 12397 12398found="no" 12399 12400 if test $found = "no" ; then 12401 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12402 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12403 fi 12404 12405 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12406 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12407 fi 12408 12409 CFLAGS="$CFLAGS -Wstrict-prototypes" 12410 12411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 12412$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 12413 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 12414 if eval \${$cacheid+:} false; then : 12415 $as_echo_n "(cached) " >&6 12416else 12417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12418/* end confdefs.h. */ 12419int i; 12420int 12421main () 12422{ 12423 12424 ; 12425 return 0; 12426} 12427_ACEOF 12428if ac_fn_c_try_link "$LINENO"; then : 12429 eval $cacheid=yes 12430else 12431 eval $cacheid=no 12432fi 12433rm -f core conftest.err conftest.$ac_objext \ 12434 conftest$ac_exeext conftest.$ac_ext 12435fi 12436 12437 12438 CFLAGS="$xorg_testset_save_CFLAGS" 12439 12440 eval supported=\$$cacheid 12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12442$as_echo "$supported" >&6; } 12443 if test "$supported" = "yes" ; then 12444 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 12445 found="yes" 12446 fi 12447 fi 12448 12449 12450 12451 12452 12453 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463xorg_testset_save_CFLAGS="$CFLAGS" 12464 12465if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12468$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12469if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12470 $as_echo_n "(cached) " >&6 12471else 12472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12473/* end confdefs.h. */ 12474int i; 12475_ACEOF 12476if ac_fn_c_try_compile "$LINENO"; then : 12477 xorg_cv_cc_flag_unknown_warning_option=yes 12478else 12479 xorg_cv_cc_flag_unknown_warning_option=no 12480fi 12481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12482fi 12483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12484$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12485 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12486 CFLAGS="$xorg_testset_save_CFLAGS" 12487fi 12488 12489if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12490 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12491 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12492 fi 12493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12495$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12496if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12497 $as_echo_n "(cached) " >&6 12498else 12499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12500/* end confdefs.h. */ 12501int i; 12502_ACEOF 12503if ac_fn_c_try_compile "$LINENO"; then : 12504 xorg_cv_cc_flag_unused_command_line_argument=yes 12505else 12506 xorg_cv_cc_flag_unused_command_line_argument=no 12507fi 12508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12509fi 12510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12511$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12512 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12513 CFLAGS="$xorg_testset_save_CFLAGS" 12514fi 12515 12516found="no" 12517 12518 if test $found = "no" ; then 12519 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12521 fi 12522 12523 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12525 fi 12526 12527 CFLAGS="$CFLAGS -Wmissing-prototypes" 12528 12529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 12530$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 12531 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 12532 if eval \${$cacheid+:} false; then : 12533 $as_echo_n "(cached) " >&6 12534else 12535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12536/* end confdefs.h. */ 12537int i; 12538int 12539main () 12540{ 12541 12542 ; 12543 return 0; 12544} 12545_ACEOF 12546if ac_fn_c_try_link "$LINENO"; then : 12547 eval $cacheid=yes 12548else 12549 eval $cacheid=no 12550fi 12551rm -f core conftest.err conftest.$ac_objext \ 12552 conftest$ac_exeext conftest.$ac_ext 12553fi 12554 12555 12556 CFLAGS="$xorg_testset_save_CFLAGS" 12557 12558 eval supported=\$$cacheid 12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12560$as_echo "$supported" >&6; } 12561 if test "$supported" = "yes" ; then 12562 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 12563 found="yes" 12564 fi 12565 fi 12566 12567 12568 12569 12570 12571 12572 12573 12574 12575 12576 12577 12578 12579 12580 12581xorg_testset_save_CFLAGS="$CFLAGS" 12582 12583if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12586$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12587if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12588 $as_echo_n "(cached) " >&6 12589else 12590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12591/* end confdefs.h. */ 12592int i; 12593_ACEOF 12594if ac_fn_c_try_compile "$LINENO"; then : 12595 xorg_cv_cc_flag_unknown_warning_option=yes 12596else 12597 xorg_cv_cc_flag_unknown_warning_option=no 12598fi 12599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12600fi 12601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12602$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12603 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12604 CFLAGS="$xorg_testset_save_CFLAGS" 12605fi 12606 12607if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12610 fi 12611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12613$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12614if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12615 $as_echo_n "(cached) " >&6 12616else 12617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12618/* end confdefs.h. */ 12619int i; 12620_ACEOF 12621if ac_fn_c_try_compile "$LINENO"; then : 12622 xorg_cv_cc_flag_unused_command_line_argument=yes 12623else 12624 xorg_cv_cc_flag_unused_command_line_argument=no 12625fi 12626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12627fi 12628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12629$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12630 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12631 CFLAGS="$xorg_testset_save_CFLAGS" 12632fi 12633 12634found="no" 12635 12636 if test $found = "no" ; then 12637 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12638 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12639 fi 12640 12641 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12643 fi 12644 12645 CFLAGS="$CFLAGS -Wnested-externs" 12646 12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 12648$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 12649 cacheid=xorg_cv_cc_flag__Wnested_externs 12650 if eval \${$cacheid+:} false; then : 12651 $as_echo_n "(cached) " >&6 12652else 12653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12654/* end confdefs.h. */ 12655int i; 12656int 12657main () 12658{ 12659 12660 ; 12661 return 0; 12662} 12663_ACEOF 12664if ac_fn_c_try_link "$LINENO"; then : 12665 eval $cacheid=yes 12666else 12667 eval $cacheid=no 12668fi 12669rm -f core conftest.err conftest.$ac_objext \ 12670 conftest$ac_exeext conftest.$ac_ext 12671fi 12672 12673 12674 CFLAGS="$xorg_testset_save_CFLAGS" 12675 12676 eval supported=\$$cacheid 12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12678$as_echo "$supported" >&6; } 12679 if test "$supported" = "yes" ; then 12680 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 12681 found="yes" 12682 fi 12683 fi 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699xorg_testset_save_CFLAGS="$CFLAGS" 12700 12701if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12704$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12705if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12706 $as_echo_n "(cached) " >&6 12707else 12708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12709/* end confdefs.h. */ 12710int i; 12711_ACEOF 12712if ac_fn_c_try_compile "$LINENO"; then : 12713 xorg_cv_cc_flag_unknown_warning_option=yes 12714else 12715 xorg_cv_cc_flag_unknown_warning_option=no 12716fi 12717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12718fi 12719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12720$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12721 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12722 CFLAGS="$xorg_testset_save_CFLAGS" 12723fi 12724 12725if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12727 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12728 fi 12729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12731$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12732if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12733 $as_echo_n "(cached) " >&6 12734else 12735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12736/* end confdefs.h. */ 12737int i; 12738_ACEOF 12739if ac_fn_c_try_compile "$LINENO"; then : 12740 xorg_cv_cc_flag_unused_command_line_argument=yes 12741else 12742 xorg_cv_cc_flag_unused_command_line_argument=no 12743fi 12744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12745fi 12746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12747$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12748 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12749 CFLAGS="$xorg_testset_save_CFLAGS" 12750fi 12751 12752found="no" 12753 12754 if test $found = "no" ; then 12755 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12757 fi 12758 12759 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12761 fi 12762 12763 CFLAGS="$CFLAGS -Wbad-function-cast" 12764 12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 12766$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 12767 cacheid=xorg_cv_cc_flag__Wbad_function_cast 12768 if eval \${$cacheid+:} false; then : 12769 $as_echo_n "(cached) " >&6 12770else 12771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12772/* end confdefs.h. */ 12773int i; 12774int 12775main () 12776{ 12777 12778 ; 12779 return 0; 12780} 12781_ACEOF 12782if ac_fn_c_try_link "$LINENO"; then : 12783 eval $cacheid=yes 12784else 12785 eval $cacheid=no 12786fi 12787rm -f core conftest.err conftest.$ac_objext \ 12788 conftest$ac_exeext conftest.$ac_ext 12789fi 12790 12791 12792 CFLAGS="$xorg_testset_save_CFLAGS" 12793 12794 eval supported=\$$cacheid 12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12796$as_echo "$supported" >&6; } 12797 if test "$supported" = "yes" ; then 12798 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 12799 found="yes" 12800 fi 12801 fi 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817xorg_testset_save_CFLAGS="$CFLAGS" 12818 12819if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12822$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12823if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12824 $as_echo_n "(cached) " >&6 12825else 12826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12827/* end confdefs.h. */ 12828int i; 12829_ACEOF 12830if ac_fn_c_try_compile "$LINENO"; then : 12831 xorg_cv_cc_flag_unknown_warning_option=yes 12832else 12833 xorg_cv_cc_flag_unknown_warning_option=no 12834fi 12835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12836fi 12837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12838$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12839 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12840 CFLAGS="$xorg_testset_save_CFLAGS" 12841fi 12842 12843if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12846 fi 12847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12849$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12850if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12851 $as_echo_n "(cached) " >&6 12852else 12853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12854/* end confdefs.h. */ 12855int i; 12856_ACEOF 12857if ac_fn_c_try_compile "$LINENO"; then : 12858 xorg_cv_cc_flag_unused_command_line_argument=yes 12859else 12860 xorg_cv_cc_flag_unused_command_line_argument=no 12861fi 12862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12863fi 12864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12865$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12866 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12867 CFLAGS="$xorg_testset_save_CFLAGS" 12868fi 12869 12870found="no" 12871 12872 if test $found = "no" ; then 12873 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12875 fi 12876 12877 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12879 fi 12880 12881 CFLAGS="$CFLAGS -Wold-style-definition" 12882 12883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 12884$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 12885 cacheid=xorg_cv_cc_flag__Wold_style_definition 12886 if eval \${$cacheid+:} false; then : 12887 $as_echo_n "(cached) " >&6 12888else 12889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12890/* end confdefs.h. */ 12891int i; 12892int 12893main () 12894{ 12895 12896 ; 12897 return 0; 12898} 12899_ACEOF 12900if ac_fn_c_try_link "$LINENO"; then : 12901 eval $cacheid=yes 12902else 12903 eval $cacheid=no 12904fi 12905rm -f core conftest.err conftest.$ac_objext \ 12906 conftest$ac_exeext conftest.$ac_ext 12907fi 12908 12909 12910 CFLAGS="$xorg_testset_save_CFLAGS" 12911 12912 eval supported=\$$cacheid 12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12914$as_echo "$supported" >&6; } 12915 if test "$supported" = "yes" ; then 12916 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 12917 found="yes" 12918 fi 12919 fi 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935xorg_testset_save_CFLAGS="$CFLAGS" 12936 12937if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12940$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12941if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12942 $as_echo_n "(cached) " >&6 12943else 12944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12945/* end confdefs.h. */ 12946int i; 12947_ACEOF 12948if ac_fn_c_try_compile "$LINENO"; then : 12949 xorg_cv_cc_flag_unknown_warning_option=yes 12950else 12951 xorg_cv_cc_flag_unknown_warning_option=no 12952fi 12953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12954fi 12955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12956$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12957 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12958 CFLAGS="$xorg_testset_save_CFLAGS" 12959fi 12960 12961if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12964 fi 12965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12967$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12968if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12969 $as_echo_n "(cached) " >&6 12970else 12971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12972/* end confdefs.h. */ 12973int i; 12974_ACEOF 12975if ac_fn_c_try_compile "$LINENO"; then : 12976 xorg_cv_cc_flag_unused_command_line_argument=yes 12977else 12978 xorg_cv_cc_flag_unused_command_line_argument=no 12979fi 12980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12981fi 12982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12983$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12984 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12985 CFLAGS="$xorg_testset_save_CFLAGS" 12986fi 12987 12988found="no" 12989 12990 if test $found = "no" ; then 12991 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12993 fi 12994 12995 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12997 fi 12998 12999 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 13000 13001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 13002$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 13003 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 13004 if eval \${$cacheid+:} false; then : 13005 $as_echo_n "(cached) " >&6 13006else 13007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13008/* end confdefs.h. */ 13009int i; 13010int 13011main () 13012{ 13013 13014 ; 13015 return 0; 13016} 13017_ACEOF 13018if ac_fn_c_try_link "$LINENO"; then : 13019 eval $cacheid=yes 13020else 13021 eval $cacheid=no 13022fi 13023rm -f core conftest.err conftest.$ac_objext \ 13024 conftest$ac_exeext conftest.$ac_ext 13025fi 13026 13027 13028 CFLAGS="$xorg_testset_save_CFLAGS" 13029 13030 eval supported=\$$cacheid 13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13032$as_echo "$supported" >&6; } 13033 if test "$supported" = "yes" ; then 13034 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 13035 found="yes" 13036 fi 13037 fi 13038 13039 13040 13041 13042 13043# This chunk adds additional warnings that could catch undesired effects. 13044 13045 13046 13047 13048 13049 13050 13051 13052 13053 13054 13055 13056 13057xorg_testset_save_CFLAGS="$CFLAGS" 13058 13059if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13060 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13062$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13063if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13064 $as_echo_n "(cached) " >&6 13065else 13066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13067/* end confdefs.h. */ 13068int i; 13069_ACEOF 13070if ac_fn_c_try_compile "$LINENO"; then : 13071 xorg_cv_cc_flag_unknown_warning_option=yes 13072else 13073 xorg_cv_cc_flag_unknown_warning_option=no 13074fi 13075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13076fi 13077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13078$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13079 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13080 CFLAGS="$xorg_testset_save_CFLAGS" 13081fi 13082 13083if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13084 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13086 fi 13087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13089$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13090if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13091 $as_echo_n "(cached) " >&6 13092else 13093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13094/* end confdefs.h. */ 13095int i; 13096_ACEOF 13097if ac_fn_c_try_compile "$LINENO"; then : 13098 xorg_cv_cc_flag_unused_command_line_argument=yes 13099else 13100 xorg_cv_cc_flag_unused_command_line_argument=no 13101fi 13102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13103fi 13104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13105$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13106 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13107 CFLAGS="$xorg_testset_save_CFLAGS" 13108fi 13109 13110found="no" 13111 13112 if test $found = "no" ; then 13113 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13114 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13115 fi 13116 13117 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13119 fi 13120 13121 CFLAGS="$CFLAGS -Wunused" 13122 13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 13124$as_echo_n "checking if $CC supports -Wunused... " >&6; } 13125 cacheid=xorg_cv_cc_flag__Wunused 13126 if eval \${$cacheid+:} false; then : 13127 $as_echo_n "(cached) " >&6 13128else 13129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13130/* end confdefs.h. */ 13131int i; 13132int 13133main () 13134{ 13135 13136 ; 13137 return 0; 13138} 13139_ACEOF 13140if ac_fn_c_try_link "$LINENO"; then : 13141 eval $cacheid=yes 13142else 13143 eval $cacheid=no 13144fi 13145rm -f core conftest.err conftest.$ac_objext \ 13146 conftest$ac_exeext conftest.$ac_ext 13147fi 13148 13149 13150 CFLAGS="$xorg_testset_save_CFLAGS" 13151 13152 eval supported=\$$cacheid 13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13154$as_echo "$supported" >&6; } 13155 if test "$supported" = "yes" ; then 13156 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13157 found="yes" 13158 fi 13159 fi 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175xorg_testset_save_CFLAGS="$CFLAGS" 13176 13177if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13178 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13180$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13181if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13182 $as_echo_n "(cached) " >&6 13183else 13184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13185/* end confdefs.h. */ 13186int i; 13187_ACEOF 13188if ac_fn_c_try_compile "$LINENO"; then : 13189 xorg_cv_cc_flag_unknown_warning_option=yes 13190else 13191 xorg_cv_cc_flag_unknown_warning_option=no 13192fi 13193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13194fi 13195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13196$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13197 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13198 CFLAGS="$xorg_testset_save_CFLAGS" 13199fi 13200 13201if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13204 fi 13205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13207$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13208if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13209 $as_echo_n "(cached) " >&6 13210else 13211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13212/* end confdefs.h. */ 13213int i; 13214_ACEOF 13215if ac_fn_c_try_compile "$LINENO"; then : 13216 xorg_cv_cc_flag_unused_command_line_argument=yes 13217else 13218 xorg_cv_cc_flag_unused_command_line_argument=no 13219fi 13220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13221fi 13222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13223$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13224 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13225 CFLAGS="$xorg_testset_save_CFLAGS" 13226fi 13227 13228found="no" 13229 13230 if test $found = "no" ; then 13231 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13232 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13233 fi 13234 13235 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13237 fi 13238 13239 CFLAGS="$CFLAGS -Wuninitialized" 13240 13241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 13242$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 13243 cacheid=xorg_cv_cc_flag__Wuninitialized 13244 if eval \${$cacheid+:} false; then : 13245 $as_echo_n "(cached) " >&6 13246else 13247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13248/* end confdefs.h. */ 13249int i; 13250int 13251main () 13252{ 13253 13254 ; 13255 return 0; 13256} 13257_ACEOF 13258if ac_fn_c_try_link "$LINENO"; then : 13259 eval $cacheid=yes 13260else 13261 eval $cacheid=no 13262fi 13263rm -f core conftest.err conftest.$ac_objext \ 13264 conftest$ac_exeext conftest.$ac_ext 13265fi 13266 13267 13268 CFLAGS="$xorg_testset_save_CFLAGS" 13269 13270 eval supported=\$$cacheid 13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13272$as_echo "$supported" >&6; } 13273 if test "$supported" = "yes" ; then 13274 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13275 found="yes" 13276 fi 13277 fi 13278 13279 13280 13281 13282 13283 13284 13285 13286 13287 13288 13289 13290 13291 13292 13293xorg_testset_save_CFLAGS="$CFLAGS" 13294 13295if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13296 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13298$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13299if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13300 $as_echo_n "(cached) " >&6 13301else 13302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13303/* end confdefs.h. */ 13304int i; 13305_ACEOF 13306if ac_fn_c_try_compile "$LINENO"; then : 13307 xorg_cv_cc_flag_unknown_warning_option=yes 13308else 13309 xorg_cv_cc_flag_unknown_warning_option=no 13310fi 13311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13312fi 13313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13314$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13315 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13316 CFLAGS="$xorg_testset_save_CFLAGS" 13317fi 13318 13319if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13320 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13322 fi 13323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13325$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13326if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13327 $as_echo_n "(cached) " >&6 13328else 13329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13330/* end confdefs.h. */ 13331int i; 13332_ACEOF 13333if ac_fn_c_try_compile "$LINENO"; then : 13334 xorg_cv_cc_flag_unused_command_line_argument=yes 13335else 13336 xorg_cv_cc_flag_unused_command_line_argument=no 13337fi 13338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13339fi 13340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13341$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13342 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13343 CFLAGS="$xorg_testset_save_CFLAGS" 13344fi 13345 13346found="no" 13347 13348 if test $found = "no" ; then 13349 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13351 fi 13352 13353 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13355 fi 13356 13357 CFLAGS="$CFLAGS -Wshadow" 13358 13359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 13360$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 13361 cacheid=xorg_cv_cc_flag__Wshadow 13362 if eval \${$cacheid+:} false; then : 13363 $as_echo_n "(cached) " >&6 13364else 13365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13366/* end confdefs.h. */ 13367int i; 13368int 13369main () 13370{ 13371 13372 ; 13373 return 0; 13374} 13375_ACEOF 13376if ac_fn_c_try_link "$LINENO"; then : 13377 eval $cacheid=yes 13378else 13379 eval $cacheid=no 13380fi 13381rm -f core conftest.err conftest.$ac_objext \ 13382 conftest$ac_exeext conftest.$ac_ext 13383fi 13384 13385 13386 CFLAGS="$xorg_testset_save_CFLAGS" 13387 13388 eval supported=\$$cacheid 13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13390$as_echo "$supported" >&6; } 13391 if test "$supported" = "yes" ; then 13392 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 13393 found="yes" 13394 fi 13395 fi 13396 13397 13398 13399 13400 13401 13402 13403 13404 13405 13406 13407 13408 13409 13410 13411xorg_testset_save_CFLAGS="$CFLAGS" 13412 13413if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13414 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13416$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13417if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13418 $as_echo_n "(cached) " >&6 13419else 13420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13421/* end confdefs.h. */ 13422int i; 13423_ACEOF 13424if ac_fn_c_try_compile "$LINENO"; then : 13425 xorg_cv_cc_flag_unknown_warning_option=yes 13426else 13427 xorg_cv_cc_flag_unknown_warning_option=no 13428fi 13429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13430fi 13431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13432$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13433 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13434 CFLAGS="$xorg_testset_save_CFLAGS" 13435fi 13436 13437if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13440 fi 13441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13443$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13444if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13445 $as_echo_n "(cached) " >&6 13446else 13447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13448/* end confdefs.h. */ 13449int i; 13450_ACEOF 13451if ac_fn_c_try_compile "$LINENO"; then : 13452 xorg_cv_cc_flag_unused_command_line_argument=yes 13453else 13454 xorg_cv_cc_flag_unused_command_line_argument=no 13455fi 13456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13457fi 13458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13459$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13460 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13461 CFLAGS="$xorg_testset_save_CFLAGS" 13462fi 13463 13464found="no" 13465 13466 if test $found = "no" ; then 13467 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13469 fi 13470 13471 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13473 fi 13474 13475 CFLAGS="$CFLAGS -Wcast-qual" 13476 13477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 13478$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 13479 cacheid=xorg_cv_cc_flag__Wcast_qual 13480 if eval \${$cacheid+:} false; then : 13481 $as_echo_n "(cached) " >&6 13482else 13483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13484/* end confdefs.h. */ 13485int i; 13486int 13487main () 13488{ 13489 13490 ; 13491 return 0; 13492} 13493_ACEOF 13494if ac_fn_c_try_link "$LINENO"; then : 13495 eval $cacheid=yes 13496else 13497 eval $cacheid=no 13498fi 13499rm -f core conftest.err conftest.$ac_objext \ 13500 conftest$ac_exeext conftest.$ac_ext 13501fi 13502 13503 13504 CFLAGS="$xorg_testset_save_CFLAGS" 13505 13506 eval supported=\$$cacheid 13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13508$as_echo "$supported" >&6; } 13509 if test "$supported" = "yes" ; then 13510 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 13511 found="yes" 13512 fi 13513 fi 13514 13515 13516 13517 13518 13519 13520 13521 13522 13523 13524 13525 13526 13527 13528 13529xorg_testset_save_CFLAGS="$CFLAGS" 13530 13531if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13534$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13535if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13536 $as_echo_n "(cached) " >&6 13537else 13538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13539/* end confdefs.h. */ 13540int i; 13541_ACEOF 13542if ac_fn_c_try_compile "$LINENO"; then : 13543 xorg_cv_cc_flag_unknown_warning_option=yes 13544else 13545 xorg_cv_cc_flag_unknown_warning_option=no 13546fi 13547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13548fi 13549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13550$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13551 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13552 CFLAGS="$xorg_testset_save_CFLAGS" 13553fi 13554 13555if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13556 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13558 fi 13559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13561$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13562if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13563 $as_echo_n "(cached) " >&6 13564else 13565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13566/* end confdefs.h. */ 13567int i; 13568_ACEOF 13569if ac_fn_c_try_compile "$LINENO"; then : 13570 xorg_cv_cc_flag_unused_command_line_argument=yes 13571else 13572 xorg_cv_cc_flag_unused_command_line_argument=no 13573fi 13574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13575fi 13576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13577$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13578 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13579 CFLAGS="$xorg_testset_save_CFLAGS" 13580fi 13581 13582found="no" 13583 13584 if test $found = "no" ; then 13585 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13586 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13587 fi 13588 13589 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13591 fi 13592 13593 CFLAGS="$CFLAGS -Wmissing-noreturn" 13594 13595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 13596$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 13597 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 13598 if eval \${$cacheid+:} false; then : 13599 $as_echo_n "(cached) " >&6 13600else 13601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13602/* end confdefs.h. */ 13603int i; 13604int 13605main () 13606{ 13607 13608 ; 13609 return 0; 13610} 13611_ACEOF 13612if ac_fn_c_try_link "$LINENO"; then : 13613 eval $cacheid=yes 13614else 13615 eval $cacheid=no 13616fi 13617rm -f core conftest.err conftest.$ac_objext \ 13618 conftest$ac_exeext conftest.$ac_ext 13619fi 13620 13621 13622 CFLAGS="$xorg_testset_save_CFLAGS" 13623 13624 eval supported=\$$cacheid 13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13626$as_echo "$supported" >&6; } 13627 if test "$supported" = "yes" ; then 13628 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 13629 found="yes" 13630 fi 13631 fi 13632 13633 13634 13635 13636 13637 13638 13639 13640 13641 13642 13643 13644 13645 13646 13647xorg_testset_save_CFLAGS="$CFLAGS" 13648 13649if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13650 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13652$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13653if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13654 $as_echo_n "(cached) " >&6 13655else 13656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13657/* end confdefs.h. */ 13658int i; 13659_ACEOF 13660if ac_fn_c_try_compile "$LINENO"; then : 13661 xorg_cv_cc_flag_unknown_warning_option=yes 13662else 13663 xorg_cv_cc_flag_unknown_warning_option=no 13664fi 13665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13666fi 13667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13668$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13669 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13670 CFLAGS="$xorg_testset_save_CFLAGS" 13671fi 13672 13673if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13676 fi 13677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13679$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13680if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13681 $as_echo_n "(cached) " >&6 13682else 13683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13684/* end confdefs.h. */ 13685int i; 13686_ACEOF 13687if ac_fn_c_try_compile "$LINENO"; then : 13688 xorg_cv_cc_flag_unused_command_line_argument=yes 13689else 13690 xorg_cv_cc_flag_unused_command_line_argument=no 13691fi 13692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13693fi 13694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13695$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13696 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13697 CFLAGS="$xorg_testset_save_CFLAGS" 13698fi 13699 13700found="no" 13701 13702 if test $found = "no" ; then 13703 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13704 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13705 fi 13706 13707 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13709 fi 13710 13711 CFLAGS="$CFLAGS -Wmissing-format-attribute" 13712 13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 13714$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 13715 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 13716 if eval \${$cacheid+:} false; then : 13717 $as_echo_n "(cached) " >&6 13718else 13719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13720/* end confdefs.h. */ 13721int i; 13722int 13723main () 13724{ 13725 13726 ; 13727 return 0; 13728} 13729_ACEOF 13730if ac_fn_c_try_link "$LINENO"; then : 13731 eval $cacheid=yes 13732else 13733 eval $cacheid=no 13734fi 13735rm -f core conftest.err conftest.$ac_objext \ 13736 conftest$ac_exeext conftest.$ac_ext 13737fi 13738 13739 13740 CFLAGS="$xorg_testset_save_CFLAGS" 13741 13742 eval supported=\$$cacheid 13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13744$as_echo "$supported" >&6; } 13745 if test "$supported" = "yes" ; then 13746 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 13747 found="yes" 13748 fi 13749 fi 13750 13751 13752 13753 13754 13755 13756 13757 13758 13759 13760 13761 13762 13763 13764 13765xorg_testset_save_CFLAGS="$CFLAGS" 13766 13767if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13768 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13770$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13771if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13772 $as_echo_n "(cached) " >&6 13773else 13774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13775/* end confdefs.h. */ 13776int i; 13777_ACEOF 13778if ac_fn_c_try_compile "$LINENO"; then : 13779 xorg_cv_cc_flag_unknown_warning_option=yes 13780else 13781 xorg_cv_cc_flag_unknown_warning_option=no 13782fi 13783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13784fi 13785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13786$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13787 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13788 CFLAGS="$xorg_testset_save_CFLAGS" 13789fi 13790 13791if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13792 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13793 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13794 fi 13795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13797$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13798if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13799 $as_echo_n "(cached) " >&6 13800else 13801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13802/* end confdefs.h. */ 13803int i; 13804_ACEOF 13805if ac_fn_c_try_compile "$LINENO"; then : 13806 xorg_cv_cc_flag_unused_command_line_argument=yes 13807else 13808 xorg_cv_cc_flag_unused_command_line_argument=no 13809fi 13810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13811fi 13812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13813$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13814 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13815 CFLAGS="$xorg_testset_save_CFLAGS" 13816fi 13817 13818found="no" 13819 13820 if test $found = "no" ; then 13821 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13822 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13823 fi 13824 13825 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13827 fi 13828 13829 CFLAGS="$CFLAGS -Wredundant-decls" 13830 13831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 13832$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 13833 cacheid=xorg_cv_cc_flag__Wredundant_decls 13834 if eval \${$cacheid+:} false; then : 13835 $as_echo_n "(cached) " >&6 13836else 13837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13838/* end confdefs.h. */ 13839int i; 13840int 13841main () 13842{ 13843 13844 ; 13845 return 0; 13846} 13847_ACEOF 13848if ac_fn_c_try_link "$LINENO"; then : 13849 eval $cacheid=yes 13850else 13851 eval $cacheid=no 13852fi 13853rm -f core conftest.err conftest.$ac_objext \ 13854 conftest$ac_exeext conftest.$ac_ext 13855fi 13856 13857 13858 CFLAGS="$xorg_testset_save_CFLAGS" 13859 13860 eval supported=\$$cacheid 13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13862$as_echo "$supported" >&6; } 13863 if test "$supported" = "yes" ; then 13864 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 13865 found="yes" 13866 fi 13867 fi 13868 13869 13870 13871# These are currently disabled because they are noisy. They will be enabled 13872# in the future once the codebase is sufficiently modernized to silence 13873# them. For now, I don't want them to drown out the other warnings. 13874# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 13875# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 13876# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 13877 13878# Turn some warnings into errors, so we don't accidently get successful builds 13879# when there are problems that should be fixed. 13880 13881if test "x$SELECTIVE_WERROR" = "xyes" ; then 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893 13894 13895xorg_testset_save_CFLAGS="$CFLAGS" 13896 13897if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13898 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13900$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13901if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13902 $as_echo_n "(cached) " >&6 13903else 13904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13905/* end confdefs.h. */ 13906int i; 13907_ACEOF 13908if ac_fn_c_try_compile "$LINENO"; then : 13909 xorg_cv_cc_flag_unknown_warning_option=yes 13910else 13911 xorg_cv_cc_flag_unknown_warning_option=no 13912fi 13913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13914fi 13915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13916$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13917 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13918 CFLAGS="$xorg_testset_save_CFLAGS" 13919fi 13920 13921if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13924 fi 13925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13927$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13928if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13929 $as_echo_n "(cached) " >&6 13930else 13931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13932/* end confdefs.h. */ 13933int i; 13934_ACEOF 13935if ac_fn_c_try_compile "$LINENO"; then : 13936 xorg_cv_cc_flag_unused_command_line_argument=yes 13937else 13938 xorg_cv_cc_flag_unused_command_line_argument=no 13939fi 13940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13941fi 13942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13943$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13944 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13945 CFLAGS="$xorg_testset_save_CFLAGS" 13946fi 13947 13948found="no" 13949 13950 if test $found = "no" ; then 13951 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13952 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13953 fi 13954 13955 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13957 fi 13958 13959 CFLAGS="$CFLAGS -Werror=implicit" 13960 13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 13962$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 13963 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 13964 if eval \${$cacheid+:} false; then : 13965 $as_echo_n "(cached) " >&6 13966else 13967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13968/* end confdefs.h. */ 13969int i; 13970int 13971main () 13972{ 13973 13974 ; 13975 return 0; 13976} 13977_ACEOF 13978if ac_fn_c_try_link "$LINENO"; then : 13979 eval $cacheid=yes 13980else 13981 eval $cacheid=no 13982fi 13983rm -f core conftest.err conftest.$ac_objext \ 13984 conftest$ac_exeext conftest.$ac_ext 13985fi 13986 13987 13988 CFLAGS="$xorg_testset_save_CFLAGS" 13989 13990 eval supported=\$$cacheid 13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13992$as_echo "$supported" >&6; } 13993 if test "$supported" = "yes" ; then 13994 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 13995 found="yes" 13996 fi 13997 fi 13998 13999 if test $found = "no" ; then 14000 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14002 fi 14003 14004 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14006 fi 14007 14008 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14009 14010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 14011$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 14012 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 14013 if eval \${$cacheid+:} false; then : 14014 $as_echo_n "(cached) " >&6 14015else 14016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14017/* end confdefs.h. */ 14018int i; 14019int 14020main () 14021{ 14022 14023 ; 14024 return 0; 14025} 14026_ACEOF 14027if ac_fn_c_try_link "$LINENO"; then : 14028 eval $cacheid=yes 14029else 14030 eval $cacheid=no 14031fi 14032rm -f core conftest.err conftest.$ac_objext \ 14033 conftest$ac_exeext conftest.$ac_ext 14034fi 14035 14036 14037 CFLAGS="$xorg_testset_save_CFLAGS" 14038 14039 eval supported=\$$cacheid 14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14041$as_echo "$supported" >&6; } 14042 if test "$supported" = "yes" ; then 14043 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14044 found="yes" 14045 fi 14046 fi 14047 14048 14049 14050 14051 14052 14053 14054 14055 14056 14057 14058 14059 14060 14061 14062xorg_testset_save_CFLAGS="$CFLAGS" 14063 14064if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14065 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14067$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14068if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14069 $as_echo_n "(cached) " >&6 14070else 14071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14072/* end confdefs.h. */ 14073int i; 14074_ACEOF 14075if ac_fn_c_try_compile "$LINENO"; then : 14076 xorg_cv_cc_flag_unknown_warning_option=yes 14077else 14078 xorg_cv_cc_flag_unknown_warning_option=no 14079fi 14080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14081fi 14082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14083$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14084 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14085 CFLAGS="$xorg_testset_save_CFLAGS" 14086fi 14087 14088if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14091 fi 14092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14094$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14095if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14096 $as_echo_n "(cached) " >&6 14097else 14098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14099/* end confdefs.h. */ 14100int i; 14101_ACEOF 14102if ac_fn_c_try_compile "$LINENO"; then : 14103 xorg_cv_cc_flag_unused_command_line_argument=yes 14104else 14105 xorg_cv_cc_flag_unused_command_line_argument=no 14106fi 14107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14108fi 14109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14110$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14111 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14112 CFLAGS="$xorg_testset_save_CFLAGS" 14113fi 14114 14115found="no" 14116 14117 if test $found = "no" ; then 14118 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14119 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14120 fi 14121 14122 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14124 fi 14125 14126 CFLAGS="$CFLAGS -Werror=nonnull" 14127 14128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 14129$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 14130 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 14131 if eval \${$cacheid+:} false; then : 14132 $as_echo_n "(cached) " >&6 14133else 14134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14135/* end confdefs.h. */ 14136int i; 14137int 14138main () 14139{ 14140 14141 ; 14142 return 0; 14143} 14144_ACEOF 14145if ac_fn_c_try_link "$LINENO"; then : 14146 eval $cacheid=yes 14147else 14148 eval $cacheid=no 14149fi 14150rm -f core conftest.err conftest.$ac_objext \ 14151 conftest$ac_exeext conftest.$ac_ext 14152fi 14153 14154 14155 CFLAGS="$xorg_testset_save_CFLAGS" 14156 14157 eval supported=\$$cacheid 14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14159$as_echo "$supported" >&6; } 14160 if test "$supported" = "yes" ; then 14161 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14162 found="yes" 14163 fi 14164 fi 14165 14166 14167 14168 14169 14170 14171 14172 14173 14174 14175 14176 14177 14178 14179 14180xorg_testset_save_CFLAGS="$CFLAGS" 14181 14182if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14183 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14185$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14186if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14187 $as_echo_n "(cached) " >&6 14188else 14189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14190/* end confdefs.h. */ 14191int i; 14192_ACEOF 14193if ac_fn_c_try_compile "$LINENO"; then : 14194 xorg_cv_cc_flag_unknown_warning_option=yes 14195else 14196 xorg_cv_cc_flag_unknown_warning_option=no 14197fi 14198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14199fi 14200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14201$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14202 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14203 CFLAGS="$xorg_testset_save_CFLAGS" 14204fi 14205 14206if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14208 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14209 fi 14210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14212$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14213if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14214 $as_echo_n "(cached) " >&6 14215else 14216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14217/* end confdefs.h. */ 14218int i; 14219_ACEOF 14220if ac_fn_c_try_compile "$LINENO"; then : 14221 xorg_cv_cc_flag_unused_command_line_argument=yes 14222else 14223 xorg_cv_cc_flag_unused_command_line_argument=no 14224fi 14225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14226fi 14227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14228$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14229 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14230 CFLAGS="$xorg_testset_save_CFLAGS" 14231fi 14232 14233found="no" 14234 14235 if test $found = "no" ; then 14236 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14238 fi 14239 14240 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14242 fi 14243 14244 CFLAGS="$CFLAGS -Werror=init-self" 14245 14246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 14247$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 14248 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 14249 if eval \${$cacheid+:} false; then : 14250 $as_echo_n "(cached) " >&6 14251else 14252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14253/* end confdefs.h. */ 14254int i; 14255int 14256main () 14257{ 14258 14259 ; 14260 return 0; 14261} 14262_ACEOF 14263if ac_fn_c_try_link "$LINENO"; then : 14264 eval $cacheid=yes 14265else 14266 eval $cacheid=no 14267fi 14268rm -f core conftest.err conftest.$ac_objext \ 14269 conftest$ac_exeext conftest.$ac_ext 14270fi 14271 14272 14273 CFLAGS="$xorg_testset_save_CFLAGS" 14274 14275 eval supported=\$$cacheid 14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14277$as_echo "$supported" >&6; } 14278 if test "$supported" = "yes" ; then 14279 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 14280 found="yes" 14281 fi 14282 fi 14283 14284 14285 14286 14287 14288 14289 14290 14291 14292 14293 14294 14295 14296 14297 14298xorg_testset_save_CFLAGS="$CFLAGS" 14299 14300if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14301 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14303$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14304if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14305 $as_echo_n "(cached) " >&6 14306else 14307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14308/* end confdefs.h. */ 14309int i; 14310_ACEOF 14311if ac_fn_c_try_compile "$LINENO"; then : 14312 xorg_cv_cc_flag_unknown_warning_option=yes 14313else 14314 xorg_cv_cc_flag_unknown_warning_option=no 14315fi 14316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14317fi 14318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14319$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14320 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14321 CFLAGS="$xorg_testset_save_CFLAGS" 14322fi 14323 14324if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14327 fi 14328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14330$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14331if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14332 $as_echo_n "(cached) " >&6 14333else 14334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14335/* end confdefs.h. */ 14336int i; 14337_ACEOF 14338if ac_fn_c_try_compile "$LINENO"; then : 14339 xorg_cv_cc_flag_unused_command_line_argument=yes 14340else 14341 xorg_cv_cc_flag_unused_command_line_argument=no 14342fi 14343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14344fi 14345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14346$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14347 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14348 CFLAGS="$xorg_testset_save_CFLAGS" 14349fi 14350 14351found="no" 14352 14353 if test $found = "no" ; then 14354 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14356 fi 14357 14358 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14360 fi 14361 14362 CFLAGS="$CFLAGS -Werror=main" 14363 14364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 14365$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 14366 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 14367 if eval \${$cacheid+:} false; then : 14368 $as_echo_n "(cached) " >&6 14369else 14370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14371/* end confdefs.h. */ 14372int i; 14373int 14374main () 14375{ 14376 14377 ; 14378 return 0; 14379} 14380_ACEOF 14381if ac_fn_c_try_link "$LINENO"; then : 14382 eval $cacheid=yes 14383else 14384 eval $cacheid=no 14385fi 14386rm -f core conftest.err conftest.$ac_objext \ 14387 conftest$ac_exeext conftest.$ac_ext 14388fi 14389 14390 14391 CFLAGS="$xorg_testset_save_CFLAGS" 14392 14393 eval supported=\$$cacheid 14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14395$as_echo "$supported" >&6; } 14396 if test "$supported" = "yes" ; then 14397 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 14398 found="yes" 14399 fi 14400 fi 14401 14402 14403 14404 14405 14406 14407 14408 14409 14410 14411 14412 14413 14414 14415 14416xorg_testset_save_CFLAGS="$CFLAGS" 14417 14418if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14419 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14421$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14422if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14423 $as_echo_n "(cached) " >&6 14424else 14425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14426/* end confdefs.h. */ 14427int i; 14428_ACEOF 14429if ac_fn_c_try_compile "$LINENO"; then : 14430 xorg_cv_cc_flag_unknown_warning_option=yes 14431else 14432 xorg_cv_cc_flag_unknown_warning_option=no 14433fi 14434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14435fi 14436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14437$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14438 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14439 CFLAGS="$xorg_testset_save_CFLAGS" 14440fi 14441 14442if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14444 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14445 fi 14446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14448$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14449if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14450 $as_echo_n "(cached) " >&6 14451else 14452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14453/* end confdefs.h. */ 14454int i; 14455_ACEOF 14456if ac_fn_c_try_compile "$LINENO"; then : 14457 xorg_cv_cc_flag_unused_command_line_argument=yes 14458else 14459 xorg_cv_cc_flag_unused_command_line_argument=no 14460fi 14461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14462fi 14463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14464$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14465 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14466 CFLAGS="$xorg_testset_save_CFLAGS" 14467fi 14468 14469found="no" 14470 14471 if test $found = "no" ; then 14472 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14473 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14474 fi 14475 14476 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14478 fi 14479 14480 CFLAGS="$CFLAGS -Werror=missing-braces" 14481 14482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 14483$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 14484 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 14485 if eval \${$cacheid+:} false; then : 14486 $as_echo_n "(cached) " >&6 14487else 14488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14489/* end confdefs.h. */ 14490int i; 14491int 14492main () 14493{ 14494 14495 ; 14496 return 0; 14497} 14498_ACEOF 14499if ac_fn_c_try_link "$LINENO"; then : 14500 eval $cacheid=yes 14501else 14502 eval $cacheid=no 14503fi 14504rm -f core conftest.err conftest.$ac_objext \ 14505 conftest$ac_exeext conftest.$ac_ext 14506fi 14507 14508 14509 CFLAGS="$xorg_testset_save_CFLAGS" 14510 14511 eval supported=\$$cacheid 14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14513$as_echo "$supported" >&6; } 14514 if test "$supported" = "yes" ; then 14515 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 14516 found="yes" 14517 fi 14518 fi 14519 14520 14521 14522 14523 14524 14525 14526 14527 14528 14529 14530 14531 14532 14533 14534xorg_testset_save_CFLAGS="$CFLAGS" 14535 14536if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14537 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14539$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14540if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14541 $as_echo_n "(cached) " >&6 14542else 14543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14544/* end confdefs.h. */ 14545int i; 14546_ACEOF 14547if ac_fn_c_try_compile "$LINENO"; then : 14548 xorg_cv_cc_flag_unknown_warning_option=yes 14549else 14550 xorg_cv_cc_flag_unknown_warning_option=no 14551fi 14552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14553fi 14554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14555$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14556 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14557 CFLAGS="$xorg_testset_save_CFLAGS" 14558fi 14559 14560if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14563 fi 14564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14566$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14567if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14568 $as_echo_n "(cached) " >&6 14569else 14570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14571/* end confdefs.h. */ 14572int i; 14573_ACEOF 14574if ac_fn_c_try_compile "$LINENO"; then : 14575 xorg_cv_cc_flag_unused_command_line_argument=yes 14576else 14577 xorg_cv_cc_flag_unused_command_line_argument=no 14578fi 14579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14580fi 14581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14582$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14583 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14584 CFLAGS="$xorg_testset_save_CFLAGS" 14585fi 14586 14587found="no" 14588 14589 if test $found = "no" ; then 14590 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14592 fi 14593 14594 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14596 fi 14597 14598 CFLAGS="$CFLAGS -Werror=sequence-point" 14599 14600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 14601$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 14602 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 14603 if eval \${$cacheid+:} false; then : 14604 $as_echo_n "(cached) " >&6 14605else 14606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14607/* end confdefs.h. */ 14608int i; 14609int 14610main () 14611{ 14612 14613 ; 14614 return 0; 14615} 14616_ACEOF 14617if ac_fn_c_try_link "$LINENO"; then : 14618 eval $cacheid=yes 14619else 14620 eval $cacheid=no 14621fi 14622rm -f core conftest.err conftest.$ac_objext \ 14623 conftest$ac_exeext conftest.$ac_ext 14624fi 14625 14626 14627 CFLAGS="$xorg_testset_save_CFLAGS" 14628 14629 eval supported=\$$cacheid 14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14631$as_echo "$supported" >&6; } 14632 if test "$supported" = "yes" ; then 14633 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 14634 found="yes" 14635 fi 14636 fi 14637 14638 14639 14640 14641 14642 14643 14644 14645 14646 14647 14648 14649 14650 14651 14652xorg_testset_save_CFLAGS="$CFLAGS" 14653 14654if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14657$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14658if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14659 $as_echo_n "(cached) " >&6 14660else 14661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14662/* end confdefs.h. */ 14663int i; 14664_ACEOF 14665if ac_fn_c_try_compile "$LINENO"; then : 14666 xorg_cv_cc_flag_unknown_warning_option=yes 14667else 14668 xorg_cv_cc_flag_unknown_warning_option=no 14669fi 14670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14671fi 14672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14673$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14674 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14675 CFLAGS="$xorg_testset_save_CFLAGS" 14676fi 14677 14678if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14680 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14681 fi 14682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14684$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14685if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14686 $as_echo_n "(cached) " >&6 14687else 14688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14689/* end confdefs.h. */ 14690int i; 14691_ACEOF 14692if ac_fn_c_try_compile "$LINENO"; then : 14693 xorg_cv_cc_flag_unused_command_line_argument=yes 14694else 14695 xorg_cv_cc_flag_unused_command_line_argument=no 14696fi 14697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14698fi 14699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14700$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14701 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14702 CFLAGS="$xorg_testset_save_CFLAGS" 14703fi 14704 14705found="no" 14706 14707 if test $found = "no" ; then 14708 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14710 fi 14711 14712 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14714 fi 14715 14716 CFLAGS="$CFLAGS -Werror=return-type" 14717 14718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 14719$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 14720 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 14721 if eval \${$cacheid+:} false; then : 14722 $as_echo_n "(cached) " >&6 14723else 14724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14725/* end confdefs.h. */ 14726int i; 14727int 14728main () 14729{ 14730 14731 ; 14732 return 0; 14733} 14734_ACEOF 14735if ac_fn_c_try_link "$LINENO"; then : 14736 eval $cacheid=yes 14737else 14738 eval $cacheid=no 14739fi 14740rm -f core conftest.err conftest.$ac_objext \ 14741 conftest$ac_exeext conftest.$ac_ext 14742fi 14743 14744 14745 CFLAGS="$xorg_testset_save_CFLAGS" 14746 14747 eval supported=\$$cacheid 14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14749$as_echo "$supported" >&6; } 14750 if test "$supported" = "yes" ; then 14751 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 14752 found="yes" 14753 fi 14754 fi 14755 14756 if test $found = "no" ; then 14757 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14758 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14759 fi 14760 14761 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14763 fi 14764 14765 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14766 14767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 14768$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 14769 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 14770 if eval \${$cacheid+:} false; then : 14771 $as_echo_n "(cached) " >&6 14772else 14773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14774/* end confdefs.h. */ 14775int i; 14776int 14777main () 14778{ 14779 14780 ; 14781 return 0; 14782} 14783_ACEOF 14784if ac_fn_c_try_link "$LINENO"; then : 14785 eval $cacheid=yes 14786else 14787 eval $cacheid=no 14788fi 14789rm -f core conftest.err conftest.$ac_objext \ 14790 conftest$ac_exeext conftest.$ac_ext 14791fi 14792 14793 14794 CFLAGS="$xorg_testset_save_CFLAGS" 14795 14796 eval supported=\$$cacheid 14797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14798$as_echo "$supported" >&6; } 14799 if test "$supported" = "yes" ; then 14800 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14801 found="yes" 14802 fi 14803 fi 14804 14805 14806 14807 14808 14809 14810 14811 14812 14813 14814 14815 14816 14817 14818 14819xorg_testset_save_CFLAGS="$CFLAGS" 14820 14821if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14822 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14824$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14825if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14826 $as_echo_n "(cached) " >&6 14827else 14828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14829/* end confdefs.h. */ 14830int i; 14831_ACEOF 14832if ac_fn_c_try_compile "$LINENO"; then : 14833 xorg_cv_cc_flag_unknown_warning_option=yes 14834else 14835 xorg_cv_cc_flag_unknown_warning_option=no 14836fi 14837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14838fi 14839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14840$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14841 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14842 CFLAGS="$xorg_testset_save_CFLAGS" 14843fi 14844 14845if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14846 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14847 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14848 fi 14849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14851$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14852if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14853 $as_echo_n "(cached) " >&6 14854else 14855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14856/* end confdefs.h. */ 14857int i; 14858_ACEOF 14859if ac_fn_c_try_compile "$LINENO"; then : 14860 xorg_cv_cc_flag_unused_command_line_argument=yes 14861else 14862 xorg_cv_cc_flag_unused_command_line_argument=no 14863fi 14864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14865fi 14866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14867$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14868 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14869 CFLAGS="$xorg_testset_save_CFLAGS" 14870fi 14871 14872found="no" 14873 14874 if test $found = "no" ; then 14875 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14877 fi 14878 14879 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14881 fi 14882 14883 CFLAGS="$CFLAGS -Werror=trigraphs" 14884 14885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 14886$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 14887 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 14888 if eval \${$cacheid+:} false; then : 14889 $as_echo_n "(cached) " >&6 14890else 14891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14892/* end confdefs.h. */ 14893int i; 14894int 14895main () 14896{ 14897 14898 ; 14899 return 0; 14900} 14901_ACEOF 14902if ac_fn_c_try_link "$LINENO"; then : 14903 eval $cacheid=yes 14904else 14905 eval $cacheid=no 14906fi 14907rm -f core conftest.err conftest.$ac_objext \ 14908 conftest$ac_exeext conftest.$ac_ext 14909fi 14910 14911 14912 CFLAGS="$xorg_testset_save_CFLAGS" 14913 14914 eval supported=\$$cacheid 14915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14916$as_echo "$supported" >&6; } 14917 if test "$supported" = "yes" ; then 14918 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 14919 found="yes" 14920 fi 14921 fi 14922 14923 14924 14925 14926 14927 14928 14929 14930 14931 14932 14933 14934 14935 14936 14937xorg_testset_save_CFLAGS="$CFLAGS" 14938 14939if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14942$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14943if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14944 $as_echo_n "(cached) " >&6 14945else 14946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14947/* end confdefs.h. */ 14948int i; 14949_ACEOF 14950if ac_fn_c_try_compile "$LINENO"; then : 14951 xorg_cv_cc_flag_unknown_warning_option=yes 14952else 14953 xorg_cv_cc_flag_unknown_warning_option=no 14954fi 14955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14956fi 14957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14958$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14959 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14960 CFLAGS="$xorg_testset_save_CFLAGS" 14961fi 14962 14963if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14966 fi 14967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14969$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14970if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14971 $as_echo_n "(cached) " >&6 14972else 14973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14974/* end confdefs.h. */ 14975int i; 14976_ACEOF 14977if ac_fn_c_try_compile "$LINENO"; then : 14978 xorg_cv_cc_flag_unused_command_line_argument=yes 14979else 14980 xorg_cv_cc_flag_unused_command_line_argument=no 14981fi 14982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14983fi 14984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14985$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14986 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14987 CFLAGS="$xorg_testset_save_CFLAGS" 14988fi 14989 14990found="no" 14991 14992 if test $found = "no" ; then 14993 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14994 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14995 fi 14996 14997 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14999 fi 15000 15001 CFLAGS="$CFLAGS -Werror=array-bounds" 15002 15003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 15004$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 15005 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 15006 if eval \${$cacheid+:} false; then : 15007 $as_echo_n "(cached) " >&6 15008else 15009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15010/* end confdefs.h. */ 15011int i; 15012int 15013main () 15014{ 15015 15016 ; 15017 return 0; 15018} 15019_ACEOF 15020if ac_fn_c_try_link "$LINENO"; then : 15021 eval $cacheid=yes 15022else 15023 eval $cacheid=no 15024fi 15025rm -f core conftest.err conftest.$ac_objext \ 15026 conftest$ac_exeext conftest.$ac_ext 15027fi 15028 15029 15030 CFLAGS="$xorg_testset_save_CFLAGS" 15031 15032 eval supported=\$$cacheid 15033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15034$as_echo "$supported" >&6; } 15035 if test "$supported" = "yes" ; then 15036 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 15037 found="yes" 15038 fi 15039 fi 15040 15041 15042 15043 15044 15045 15046 15047 15048 15049 15050 15051 15052 15053 15054 15055xorg_testset_save_CFLAGS="$CFLAGS" 15056 15057if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15058 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15060$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15061if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15062 $as_echo_n "(cached) " >&6 15063else 15064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15065/* end confdefs.h. */ 15066int i; 15067_ACEOF 15068if ac_fn_c_try_compile "$LINENO"; then : 15069 xorg_cv_cc_flag_unknown_warning_option=yes 15070else 15071 xorg_cv_cc_flag_unknown_warning_option=no 15072fi 15073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15074fi 15075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15076$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15077 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15078 CFLAGS="$xorg_testset_save_CFLAGS" 15079fi 15080 15081if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15083 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15084 fi 15085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15087$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15088if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15089 $as_echo_n "(cached) " >&6 15090else 15091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15092/* end confdefs.h. */ 15093int i; 15094_ACEOF 15095if ac_fn_c_try_compile "$LINENO"; then : 15096 xorg_cv_cc_flag_unused_command_line_argument=yes 15097else 15098 xorg_cv_cc_flag_unused_command_line_argument=no 15099fi 15100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15101fi 15102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15103$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15104 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15105 CFLAGS="$xorg_testset_save_CFLAGS" 15106fi 15107 15108found="no" 15109 15110 if test $found = "no" ; then 15111 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15113 fi 15114 15115 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15117 fi 15118 15119 CFLAGS="$CFLAGS -Werror=write-strings" 15120 15121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 15122$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 15123 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 15124 if eval \${$cacheid+:} false; then : 15125 $as_echo_n "(cached) " >&6 15126else 15127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15128/* end confdefs.h. */ 15129int i; 15130int 15131main () 15132{ 15133 15134 ; 15135 return 0; 15136} 15137_ACEOF 15138if ac_fn_c_try_link "$LINENO"; then : 15139 eval $cacheid=yes 15140else 15141 eval $cacheid=no 15142fi 15143rm -f core conftest.err conftest.$ac_objext \ 15144 conftest$ac_exeext conftest.$ac_ext 15145fi 15146 15147 15148 CFLAGS="$xorg_testset_save_CFLAGS" 15149 15150 eval supported=\$$cacheid 15151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15152$as_echo "$supported" >&6; } 15153 if test "$supported" = "yes" ; then 15154 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 15155 found="yes" 15156 fi 15157 fi 15158 15159 15160 15161 15162 15163 15164 15165 15166 15167 15168 15169 15170 15171 15172 15173xorg_testset_save_CFLAGS="$CFLAGS" 15174 15175if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15178$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15179if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15180 $as_echo_n "(cached) " >&6 15181else 15182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15183/* end confdefs.h. */ 15184int i; 15185_ACEOF 15186if ac_fn_c_try_compile "$LINENO"; then : 15187 xorg_cv_cc_flag_unknown_warning_option=yes 15188else 15189 xorg_cv_cc_flag_unknown_warning_option=no 15190fi 15191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15192fi 15193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15194$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15195 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15196 CFLAGS="$xorg_testset_save_CFLAGS" 15197fi 15198 15199if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15200 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15202 fi 15203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15205$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15206if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15207 $as_echo_n "(cached) " >&6 15208else 15209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15210/* end confdefs.h. */ 15211int i; 15212_ACEOF 15213if ac_fn_c_try_compile "$LINENO"; then : 15214 xorg_cv_cc_flag_unused_command_line_argument=yes 15215else 15216 xorg_cv_cc_flag_unused_command_line_argument=no 15217fi 15218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15219fi 15220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15221$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15222 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15223 CFLAGS="$xorg_testset_save_CFLAGS" 15224fi 15225 15226found="no" 15227 15228 if test $found = "no" ; then 15229 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15231 fi 15232 15233 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15235 fi 15236 15237 CFLAGS="$CFLAGS -Werror=address" 15238 15239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 15240$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 15241 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 15242 if eval \${$cacheid+:} false; then : 15243 $as_echo_n "(cached) " >&6 15244else 15245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15246/* end confdefs.h. */ 15247int i; 15248int 15249main () 15250{ 15251 15252 ; 15253 return 0; 15254} 15255_ACEOF 15256if ac_fn_c_try_link "$LINENO"; then : 15257 eval $cacheid=yes 15258else 15259 eval $cacheid=no 15260fi 15261rm -f core conftest.err conftest.$ac_objext \ 15262 conftest$ac_exeext conftest.$ac_ext 15263fi 15264 15265 15266 CFLAGS="$xorg_testset_save_CFLAGS" 15267 15268 eval supported=\$$cacheid 15269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15270$as_echo "$supported" >&6; } 15271 if test "$supported" = "yes" ; then 15272 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 15273 found="yes" 15274 fi 15275 fi 15276 15277 15278 15279 15280 15281 15282 15283 15284 15285 15286 15287 15288 15289 15290 15291xorg_testset_save_CFLAGS="$CFLAGS" 15292 15293if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15296$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15297if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15298 $as_echo_n "(cached) " >&6 15299else 15300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15301/* end confdefs.h. */ 15302int i; 15303_ACEOF 15304if ac_fn_c_try_compile "$LINENO"; then : 15305 xorg_cv_cc_flag_unknown_warning_option=yes 15306else 15307 xorg_cv_cc_flag_unknown_warning_option=no 15308fi 15309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15310fi 15311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15312$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15313 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15314 CFLAGS="$xorg_testset_save_CFLAGS" 15315fi 15316 15317if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15320 fi 15321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15323$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15324if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15325 $as_echo_n "(cached) " >&6 15326else 15327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15328/* end confdefs.h. */ 15329int i; 15330_ACEOF 15331if ac_fn_c_try_compile "$LINENO"; then : 15332 xorg_cv_cc_flag_unused_command_line_argument=yes 15333else 15334 xorg_cv_cc_flag_unused_command_line_argument=no 15335fi 15336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15337fi 15338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15339$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15340 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15341 CFLAGS="$xorg_testset_save_CFLAGS" 15342fi 15343 15344found="no" 15345 15346 if test $found = "no" ; then 15347 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15348 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15349 fi 15350 15351 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15353 fi 15354 15355 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 15356 15357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 15358$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 15359 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 15360 if eval \${$cacheid+:} false; then : 15361 $as_echo_n "(cached) " >&6 15362else 15363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15364/* end confdefs.h. */ 15365int i; 15366int 15367main () 15368{ 15369 15370 ; 15371 return 0; 15372} 15373_ACEOF 15374if ac_fn_c_try_link "$LINENO"; then : 15375 eval $cacheid=yes 15376else 15377 eval $cacheid=no 15378fi 15379rm -f core conftest.err conftest.$ac_objext \ 15380 conftest$ac_exeext conftest.$ac_ext 15381fi 15382 15383 15384 CFLAGS="$xorg_testset_save_CFLAGS" 15385 15386 eval supported=\$$cacheid 15387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15388$as_echo "$supported" >&6; } 15389 if test "$supported" = "yes" ; then 15390 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 15391 found="yes" 15392 fi 15393 fi 15394 15395 if test $found = "no" ; then 15396 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15397 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15398 fi 15399 15400 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15402 fi 15403 15404 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15405 15406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 15407$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 15408 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 15409 if eval \${$cacheid+:} false; then : 15410 $as_echo_n "(cached) " >&6 15411else 15412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15413/* end confdefs.h. */ 15414int i; 15415int 15416main () 15417{ 15418 15419 ; 15420 return 0; 15421} 15422_ACEOF 15423if ac_fn_c_try_link "$LINENO"; then : 15424 eval $cacheid=yes 15425else 15426 eval $cacheid=no 15427fi 15428rm -f core conftest.err conftest.$ac_objext \ 15429 conftest$ac_exeext conftest.$ac_ext 15430fi 15431 15432 15433 CFLAGS="$xorg_testset_save_CFLAGS" 15434 15435 eval supported=\$$cacheid 15436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15437$as_echo "$supported" >&6; } 15438 if test "$supported" = "yes" ; then 15439 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15440 found="yes" 15441 fi 15442 fi 15443 15444 15445 15446 15447 15448 15449 15450 15451 15452 15453 15454 15455 15456 15457 15458xorg_testset_save_CFLAGS="$CFLAGS" 15459 15460if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15463$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15464if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15465 $as_echo_n "(cached) " >&6 15466else 15467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15468/* end confdefs.h. */ 15469int i; 15470_ACEOF 15471if ac_fn_c_try_compile "$LINENO"; then : 15472 xorg_cv_cc_flag_unknown_warning_option=yes 15473else 15474 xorg_cv_cc_flag_unknown_warning_option=no 15475fi 15476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15477fi 15478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15479$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15480 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15481 CFLAGS="$xorg_testset_save_CFLAGS" 15482fi 15483 15484if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15486 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15487 fi 15488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15490$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15491if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15492 $as_echo_n "(cached) " >&6 15493else 15494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15495/* end confdefs.h. */ 15496int i; 15497_ACEOF 15498if ac_fn_c_try_compile "$LINENO"; then : 15499 xorg_cv_cc_flag_unused_command_line_argument=yes 15500else 15501 xorg_cv_cc_flag_unused_command_line_argument=no 15502fi 15503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15504fi 15505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15506$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15507 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15508 CFLAGS="$xorg_testset_save_CFLAGS" 15509fi 15510 15511found="no" 15512 15513 if test $found = "no" ; then 15514 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15515 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15516 fi 15517 15518 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15520 fi 15521 15522 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 15523 15524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 15525$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 15526 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 15527 if eval \${$cacheid+:} false; then : 15528 $as_echo_n "(cached) " >&6 15529else 15530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15531/* end confdefs.h. */ 15532int i; 15533int 15534main () 15535{ 15536 15537 ; 15538 return 0; 15539} 15540_ACEOF 15541if ac_fn_c_try_link "$LINENO"; then : 15542 eval $cacheid=yes 15543else 15544 eval $cacheid=no 15545fi 15546rm -f core conftest.err conftest.$ac_objext \ 15547 conftest$ac_exeext conftest.$ac_ext 15548fi 15549 15550 15551 CFLAGS="$xorg_testset_save_CFLAGS" 15552 15553 eval supported=\$$cacheid 15554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15555$as_echo "$supported" >&6; } 15556 if test "$supported" = "yes" ; then 15557 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 15558 found="yes" 15559 fi 15560 fi 15561 15562 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 15563else 15564{ $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 15565$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;} 15566 15567 15568 15569 15570 15571 15572 15573 15574 15575 15576 15577 15578 15579xorg_testset_save_CFLAGS="$CFLAGS" 15580 15581if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15584$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15585if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15586 $as_echo_n "(cached) " >&6 15587else 15588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15589/* end confdefs.h. */ 15590int i; 15591_ACEOF 15592if ac_fn_c_try_compile "$LINENO"; then : 15593 xorg_cv_cc_flag_unknown_warning_option=yes 15594else 15595 xorg_cv_cc_flag_unknown_warning_option=no 15596fi 15597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15598fi 15599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15600$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15601 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15602 CFLAGS="$xorg_testset_save_CFLAGS" 15603fi 15604 15605if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15606 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15607 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15608 fi 15609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15611$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15612if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15613 $as_echo_n "(cached) " >&6 15614else 15615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15616/* end confdefs.h. */ 15617int i; 15618_ACEOF 15619if ac_fn_c_try_compile "$LINENO"; then : 15620 xorg_cv_cc_flag_unused_command_line_argument=yes 15621else 15622 xorg_cv_cc_flag_unused_command_line_argument=no 15623fi 15624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15625fi 15626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15627$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15628 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15629 CFLAGS="$xorg_testset_save_CFLAGS" 15630fi 15631 15632found="no" 15633 15634 if test $found = "no" ; then 15635 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15636 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15637 fi 15638 15639 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15641 fi 15642 15643 CFLAGS="$CFLAGS -Wimplicit" 15644 15645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 15646$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 15647 cacheid=xorg_cv_cc_flag__Wimplicit 15648 if eval \${$cacheid+:} false; then : 15649 $as_echo_n "(cached) " >&6 15650else 15651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15652/* end confdefs.h. */ 15653int i; 15654int 15655main () 15656{ 15657 15658 ; 15659 return 0; 15660} 15661_ACEOF 15662if ac_fn_c_try_link "$LINENO"; then : 15663 eval $cacheid=yes 15664else 15665 eval $cacheid=no 15666fi 15667rm -f core conftest.err conftest.$ac_objext \ 15668 conftest$ac_exeext conftest.$ac_ext 15669fi 15670 15671 15672 CFLAGS="$xorg_testset_save_CFLAGS" 15673 15674 eval supported=\$$cacheid 15675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15676$as_echo "$supported" >&6; } 15677 if test "$supported" = "yes" ; then 15678 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 15679 found="yes" 15680 fi 15681 fi 15682 15683 15684 15685 15686 15687 15688 15689 15690 15691 15692 15693 15694 15695 15696 15697xorg_testset_save_CFLAGS="$CFLAGS" 15698 15699if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15700 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15702$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15703if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15704 $as_echo_n "(cached) " >&6 15705else 15706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15707/* end confdefs.h. */ 15708int i; 15709_ACEOF 15710if ac_fn_c_try_compile "$LINENO"; then : 15711 xorg_cv_cc_flag_unknown_warning_option=yes 15712else 15713 xorg_cv_cc_flag_unknown_warning_option=no 15714fi 15715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15716fi 15717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15718$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15719 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15720 CFLAGS="$xorg_testset_save_CFLAGS" 15721fi 15722 15723if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15726 fi 15727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15729$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15730if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15731 $as_echo_n "(cached) " >&6 15732else 15733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15734/* end confdefs.h. */ 15735int i; 15736_ACEOF 15737if ac_fn_c_try_compile "$LINENO"; then : 15738 xorg_cv_cc_flag_unused_command_line_argument=yes 15739else 15740 xorg_cv_cc_flag_unused_command_line_argument=no 15741fi 15742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15743fi 15744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15745$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15746 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15747 CFLAGS="$xorg_testset_save_CFLAGS" 15748fi 15749 15750found="no" 15751 15752 if test $found = "no" ; then 15753 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15754 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15755 fi 15756 15757 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15759 fi 15760 15761 CFLAGS="$CFLAGS -Wnonnull" 15762 15763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 15764$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 15765 cacheid=xorg_cv_cc_flag__Wnonnull 15766 if eval \${$cacheid+:} false; then : 15767 $as_echo_n "(cached) " >&6 15768else 15769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15770/* end confdefs.h. */ 15771int i; 15772int 15773main () 15774{ 15775 15776 ; 15777 return 0; 15778} 15779_ACEOF 15780if ac_fn_c_try_link "$LINENO"; then : 15781 eval $cacheid=yes 15782else 15783 eval $cacheid=no 15784fi 15785rm -f core conftest.err conftest.$ac_objext \ 15786 conftest$ac_exeext conftest.$ac_ext 15787fi 15788 15789 15790 CFLAGS="$xorg_testset_save_CFLAGS" 15791 15792 eval supported=\$$cacheid 15793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15794$as_echo "$supported" >&6; } 15795 if test "$supported" = "yes" ; then 15796 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 15797 found="yes" 15798 fi 15799 fi 15800 15801 15802 15803 15804 15805 15806 15807 15808 15809 15810 15811 15812 15813 15814 15815xorg_testset_save_CFLAGS="$CFLAGS" 15816 15817if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15820$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15821if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15822 $as_echo_n "(cached) " >&6 15823else 15824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15825/* end confdefs.h. */ 15826int i; 15827_ACEOF 15828if ac_fn_c_try_compile "$LINENO"; then : 15829 xorg_cv_cc_flag_unknown_warning_option=yes 15830else 15831 xorg_cv_cc_flag_unknown_warning_option=no 15832fi 15833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15834fi 15835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15836$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15837 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15838 CFLAGS="$xorg_testset_save_CFLAGS" 15839fi 15840 15841if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15843 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15844 fi 15845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15847$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15848if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15849 $as_echo_n "(cached) " >&6 15850else 15851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15852/* end confdefs.h. */ 15853int i; 15854_ACEOF 15855if ac_fn_c_try_compile "$LINENO"; then : 15856 xorg_cv_cc_flag_unused_command_line_argument=yes 15857else 15858 xorg_cv_cc_flag_unused_command_line_argument=no 15859fi 15860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15861fi 15862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15863$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15864 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15865 CFLAGS="$xorg_testset_save_CFLAGS" 15866fi 15867 15868found="no" 15869 15870 if test $found = "no" ; then 15871 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15873 fi 15874 15875 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15877 fi 15878 15879 CFLAGS="$CFLAGS -Winit-self" 15880 15881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 15882$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 15883 cacheid=xorg_cv_cc_flag__Winit_self 15884 if eval \${$cacheid+:} false; then : 15885 $as_echo_n "(cached) " >&6 15886else 15887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15888/* end confdefs.h. */ 15889int i; 15890int 15891main () 15892{ 15893 15894 ; 15895 return 0; 15896} 15897_ACEOF 15898if ac_fn_c_try_link "$LINENO"; then : 15899 eval $cacheid=yes 15900else 15901 eval $cacheid=no 15902fi 15903rm -f core conftest.err conftest.$ac_objext \ 15904 conftest$ac_exeext conftest.$ac_ext 15905fi 15906 15907 15908 CFLAGS="$xorg_testset_save_CFLAGS" 15909 15910 eval supported=\$$cacheid 15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15912$as_echo "$supported" >&6; } 15913 if test "$supported" = "yes" ; then 15914 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 15915 found="yes" 15916 fi 15917 fi 15918 15919 15920 15921 15922 15923 15924 15925 15926 15927 15928 15929 15930 15931 15932 15933xorg_testset_save_CFLAGS="$CFLAGS" 15934 15935if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15936 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15938$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15939if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15940 $as_echo_n "(cached) " >&6 15941else 15942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15943/* end confdefs.h. */ 15944int i; 15945_ACEOF 15946if ac_fn_c_try_compile "$LINENO"; then : 15947 xorg_cv_cc_flag_unknown_warning_option=yes 15948else 15949 xorg_cv_cc_flag_unknown_warning_option=no 15950fi 15951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15952fi 15953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15954$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15955 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15956 CFLAGS="$xorg_testset_save_CFLAGS" 15957fi 15958 15959if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15961 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15962 fi 15963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15965$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15966if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15967 $as_echo_n "(cached) " >&6 15968else 15969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15970/* end confdefs.h. */ 15971int i; 15972_ACEOF 15973if ac_fn_c_try_compile "$LINENO"; then : 15974 xorg_cv_cc_flag_unused_command_line_argument=yes 15975else 15976 xorg_cv_cc_flag_unused_command_line_argument=no 15977fi 15978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15979fi 15980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15981$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15982 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15983 CFLAGS="$xorg_testset_save_CFLAGS" 15984fi 15985 15986found="no" 15987 15988 if test $found = "no" ; then 15989 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15990 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15991 fi 15992 15993 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15995 fi 15996 15997 CFLAGS="$CFLAGS -Wmain" 15998 15999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 16000$as_echo_n "checking if $CC supports -Wmain... " >&6; } 16001 cacheid=xorg_cv_cc_flag__Wmain 16002 if eval \${$cacheid+:} false; then : 16003 $as_echo_n "(cached) " >&6 16004else 16005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16006/* end confdefs.h. */ 16007int i; 16008int 16009main () 16010{ 16011 16012 ; 16013 return 0; 16014} 16015_ACEOF 16016if ac_fn_c_try_link "$LINENO"; then : 16017 eval $cacheid=yes 16018else 16019 eval $cacheid=no 16020fi 16021rm -f core conftest.err conftest.$ac_objext \ 16022 conftest$ac_exeext conftest.$ac_ext 16023fi 16024 16025 16026 CFLAGS="$xorg_testset_save_CFLAGS" 16027 16028 eval supported=\$$cacheid 16029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16030$as_echo "$supported" >&6; } 16031 if test "$supported" = "yes" ; then 16032 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 16033 found="yes" 16034 fi 16035 fi 16036 16037 16038 16039 16040 16041 16042 16043 16044 16045 16046 16047 16048 16049 16050 16051xorg_testset_save_CFLAGS="$CFLAGS" 16052 16053if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16054 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16056$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16057if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16058 $as_echo_n "(cached) " >&6 16059else 16060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16061/* end confdefs.h. */ 16062int i; 16063_ACEOF 16064if ac_fn_c_try_compile "$LINENO"; then : 16065 xorg_cv_cc_flag_unknown_warning_option=yes 16066else 16067 xorg_cv_cc_flag_unknown_warning_option=no 16068fi 16069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16070fi 16071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16072$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16073 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16074 CFLAGS="$xorg_testset_save_CFLAGS" 16075fi 16076 16077if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16080 fi 16081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16083$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16084if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16085 $as_echo_n "(cached) " >&6 16086else 16087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16088/* end confdefs.h. */ 16089int i; 16090_ACEOF 16091if ac_fn_c_try_compile "$LINENO"; then : 16092 xorg_cv_cc_flag_unused_command_line_argument=yes 16093else 16094 xorg_cv_cc_flag_unused_command_line_argument=no 16095fi 16096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16097fi 16098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16099$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16100 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16101 CFLAGS="$xorg_testset_save_CFLAGS" 16102fi 16103 16104found="no" 16105 16106 if test $found = "no" ; then 16107 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16108 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16109 fi 16110 16111 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16113 fi 16114 16115 CFLAGS="$CFLAGS -Wmissing-braces" 16116 16117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 16118$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 16119 cacheid=xorg_cv_cc_flag__Wmissing_braces 16120 if eval \${$cacheid+:} false; then : 16121 $as_echo_n "(cached) " >&6 16122else 16123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16124/* end confdefs.h. */ 16125int i; 16126int 16127main () 16128{ 16129 16130 ; 16131 return 0; 16132} 16133_ACEOF 16134if ac_fn_c_try_link "$LINENO"; then : 16135 eval $cacheid=yes 16136else 16137 eval $cacheid=no 16138fi 16139rm -f core conftest.err conftest.$ac_objext \ 16140 conftest$ac_exeext conftest.$ac_ext 16141fi 16142 16143 16144 CFLAGS="$xorg_testset_save_CFLAGS" 16145 16146 eval supported=\$$cacheid 16147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16148$as_echo "$supported" >&6; } 16149 if test "$supported" = "yes" ; then 16150 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 16151 found="yes" 16152 fi 16153 fi 16154 16155 16156 16157 16158 16159 16160 16161 16162 16163 16164 16165 16166 16167 16168 16169xorg_testset_save_CFLAGS="$CFLAGS" 16170 16171if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16172 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16174$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16175if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16176 $as_echo_n "(cached) " >&6 16177else 16178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16179/* end confdefs.h. */ 16180int i; 16181_ACEOF 16182if ac_fn_c_try_compile "$LINENO"; then : 16183 xorg_cv_cc_flag_unknown_warning_option=yes 16184else 16185 xorg_cv_cc_flag_unknown_warning_option=no 16186fi 16187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16188fi 16189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16190$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16191 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16192 CFLAGS="$xorg_testset_save_CFLAGS" 16193fi 16194 16195if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16198 fi 16199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16201$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16202if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16203 $as_echo_n "(cached) " >&6 16204else 16205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16206/* end confdefs.h. */ 16207int i; 16208_ACEOF 16209if ac_fn_c_try_compile "$LINENO"; then : 16210 xorg_cv_cc_flag_unused_command_line_argument=yes 16211else 16212 xorg_cv_cc_flag_unused_command_line_argument=no 16213fi 16214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16215fi 16216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16217$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16218 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16219 CFLAGS="$xorg_testset_save_CFLAGS" 16220fi 16221 16222found="no" 16223 16224 if test $found = "no" ; then 16225 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16226 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16227 fi 16228 16229 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16231 fi 16232 16233 CFLAGS="$CFLAGS -Wsequence-point" 16234 16235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 16236$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 16237 cacheid=xorg_cv_cc_flag__Wsequence_point 16238 if eval \${$cacheid+:} false; then : 16239 $as_echo_n "(cached) " >&6 16240else 16241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16242/* end confdefs.h. */ 16243int i; 16244int 16245main () 16246{ 16247 16248 ; 16249 return 0; 16250} 16251_ACEOF 16252if ac_fn_c_try_link "$LINENO"; then : 16253 eval $cacheid=yes 16254else 16255 eval $cacheid=no 16256fi 16257rm -f core conftest.err conftest.$ac_objext \ 16258 conftest$ac_exeext conftest.$ac_ext 16259fi 16260 16261 16262 CFLAGS="$xorg_testset_save_CFLAGS" 16263 16264 eval supported=\$$cacheid 16265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16266$as_echo "$supported" >&6; } 16267 if test "$supported" = "yes" ; then 16268 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 16269 found="yes" 16270 fi 16271 fi 16272 16273 16274 16275 16276 16277 16278 16279 16280 16281 16282 16283 16284 16285 16286 16287xorg_testset_save_CFLAGS="$CFLAGS" 16288 16289if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16290 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16292$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16293if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16294 $as_echo_n "(cached) " >&6 16295else 16296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16297/* end confdefs.h. */ 16298int i; 16299_ACEOF 16300if ac_fn_c_try_compile "$LINENO"; then : 16301 xorg_cv_cc_flag_unknown_warning_option=yes 16302else 16303 xorg_cv_cc_flag_unknown_warning_option=no 16304fi 16305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16306fi 16307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16308$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16309 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16310 CFLAGS="$xorg_testset_save_CFLAGS" 16311fi 16312 16313if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16315 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16316 fi 16317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16319$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16320if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16321 $as_echo_n "(cached) " >&6 16322else 16323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16324/* end confdefs.h. */ 16325int i; 16326_ACEOF 16327if ac_fn_c_try_compile "$LINENO"; then : 16328 xorg_cv_cc_flag_unused_command_line_argument=yes 16329else 16330 xorg_cv_cc_flag_unused_command_line_argument=no 16331fi 16332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16333fi 16334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16335$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16336 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16337 CFLAGS="$xorg_testset_save_CFLAGS" 16338fi 16339 16340found="no" 16341 16342 if test $found = "no" ; then 16343 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16344 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16345 fi 16346 16347 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16349 fi 16350 16351 CFLAGS="$CFLAGS -Wreturn-type" 16352 16353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 16354$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 16355 cacheid=xorg_cv_cc_flag__Wreturn_type 16356 if eval \${$cacheid+:} false; then : 16357 $as_echo_n "(cached) " >&6 16358else 16359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16360/* end confdefs.h. */ 16361int i; 16362int 16363main () 16364{ 16365 16366 ; 16367 return 0; 16368} 16369_ACEOF 16370if ac_fn_c_try_link "$LINENO"; then : 16371 eval $cacheid=yes 16372else 16373 eval $cacheid=no 16374fi 16375rm -f core conftest.err conftest.$ac_objext \ 16376 conftest$ac_exeext conftest.$ac_ext 16377fi 16378 16379 16380 CFLAGS="$xorg_testset_save_CFLAGS" 16381 16382 eval supported=\$$cacheid 16383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16384$as_echo "$supported" >&6; } 16385 if test "$supported" = "yes" ; then 16386 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 16387 found="yes" 16388 fi 16389 fi 16390 16391 16392 16393 16394 16395 16396 16397 16398 16399 16400 16401 16402 16403 16404 16405xorg_testset_save_CFLAGS="$CFLAGS" 16406 16407if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16408 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16410$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16411if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16412 $as_echo_n "(cached) " >&6 16413else 16414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16415/* end confdefs.h. */ 16416int i; 16417_ACEOF 16418if ac_fn_c_try_compile "$LINENO"; then : 16419 xorg_cv_cc_flag_unknown_warning_option=yes 16420else 16421 xorg_cv_cc_flag_unknown_warning_option=no 16422fi 16423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16424fi 16425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16426$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16427 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16428 CFLAGS="$xorg_testset_save_CFLAGS" 16429fi 16430 16431if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16433 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16434 fi 16435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16437$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16438if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16439 $as_echo_n "(cached) " >&6 16440else 16441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16442/* end confdefs.h. */ 16443int i; 16444_ACEOF 16445if ac_fn_c_try_compile "$LINENO"; then : 16446 xorg_cv_cc_flag_unused_command_line_argument=yes 16447else 16448 xorg_cv_cc_flag_unused_command_line_argument=no 16449fi 16450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16451fi 16452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16453$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16454 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16455 CFLAGS="$xorg_testset_save_CFLAGS" 16456fi 16457 16458found="no" 16459 16460 if test $found = "no" ; then 16461 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16462 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16463 fi 16464 16465 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16467 fi 16468 16469 CFLAGS="$CFLAGS -Wtrigraphs" 16470 16471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 16472$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 16473 cacheid=xorg_cv_cc_flag__Wtrigraphs 16474 if eval \${$cacheid+:} false; then : 16475 $as_echo_n "(cached) " >&6 16476else 16477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16478/* end confdefs.h. */ 16479int i; 16480int 16481main () 16482{ 16483 16484 ; 16485 return 0; 16486} 16487_ACEOF 16488if ac_fn_c_try_link "$LINENO"; then : 16489 eval $cacheid=yes 16490else 16491 eval $cacheid=no 16492fi 16493rm -f core conftest.err conftest.$ac_objext \ 16494 conftest$ac_exeext conftest.$ac_ext 16495fi 16496 16497 16498 CFLAGS="$xorg_testset_save_CFLAGS" 16499 16500 eval supported=\$$cacheid 16501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16502$as_echo "$supported" >&6; } 16503 if test "$supported" = "yes" ; then 16504 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 16505 found="yes" 16506 fi 16507 fi 16508 16509 16510 16511 16512 16513 16514 16515 16516 16517 16518 16519 16520 16521 16522 16523xorg_testset_save_CFLAGS="$CFLAGS" 16524 16525if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16526 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16528$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16529if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16530 $as_echo_n "(cached) " >&6 16531else 16532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16533/* end confdefs.h. */ 16534int i; 16535_ACEOF 16536if ac_fn_c_try_compile "$LINENO"; then : 16537 xorg_cv_cc_flag_unknown_warning_option=yes 16538else 16539 xorg_cv_cc_flag_unknown_warning_option=no 16540fi 16541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16542fi 16543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16544$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16545 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16546 CFLAGS="$xorg_testset_save_CFLAGS" 16547fi 16548 16549if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16551 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16552 fi 16553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16555$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16556if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16557 $as_echo_n "(cached) " >&6 16558else 16559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16560/* end confdefs.h. */ 16561int i; 16562_ACEOF 16563if ac_fn_c_try_compile "$LINENO"; then : 16564 xorg_cv_cc_flag_unused_command_line_argument=yes 16565else 16566 xorg_cv_cc_flag_unused_command_line_argument=no 16567fi 16568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16569fi 16570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16571$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16572 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16573 CFLAGS="$xorg_testset_save_CFLAGS" 16574fi 16575 16576found="no" 16577 16578 if test $found = "no" ; then 16579 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16580 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16581 fi 16582 16583 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16585 fi 16586 16587 CFLAGS="$CFLAGS -Warray-bounds" 16588 16589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 16590$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 16591 cacheid=xorg_cv_cc_flag__Warray_bounds 16592 if eval \${$cacheid+:} false; then : 16593 $as_echo_n "(cached) " >&6 16594else 16595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16596/* end confdefs.h. */ 16597int i; 16598int 16599main () 16600{ 16601 16602 ; 16603 return 0; 16604} 16605_ACEOF 16606if ac_fn_c_try_link "$LINENO"; then : 16607 eval $cacheid=yes 16608else 16609 eval $cacheid=no 16610fi 16611rm -f core conftest.err conftest.$ac_objext \ 16612 conftest$ac_exeext conftest.$ac_ext 16613fi 16614 16615 16616 CFLAGS="$xorg_testset_save_CFLAGS" 16617 16618 eval supported=\$$cacheid 16619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16620$as_echo "$supported" >&6; } 16621 if test "$supported" = "yes" ; then 16622 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 16623 found="yes" 16624 fi 16625 fi 16626 16627 16628 16629 16630 16631 16632 16633 16634 16635 16636 16637 16638 16639 16640 16641xorg_testset_save_CFLAGS="$CFLAGS" 16642 16643if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16644 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16646$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16647if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16648 $as_echo_n "(cached) " >&6 16649else 16650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16651/* end confdefs.h. */ 16652int i; 16653_ACEOF 16654if ac_fn_c_try_compile "$LINENO"; then : 16655 xorg_cv_cc_flag_unknown_warning_option=yes 16656else 16657 xorg_cv_cc_flag_unknown_warning_option=no 16658fi 16659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16660fi 16661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16662$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16663 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16664 CFLAGS="$xorg_testset_save_CFLAGS" 16665fi 16666 16667if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16669 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16670 fi 16671 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16673$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16674if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16675 $as_echo_n "(cached) " >&6 16676else 16677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16678/* end confdefs.h. */ 16679int i; 16680_ACEOF 16681if ac_fn_c_try_compile "$LINENO"; then : 16682 xorg_cv_cc_flag_unused_command_line_argument=yes 16683else 16684 xorg_cv_cc_flag_unused_command_line_argument=no 16685fi 16686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16687fi 16688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16689$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16690 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16691 CFLAGS="$xorg_testset_save_CFLAGS" 16692fi 16693 16694found="no" 16695 16696 if test $found = "no" ; then 16697 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16698 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16699 fi 16700 16701 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16703 fi 16704 16705 CFLAGS="$CFLAGS -Wwrite-strings" 16706 16707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 16708$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 16709 cacheid=xorg_cv_cc_flag__Wwrite_strings 16710 if eval \${$cacheid+:} false; then : 16711 $as_echo_n "(cached) " >&6 16712else 16713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16714/* end confdefs.h. */ 16715int i; 16716int 16717main () 16718{ 16719 16720 ; 16721 return 0; 16722} 16723_ACEOF 16724if ac_fn_c_try_link "$LINENO"; then : 16725 eval $cacheid=yes 16726else 16727 eval $cacheid=no 16728fi 16729rm -f core conftest.err conftest.$ac_objext \ 16730 conftest$ac_exeext conftest.$ac_ext 16731fi 16732 16733 16734 CFLAGS="$xorg_testset_save_CFLAGS" 16735 16736 eval supported=\$$cacheid 16737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16738$as_echo "$supported" >&6; } 16739 if test "$supported" = "yes" ; then 16740 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 16741 found="yes" 16742 fi 16743 fi 16744 16745 16746 16747 16748 16749 16750 16751 16752 16753 16754 16755 16756 16757 16758 16759xorg_testset_save_CFLAGS="$CFLAGS" 16760 16761if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16762 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16764$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16765if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16766 $as_echo_n "(cached) " >&6 16767else 16768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16769/* end confdefs.h. */ 16770int i; 16771_ACEOF 16772if ac_fn_c_try_compile "$LINENO"; then : 16773 xorg_cv_cc_flag_unknown_warning_option=yes 16774else 16775 xorg_cv_cc_flag_unknown_warning_option=no 16776fi 16777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16778fi 16779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16780$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16781 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16782 CFLAGS="$xorg_testset_save_CFLAGS" 16783fi 16784 16785if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16788 fi 16789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16791$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16792if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16793 $as_echo_n "(cached) " >&6 16794else 16795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16796/* end confdefs.h. */ 16797int i; 16798_ACEOF 16799if ac_fn_c_try_compile "$LINENO"; then : 16800 xorg_cv_cc_flag_unused_command_line_argument=yes 16801else 16802 xorg_cv_cc_flag_unused_command_line_argument=no 16803fi 16804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16805fi 16806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16807$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16808 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16809 CFLAGS="$xorg_testset_save_CFLAGS" 16810fi 16811 16812found="no" 16813 16814 if test $found = "no" ; then 16815 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16816 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16817 fi 16818 16819 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16821 fi 16822 16823 CFLAGS="$CFLAGS -Waddress" 16824 16825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 16826$as_echo_n "checking if $CC supports -Waddress... " >&6; } 16827 cacheid=xorg_cv_cc_flag__Waddress 16828 if eval \${$cacheid+:} false; then : 16829 $as_echo_n "(cached) " >&6 16830else 16831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16832/* end confdefs.h. */ 16833int i; 16834int 16835main () 16836{ 16837 16838 ; 16839 return 0; 16840} 16841_ACEOF 16842if ac_fn_c_try_link "$LINENO"; then : 16843 eval $cacheid=yes 16844else 16845 eval $cacheid=no 16846fi 16847rm -f core conftest.err conftest.$ac_objext \ 16848 conftest$ac_exeext conftest.$ac_ext 16849fi 16850 16851 16852 CFLAGS="$xorg_testset_save_CFLAGS" 16853 16854 eval supported=\$$cacheid 16855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16856$as_echo "$supported" >&6; } 16857 if test "$supported" = "yes" ; then 16858 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 16859 found="yes" 16860 fi 16861 fi 16862 16863 16864 16865 16866 16867 16868 16869 16870 16871 16872 16873 16874 16875 16876 16877xorg_testset_save_CFLAGS="$CFLAGS" 16878 16879if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16882$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16883if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16884 $as_echo_n "(cached) " >&6 16885else 16886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16887/* end confdefs.h. */ 16888int i; 16889_ACEOF 16890if ac_fn_c_try_compile "$LINENO"; then : 16891 xorg_cv_cc_flag_unknown_warning_option=yes 16892else 16893 xorg_cv_cc_flag_unknown_warning_option=no 16894fi 16895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16896fi 16897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16898$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16899 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16900 CFLAGS="$xorg_testset_save_CFLAGS" 16901fi 16902 16903if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16904 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16905 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16906 fi 16907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16909$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16910if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16911 $as_echo_n "(cached) " >&6 16912else 16913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16914/* end confdefs.h. */ 16915int i; 16916_ACEOF 16917if ac_fn_c_try_compile "$LINENO"; then : 16918 xorg_cv_cc_flag_unused_command_line_argument=yes 16919else 16920 xorg_cv_cc_flag_unused_command_line_argument=no 16921fi 16922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16923fi 16924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16925$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16926 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16927 CFLAGS="$xorg_testset_save_CFLAGS" 16928fi 16929 16930found="no" 16931 16932 if test $found = "no" ; then 16933 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16935 fi 16936 16937 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16939 fi 16940 16941 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 16942 16943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 16944$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 16945 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 16946 if eval \${$cacheid+:} false; then : 16947 $as_echo_n "(cached) " >&6 16948else 16949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16950/* end confdefs.h. */ 16951int i; 16952int 16953main () 16954{ 16955 16956 ; 16957 return 0; 16958} 16959_ACEOF 16960if ac_fn_c_try_link "$LINENO"; then : 16961 eval $cacheid=yes 16962else 16963 eval $cacheid=no 16964fi 16965rm -f core conftest.err conftest.$ac_objext \ 16966 conftest$ac_exeext conftest.$ac_ext 16967fi 16968 16969 16970 CFLAGS="$xorg_testset_save_CFLAGS" 16971 16972 eval supported=\$$cacheid 16973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16974$as_echo "$supported" >&6; } 16975 if test "$supported" = "yes" ; then 16976 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 16977 found="yes" 16978 fi 16979 fi 16980 16981 16982 16983 16984 16985 16986 16987 16988 16989 16990 16991 16992 16993 16994 16995xorg_testset_save_CFLAGS="$CFLAGS" 16996 16997if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16998 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17000$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17001if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17002 $as_echo_n "(cached) " >&6 17003else 17004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17005/* end confdefs.h. */ 17006int i; 17007_ACEOF 17008if ac_fn_c_try_compile "$LINENO"; then : 17009 xorg_cv_cc_flag_unknown_warning_option=yes 17010else 17011 xorg_cv_cc_flag_unknown_warning_option=no 17012fi 17013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17014fi 17015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17016$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17017 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17018 CFLAGS="$xorg_testset_save_CFLAGS" 17019fi 17020 17021if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17023 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17024 fi 17025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17027$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17028if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17029 $as_echo_n "(cached) " >&6 17030else 17031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17032/* end confdefs.h. */ 17033int i; 17034_ACEOF 17035if ac_fn_c_try_compile "$LINENO"; then : 17036 xorg_cv_cc_flag_unused_command_line_argument=yes 17037else 17038 xorg_cv_cc_flag_unused_command_line_argument=no 17039fi 17040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17041fi 17042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17043$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17044 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17045 CFLAGS="$xorg_testset_save_CFLAGS" 17046fi 17047 17048found="no" 17049 17050 if test $found = "no" ; then 17051 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17052 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17053 fi 17054 17055 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17056 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17057 fi 17058 17059 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 17060 17061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 17062$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 17063 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 17064 if eval \${$cacheid+:} false; then : 17065 $as_echo_n "(cached) " >&6 17066else 17067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17068/* end confdefs.h. */ 17069int i; 17070int 17071main () 17072{ 17073 17074 ; 17075 return 0; 17076} 17077_ACEOF 17078if ac_fn_c_try_link "$LINENO"; then : 17079 eval $cacheid=yes 17080else 17081 eval $cacheid=no 17082fi 17083rm -f core conftest.err conftest.$ac_objext \ 17084 conftest$ac_exeext conftest.$ac_ext 17085fi 17086 17087 17088 CFLAGS="$xorg_testset_save_CFLAGS" 17089 17090 eval supported=\$$cacheid 17091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17092$as_echo "$supported" >&6; } 17093 if test "$supported" = "yes" ; then 17094 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 17095 found="yes" 17096 fi 17097 fi 17098 17099 17100fi 17101 17102 17103 17104 17105 17106 17107 17108 CWARNFLAGS="$BASE_CFLAGS" 17109 if test "x$GCC" = xyes ; then 17110 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 17111 fi 17112 17113 17114 17115 17116 17117 17118 17119 17120# Check whether --enable-strict-compilation was given. 17121if test "${enable_strict_compilation+set}" = set; then : 17122 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 17123else 17124 STRICT_COMPILE=no 17125fi 17126 17127 17128 17129 17130 17131 17132STRICT_CFLAGS="" 17133 17134 17135 17136 17137 17138 17139 17140 17141 17142 17143 17144 17145 17146xorg_testset_save_CFLAGS="$CFLAGS" 17147 17148if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17149 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17151$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17152if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17153 $as_echo_n "(cached) " >&6 17154else 17155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17156/* end confdefs.h. */ 17157int i; 17158_ACEOF 17159if ac_fn_c_try_compile "$LINENO"; then : 17160 xorg_cv_cc_flag_unknown_warning_option=yes 17161else 17162 xorg_cv_cc_flag_unknown_warning_option=no 17163fi 17164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17165fi 17166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17167$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17168 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17169 CFLAGS="$xorg_testset_save_CFLAGS" 17170fi 17171 17172if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17175 fi 17176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17178$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17179if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17180 $as_echo_n "(cached) " >&6 17181else 17182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17183/* end confdefs.h. */ 17184int i; 17185_ACEOF 17186if ac_fn_c_try_compile "$LINENO"; then : 17187 xorg_cv_cc_flag_unused_command_line_argument=yes 17188else 17189 xorg_cv_cc_flag_unused_command_line_argument=no 17190fi 17191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17192fi 17193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17194$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17195 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17196 CFLAGS="$xorg_testset_save_CFLAGS" 17197fi 17198 17199found="no" 17200 17201 if test $found = "no" ; then 17202 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17204 fi 17205 17206 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17208 fi 17209 17210 CFLAGS="$CFLAGS -pedantic" 17211 17212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 17213$as_echo_n "checking if $CC supports -pedantic... " >&6; } 17214 cacheid=xorg_cv_cc_flag__pedantic 17215 if eval \${$cacheid+:} false; then : 17216 $as_echo_n "(cached) " >&6 17217else 17218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17219/* end confdefs.h. */ 17220int i; 17221int 17222main () 17223{ 17224 17225 ; 17226 return 0; 17227} 17228_ACEOF 17229if ac_fn_c_try_link "$LINENO"; then : 17230 eval $cacheid=yes 17231else 17232 eval $cacheid=no 17233fi 17234rm -f core conftest.err conftest.$ac_objext \ 17235 conftest$ac_exeext conftest.$ac_ext 17236fi 17237 17238 17239 CFLAGS="$xorg_testset_save_CFLAGS" 17240 17241 eval supported=\$$cacheid 17242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17243$as_echo "$supported" >&6; } 17244 if test "$supported" = "yes" ; then 17245 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 17246 found="yes" 17247 fi 17248 fi 17249 17250 17251 17252 17253 17254 17255 17256 17257 17258 17259 17260 17261 17262 17263 17264xorg_testset_save_CFLAGS="$CFLAGS" 17265 17266if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17267 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17269$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17270if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17271 $as_echo_n "(cached) " >&6 17272else 17273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17274/* end confdefs.h. */ 17275int i; 17276_ACEOF 17277if ac_fn_c_try_compile "$LINENO"; then : 17278 xorg_cv_cc_flag_unknown_warning_option=yes 17279else 17280 xorg_cv_cc_flag_unknown_warning_option=no 17281fi 17282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17283fi 17284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17285$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17286 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17287 CFLAGS="$xorg_testset_save_CFLAGS" 17288fi 17289 17290if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17291 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17292 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17293 fi 17294 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17296$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17297if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17298 $as_echo_n "(cached) " >&6 17299else 17300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17301/* end confdefs.h. */ 17302int i; 17303_ACEOF 17304if ac_fn_c_try_compile "$LINENO"; then : 17305 xorg_cv_cc_flag_unused_command_line_argument=yes 17306else 17307 xorg_cv_cc_flag_unused_command_line_argument=no 17308fi 17309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17310fi 17311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17312$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17313 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17314 CFLAGS="$xorg_testset_save_CFLAGS" 17315fi 17316 17317found="no" 17318 17319 if test $found = "no" ; then 17320 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17322 fi 17323 17324 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17326 fi 17327 17328 CFLAGS="$CFLAGS -Werror" 17329 17330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 17331$as_echo_n "checking if $CC supports -Werror... " >&6; } 17332 cacheid=xorg_cv_cc_flag__Werror 17333 if eval \${$cacheid+:} false; then : 17334 $as_echo_n "(cached) " >&6 17335else 17336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17337/* end confdefs.h. */ 17338int i; 17339int 17340main () 17341{ 17342 17343 ; 17344 return 0; 17345} 17346_ACEOF 17347if ac_fn_c_try_link "$LINENO"; then : 17348 eval $cacheid=yes 17349else 17350 eval $cacheid=no 17351fi 17352rm -f core conftest.err conftest.$ac_objext \ 17353 conftest$ac_exeext conftest.$ac_ext 17354fi 17355 17356 17357 CFLAGS="$xorg_testset_save_CFLAGS" 17358 17359 eval supported=\$$cacheid 17360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17361$as_echo "$supported" >&6; } 17362 if test "$supported" = "yes" ; then 17363 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 17364 found="yes" 17365 fi 17366 fi 17367 17368 if test $found = "no" ; then 17369 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17370 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17371 fi 17372 17373 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17375 fi 17376 17377 CFLAGS="$CFLAGS -errwarn" 17378 17379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 17380$as_echo_n "checking if $CC supports -errwarn... " >&6; } 17381 cacheid=xorg_cv_cc_flag__errwarn 17382 if eval \${$cacheid+:} false; then : 17383 $as_echo_n "(cached) " >&6 17384else 17385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17386/* end confdefs.h. */ 17387int i; 17388int 17389main () 17390{ 17391 17392 ; 17393 return 0; 17394} 17395_ACEOF 17396if ac_fn_c_try_link "$LINENO"; then : 17397 eval $cacheid=yes 17398else 17399 eval $cacheid=no 17400fi 17401rm -f core conftest.err conftest.$ac_objext \ 17402 conftest$ac_exeext conftest.$ac_ext 17403fi 17404 17405 17406 CFLAGS="$xorg_testset_save_CFLAGS" 17407 17408 eval supported=\$$cacheid 17409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17410$as_echo "$supported" >&6; } 17411 if test "$supported" = "yes" ; then 17412 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 17413 found="yes" 17414 fi 17415 fi 17416 17417 17418 17419# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 17420# activate it with -Werror, so we add it here explicitly. 17421 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 17432 17433 17434xorg_testset_save_CFLAGS="$CFLAGS" 17435 17436if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17437 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17439$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17440if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17441 $as_echo_n "(cached) " >&6 17442else 17443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17444/* end confdefs.h. */ 17445int i; 17446_ACEOF 17447if ac_fn_c_try_compile "$LINENO"; then : 17448 xorg_cv_cc_flag_unknown_warning_option=yes 17449else 17450 xorg_cv_cc_flag_unknown_warning_option=no 17451fi 17452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17453fi 17454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17455$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17456 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17457 CFLAGS="$xorg_testset_save_CFLAGS" 17458fi 17459 17460if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17462 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17463 fi 17464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17466$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17467if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17468 $as_echo_n "(cached) " >&6 17469else 17470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17471/* end confdefs.h. */ 17472int i; 17473_ACEOF 17474if ac_fn_c_try_compile "$LINENO"; then : 17475 xorg_cv_cc_flag_unused_command_line_argument=yes 17476else 17477 xorg_cv_cc_flag_unused_command_line_argument=no 17478fi 17479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17480fi 17481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17482$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17483 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17484 CFLAGS="$xorg_testset_save_CFLAGS" 17485fi 17486 17487found="no" 17488 17489 if test $found = "no" ; then 17490 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17491 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17492 fi 17493 17494 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17495 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17496 fi 17497 17498 CFLAGS="$CFLAGS -Werror=attributes" 17499 17500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 17501$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 17502 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 17503 if eval \${$cacheid+:} false; then : 17504 $as_echo_n "(cached) " >&6 17505else 17506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17507/* end confdefs.h. */ 17508int i; 17509int 17510main () 17511{ 17512 17513 ; 17514 return 0; 17515} 17516_ACEOF 17517if ac_fn_c_try_link "$LINENO"; then : 17518 eval $cacheid=yes 17519else 17520 eval $cacheid=no 17521fi 17522rm -f core conftest.err conftest.$ac_objext \ 17523 conftest$ac_exeext conftest.$ac_ext 17524fi 17525 17526 17527 CFLAGS="$xorg_testset_save_CFLAGS" 17528 17529 eval supported=\$$cacheid 17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17531$as_echo "$supported" >&6; } 17532 if test "$supported" = "yes" ; then 17533 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 17534 found="yes" 17535 fi 17536 fi 17537 17538 17539 17540if test "x$STRICT_COMPILE" = "xyes"; then 17541 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 17542 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 17543fi 17544 17545 17546 17547 17548 17549 17550cat >>confdefs.h <<_ACEOF 17551#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 17552_ACEOF 17553 17554 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 17555 if test "x$PVM" = "x"; then 17556 PVM="0" 17557 fi 17558 17559cat >>confdefs.h <<_ACEOF 17560#define PACKAGE_VERSION_MINOR $PVM 17561_ACEOF 17562 17563 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 17564 if test "x$PVP" = "x"; then 17565 PVP="0" 17566 fi 17567 17568cat >>confdefs.h <<_ACEOF 17569#define PACKAGE_VERSION_PATCHLEVEL $PVP 17570_ACEOF 17571 17572 17573 17574CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 17575mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 17576|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 17577echo 'git directory not found: installing possibly empty changelog.' >&2)" 17578 17579 17580 17581 17582macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 17583INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 17584mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 17585|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 17586echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 17587 17588 17589 17590 17591 17592 17593if test x$APP_MAN_SUFFIX = x ; then 17594 APP_MAN_SUFFIX=1 17595fi 17596if test x$APP_MAN_DIR = x ; then 17597 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 17598fi 17599 17600if test x$LIB_MAN_SUFFIX = x ; then 17601 LIB_MAN_SUFFIX=3 17602fi 17603if test x$LIB_MAN_DIR = x ; then 17604 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 17605fi 17606 17607if test x$FILE_MAN_SUFFIX = x ; then 17608 case $host_os in 17609 solaris*) FILE_MAN_SUFFIX=4 ;; 17610 *) FILE_MAN_SUFFIX=5 ;; 17611 esac 17612fi 17613if test x$FILE_MAN_DIR = x ; then 17614 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 17615fi 17616 17617if test x$MISC_MAN_SUFFIX = x ; then 17618 case $host_os in 17619 solaris*) MISC_MAN_SUFFIX=5 ;; 17620 *) MISC_MAN_SUFFIX=7 ;; 17621 esac 17622fi 17623if test x$MISC_MAN_DIR = x ; then 17624 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 17625fi 17626 17627if test x$DRIVER_MAN_SUFFIX = x ; then 17628 case $host_os in 17629 solaris*) DRIVER_MAN_SUFFIX=7 ;; 17630 *) DRIVER_MAN_SUFFIX=4 ;; 17631 esac 17632fi 17633if test x$DRIVER_MAN_DIR = x ; then 17634 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 17635fi 17636 17637if test x$ADMIN_MAN_SUFFIX = x ; then 17638 case $host_os in 17639 solaris*) ADMIN_MAN_SUFFIX=1m ;; 17640 *) ADMIN_MAN_SUFFIX=8 ;; 17641 esac 17642fi 17643if test x$ADMIN_MAN_DIR = x ; then 17644 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 17645fi 17646 17647 17648 17649 17650 17651 17652 17653 17654 17655 17656 17657 17658 17659 17660 17661XORG_MAN_PAGE="X Version 11" 17662 17663MAN_SUBSTS="\ 17664 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17665 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17666 -e 's|__xservername__|Xorg|g' \ 17667 -e 's|__xconfigfile__|xorg.conf|g' \ 17668 -e 's|__projectroot__|\$(prefix)|g' \ 17669 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 17670 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 17671 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 17672 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 17673 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 17674 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 17675 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 17676 17677 17678 17679# Check whether --enable-silent-rules was given. 17680if test "${enable_silent_rules+set}" = set; then : 17681 enableval=$enable_silent_rules; 17682fi 17683 17684case $enable_silent_rules in # ((( 17685 yes) AM_DEFAULT_VERBOSITY=0;; 17686 no) AM_DEFAULT_VERBOSITY=1;; 17687 *) AM_DEFAULT_VERBOSITY=0;; 17688esac 17689am_make=${MAKE-make} 17690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 17691$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 17692if ${am_cv_make_support_nested_variables+:} false; then : 17693 $as_echo_n "(cached) " >&6 17694else 17695 if $as_echo 'TRUE=$(BAR$(V)) 17696BAR0=false 17697BAR1=true 17698V=1 17699am__doit: 17700 @$(TRUE) 17701.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 17702 am_cv_make_support_nested_variables=yes 17703else 17704 am_cv_make_support_nested_variables=no 17705fi 17706fi 17707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 17708$as_echo "$am_cv_make_support_nested_variables" >&6; } 17709if test $am_cv_make_support_nested_variables = yes; then 17710 AM_V='$(V)' 17711 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 17712else 17713 AM_V=$AM_DEFAULT_VERBOSITY 17714 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 17715fi 17716AM_BACKSLASH='\' 17717 17718 17719 17720# Check whether --enable-malloc0returnsnull was given. 17721if test "${enable_malloc0returnsnull+set}" = set; then : 17722 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 17723else 17724 MALLOC_ZERO_RETURNS_NULL=auto 17725fi 17726 17727 17728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5 17729$as_echo_n "checking whether malloc(0) returns NULL... " >&6; } 17730if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 17731 if test "$cross_compiling" = yes; then : 17732 MALLOC_ZERO_RETURNS_NULL=yes 17733else 17734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17735/* end confdefs.h. */ 17736 17737#include <stdlib.h> 17738 17739int 17740main () 17741{ 17742 17743 char *m0, *r0, *c0, *p; 17744 m0 = malloc(0); 17745 p = malloc(10); 17746 r0 = realloc(p,0); 17747 c0 = calloc(0,10); 17748 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1); 17749 17750 ; 17751 return 0; 17752} 17753_ACEOF 17754if ac_fn_c_try_run "$LINENO"; then : 17755 MALLOC_ZERO_RETURNS_NULL=yes 17756else 17757 MALLOC_ZERO_RETURNS_NULL=no 17758fi 17759rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17760 conftest.$ac_objext conftest.beam conftest.$ac_ext 17761fi 17762 17763fi 17764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 17765$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; } 17766 17767if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 17768 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 17769 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 17770 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 17771else 17772 MALLOC_ZERO_CFLAGS="" 17773 XMALLOC_ZERO_CFLAGS="" 17774 XTMALLOC_ZERO_CFLAGS="" 17775fi 17776 17777 17778 17779 17780 17781 17782# Obtain compiler/linker options for depedencies 17783 17784pkg_failed=no 17785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FS" >&5 17786$as_echo_n "checking for FS... " >&6; } 17787 17788if test -n "$FS_CFLAGS"; then 17789 pkg_cv_FS_CFLAGS="$FS_CFLAGS" 17790 elif test -n "$PKG_CONFIG"; then 17791 if test -n "$PKG_CONFIG" && \ 17792 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 fontsproto xtrans\""; } >&5 17793 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 fontsproto xtrans") 2>&5 17794 ac_status=$? 17795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17796 test $ac_status = 0; }; then 17797 pkg_cv_FS_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17 fontsproto xtrans" 2>/dev/null` 17798else 17799 pkg_failed=yes 17800fi 17801 else 17802 pkg_failed=untried 17803fi 17804if test -n "$FS_LIBS"; then 17805 pkg_cv_FS_LIBS="$FS_LIBS" 17806 elif test -n "$PKG_CONFIG"; then 17807 if test -n "$PKG_CONFIG" && \ 17808 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 fontsproto xtrans\""; } >&5 17809 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 fontsproto xtrans") 2>&5 17810 ac_status=$? 17811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17812 test $ac_status = 0; }; then 17813 pkg_cv_FS_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17 fontsproto xtrans" 2>/dev/null` 17814else 17815 pkg_failed=yes 17816fi 17817 else 17818 pkg_failed=untried 17819fi 17820 17821 17822 17823if test $pkg_failed = yes; then 17824 17825if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17826 _pkg_short_errors_supported=yes 17827else 17828 _pkg_short_errors_supported=no 17829fi 17830 if test $_pkg_short_errors_supported = yes; then 17831 FS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto >= 7.0.17 fontsproto xtrans" 2>&1` 17832 else 17833 FS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto >= 7.0.17 fontsproto xtrans" 2>&1` 17834 fi 17835 # Put the nasty error message in config.log where it belongs 17836 echo "$FS_PKG_ERRORS" >&5 17837 17838 as_fn_error $? "Package requirements (xproto >= 7.0.17 fontsproto xtrans) were not met: 17839 17840$FS_PKG_ERRORS 17841 17842Consider adjusting the PKG_CONFIG_PATH environment variable if you 17843installed software in a non-standard prefix. 17844 17845Alternatively, you may set the environment variables FS_CFLAGS 17846and FS_LIBS to avoid the need to call pkg-config. 17847See the pkg-config man page for more details. 17848" "$LINENO" 5 17849elif test $pkg_failed = untried; then 17850 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17851$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17852as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17853is in your PATH or set the PKG_CONFIG environment variable to the full 17854path to pkg-config. 17855 17856Alternatively, you may set the environment variables FS_CFLAGS 17857and FS_LIBS to avoid the need to call pkg-config. 17858See the pkg-config man page for more details. 17859 17860To get pkg-config, see <http://pkg-config.freedesktop.org/>. 17861See \`config.log' for more details" "$LINENO" 5; } 17862else 17863 FS_CFLAGS=$pkg_cv_FS_CFLAGS 17864 FS_LIBS=$pkg_cv_FS_LIBS 17865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17866$as_echo "yes" >&6; } 17867 : 17868fi 17869 17870# Find needed libraries for TCP sockets (pre-pended in $LIBS) 17871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 17872$as_echo_n "checking return type of signal handlers... " >&6; } 17873if ${ac_cv_type_signal+:} false; then : 17874 $as_echo_n "(cached) " >&6 17875else 17876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17877/* end confdefs.h. */ 17878#include <sys/types.h> 17879#include <signal.h> 17880 17881int 17882main () 17883{ 17884return *(signal (0, 0)) (0) == 1; 17885 ; 17886 return 0; 17887} 17888_ACEOF 17889if ac_fn_c_try_compile "$LINENO"; then : 17890 ac_cv_type_signal=int 17891else 17892 ac_cv_type_signal=void 17893fi 17894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17895fi 17896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 17897$as_echo "$ac_cv_type_signal" >&6; } 17898 17899cat >>confdefs.h <<_ACEOF 17900#define RETSIGTYPE $ac_cv_type_signal 17901_ACEOF 17902 17903 17904 17905 17906 17907 case $host_os in 17908 mingw*) unixdef="no" ;; 17909 *) unixdef="yes" ;; 17910 esac 17911 # Check whether --enable-unix-transport was given. 17912if test "${enable_unix_transport+set}" = set; then : 17913 enableval=$enable_unix_transport; UNIXCONN=$enableval 17914else 17915 UNIXCONN=$unixdef 17916fi 17917 17918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 17919$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; } 17920 if test "$UNIXCONN" = "yes"; then 17921 17922$as_echo "#define UNIXCONN 1" >>confdefs.h 17923 17924 fi 17925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 17926$as_echo "$UNIXCONN" >&6; } 17927 # Check whether --enable-tcp-transport was given. 17928if test "${enable_tcp_transport+set}" = set; then : 17929 enableval=$enable_tcp_transport; TCPCONN=$enableval 17930else 17931 TCPCONN=yes 17932fi 17933 17934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 17935$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; } 17936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 17937$as_echo "$TCPCONN" >&6; } 17938 if test "$TCPCONN" = "yes"; then 17939 17940$as_echo "#define TCPCONN 1" >>confdefs.h 17941 17942 17943 # SVR4 hides these in libraries other than libc 17944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 17945$as_echo_n "checking for library containing socket... " >&6; } 17946if ${ac_cv_search_socket+:} false; then : 17947 $as_echo_n "(cached) " >&6 17948else 17949 ac_func_search_save_LIBS=$LIBS 17950cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17951/* end confdefs.h. */ 17952 17953/* Override any GCC internal prototype to avoid an error. 17954 Use char because int might match the return type of a GCC 17955 builtin and then its argument prototype would still apply. */ 17956#ifdef __cplusplus 17957extern "C" 17958#endif 17959char socket (); 17960int 17961main () 17962{ 17963return socket (); 17964 ; 17965 return 0; 17966} 17967_ACEOF 17968for ac_lib in '' socket; do 17969 if test -z "$ac_lib"; then 17970 ac_res="none required" 17971 else 17972 ac_res=-l$ac_lib 17973 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17974 fi 17975 if ac_fn_c_try_link "$LINENO"; then : 17976 ac_cv_search_socket=$ac_res 17977fi 17978rm -f core conftest.err conftest.$ac_objext \ 17979 conftest$ac_exeext 17980 if ${ac_cv_search_socket+:} false; then : 17981 break 17982fi 17983done 17984if ${ac_cv_search_socket+:} false; then : 17985 17986else 17987 ac_cv_search_socket=no 17988fi 17989rm conftest.$ac_ext 17990LIBS=$ac_func_search_save_LIBS 17991fi 17992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 17993$as_echo "$ac_cv_search_socket" >&6; } 17994ac_res=$ac_cv_search_socket 17995if test "$ac_res" != no; then : 17996 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17997 17998fi 17999 18000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 18001$as_echo_n "checking for library containing gethostbyname... " >&6; } 18002if ${ac_cv_search_gethostbyname+:} false; then : 18003 $as_echo_n "(cached) " >&6 18004else 18005 ac_func_search_save_LIBS=$LIBS 18006cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18007/* end confdefs.h. */ 18008 18009/* Override any GCC internal prototype to avoid an error. 18010 Use char because int might match the return type of a GCC 18011 builtin and then its argument prototype would still apply. */ 18012#ifdef __cplusplus 18013extern "C" 18014#endif 18015char gethostbyname (); 18016int 18017main () 18018{ 18019return gethostbyname (); 18020 ; 18021 return 0; 18022} 18023_ACEOF 18024for ac_lib in '' nsl; do 18025 if test -z "$ac_lib"; then 18026 ac_res="none required" 18027 else 18028 ac_res=-l$ac_lib 18029 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18030 fi 18031 if ac_fn_c_try_link "$LINENO"; then : 18032 ac_cv_search_gethostbyname=$ac_res 18033fi 18034rm -f core conftest.err conftest.$ac_objext \ 18035 conftest$ac_exeext 18036 if ${ac_cv_search_gethostbyname+:} false; then : 18037 break 18038fi 18039done 18040if ${ac_cv_search_gethostbyname+:} false; then : 18041 18042else 18043 ac_cv_search_gethostbyname=no 18044fi 18045rm conftest.$ac_ext 18046LIBS=$ac_func_search_save_LIBS 18047fi 18048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 18049$as_echo "$ac_cv_search_gethostbyname" >&6; } 18050ac_res=$ac_cv_search_gethostbyname 18051if test "$ac_res" != no; then : 18052 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18053 18054fi 18055 18056 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 18057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 18058$as_echo_n "checking for main in -lws2_32... " >&6; } 18059if ${ac_cv_lib_ws2_32_main+:} false; then : 18060 $as_echo_n "(cached) " >&6 18061else 18062 ac_check_lib_save_LIBS=$LIBS 18063LIBS="-lws2_32 $LIBS" 18064cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18065/* end confdefs.h. */ 18066 18067 18068int 18069main () 18070{ 18071return main (); 18072 ; 18073 return 0; 18074} 18075_ACEOF 18076if ac_fn_c_try_link "$LINENO"; then : 18077 ac_cv_lib_ws2_32_main=yes 18078else 18079 ac_cv_lib_ws2_32_main=no 18080fi 18081rm -f core conftest.err conftest.$ac_objext \ 18082 conftest$ac_exeext conftest.$ac_ext 18083LIBS=$ac_check_lib_save_LIBS 18084fi 18085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 18086$as_echo "$ac_cv_lib_ws2_32_main" >&6; } 18087if test "x$ac_cv_lib_ws2_32_main" = xyes; then : 18088 cat >>confdefs.h <<_ACEOF 18089#define HAVE_LIBWS2_32 1 18090_ACEOF 18091 18092 LIBS="-lws2_32 $LIBS" 18093 18094fi 18095ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main 18096 18097 fi 18098 18099 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 18100 # Check whether --enable-ipv6 was given. 18101if test "${enable_ipv6+set}" = set; then : 18102 enableval=$enable_ipv6; IPV6CONN=$enableval 18103else 18104 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 18105if test "x$ac_cv_func_getaddrinfo" = xyes; then : 18106 IPV6CONN=yes 18107else 18108 IPV6CONN=no 18109fi 18110 18111fi 18112 18113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 18114$as_echo_n "checking if IPv6 support should be built... " >&6; } 18115 if test "$IPV6CONN" = "yes"; then 18116 18117$as_echo "#define IPv6 1" >>confdefs.h 18118 18119 fi 18120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 18121$as_echo "$IPV6CONN" >&6; } 18122 18123 # 4.3BSD-Reno added a new member to struct sockaddr_in 18124 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 18125#include <sys/types.h> 18126#include <sys/socket.h> 18127#include <netinet/in.h> 18128 18129" 18130if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then : 18131 18132$as_echo "#define BSD44SOCKETS 1" >>confdefs.h 18133 18134fi 18135 18136 18137 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 18138 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 18139$ac_includes_default 18140#include <sys/socket.h> 18141" 18142if test "x$ac_cv_type_socklen_t" = xyes; then : 18143 18144cat >>confdefs.h <<_ACEOF 18145#define HAVE_SOCKLEN_T 1 18146_ACEOF 18147 18148 18149fi 18150 18151 18152 18153 fi 18154 case $host_os in 18155 solaris*|sco*|sysv4*) localdef="yes" ;; 18156 *) localdef="no" ;; 18157 esac 18158 # Check whether --enable-local-transport was given. 18159if test "${enable_local_transport+set}" = set; then : 18160 enableval=$enable_local_transport; LOCALCONN=$enableval 18161else 18162 LOCALCONN=$localdef 18163fi 18164 18165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 18166$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; } 18167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 18168$as_echo "$LOCALCONN" >&6; } 18169 if test "$LOCALCONN" = "yes"; then 18170 18171$as_echo "#define LOCALCONN 1" >>confdefs.h 18172 18173 fi 18174 18175 18176 18177# Allow checking code with lint, sparse, etc. 18178 18179 18180 18181 18182 18183# Check whether --with-lint was given. 18184if test "${with_lint+set}" = set; then : 18185 withval=$with_lint; use_lint=$withval 18186else 18187 use_lint=no 18188fi 18189 18190 18191# Obtain platform specific info like program name and options 18192# The lint program on FreeBSD and NetBSD is different from the one on Solaris 18193case $host_os in 18194 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 18195 lint_name=splint 18196 lint_options="-badflag" 18197 ;; 18198 *freebsd* | *netbsd*) 18199 lint_name=lint 18200 lint_options="-u -b" 18201 ;; 18202 *solaris*) 18203 lint_name=lint 18204 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 18205 ;; 18206esac 18207 18208# Test for the presence of the program (either guessed by the code or spelled out by the user) 18209if test "x$use_lint" = x"yes" ; then 18210 # Extract the first word of "$lint_name", so it can be a program name with args. 18211set dummy $lint_name; ac_word=$2 18212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18213$as_echo_n "checking for $ac_word... " >&6; } 18214if ${ac_cv_path_LINT+:} false; then : 18215 $as_echo_n "(cached) " >&6 18216else 18217 case $LINT in 18218 [\\/]* | ?:[\\/]*) 18219 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 18220 ;; 18221 *) 18222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18223for as_dir in $PATH 18224do 18225 IFS=$as_save_IFS 18226 test -z "$as_dir" && as_dir=. 18227 for ac_exec_ext in '' $ac_executable_extensions; do 18228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18229 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 18230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18231 break 2 18232 fi 18233done 18234 done 18235IFS=$as_save_IFS 18236 18237 ;; 18238esac 18239fi 18240LINT=$ac_cv_path_LINT 18241if test -n "$LINT"; then 18242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 18243$as_echo "$LINT" >&6; } 18244else 18245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18246$as_echo "no" >&6; } 18247fi 18248 18249 18250 if test "x$LINT" = "x"; then 18251 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 18252 fi 18253elif test "x$use_lint" = x"no" ; then 18254 if test "x$LINT" != "x"; then 18255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 18256$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 18257 fi 18258else 18259 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 18260fi 18261 18262# User supplied flags override default flags 18263if test "x$LINT_FLAGS" != "x"; then 18264 lint_options=$LINT_FLAGS 18265fi 18266 18267LINT_FLAGS=$lint_options 18268 18269 if test "x$LINT" != x; then 18270 LINT_TRUE= 18271 LINT_FALSE='#' 18272else 18273 LINT_TRUE='#' 18274 LINT_FALSE= 18275fi 18276 18277 18278 18279 18280 18281# Check whether --enable-lint-library was given. 18282if test "${enable_lint_library+set}" = set; then : 18283 enableval=$enable_lint_library; make_lint_lib=$enableval 18284else 18285 make_lint_lib=no 18286fi 18287 18288 18289if test "x$make_lint_lib" = x"yes" ; then 18290 LINTLIB=llib-lFS.ln 18291 if test "x$LINT" = "x"; then 18292 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5 18293 fi 18294elif test "x$make_lint_lib" != x"no" ; then 18295 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5 18296fi 18297 18298 18299 if test x$make_lint_lib != xno; then 18300 MAKE_LINT_LIB_TRUE= 18301 MAKE_LINT_LIB_FALSE='#' 18302else 18303 MAKE_LINT_LIB_TRUE='#' 18304 MAKE_LINT_LIB_FALSE= 18305fi 18306 18307 18308 18309 18310ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile libfs.pc" 18311 18312cat >confcache <<\_ACEOF 18313# This file is a shell script that caches the results of configure 18314# tests run on this system so they can be shared between configure 18315# scripts and configure runs, see configure's option --config-cache. 18316# It is not useful on other systems. If it contains results you don't 18317# want to keep, you may remove or edit it. 18318# 18319# config.status only pays attention to the cache file if you give it 18320# the --recheck option to rerun configure. 18321# 18322# `ac_cv_env_foo' variables (set or unset) will be overridden when 18323# loading this file, other *unset* `ac_cv_foo' will be assigned the 18324# following values. 18325 18326_ACEOF 18327 18328# The following way of writing the cache mishandles newlines in values, 18329# but we know of no workaround that is simple, portable, and efficient. 18330# So, we kill variables containing newlines. 18331# Ultrix sh set writes to stderr and can't be redirected directly, 18332# and sets the high bit in the cache file unless we assign to the vars. 18333( 18334 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18335 eval ac_val=\$$ac_var 18336 case $ac_val in #( 18337 *${as_nl}*) 18338 case $ac_var in #( 18339 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18340$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18341 esac 18342 case $ac_var in #( 18343 _ | IFS | as_nl) ;; #( 18344 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18345 *) { eval $ac_var=; unset $ac_var;} ;; 18346 esac ;; 18347 esac 18348 done 18349 18350 (set) 2>&1 | 18351 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18352 *${as_nl}ac_space=\ *) 18353 # `set' does not quote correctly, so add quotes: double-quote 18354 # substitution turns \\\\ into \\, and sed turns \\ into \. 18355 sed -n \ 18356 "s/'/'\\\\''/g; 18357 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18358 ;; #( 18359 *) 18360 # `set' quotes correctly as required by POSIX, so do not add quotes. 18361 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18362 ;; 18363 esac | 18364 sort 18365) | 18366 sed ' 18367 /^ac_cv_env_/b end 18368 t clear 18369 :clear 18370 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18371 t end 18372 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18373 :end' >>confcache 18374if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18375 if test -w "$cache_file"; then 18376 if test "x$cache_file" != "x/dev/null"; then 18377 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18378$as_echo "$as_me: updating cache $cache_file" >&6;} 18379 if test ! -f "$cache_file" || test -h "$cache_file"; then 18380 cat confcache >"$cache_file" 18381 else 18382 case $cache_file in #( 18383 */* | ?:*) 18384 mv -f confcache "$cache_file"$$ && 18385 mv -f "$cache_file"$$ "$cache_file" ;; #( 18386 *) 18387 mv -f confcache "$cache_file" ;; 18388 esac 18389 fi 18390 fi 18391 else 18392 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18393$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18394 fi 18395fi 18396rm -f confcache 18397 18398test "x$prefix" = xNONE && prefix=$ac_default_prefix 18399# Let make expand exec_prefix. 18400test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18401 18402DEFS=-DHAVE_CONFIG_H 18403 18404ac_libobjs= 18405ac_ltlibobjs= 18406U= 18407for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18408 # 1. Remove the extension, and $U if already installed. 18409 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18410 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18411 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18412 # will be set to the directory where LIBOBJS objects are built. 18413 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18414 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18415done 18416LIBOBJS=$ac_libobjs 18417 18418LTLIBOBJS=$ac_ltlibobjs 18419 18420 18421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18422$as_echo_n "checking that generated files are newer than configure... " >&6; } 18423 if test -n "$am_sleep_pid"; then 18424 # Hide warnings about reused PIDs. 18425 wait $am_sleep_pid 2>/dev/null 18426 fi 18427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 18428$as_echo "done" >&6; } 18429 if test -n "$EXEEXT"; then 18430 am__EXEEXT_TRUE= 18431 am__EXEEXT_FALSE='#' 18432else 18433 am__EXEEXT_TRUE='#' 18434 am__EXEEXT_FALSE= 18435fi 18436 18437if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18438 as_fn_error $? "conditional \"AMDEP\" was never defined. 18439Usually this means the macro was only invoked conditionally." "$LINENO" 5 18440fi 18441if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18442 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18443Usually this means the macro was only invoked conditionally." "$LINENO" 5 18444fi 18445if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 18446 as_fn_error $? "conditional \"LINT\" was never defined. 18447Usually this means the macro was only invoked conditionally." "$LINENO" 5 18448fi 18449if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then 18450 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined. 18451Usually this means the macro was only invoked conditionally." "$LINENO" 5 18452fi 18453 18454: "${CONFIG_STATUS=./config.status}" 18455ac_write_fail=0 18456ac_clean_files_save=$ac_clean_files 18457ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18458{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18459$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18460as_write_fail=0 18461cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18462#! $SHELL 18463# Generated by $as_me. 18464# Run this file to recreate the current configuration. 18465# Compiler output produced by configure, useful for debugging 18466# configure, is in config.log if it exists. 18467 18468debug=false 18469ac_cs_recheck=false 18470ac_cs_silent=false 18471 18472SHELL=\${CONFIG_SHELL-$SHELL} 18473export SHELL 18474_ASEOF 18475cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18476## -------------------- ## 18477## M4sh Initialization. ## 18478## -------------------- ## 18479 18480# Be more Bourne compatible 18481DUALCASE=1; export DUALCASE # for MKS sh 18482if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18483 emulate sh 18484 NULLCMD=: 18485 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18486 # is contrary to our usage. Disable this feature. 18487 alias -g '${1+"$@"}'='"$@"' 18488 setopt NO_GLOB_SUBST 18489else 18490 case `(set -o) 2>/dev/null` in #( 18491 *posix*) : 18492 set -o posix ;; #( 18493 *) : 18494 ;; 18495esac 18496fi 18497 18498 18499as_nl=' 18500' 18501export as_nl 18502# Printing a long string crashes Solaris 7 /usr/bin/printf. 18503as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18504as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18505as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18506# Prefer a ksh shell builtin over an external printf program on Solaris, 18507# but without wasting forks for bash or zsh. 18508if test -z "$BASH_VERSION$ZSH_VERSION" \ 18509 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18510 as_echo='print -r --' 18511 as_echo_n='print -rn --' 18512elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18513 as_echo='printf %s\n' 18514 as_echo_n='printf %s' 18515else 18516 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18517 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18518 as_echo_n='/usr/ucb/echo -n' 18519 else 18520 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18521 as_echo_n_body='eval 18522 arg=$1; 18523 case $arg in #( 18524 *"$as_nl"*) 18525 expr "X$arg" : "X\\(.*\\)$as_nl"; 18526 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18527 esac; 18528 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18529 ' 18530 export as_echo_n_body 18531 as_echo_n='sh -c $as_echo_n_body as_echo' 18532 fi 18533 export as_echo_body 18534 as_echo='sh -c $as_echo_body as_echo' 18535fi 18536 18537# The user is always right. 18538if test "${PATH_SEPARATOR+set}" != set; then 18539 PATH_SEPARATOR=: 18540 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18541 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18542 PATH_SEPARATOR=';' 18543 } 18544fi 18545 18546 18547# IFS 18548# We need space, tab and new line, in precisely that order. Quoting is 18549# there to prevent editors from complaining about space-tab. 18550# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18551# splitting by setting IFS to empty value.) 18552IFS=" "" $as_nl" 18553 18554# Find who we are. Look in the path if we contain no directory separator. 18555as_myself= 18556case $0 in #(( 18557 *[\\/]* ) as_myself=$0 ;; 18558 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18559for as_dir in $PATH 18560do 18561 IFS=$as_save_IFS 18562 test -z "$as_dir" && as_dir=. 18563 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18564 done 18565IFS=$as_save_IFS 18566 18567 ;; 18568esac 18569# We did not find ourselves, most probably we were run as `sh COMMAND' 18570# in which case we are not to be found in the path. 18571if test "x$as_myself" = x; then 18572 as_myself=$0 18573fi 18574if test ! -f "$as_myself"; then 18575 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18576 exit 1 18577fi 18578 18579# Unset variables that we do not need and which cause bugs (e.g. in 18580# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18581# suppresses any "Segmentation fault" message there. '((' could 18582# trigger a bug in pdksh 5.2.14. 18583for as_var in BASH_ENV ENV MAIL MAILPATH 18584do eval test x\${$as_var+set} = xset \ 18585 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18586done 18587PS1='$ ' 18588PS2='> ' 18589PS4='+ ' 18590 18591# NLS nuisances. 18592LC_ALL=C 18593export LC_ALL 18594LANGUAGE=C 18595export LANGUAGE 18596 18597# CDPATH. 18598(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18599 18600 18601# as_fn_error STATUS ERROR [LINENO LOG_FD] 18602# ---------------------------------------- 18603# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18604# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18605# script with STATUS, using 1 if that was 0. 18606as_fn_error () 18607{ 18608 as_status=$1; test $as_status -eq 0 && as_status=1 18609 if test "$4"; then 18610 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18611 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18612 fi 18613 $as_echo "$as_me: error: $2" >&2 18614 as_fn_exit $as_status 18615} # as_fn_error 18616 18617 18618# as_fn_set_status STATUS 18619# ----------------------- 18620# Set $? to STATUS, without forking. 18621as_fn_set_status () 18622{ 18623 return $1 18624} # as_fn_set_status 18625 18626# as_fn_exit STATUS 18627# ----------------- 18628# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18629as_fn_exit () 18630{ 18631 set +e 18632 as_fn_set_status $1 18633 exit $1 18634} # as_fn_exit 18635 18636# as_fn_unset VAR 18637# --------------- 18638# Portably unset VAR. 18639as_fn_unset () 18640{ 18641 { eval $1=; unset $1;} 18642} 18643as_unset=as_fn_unset 18644# as_fn_append VAR VALUE 18645# ---------------------- 18646# Append the text in VALUE to the end of the definition contained in VAR. Take 18647# advantage of any shell optimizations that allow amortized linear growth over 18648# repeated appends, instead of the typical quadratic growth present in naive 18649# implementations. 18650if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18651 eval 'as_fn_append () 18652 { 18653 eval $1+=\$2 18654 }' 18655else 18656 as_fn_append () 18657 { 18658 eval $1=\$$1\$2 18659 } 18660fi # as_fn_append 18661 18662# as_fn_arith ARG... 18663# ------------------ 18664# Perform arithmetic evaluation on the ARGs, and store the result in the 18665# global $as_val. Take advantage of shells that can avoid forks. The arguments 18666# must be portable across $(()) and expr. 18667if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18668 eval 'as_fn_arith () 18669 { 18670 as_val=$(( $* )) 18671 }' 18672else 18673 as_fn_arith () 18674 { 18675 as_val=`expr "$@" || test $? -eq 1` 18676 } 18677fi # as_fn_arith 18678 18679 18680if expr a : '\(a\)' >/dev/null 2>&1 && 18681 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18682 as_expr=expr 18683else 18684 as_expr=false 18685fi 18686 18687if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18688 as_basename=basename 18689else 18690 as_basename=false 18691fi 18692 18693if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18694 as_dirname=dirname 18695else 18696 as_dirname=false 18697fi 18698 18699as_me=`$as_basename -- "$0" || 18700$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18701 X"$0" : 'X\(//\)$' \| \ 18702 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18703$as_echo X/"$0" | 18704 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18705 s//\1/ 18706 q 18707 } 18708 /^X\/\(\/\/\)$/{ 18709 s//\1/ 18710 q 18711 } 18712 /^X\/\(\/\).*/{ 18713 s//\1/ 18714 q 18715 } 18716 s/.*/./; q'` 18717 18718# Avoid depending upon Character Ranges. 18719as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18720as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18721as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18722as_cr_digits='0123456789' 18723as_cr_alnum=$as_cr_Letters$as_cr_digits 18724 18725ECHO_C= ECHO_N= ECHO_T= 18726case `echo -n x` in #((((( 18727-n*) 18728 case `echo 'xy\c'` in 18729 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18730 xy) ECHO_C='\c';; 18731 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18732 ECHO_T=' ';; 18733 esac;; 18734*) 18735 ECHO_N='-n';; 18736esac 18737 18738rm -f conf$$ conf$$.exe conf$$.file 18739if test -d conf$$.dir; then 18740 rm -f conf$$.dir/conf$$.file 18741else 18742 rm -f conf$$.dir 18743 mkdir conf$$.dir 2>/dev/null 18744fi 18745if (echo >conf$$.file) 2>/dev/null; then 18746 if ln -s conf$$.file conf$$ 2>/dev/null; then 18747 as_ln_s='ln -s' 18748 # ... but there are two gotchas: 18749 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18750 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18751 # In both cases, we have to default to `cp -p'. 18752 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18753 as_ln_s='cp -p' 18754 elif ln conf$$.file conf$$ 2>/dev/null; then 18755 as_ln_s=ln 18756 else 18757 as_ln_s='cp -p' 18758 fi 18759else 18760 as_ln_s='cp -p' 18761fi 18762rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18763rmdir conf$$.dir 2>/dev/null 18764 18765 18766# as_fn_mkdir_p 18767# ------------- 18768# Create "$as_dir" as a directory, including parents if necessary. 18769as_fn_mkdir_p () 18770{ 18771 18772 case $as_dir in #( 18773 -*) as_dir=./$as_dir;; 18774 esac 18775 test -d "$as_dir" || eval $as_mkdir_p || { 18776 as_dirs= 18777 while :; do 18778 case $as_dir in #( 18779 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18780 *) as_qdir=$as_dir;; 18781 esac 18782 as_dirs="'$as_qdir' $as_dirs" 18783 as_dir=`$as_dirname -- "$as_dir" || 18784$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18785 X"$as_dir" : 'X\(//\)[^/]' \| \ 18786 X"$as_dir" : 'X\(//\)$' \| \ 18787 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18788$as_echo X"$as_dir" | 18789 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18790 s//\1/ 18791 q 18792 } 18793 /^X\(\/\/\)[^/].*/{ 18794 s//\1/ 18795 q 18796 } 18797 /^X\(\/\/\)$/{ 18798 s//\1/ 18799 q 18800 } 18801 /^X\(\/\).*/{ 18802 s//\1/ 18803 q 18804 } 18805 s/.*/./; q'` 18806 test -d "$as_dir" && break 18807 done 18808 test -z "$as_dirs" || eval "mkdir $as_dirs" 18809 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18810 18811 18812} # as_fn_mkdir_p 18813if mkdir -p . 2>/dev/null; then 18814 as_mkdir_p='mkdir -p "$as_dir"' 18815else 18816 test -d ./-p && rmdir ./-p 18817 as_mkdir_p=false 18818fi 18819 18820if test -x / >/dev/null 2>&1; then 18821 as_test_x='test -x' 18822else 18823 if ls -dL / >/dev/null 2>&1; then 18824 as_ls_L_option=L 18825 else 18826 as_ls_L_option= 18827 fi 18828 as_test_x=' 18829 eval sh -c '\'' 18830 if test -d "$1"; then 18831 test -d "$1/."; 18832 else 18833 case $1 in #( 18834 -*)set "./$1";; 18835 esac; 18836 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 18837 ???[sx]*):;;*)false;;esac;fi 18838 '\'' sh 18839 ' 18840fi 18841as_executable_p=$as_test_x 18842 18843# Sed expression to map a string onto a valid CPP name. 18844as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18845 18846# Sed expression to map a string onto a valid variable name. 18847as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18848 18849 18850exec 6>&1 18851## ----------------------------------- ## 18852## Main body of $CONFIG_STATUS script. ## 18853## ----------------------------------- ## 18854_ASEOF 18855test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18856 18857cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18858# Save the log message, to keep $0 and so on meaningful, and to 18859# report actual input values of CONFIG_FILES etc. instead of their 18860# values after options handling. 18861ac_log=" 18862This file was extended by libFS $as_me 1.0.5, which was 18863generated by GNU Autoconf 2.68. Invocation command line was 18864 18865 CONFIG_FILES = $CONFIG_FILES 18866 CONFIG_HEADERS = $CONFIG_HEADERS 18867 CONFIG_LINKS = $CONFIG_LINKS 18868 CONFIG_COMMANDS = $CONFIG_COMMANDS 18869 $ $0 $@ 18870 18871on `(hostname || uname -n) 2>/dev/null | sed 1q` 18872" 18873 18874_ACEOF 18875 18876case $ac_config_files in *" 18877"*) set x $ac_config_files; shift; ac_config_files=$*;; 18878esac 18879 18880case $ac_config_headers in *" 18881"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18882esac 18883 18884 18885cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18886# Files that config.status was made for. 18887config_files="$ac_config_files" 18888config_headers="$ac_config_headers" 18889config_commands="$ac_config_commands" 18890 18891_ACEOF 18892 18893cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18894ac_cs_usage="\ 18895\`$as_me' instantiates files and other configuration actions 18896from templates according to the current configuration. Unless the files 18897and actions are specified as TAGs, all are instantiated by default. 18898 18899Usage: $0 [OPTION]... [TAG]... 18900 18901 -h, --help print this help, then exit 18902 -V, --version print version number and configuration settings, then exit 18903 --config print configuration, then exit 18904 -q, --quiet, --silent 18905 do not print progress messages 18906 -d, --debug don't remove temporary files 18907 --recheck update $as_me by reconfiguring in the same conditions 18908 --file=FILE[:TEMPLATE] 18909 instantiate the configuration file FILE 18910 --header=FILE[:TEMPLATE] 18911 instantiate the configuration header FILE 18912 18913Configuration files: 18914$config_files 18915 18916Configuration headers: 18917$config_headers 18918 18919Configuration commands: 18920$config_commands 18921 18922Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 18923 18924_ACEOF 18925cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18926ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18927ac_cs_version="\\ 18928libFS config.status 1.0.5 18929configured by $0, generated by GNU Autoconf 2.68, 18930 with options \\"\$ac_cs_config\\" 18931 18932Copyright (C) 2010 Free Software Foundation, Inc. 18933This config.status script is free software; the Free Software Foundation 18934gives unlimited permission to copy, distribute and modify it." 18935 18936ac_pwd='$ac_pwd' 18937srcdir='$srcdir' 18938INSTALL='$INSTALL' 18939MKDIR_P='$MKDIR_P' 18940AWK='$AWK' 18941test -n "\$AWK" || AWK=awk 18942_ACEOF 18943 18944cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18945# The default lists apply if the user does not specify any file. 18946ac_need_defaults=: 18947while test $# != 0 18948do 18949 case $1 in 18950 --*=?*) 18951 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18952 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18953 ac_shift=: 18954 ;; 18955 --*=) 18956 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18957 ac_optarg= 18958 ac_shift=: 18959 ;; 18960 *) 18961 ac_option=$1 18962 ac_optarg=$2 18963 ac_shift=shift 18964 ;; 18965 esac 18966 18967 case $ac_option in 18968 # Handling of the options. 18969 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18970 ac_cs_recheck=: ;; 18971 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18972 $as_echo "$ac_cs_version"; exit ;; 18973 --config | --confi | --conf | --con | --co | --c ) 18974 $as_echo "$ac_cs_config"; exit ;; 18975 --debug | --debu | --deb | --de | --d | -d ) 18976 debug=: ;; 18977 --file | --fil | --fi | --f ) 18978 $ac_shift 18979 case $ac_optarg in 18980 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18981 '') as_fn_error $? "missing file argument" ;; 18982 esac 18983 as_fn_append CONFIG_FILES " '$ac_optarg'" 18984 ac_need_defaults=false;; 18985 --header | --heade | --head | --hea ) 18986 $ac_shift 18987 case $ac_optarg in 18988 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18989 esac 18990 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 18991 ac_need_defaults=false;; 18992 --he | --h) 18993 # Conflict between --help and --header 18994 as_fn_error $? "ambiguous option: \`$1' 18995Try \`$0 --help' for more information.";; 18996 --help | --hel | -h ) 18997 $as_echo "$ac_cs_usage"; exit ;; 18998 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18999 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19000 ac_cs_silent=: ;; 19001 19002 # This is an error. 19003 -*) as_fn_error $? "unrecognized option: \`$1' 19004Try \`$0 --help' for more information." ;; 19005 19006 *) as_fn_append ac_config_targets " $1" 19007 ac_need_defaults=false ;; 19008 19009 esac 19010 shift 19011done 19012 19013ac_configure_extra_args= 19014 19015if $ac_cs_silent; then 19016 exec 6>/dev/null 19017 ac_configure_extra_args="$ac_configure_extra_args --silent" 19018fi 19019 19020_ACEOF 19021cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19022if \$ac_cs_recheck; then 19023 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19024 shift 19025 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19026 CONFIG_SHELL='$SHELL' 19027 export CONFIG_SHELL 19028 exec "\$@" 19029fi 19030 19031_ACEOF 19032cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19033exec 5>>config.log 19034{ 19035 echo 19036 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19037## Running $as_me. ## 19038_ASBOX 19039 $as_echo "$ac_log" 19040} >&5 19041 19042_ACEOF 19043cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19044# 19045# INIT-COMMANDS 19046# 19047AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19048 19049 19050# The HP-UX ksh and POSIX shell print the target directory to stdout 19051# if CDPATH is set. 19052(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19053 19054sed_quote_subst='$sed_quote_subst' 19055double_quote_subst='$double_quote_subst' 19056delay_variable_subst='$delay_variable_subst' 19057macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19058macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19059enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19060enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19061pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19062enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19063SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19064ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19065PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19066host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19067host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19068host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19069build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19070build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19071build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19072SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19073Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19074GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19075EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19076FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19077LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19078NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19079LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19080max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19081ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19082exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19083lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19084lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19085lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19086lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19087lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19088reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19089reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19090OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19091deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19092file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19093file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19094want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19095DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19096sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19097AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19098AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19099archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19100STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19101RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19102old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19103old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19104old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19105lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19106CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19107CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19108compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19109GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19110lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19111lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19112lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19113lt_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"`' 19114nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19115lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19116objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19117MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19118lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19119lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19120lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19121lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19122lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19123need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19124MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19125DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19126NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19127LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19128OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19129OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19130libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19131shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19132extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19133archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19134enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19135export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19136whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19137compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19138old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19139old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19140archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19141archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19142module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19143module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19144with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19145allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19146no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19147hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19148hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19149hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19150hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19151hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19152hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19153hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19154inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19155link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19156always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19157export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19158exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19159include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19160prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19161postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19162file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19163variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19164need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19165need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19166version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19167runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19168shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19169shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19170libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19171library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19172soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19173install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19174postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19175postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19176finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19177finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19178hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19179sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19180sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 19181hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19182enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19183enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19184enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19185old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19186striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19187 19188LTCC='$LTCC' 19189LTCFLAGS='$LTCFLAGS' 19190compiler='$compiler_DEFAULT' 19191 19192# A function that is used when there is no print builtin or printf. 19193func_fallback_echo () 19194{ 19195 eval 'cat <<_LTECHO_EOF 19196\$1 19197_LTECHO_EOF' 19198} 19199 19200# Quote evaled strings. 19201for var in SHELL \ 19202ECHO \ 19203PATH_SEPARATOR \ 19204SED \ 19205GREP \ 19206EGREP \ 19207FGREP \ 19208LD \ 19209NM \ 19210LN_S \ 19211lt_SP2NL \ 19212lt_NL2SP \ 19213reload_flag \ 19214OBJDUMP \ 19215deplibs_check_method \ 19216file_magic_cmd \ 19217file_magic_glob \ 19218want_nocaseglob \ 19219DLLTOOL \ 19220sharedlib_from_linklib_cmd \ 19221AR \ 19222AR_FLAGS \ 19223archiver_list_spec \ 19224STRIP \ 19225RANLIB \ 19226CC \ 19227CFLAGS \ 19228compiler \ 19229lt_cv_sys_global_symbol_pipe \ 19230lt_cv_sys_global_symbol_to_cdecl \ 19231lt_cv_sys_global_symbol_to_c_name_address \ 19232lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19233nm_file_list_spec \ 19234lt_prog_compiler_no_builtin_flag \ 19235lt_prog_compiler_pic \ 19236lt_prog_compiler_wl \ 19237lt_prog_compiler_static \ 19238lt_cv_prog_compiler_c_o \ 19239need_locks \ 19240MANIFEST_TOOL \ 19241DSYMUTIL \ 19242NMEDIT \ 19243LIPO \ 19244OTOOL \ 19245OTOOL64 \ 19246shrext_cmds \ 19247export_dynamic_flag_spec \ 19248whole_archive_flag_spec \ 19249compiler_needs_object \ 19250with_gnu_ld \ 19251allow_undefined_flag \ 19252no_undefined_flag \ 19253hardcode_libdir_flag_spec \ 19254hardcode_libdir_separator \ 19255exclude_expsyms \ 19256include_expsyms \ 19257file_list_spec \ 19258variables_saved_for_relink \ 19259libname_spec \ 19260library_names_spec \ 19261soname_spec \ 19262install_override_mode \ 19263finish_eval \ 19264old_striplib \ 19265striplib; do 19266 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19267 *[\\\\\\\`\\"\\\$]*) 19268 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 19269 ;; 19270 *) 19271 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19272 ;; 19273 esac 19274done 19275 19276# Double-quote double-evaled strings. 19277for var in reload_cmds \ 19278old_postinstall_cmds \ 19279old_postuninstall_cmds \ 19280old_archive_cmds \ 19281extract_expsyms_cmds \ 19282old_archive_from_new_cmds \ 19283old_archive_from_expsyms_cmds \ 19284archive_cmds \ 19285archive_expsym_cmds \ 19286module_cmds \ 19287module_expsym_cmds \ 19288export_symbols_cmds \ 19289prelink_cmds \ 19290postlink_cmds \ 19291postinstall_cmds \ 19292postuninstall_cmds \ 19293finish_cmds \ 19294sys_lib_search_path_spec \ 19295sys_lib_dlsearch_path_spec; do 19296 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19297 *[\\\\\\\`\\"\\\$]*) 19298 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 19299 ;; 19300 *) 19301 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19302 ;; 19303 esac 19304done 19305 19306ac_aux_dir='$ac_aux_dir' 19307xsi_shell='$xsi_shell' 19308lt_shell_append='$lt_shell_append' 19309 19310# See if we are running on zsh, and set the options which allow our 19311# commands through without removal of \ escapes INIT. 19312if test -n "\${ZSH_VERSION+set}" ; then 19313 setopt NO_GLOB_SUBST 19314fi 19315 19316 19317 PACKAGE='$PACKAGE' 19318 VERSION='$VERSION' 19319 TIMESTAMP='$TIMESTAMP' 19320 RM='$RM' 19321 ofile='$ofile' 19322 19323 19324 19325 19326_ACEOF 19327 19328cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19329 19330# Handling of arguments. 19331for ac_config_target in $ac_config_targets 19332do 19333 case $ac_config_target in 19334 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19335 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19336 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19337 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19338 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19339 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 19340 "libfs.pc") CONFIG_FILES="$CONFIG_FILES libfs.pc" ;; 19341 19342 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19343 esac 19344done 19345 19346 19347# If the user did not use the arguments to specify the items to instantiate, 19348# then the envvar interface is used. Set only those that are not. 19349# We use the long form for the default assignment because of an extremely 19350# bizarre bug on SunOS 4.1.3. 19351if $ac_need_defaults; then 19352 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19353 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19354 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19355fi 19356 19357# Have a temporary directory for convenience. Make it in the build tree 19358# simply because there is no reason against having it here, and in addition, 19359# creating and moving files from /tmp can sometimes cause problems. 19360# Hook for its removal unless debugging. 19361# Note that there is a small window in which the directory will not be cleaned: 19362# after its creation but before its name has been assigned to `$tmp'. 19363$debug || 19364{ 19365 tmp= ac_tmp= 19366 trap 'exit_status=$? 19367 : "${ac_tmp:=$tmp}" 19368 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19369' 0 19370 trap 'as_fn_exit 1' 1 2 13 15 19371} 19372# Create a (secure) tmp directory for tmp files. 19373 19374{ 19375 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19376 test -d "$tmp" 19377} || 19378{ 19379 tmp=./conf$$-$RANDOM 19380 (umask 077 && mkdir "$tmp") 19381} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19382ac_tmp=$tmp 19383 19384# Set up the scripts for CONFIG_FILES section. 19385# No need to generate them if there are no CONFIG_FILES. 19386# This happens for instance with `./config.status config.h'. 19387if test -n "$CONFIG_FILES"; then 19388 19389 19390ac_cr=`echo X | tr X '\015'` 19391# On cygwin, bash can eat \r inside `` if the user requested igncr. 19392# But we know of no other shell where ac_cr would be empty at this 19393# point, so we can use a bashism as a fallback. 19394if test "x$ac_cr" = x; then 19395 eval ac_cr=\$\'\\r\' 19396fi 19397ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19398if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19399 ac_cs_awk_cr='\\r' 19400else 19401 ac_cs_awk_cr=$ac_cr 19402fi 19403 19404echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19405_ACEOF 19406 19407 19408{ 19409 echo "cat >conf$$subs.awk <<_ACEOF" && 19410 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19411 echo "_ACEOF" 19412} >conf$$subs.sh || 19413 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19414ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19415ac_delim='%!_!# ' 19416for ac_last_try in false false false false false :; do 19417 . ./conf$$subs.sh || 19418 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19419 19420 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19421 if test $ac_delim_n = $ac_delim_num; then 19422 break 19423 elif $ac_last_try; then 19424 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19425 else 19426 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19427 fi 19428done 19429rm -f conf$$subs.sh 19430 19431cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19432cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19433_ACEOF 19434sed -n ' 19435h 19436s/^/S["/; s/!.*/"]=/ 19437p 19438g 19439s/^[^!]*!// 19440:repl 19441t repl 19442s/'"$ac_delim"'$// 19443t delim 19444:nl 19445h 19446s/\(.\{148\}\)..*/\1/ 19447t more1 19448s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19449p 19450n 19451b repl 19452:more1 19453s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19454p 19455g 19456s/.\{148\}// 19457t nl 19458:delim 19459h 19460s/\(.\{148\}\)..*/\1/ 19461t more2 19462s/["\\]/\\&/g; s/^/"/; s/$/"/ 19463p 19464b 19465:more2 19466s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19467p 19468g 19469s/.\{148\}// 19470t delim 19471' <conf$$subs.awk | sed ' 19472/^[^""]/{ 19473 N 19474 s/\n// 19475} 19476' >>$CONFIG_STATUS || ac_write_fail=1 19477rm -f conf$$subs.awk 19478cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19479_ACAWK 19480cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19481 for (key in S) S_is_set[key] = 1 19482 FS = "" 19483 19484} 19485{ 19486 line = $ 0 19487 nfields = split(line, field, "@") 19488 substed = 0 19489 len = length(field[1]) 19490 for (i = 2; i < nfields; i++) { 19491 key = field[i] 19492 keylen = length(key) 19493 if (S_is_set[key]) { 19494 value = S[key] 19495 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19496 len += length(value) + length(field[++i]) 19497 substed = 1 19498 } else 19499 len += 1 + keylen 19500 } 19501 19502 print line 19503} 19504 19505_ACAWK 19506_ACEOF 19507cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19508if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19509 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19510else 19511 cat 19512fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19513 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19514_ACEOF 19515 19516# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19517# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19518# trailing colons and then remove the whole line if VPATH becomes empty 19519# (actually we leave an empty line to preserve line numbers). 19520if test "x$srcdir" = x.; then 19521 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19522h 19523s/// 19524s/^/:/ 19525s/[ ]*$/:/ 19526s/:\$(srcdir):/:/g 19527s/:\${srcdir}:/:/g 19528s/:@srcdir@:/:/g 19529s/^:*// 19530s/:*$// 19531x 19532s/\(=[ ]*\).*/\1/ 19533G 19534s/\n// 19535s/^[^=]*=[ ]*$// 19536}' 19537fi 19538 19539cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19540fi # test -n "$CONFIG_FILES" 19541 19542# Set up the scripts for CONFIG_HEADERS section. 19543# No need to generate them if there are no CONFIG_HEADERS. 19544# This happens for instance with `./config.status Makefile'. 19545if test -n "$CONFIG_HEADERS"; then 19546cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19547BEGIN { 19548_ACEOF 19549 19550# Transform confdefs.h into an awk script `defines.awk', embedded as 19551# here-document in config.status, that substitutes the proper values into 19552# config.h.in to produce config.h. 19553 19554# Create a delimiter string that does not exist in confdefs.h, to ease 19555# handling of long lines. 19556ac_delim='%!_!# ' 19557for ac_last_try in false false :; do 19558 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19559 if test -z "$ac_tt"; then 19560 break 19561 elif $ac_last_try; then 19562 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19563 else 19564 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19565 fi 19566done 19567 19568# For the awk script, D is an array of macro values keyed by name, 19569# likewise P contains macro parameters if any. Preserve backslash 19570# newline sequences. 19571 19572ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19573sed -n ' 19574s/.\{148\}/&'"$ac_delim"'/g 19575t rset 19576:rset 19577s/^[ ]*#[ ]*define[ ][ ]*/ / 19578t def 19579d 19580:def 19581s/\\$// 19582t bsnl 19583s/["\\]/\\&/g 19584s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19585D["\1"]=" \3"/p 19586s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19587d 19588:bsnl 19589s/["\\]/\\&/g 19590s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19591D["\1"]=" \3\\\\\\n"\\/p 19592t cont 19593s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19594t cont 19595d 19596:cont 19597n 19598s/.\{148\}/&'"$ac_delim"'/g 19599t clear 19600:clear 19601s/\\$// 19602t bsnlc 19603s/["\\]/\\&/g; s/^/"/; s/$/"/p 19604d 19605:bsnlc 19606s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19607b cont 19608' <confdefs.h | sed ' 19609s/'"$ac_delim"'/"\\\ 19610"/g' >>$CONFIG_STATUS || ac_write_fail=1 19611 19612cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19613 for (key in D) D_is_set[key] = 1 19614 FS = "" 19615} 19616/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19617 line = \$ 0 19618 split(line, arg, " ") 19619 if (arg[1] == "#") { 19620 defundef = arg[2] 19621 mac1 = arg[3] 19622 } else { 19623 defundef = substr(arg[1], 2) 19624 mac1 = arg[2] 19625 } 19626 split(mac1, mac2, "(") #) 19627 macro = mac2[1] 19628 prefix = substr(line, 1, index(line, defundef) - 1) 19629 if (D_is_set[macro]) { 19630 # Preserve the white space surrounding the "#". 19631 print prefix "define", macro P[macro] D[macro] 19632 next 19633 } else { 19634 # Replace #undef with comments. This is necessary, for example, 19635 # in the case of _POSIX_SOURCE, which is predefined and required 19636 # on some systems where configure will not decide to define it. 19637 if (defundef == "undef") { 19638 print "/*", prefix defundef, macro, "*/" 19639 next 19640 } 19641 } 19642} 19643{ print } 19644_ACAWK 19645_ACEOF 19646cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19647 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19648fi # test -n "$CONFIG_HEADERS" 19649 19650 19651eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19652shift 19653for ac_tag 19654do 19655 case $ac_tag in 19656 :[FHLC]) ac_mode=$ac_tag; continue;; 19657 esac 19658 case $ac_mode$ac_tag in 19659 :[FHL]*:*);; 19660 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19661 :[FH]-) ac_tag=-:-;; 19662 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19663 esac 19664 ac_save_IFS=$IFS 19665 IFS=: 19666 set x $ac_tag 19667 IFS=$ac_save_IFS 19668 shift 19669 ac_file=$1 19670 shift 19671 19672 case $ac_mode in 19673 :L) ac_source=$1;; 19674 :[FH]) 19675 ac_file_inputs= 19676 for ac_f 19677 do 19678 case $ac_f in 19679 -) ac_f="$ac_tmp/stdin";; 19680 *) # Look for the file first in the build tree, then in the source tree 19681 # (if the path is not absolute). The absolute path cannot be DOS-style, 19682 # because $ac_f cannot contain `:'. 19683 test -f "$ac_f" || 19684 case $ac_f in 19685 [\\/$]*) false;; 19686 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19687 esac || 19688 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19689 esac 19690 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19691 as_fn_append ac_file_inputs " '$ac_f'" 19692 done 19693 19694 # Let's still pretend it is `configure' which instantiates (i.e., don't 19695 # use $as_me), people would be surprised to read: 19696 # /* config.h. Generated by config.status. */ 19697 configure_input='Generated from '` 19698 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19699 `' by configure.' 19700 if test x"$ac_file" != x-; then 19701 configure_input="$ac_file. $configure_input" 19702 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19703$as_echo "$as_me: creating $ac_file" >&6;} 19704 fi 19705 # Neutralize special characters interpreted by sed in replacement strings. 19706 case $configure_input in #( 19707 *\&* | *\|* | *\\* ) 19708 ac_sed_conf_input=`$as_echo "$configure_input" | 19709 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19710 *) ac_sed_conf_input=$configure_input;; 19711 esac 19712 19713 case $ac_tag in 19714 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19715 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19716 esac 19717 ;; 19718 esac 19719 19720 ac_dir=`$as_dirname -- "$ac_file" || 19721$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19722 X"$ac_file" : 'X\(//\)[^/]' \| \ 19723 X"$ac_file" : 'X\(//\)$' \| \ 19724 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19725$as_echo X"$ac_file" | 19726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19727 s//\1/ 19728 q 19729 } 19730 /^X\(\/\/\)[^/].*/{ 19731 s//\1/ 19732 q 19733 } 19734 /^X\(\/\/\)$/{ 19735 s//\1/ 19736 q 19737 } 19738 /^X\(\/\).*/{ 19739 s//\1/ 19740 q 19741 } 19742 s/.*/./; q'` 19743 as_dir="$ac_dir"; as_fn_mkdir_p 19744 ac_builddir=. 19745 19746case "$ac_dir" in 19747.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19748*) 19749 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19750 # A ".." for each directory in $ac_dir_suffix. 19751 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19752 case $ac_top_builddir_sub in 19753 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19754 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19755 esac ;; 19756esac 19757ac_abs_top_builddir=$ac_pwd 19758ac_abs_builddir=$ac_pwd$ac_dir_suffix 19759# for backward compatibility: 19760ac_top_builddir=$ac_top_build_prefix 19761 19762case $srcdir in 19763 .) # We are building in place. 19764 ac_srcdir=. 19765 ac_top_srcdir=$ac_top_builddir_sub 19766 ac_abs_top_srcdir=$ac_pwd ;; 19767 [\\/]* | ?:[\\/]* ) # Absolute name. 19768 ac_srcdir=$srcdir$ac_dir_suffix; 19769 ac_top_srcdir=$srcdir 19770 ac_abs_top_srcdir=$srcdir ;; 19771 *) # Relative name. 19772 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19773 ac_top_srcdir=$ac_top_build_prefix$srcdir 19774 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19775esac 19776ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19777 19778 19779 case $ac_mode in 19780 :F) 19781 # 19782 # CONFIG_FILE 19783 # 19784 19785 case $INSTALL in 19786 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19787 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19788 esac 19789 ac_MKDIR_P=$MKDIR_P 19790 case $MKDIR_P in 19791 [\\/$]* | ?:[\\/]* ) ;; 19792 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19793 esac 19794_ACEOF 19795 19796cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19797# If the template does not know about datarootdir, expand it. 19798# FIXME: This hack should be removed a few years after 2.60. 19799ac_datarootdir_hack=; ac_datarootdir_seen= 19800ac_sed_dataroot=' 19801/datarootdir/ { 19802 p 19803 q 19804} 19805/@datadir@/p 19806/@docdir@/p 19807/@infodir@/p 19808/@localedir@/p 19809/@mandir@/p' 19810case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19811*datarootdir*) ac_datarootdir_seen=yes;; 19812*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19814$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19815_ACEOF 19816cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19817 ac_datarootdir_hack=' 19818 s&@datadir@&$datadir&g 19819 s&@docdir@&$docdir&g 19820 s&@infodir@&$infodir&g 19821 s&@localedir@&$localedir&g 19822 s&@mandir@&$mandir&g 19823 s&\\\${datarootdir}&$datarootdir&g' ;; 19824esac 19825_ACEOF 19826 19827# Neutralize VPATH when `$srcdir' = `.'. 19828# Shell code in configure.ac might set extrasub. 19829# FIXME: do we really want to maintain this feature? 19830cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19831ac_sed_extra="$ac_vpsub 19832$extrasub 19833_ACEOF 19834cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19835:t 19836/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19837s|@configure_input@|$ac_sed_conf_input|;t t 19838s&@top_builddir@&$ac_top_builddir_sub&;t t 19839s&@top_build_prefix@&$ac_top_build_prefix&;t t 19840s&@srcdir@&$ac_srcdir&;t t 19841s&@abs_srcdir@&$ac_abs_srcdir&;t t 19842s&@top_srcdir@&$ac_top_srcdir&;t t 19843s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19844s&@builddir@&$ac_builddir&;t t 19845s&@abs_builddir@&$ac_abs_builddir&;t t 19846s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19847s&@INSTALL@&$ac_INSTALL&;t t 19848s&@MKDIR_P@&$ac_MKDIR_P&;t t 19849$ac_datarootdir_hack 19850" 19851eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19852 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19853 19854test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19855 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19856 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19857 "$ac_tmp/out"`; test -z "$ac_out"; } && 19858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19859which seems to be undefined. Please make sure it is defined" >&5 19860$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19861which seems to be undefined. Please make sure it is defined" >&2;} 19862 19863 rm -f "$ac_tmp/stdin" 19864 case $ac_file in 19865 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19866 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19867 esac \ 19868 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19869 ;; 19870 :H) 19871 # 19872 # CONFIG_HEADER 19873 # 19874 if test x"$ac_file" != x-; then 19875 { 19876 $as_echo "/* $configure_input */" \ 19877 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 19878 } >"$ac_tmp/config.h" \ 19879 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19880 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 19881 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 19882$as_echo "$as_me: $ac_file is unchanged" >&6;} 19883 else 19884 rm -f "$ac_file" 19885 mv "$ac_tmp/config.h" "$ac_file" \ 19886 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19887 fi 19888 else 19889 $as_echo "/* $configure_input */" \ 19890 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 19891 || as_fn_error $? "could not create -" "$LINENO" 5 19892 fi 19893# Compute "$ac_file"'s index in $config_headers. 19894_am_arg="$ac_file" 19895_am_stamp_count=1 19896for _am_header in $config_headers :; do 19897 case $_am_header in 19898 $_am_arg | $_am_arg:* ) 19899 break ;; 19900 * ) 19901 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 19902 esac 19903done 19904echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 19905$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19906 X"$_am_arg" : 'X\(//\)[^/]' \| \ 19907 X"$_am_arg" : 'X\(//\)$' \| \ 19908 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 19909$as_echo X"$_am_arg" | 19910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19911 s//\1/ 19912 q 19913 } 19914 /^X\(\/\/\)[^/].*/{ 19915 s//\1/ 19916 q 19917 } 19918 /^X\(\/\/\)$/{ 19919 s//\1/ 19920 q 19921 } 19922 /^X\(\/\).*/{ 19923 s//\1/ 19924 q 19925 } 19926 s/.*/./; q'`/stamp-h$_am_stamp_count 19927 ;; 19928 19929 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19930$as_echo "$as_me: executing $ac_file commands" >&6;} 19931 ;; 19932 esac 19933 19934 19935 case $ac_file$ac_mode in 19936 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19937 # Older Autoconf quotes --file arguments for eval, but not when files 19938 # are listed without --file. Let's play safe and only enable the eval 19939 # if we detect the quoting. 19940 case $CONFIG_FILES in 19941 *\'*) eval set x "$CONFIG_FILES" ;; 19942 *) set x $CONFIG_FILES ;; 19943 esac 19944 shift 19945 for mf 19946 do 19947 # Strip MF so we end up with the name of the file. 19948 mf=`echo "$mf" | sed -e 's/:.*$//'` 19949 # Check whether this is an Automake generated Makefile or not. 19950 # We used to match only the files named 'Makefile.in', but 19951 # some people rename them; so instead we look at the file content. 19952 # Grep'ing the first line is not enough: some people post-process 19953 # each Makefile.in and add a new line on top of each file to say so. 19954 # Grep'ing the whole file is not good either: AIX grep has a line 19955 # limit of 2048, but all sed's we know have understand at least 4000. 19956 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 19957 dirpart=`$as_dirname -- "$mf" || 19958$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19959 X"$mf" : 'X\(//\)[^/]' \| \ 19960 X"$mf" : 'X\(//\)$' \| \ 19961 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 19962$as_echo X"$mf" | 19963 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19964 s//\1/ 19965 q 19966 } 19967 /^X\(\/\/\)[^/].*/{ 19968 s//\1/ 19969 q 19970 } 19971 /^X\(\/\/\)$/{ 19972 s//\1/ 19973 q 19974 } 19975 /^X\(\/\).*/{ 19976 s//\1/ 19977 q 19978 } 19979 s/.*/./; q'` 19980 else 19981 continue 19982 fi 19983 # Extract the definition of DEPDIR, am__include, and am__quote 19984 # from the Makefile without running 'make'. 19985 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 19986 test -z "$DEPDIR" && continue 19987 am__include=`sed -n 's/^am__include = //p' < "$mf"` 19988 test -z "$am__include" && continue 19989 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 19990 # Find all dependency output files, they are included files with 19991 # $(DEPDIR) in their names. We invoke sed twice because it is the 19992 # simplest approach to changing $(DEPDIR) to its actual value in the 19993 # expansion. 19994 for file in `sed -n " 19995 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 19996 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 19997 # Make sure the directory exists. 19998 test -f "$dirpart/$file" && continue 19999 fdir=`$as_dirname -- "$file" || 20000$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20001 X"$file" : 'X\(//\)[^/]' \| \ 20002 X"$file" : 'X\(//\)$' \| \ 20003 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20004$as_echo X"$file" | 20005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20006 s//\1/ 20007 q 20008 } 20009 /^X\(\/\/\)[^/].*/{ 20010 s//\1/ 20011 q 20012 } 20013 /^X\(\/\/\)$/{ 20014 s//\1/ 20015 q 20016 } 20017 /^X\(\/\).*/{ 20018 s//\1/ 20019 q 20020 } 20021 s/.*/./; q'` 20022 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20023 # echo "creating $dirpart/$file" 20024 echo '# dummy' > "$dirpart/$file" 20025 done 20026 done 20027} 20028 ;; 20029 "libtool":C) 20030 20031 # See if we are running on zsh, and set the options which allow our 20032 # commands through without removal of \ escapes. 20033 if test -n "${ZSH_VERSION+set}" ; then 20034 setopt NO_GLOB_SUBST 20035 fi 20036 20037 cfgfile="${ofile}T" 20038 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20039 $RM "$cfgfile" 20040 20041 cat <<_LT_EOF >> "$cfgfile" 20042#! $SHELL 20043 20044# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 20045# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 20046# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20047# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20048# 20049# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 20050# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 20051# Foundation, Inc. 20052# Written by Gordon Matzigkeit, 1996 20053# 20054# This file is part of GNU Libtool. 20055# 20056# GNU Libtool is free software; you can redistribute it and/or 20057# modify it under the terms of the GNU General Public License as 20058# published by the Free Software Foundation; either version 2 of 20059# the License, or (at your option) any later version. 20060# 20061# As a special exception to the GNU General Public License, 20062# if you distribute this file as part of a program or library that 20063# is built using GNU Libtool, you may include this file under the 20064# same distribution terms that you use for the rest of that program. 20065# 20066# GNU Libtool is distributed in the hope that it will be useful, 20067# but WITHOUT ANY WARRANTY; without even the implied warranty of 20068# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20069# GNU General Public License for more details. 20070# 20071# You should have received a copy of the GNU General Public License 20072# along with GNU Libtool; see the file COPYING. If not, a copy 20073# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 20074# obtained by writing to the Free Software Foundation, Inc., 20075# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20076 20077 20078# The names of the tagged configurations supported by this script. 20079available_tags="" 20080 20081# ### BEGIN LIBTOOL CONFIG 20082 20083# Which release of libtool.m4 was used? 20084macro_version=$macro_version 20085macro_revision=$macro_revision 20086 20087# Whether or not to build shared libraries. 20088build_libtool_libs=$enable_shared 20089 20090# Whether or not to build static libraries. 20091build_old_libs=$enable_static 20092 20093# What type of objects to build. 20094pic_mode=$pic_mode 20095 20096# Whether or not to optimize for fast installation. 20097fast_install=$enable_fast_install 20098 20099# Shell to use when invoking shell scripts. 20100SHELL=$lt_SHELL 20101 20102# An echo program that protects backslashes. 20103ECHO=$lt_ECHO 20104 20105# The PATH separator for the build system. 20106PATH_SEPARATOR=$lt_PATH_SEPARATOR 20107 20108# The host system. 20109host_alias=$host_alias 20110host=$host 20111host_os=$host_os 20112 20113# The build system. 20114build_alias=$build_alias 20115build=$build 20116build_os=$build_os 20117 20118# A sed program that does not truncate output. 20119SED=$lt_SED 20120 20121# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20122Xsed="\$SED -e 1s/^X//" 20123 20124# A grep program that handles long lines. 20125GREP=$lt_GREP 20126 20127# An ERE matcher. 20128EGREP=$lt_EGREP 20129 20130# A literal string matcher. 20131FGREP=$lt_FGREP 20132 20133# A BSD- or MS-compatible name lister. 20134NM=$lt_NM 20135 20136# Whether we need soft or hard links. 20137LN_S=$lt_LN_S 20138 20139# What is the maximum length of a command? 20140max_cmd_len=$max_cmd_len 20141 20142# Object file suffix (normally "o"). 20143objext=$ac_objext 20144 20145# Executable file suffix (normally ""). 20146exeext=$exeext 20147 20148# whether the shell understands "unset". 20149lt_unset=$lt_unset 20150 20151# turn spaces into newlines. 20152SP2NL=$lt_lt_SP2NL 20153 20154# turn newlines into spaces. 20155NL2SP=$lt_lt_NL2SP 20156 20157# convert \$build file names to \$host format. 20158to_host_file_cmd=$lt_cv_to_host_file_cmd 20159 20160# convert \$build files to toolchain format. 20161to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20162 20163# An object symbol dumper. 20164OBJDUMP=$lt_OBJDUMP 20165 20166# Method to check whether dependent libraries are shared objects. 20167deplibs_check_method=$lt_deplibs_check_method 20168 20169# Command to use when deplibs_check_method = "file_magic". 20170file_magic_cmd=$lt_file_magic_cmd 20171 20172# How to find potential files when deplibs_check_method = "file_magic". 20173file_magic_glob=$lt_file_magic_glob 20174 20175# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20176want_nocaseglob=$lt_want_nocaseglob 20177 20178# DLL creation program. 20179DLLTOOL=$lt_DLLTOOL 20180 20181# Command to associate shared and link libraries. 20182sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20183 20184# The archiver. 20185AR=$lt_AR 20186 20187# Flags to create an archive. 20188AR_FLAGS=$lt_AR_FLAGS 20189 20190# How to feed a file listing to the archiver. 20191archiver_list_spec=$lt_archiver_list_spec 20192 20193# A symbol stripping program. 20194STRIP=$lt_STRIP 20195 20196# Commands used to install an old-style archive. 20197RANLIB=$lt_RANLIB 20198old_postinstall_cmds=$lt_old_postinstall_cmds 20199old_postuninstall_cmds=$lt_old_postuninstall_cmds 20200 20201# Whether to use a lock for old archive extraction. 20202lock_old_archive_extraction=$lock_old_archive_extraction 20203 20204# A C compiler. 20205LTCC=$lt_CC 20206 20207# LTCC compiler flags. 20208LTCFLAGS=$lt_CFLAGS 20209 20210# Take the output of nm and produce a listing of raw symbols and C names. 20211global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20212 20213# Transform the output of nm in a proper C declaration. 20214global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20215 20216# Transform the output of nm in a C name address pair. 20217global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20218 20219# Transform the output of nm in a C name address pair when lib prefix is needed. 20220global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20221 20222# Specify filename containing input files for \$NM. 20223nm_file_list_spec=$lt_nm_file_list_spec 20224 20225# The root where to search for dependent libraries,and in which our libraries should be installed. 20226lt_sysroot=$lt_sysroot 20227 20228# The name of the directory that contains temporary libtool files. 20229objdir=$objdir 20230 20231# Used to examine libraries when file_magic_cmd begins with "file". 20232MAGIC_CMD=$MAGIC_CMD 20233 20234# Must we lock files when doing compilation? 20235need_locks=$lt_need_locks 20236 20237# Manifest tool. 20238MANIFEST_TOOL=$lt_MANIFEST_TOOL 20239 20240# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20241DSYMUTIL=$lt_DSYMUTIL 20242 20243# Tool to change global to local symbols on Mac OS X. 20244NMEDIT=$lt_NMEDIT 20245 20246# Tool to manipulate fat objects and archives on Mac OS X. 20247LIPO=$lt_LIPO 20248 20249# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20250OTOOL=$lt_OTOOL 20251 20252# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20253OTOOL64=$lt_OTOOL64 20254 20255# Old archive suffix (normally "a"). 20256libext=$libext 20257 20258# Shared library suffix (normally ".so"). 20259shrext_cmds=$lt_shrext_cmds 20260 20261# The commands to extract the exported symbol list from a shared archive. 20262extract_expsyms_cmds=$lt_extract_expsyms_cmds 20263 20264# Variables whose values should be saved in libtool wrapper scripts and 20265# restored at link time. 20266variables_saved_for_relink=$lt_variables_saved_for_relink 20267 20268# Do we need the "lib" prefix for modules? 20269need_lib_prefix=$need_lib_prefix 20270 20271# Do we need a version for libraries? 20272need_version=$need_version 20273 20274# Library versioning type. 20275version_type=$version_type 20276 20277# Shared library runtime path variable. 20278runpath_var=$runpath_var 20279 20280# Shared library path variable. 20281shlibpath_var=$shlibpath_var 20282 20283# Is shlibpath searched before the hard-coded library search path? 20284shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20285 20286# Format of library name prefix. 20287libname_spec=$lt_libname_spec 20288 20289# List of archive names. First name is the real one, the rest are links. 20290# The last name is the one that the linker finds with -lNAME 20291library_names_spec=$lt_library_names_spec 20292 20293# The coded name of the library, if different from the real name. 20294soname_spec=$lt_soname_spec 20295 20296# Permission mode override for installation of shared libraries. 20297install_override_mode=$lt_install_override_mode 20298 20299# Command to use after installation of a shared archive. 20300postinstall_cmds=$lt_postinstall_cmds 20301 20302# Command to use after uninstallation of a shared archive. 20303postuninstall_cmds=$lt_postuninstall_cmds 20304 20305# Commands used to finish a libtool library installation in a directory. 20306finish_cmds=$lt_finish_cmds 20307 20308# As "finish_cmds", except a single script fragment to be evaled but 20309# not shown. 20310finish_eval=$lt_finish_eval 20311 20312# Whether we should hardcode library paths into libraries. 20313hardcode_into_libs=$hardcode_into_libs 20314 20315# Compile-time system search path for libraries. 20316sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20317 20318# Run-time system search path for libraries. 20319sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20320 20321# Whether dlopen is supported. 20322dlopen_support=$enable_dlopen 20323 20324# Whether dlopen of programs is supported. 20325dlopen_self=$enable_dlopen_self 20326 20327# Whether dlopen of statically linked programs is supported. 20328dlopen_self_static=$enable_dlopen_self_static 20329 20330# Commands to strip libraries. 20331old_striplib=$lt_old_striplib 20332striplib=$lt_striplib 20333 20334 20335# The linker used to build libraries. 20336LD=$lt_LD 20337 20338# How to create reloadable object files. 20339reload_flag=$lt_reload_flag 20340reload_cmds=$lt_reload_cmds 20341 20342# Commands used to build an old-style archive. 20343old_archive_cmds=$lt_old_archive_cmds 20344 20345# A language specific compiler. 20346CC=$lt_compiler 20347 20348# Is the compiler the GNU compiler? 20349with_gcc=$GCC 20350 20351# Compiler flag to turn off builtin functions. 20352no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20353 20354# Additional compiler flags for building library objects. 20355pic_flag=$lt_lt_prog_compiler_pic 20356 20357# How to pass a linker flag through the compiler. 20358wl=$lt_lt_prog_compiler_wl 20359 20360# Compiler flag to prevent dynamic linking. 20361link_static_flag=$lt_lt_prog_compiler_static 20362 20363# Does compiler simultaneously support -c and -o options? 20364compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20365 20366# Whether or not to add -lc for building shared libraries. 20367build_libtool_need_lc=$archive_cmds_need_lc 20368 20369# Whether or not to disallow shared libs when runtime libs are static. 20370allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20371 20372# Compiler flag to allow reflexive dlopens. 20373export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20374 20375# Compiler flag to generate shared objects directly from archives. 20376whole_archive_flag_spec=$lt_whole_archive_flag_spec 20377 20378# Whether the compiler copes with passing no objects directly. 20379compiler_needs_object=$lt_compiler_needs_object 20380 20381# Create an old-style archive from a shared archive. 20382old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20383 20384# Create a temporary old-style archive to link instead of a shared archive. 20385old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20386 20387# Commands used to build a shared archive. 20388archive_cmds=$lt_archive_cmds 20389archive_expsym_cmds=$lt_archive_expsym_cmds 20390 20391# Commands used to build a loadable module if different from building 20392# a shared archive. 20393module_cmds=$lt_module_cmds 20394module_expsym_cmds=$lt_module_expsym_cmds 20395 20396# Whether we are building with GNU ld or not. 20397with_gnu_ld=$lt_with_gnu_ld 20398 20399# Flag that allows shared libraries with undefined symbols to be built. 20400allow_undefined_flag=$lt_allow_undefined_flag 20401 20402# Flag that enforces no undefined symbols. 20403no_undefined_flag=$lt_no_undefined_flag 20404 20405# Flag to hardcode \$libdir into a binary during linking. 20406# This must work even if \$libdir does not exist 20407hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20408 20409# Whether we need a single "-rpath" flag with a separated argument. 20410hardcode_libdir_separator=$lt_hardcode_libdir_separator 20411 20412# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20413# DIR into the resulting binary. 20414hardcode_direct=$hardcode_direct 20415 20416# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20417# DIR into the resulting binary and the resulting library dependency is 20418# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 20419# library is relocated. 20420hardcode_direct_absolute=$hardcode_direct_absolute 20421 20422# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20423# into the resulting binary. 20424hardcode_minus_L=$hardcode_minus_L 20425 20426# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20427# into the resulting binary. 20428hardcode_shlibpath_var=$hardcode_shlibpath_var 20429 20430# Set to "yes" if building a shared library automatically hardcodes DIR 20431# into the library and all subsequent libraries and executables linked 20432# against it. 20433hardcode_automatic=$hardcode_automatic 20434 20435# Set to yes if linker adds runtime paths of dependent libraries 20436# to runtime path list. 20437inherit_rpath=$inherit_rpath 20438 20439# Whether libtool must link a program against all its dependency libraries. 20440link_all_deplibs=$link_all_deplibs 20441 20442# Set to "yes" if exported symbols are required. 20443always_export_symbols=$always_export_symbols 20444 20445# The commands to list exported symbols. 20446export_symbols_cmds=$lt_export_symbols_cmds 20447 20448# Symbols that should not be listed in the preloaded symbols. 20449exclude_expsyms=$lt_exclude_expsyms 20450 20451# Symbols that must always be exported. 20452include_expsyms=$lt_include_expsyms 20453 20454# Commands necessary for linking programs (against libraries) with templates. 20455prelink_cmds=$lt_prelink_cmds 20456 20457# Commands necessary for finishing linking programs. 20458postlink_cmds=$lt_postlink_cmds 20459 20460# Specify filename containing input files. 20461file_list_spec=$lt_file_list_spec 20462 20463# How to hardcode a shared library path into an executable. 20464hardcode_action=$hardcode_action 20465 20466# ### END LIBTOOL CONFIG 20467 20468_LT_EOF 20469 20470 case $host_os in 20471 aix3*) 20472 cat <<\_LT_EOF >> "$cfgfile" 20473# AIX sometimes has problems with the GCC collect2 program. For some 20474# reason, if we set the COLLECT_NAMES environment variable, the problems 20475# vanish in a puff of smoke. 20476if test "X${COLLECT_NAMES+set}" != Xset; then 20477 COLLECT_NAMES= 20478 export COLLECT_NAMES 20479fi 20480_LT_EOF 20481 ;; 20482 esac 20483 20484 20485ltmain="$ac_aux_dir/ltmain.sh" 20486 20487 20488 # We use sed instead of cat because bash on DJGPP gets confused if 20489 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20490 # text mode, it properly converts lines to CR/LF. This bash problem 20491 # is reportedly fixed, but why not run on old versions too? 20492 sed '$q' "$ltmain" >> "$cfgfile" \ 20493 || (rm -f "$cfgfile"; exit 1) 20494 20495 if test x"$xsi_shell" = xyes; then 20496 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 20497func_dirname ()\ 20498{\ 20499\ case ${1} in\ 20500\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20501\ * ) func_dirname_result="${3}" ;;\ 20502\ esac\ 20503} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 20504 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20505 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20506test 0 -eq $? || _lt_function_replace_fail=: 20507 20508 20509 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 20510func_basename ()\ 20511{\ 20512\ func_basename_result="${1##*/}"\ 20513} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20514 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20515 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20516test 0 -eq $? || _lt_function_replace_fail=: 20517 20518 20519 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 20520func_dirname_and_basename ()\ 20521{\ 20522\ case ${1} in\ 20523\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20524\ * ) func_dirname_result="${3}" ;;\ 20525\ esac\ 20526\ func_basename_result="${1##*/}"\ 20527} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20528 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20529 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20530test 0 -eq $? || _lt_function_replace_fail=: 20531 20532 20533 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 20534func_stripname ()\ 20535{\ 20536\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 20537\ # positional parameters, so assign one to ordinary parameter first.\ 20538\ func_stripname_result=${3}\ 20539\ func_stripname_result=${func_stripname_result#"${1}"}\ 20540\ func_stripname_result=${func_stripname_result%"${2}"}\ 20541} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 20542 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20543 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20544test 0 -eq $? || _lt_function_replace_fail=: 20545 20546 20547 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 20548func_split_long_opt ()\ 20549{\ 20550\ func_split_long_opt_name=${1%%=*}\ 20551\ func_split_long_opt_arg=${1#*=}\ 20552} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20553 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20554 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20555test 0 -eq $? || _lt_function_replace_fail=: 20556 20557 20558 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 20559func_split_short_opt ()\ 20560{\ 20561\ func_split_short_opt_arg=${1#??}\ 20562\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 20563} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20564 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20565 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20566test 0 -eq $? || _lt_function_replace_fail=: 20567 20568 20569 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 20570func_lo2o ()\ 20571{\ 20572\ case ${1} in\ 20573\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 20574\ *) func_lo2o_result=${1} ;;\ 20575\ esac\ 20576} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 20577 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20578 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20579test 0 -eq $? || _lt_function_replace_fail=: 20580 20581 20582 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 20583func_xform ()\ 20584{\ 20585 func_xform_result=${1%.*}.lo\ 20586} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 20587 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20588 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20589test 0 -eq $? || _lt_function_replace_fail=: 20590 20591 20592 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 20593func_arith ()\ 20594{\ 20595 func_arith_result=$(( $* ))\ 20596} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 20597 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20598 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20599test 0 -eq $? || _lt_function_replace_fail=: 20600 20601 20602 sed -e '/^func_len ()$/,/^} # func_len /c\ 20603func_len ()\ 20604{\ 20605 func_len_result=${#1}\ 20606} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 20607 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20608 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20609test 0 -eq $? || _lt_function_replace_fail=: 20610 20611fi 20612 20613if test x"$lt_shell_append" = xyes; then 20614 sed -e '/^func_append ()$/,/^} # func_append /c\ 20615func_append ()\ 20616{\ 20617 eval "${1}+=\\${2}"\ 20618} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 20619 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20620 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20621test 0 -eq $? || _lt_function_replace_fail=: 20622 20623 20624 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 20625func_append_quoted ()\ 20626{\ 20627\ func_quote_for_eval "${2}"\ 20628\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 20629} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 20630 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20631 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20632test 0 -eq $? || _lt_function_replace_fail=: 20633 20634 20635 # Save a `func_append' function call where possible by direct use of '+=' 20636 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 20637 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20638 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20639 test 0 -eq $? || _lt_function_replace_fail=: 20640else 20641 # Save a `func_append' function call even when '+=' is not available 20642 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 20643 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20644 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20645 test 0 -eq $? || _lt_function_replace_fail=: 20646fi 20647 20648if test x"$_lt_function_replace_fail" = x":"; then 20649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 20650$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 20651fi 20652 20653 20654 mv -f "$cfgfile" "$ofile" || 20655 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20656 chmod +x "$ofile" 20657 20658 ;; 20659 20660 esac 20661done # for ac_tag 20662 20663 20664as_fn_exit 0 20665_ACEOF 20666ac_clean_files=$ac_clean_files_save 20667 20668test $ac_write_fail = 0 || 20669 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20670 20671 20672# configure is writing to config.log, and then calls config.status. 20673# config.status does its own redirection, appending to config.log. 20674# Unfortunately, on DOS this fails, as config.log is still kept open 20675# by configure, so config.status won't be able to write to it; its 20676# output is simply discarded. So we exec the FD to /dev/null, 20677# effectively closing config.log, so it can be properly (re)opened and 20678# appended to by config.status. When coming back to configure, we 20679# need to make the FD available again. 20680if test "$no_create" != yes; then 20681 ac_cs_success=: 20682 ac_config_status_args= 20683 test "$silent" = yes && 20684 ac_config_status_args="$ac_config_status_args --quiet" 20685 exec 5>/dev/null 20686 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20687 exec 5>>config.log 20688 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20689 # would make configure fail if this is the last instruction. 20690 $ac_cs_success || as_fn_exit 1 20691fi 20692if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20694$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20695fi 20696 20697