configure revision edce3322
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libXpm 3.5.13. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXpm/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: https://gitlab.freedesktop.org/xorg/lib/libXpm/issues 279$0: about your system, including any error possibly output 280$0: before this message. Then install a modern shell, or 281$0: manually run the script under such a shell if you do 282$0: have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306# as_fn_set_status STATUS 307# ----------------------- 308# Set $? to STATUS, without forking. 309as_fn_set_status () 310{ 311 return $1 312} # as_fn_set_status 313 314# as_fn_exit STATUS 315# ----------------- 316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317as_fn_exit () 318{ 319 set +e 320 as_fn_set_status $1 321 exit $1 322} # as_fn_exit 323 324# as_fn_mkdir_p 325# ------------- 326# Create "$as_dir" as a directory, including parents if necessary. 327as_fn_mkdir_p () 328{ 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346$as_echo X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370} # as_fn_mkdir_p 371 372# as_fn_executable_p FILE 373# ----------------------- 374# Test if FILE is an executable regular file. 375as_fn_executable_p () 376{ 377 test -f "$1" && test -x "$1" 378} # as_fn_executable_p 379# as_fn_append VAR VALUE 380# ---------------------- 381# Append the text in VALUE to the end of the definition contained in VAR. Take 382# advantage of any shell optimizations that allow amortized linear growth over 383# repeated appends, instead of the typical quadratic growth present in naive 384# implementations. 385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386 eval 'as_fn_append () 387 { 388 eval $1+=\$2 389 }' 390else 391 as_fn_append () 392 { 393 eval $1=\$$1\$2 394 } 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407else 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412fi # as_fn_arith 413 414 415# as_fn_error STATUS ERROR [LINENO LOG_FD] 416# ---------------------------------------- 417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 419# script with STATUS, using 1 if that was 0. 420as_fn_error () 421{ 422 as_status=$1; test $as_status -eq 0 && as_status=1 423 if test "$4"; then 424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 426 fi 427 $as_echo "$as_me: error: $2" >&2 428 as_fn_exit $as_status 429} # as_fn_error 430 431if expr a : '\(a\)' >/dev/null 2>&1 && 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then 433 as_expr=expr 434else 435 as_expr=false 436fi 437 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439 as_basename=basename 440else 441 as_basename=false 442fi 443 444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445 as_dirname=dirname 446else 447 as_dirname=false 448fi 449 450as_me=`$as_basename -- "$0" || 451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 452 X"$0" : 'X\(//\)$' \| \ 453 X"$0" : 'X\(/\)' \| . 2>/dev/null || 454$as_echo X/"$0" | 455 sed '/^.*\/\([^/][^/]*\)\/*$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\/\)$/{ 460 s//\1/ 461 q 462 } 463 /^X\/\(\/\).*/{ 464 s//\1/ 465 q 466 } 467 s/.*/./; q'` 468 469# Avoid depending upon Character Ranges. 470as_cr_letters='abcdefghijklmnopqrstuvwxyz' 471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472as_cr_Letters=$as_cr_letters$as_cr_LETTERS 473as_cr_digits='0123456789' 474as_cr_alnum=$as_cr_Letters$as_cr_digits 475 476 477 as_lineno_1=$LINENO as_lineno_1a=$LINENO 478 as_lineno_2=$LINENO as_lineno_2a=$LINENO 479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 482 sed -n ' 483 p 484 /[$]LINENO/= 485 ' <$as_myself | 486 sed ' 487 s/[$]LINENO.*/&-/ 488 t lineno 489 b 490 :lineno 491 N 492 :loop 493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 494 t loop 495 s/-\n.*// 496 ' >$as_me.lineno && 497 chmod +x "$as_me.lineno" || 498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 499 500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 501 # already done that, so ensure we don't try to do so again and fall 502 # in an infinite loop. This has already happened in practice. 503 _as_can_reexec=no; export _as_can_reexec 504 # Don't try to exec as it changes $[0], causing all sort of problems 505 # (the dirname of $[0] is not the place where we might find the 506 # original and so on. Autoconf is especially sensitive to this). 507 . "./$as_me.lineno" 508 # Exit status is that of the last command. 509 exit 510} 511 512ECHO_C= ECHO_N= ECHO_T= 513case `echo -n x` in #((((( 514-n*) 515 case `echo 'xy\c'` in 516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 517 xy) ECHO_C='\c';; 518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 519 ECHO_T=' ';; 520 esac;; 521*) 522 ECHO_N='-n';; 523esac 524 525rm -f conf$$ conf$$.exe conf$$.file 526if test -d conf$$.dir; then 527 rm -f conf$$.dir/conf$$.file 528else 529 rm -f conf$$.dir 530 mkdir conf$$.dir 2>/dev/null 531fi 532if (echo >conf$$.file) 2>/dev/null; then 533 if ln -s conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s='ln -s' 535 # ... but there are two gotchas: 536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 538 # In both cases, we have to default to `cp -pR'. 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 540 as_ln_s='cp -pR' 541 elif ln conf$$.file conf$$ 2>/dev/null; then 542 as_ln_s=ln 543 else 544 as_ln_s='cp -pR' 545 fi 546else 547 as_ln_s='cp -pR' 548fi 549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550rmdir conf$$.dir 2>/dev/null 551 552if mkdir -p . 2>/dev/null; then 553 as_mkdir_p='mkdir -p "$as_dir"' 554else 555 test -d ./-p && rmdir ./-p 556 as_mkdir_p=false 557fi 558 559as_test_x='test -x' 560as_executable_p=as_fn_executable_p 561 562# Sed expression to map a string onto a valid CPP name. 563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 564 565# Sed expression to map a string onto a valid variable name. 566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567 568SHELL=${CONFIG_SHELL-/bin/sh} 569 570 571test -n "$DJDIR" || exec 7<&0 </dev/null 572exec 6>&1 573 574# Name of the host. 575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 576# so uname gets run too. 577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 578 579# 580# Initializations. 581# 582ac_default_prefix=/usr/local 583ac_clean_files= 584ac_config_libobj_dir=. 585LIBOBJS= 586cross_compiling=no 587subdirs= 588MFLAGS= 589MAKEFLAGS= 590 591# Identity of this package. 592PACKAGE_NAME='libXpm' 593PACKAGE_TARNAME='libXpm' 594PACKAGE_VERSION='3.5.13' 595PACKAGE_STRING='libXpm 3.5.13' 596PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libXpm/issues' 597PACKAGE_URL='' 598 599ac_unique_file="Makefile.am" 600# Factoring default headers for most tests. 601ac_includes_default="\ 602#include <stdio.h> 603#ifdef HAVE_SYS_TYPES_H 604# include <sys/types.h> 605#endif 606#ifdef HAVE_SYS_STAT_H 607# include <sys/stat.h> 608#endif 609#ifdef STDC_HEADERS 610# include <stdlib.h> 611# include <stddef.h> 612#else 613# ifdef HAVE_STDLIB_H 614# include <stdlib.h> 615# endif 616#endif 617#ifdef HAVE_STRING_H 618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 619# include <memory.h> 620# endif 621# include <string.h> 622#endif 623#ifdef HAVE_STRINGS_H 624# include <strings.h> 625#endif 626#ifdef HAVE_INTTYPES_H 627# include <inttypes.h> 628#endif 629#ifdef HAVE_STDINT_H 630# include <stdint.h> 631#endif 632#ifdef HAVE_UNISTD_H 633# include <unistd.h> 634#endif" 635 636ac_subst_vars='am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639LIBOBJS 640USE_GETTEXT_FALSE 641USE_GETTEXT_TRUE 642LOCALEDIR 643BUILD_SXPM_FALSE 644BUILD_SXPM_TRUE 645SXPM_LIBS 646SXPM_CFLAGS 647XPM_LIBS 648XPM_CFLAGS 649MAN_SUBSTS 650XORG_MAN_PAGE 651ADMIN_MAN_DIR 652DRIVER_MAN_DIR 653MISC_MAN_DIR 654FILE_MAN_DIR 655LIB_MAN_DIR 656APP_MAN_DIR 657ADMIN_MAN_SUFFIX 658DRIVER_MAN_SUFFIX 659MISC_MAN_SUFFIX 660FILE_MAN_SUFFIX 661LIB_MAN_SUFFIX 662APP_MAN_SUFFIX 663INSTALL_CMD 664PKG_CONFIG_LIBDIR 665PKG_CONFIG_PATH 666PKG_CONFIG 667CHANGELOG_CMD 668STRICT_CFLAGS 669CWARNFLAGS 670BASE_CFLAGS 671CPP 672LT_SYS_LIBRARY_PATH 673OTOOL64 674OTOOL 675LIPO 676NMEDIT 677DSYMUTIL 678MANIFEST_TOOL 679RANLIB 680ac_ct_AR 681AR 682DLLTOOL 683OBJDUMP 684LN_S 685NM 686ac_ct_DUMPBIN 687DUMPBIN 688LD 689FGREP 690EGREP 691GREP 692SED 693am__fastdepCC_FALSE 694am__fastdepCC_TRUE 695CCDEPMODE 696am__nodep 697AMDEPBACKSLASH 698AMDEP_FALSE 699AMDEP_TRUE 700am__include 701DEPDIR 702OBJEXT 703EXEEXT 704ac_ct_CC 705CPPFLAGS 706LDFLAGS 707CFLAGS 708CC 709host_os 710host_vendor 711host_cpu 712host 713build_os 714build_vendor 715build_cpu 716build 717LIBTOOL 718AM_BACKSLASH 719AM_DEFAULT_VERBOSITY 720AM_DEFAULT_V 721AM_V 722am__untar 723am__tar 724AMTAR 725am__leading_dot 726SET_MAKE 727AWK 728mkdir_p 729MKDIR_P 730INSTALL_STRIP_PROGRAM 731STRIP 732install_sh 733MAKEINFO 734AUTOHEADER 735AUTOMAKE 736AUTOCONF 737ACLOCAL 738VERSION 739PACKAGE 740CYGPATH_W 741am__isrc 742INSTALL_DATA 743INSTALL_SCRIPT 744INSTALL_PROGRAM 745target_alias 746host_alias 747build_alias 748LIBS 749ECHO_T 750ECHO_N 751ECHO_C 752DEFS 753mandir 754localedir 755libdir 756psdir 757pdfdir 758dvidir 759htmldir 760infodir 761docdir 762oldincludedir 763includedir 764localstatedir 765sharedstatedir 766sysconfdir 767datadir 768datarootdir 769libexecdir 770sbindir 771bindir 772program_transform_name 773prefix 774exec_prefix 775PACKAGE_URL 776PACKAGE_BUGREPORT 777PACKAGE_STRING 778PACKAGE_VERSION 779PACKAGE_TARNAME 780PACKAGE_NAME 781PATH_SEPARATOR 782SHELL 783am__quote' 784ac_subst_files='' 785ac_user_opts=' 786enable_option_checking 787enable_silent_rules 788enable_shared 789enable_static 790with_pic 791enable_fast_install 792with_aix_soname 793enable_dependency_tracking 794with_gnu_ld 795with_sysroot 796enable_libtool_lock 797enable_selective_werror 798enable_strict_compilation 799with_localedir 800enable_stat_zfile 801' 802 ac_precious_vars='build_alias 803host_alias 804target_alias 805CC 806CFLAGS 807LDFLAGS 808LIBS 809CPPFLAGS 810LT_SYS_LIBRARY_PATH 811CPP 812PKG_CONFIG 813PKG_CONFIG_PATH 814PKG_CONFIG_LIBDIR 815XPM_CFLAGS 816XPM_LIBS 817SXPM_CFLAGS 818SXPM_LIBS' 819 820 821# Initialize some variables set by options. 822ac_init_help= 823ac_init_version=false 824ac_unrecognized_opts= 825ac_unrecognized_sep= 826# The variables have the same names as the options, with 827# dashes changed to underlines. 828cache_file=/dev/null 829exec_prefix=NONE 830no_create= 831no_recursion= 832prefix=NONE 833program_prefix=NONE 834program_suffix=NONE 835program_transform_name=s,x,x, 836silent= 837site= 838srcdir= 839verbose= 840x_includes=NONE 841x_libraries=NONE 842 843# Installation directory options. 844# These are left unexpanded so users can "make install exec_prefix=/foo" 845# and all the variables that are supposed to be based on exec_prefix 846# by default will actually change. 847# Use braces instead of parens because sh, perl, etc. also accept them. 848# (The list follows the same order as the GNU Coding Standards.) 849bindir='${exec_prefix}/bin' 850sbindir='${exec_prefix}/sbin' 851libexecdir='${exec_prefix}/libexec' 852datarootdir='${prefix}/share' 853datadir='${datarootdir}' 854sysconfdir='${prefix}/etc' 855sharedstatedir='${prefix}/com' 856localstatedir='${prefix}/var' 857includedir='${prefix}/include' 858oldincludedir='/usr/include' 859docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 860infodir='${datarootdir}/info' 861htmldir='${docdir}' 862dvidir='${docdir}' 863pdfdir='${docdir}' 864psdir='${docdir}' 865libdir='${exec_prefix}/lib' 866localedir='${datarootdir}/locale' 867mandir='${datarootdir}/man' 868 869ac_prev= 870ac_dashdash= 871for ac_option 872do 873 # If the previous option needs an argument, assign it. 874 if test -n "$ac_prev"; then 875 eval $ac_prev=\$ac_option 876 ac_prev= 877 continue 878 fi 879 880 case $ac_option in 881 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 882 *=) ac_optarg= ;; 883 *) ac_optarg=yes ;; 884 esac 885 886 # Accept the important Cygnus configure options, so we can diagnose typos. 887 888 case $ac_dashdash$ac_option in 889 --) 890 ac_dashdash=yes ;; 891 892 -bindir | --bindir | --bindi | --bind | --bin | --bi) 893 ac_prev=bindir ;; 894 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 895 bindir=$ac_optarg ;; 896 897 -build | --build | --buil | --bui | --bu) 898 ac_prev=build_alias ;; 899 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 900 build_alias=$ac_optarg ;; 901 902 -cache-file | --cache-file | --cache-fil | --cache-fi \ 903 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 904 ac_prev=cache_file ;; 905 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 906 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 907 cache_file=$ac_optarg ;; 908 909 --config-cache | -C) 910 cache_file=config.cache ;; 911 912 -datadir | --datadir | --datadi | --datad) 913 ac_prev=datadir ;; 914 -datadir=* | --datadir=* | --datadi=* | --datad=*) 915 datadir=$ac_optarg ;; 916 917 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 918 | --dataroo | --dataro | --datar) 919 ac_prev=datarootdir ;; 920 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 921 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 922 datarootdir=$ac_optarg ;; 923 924 -disable-* | --disable-*) 925 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 926 # Reject names that are not valid shell variable names. 927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 928 as_fn_error $? "invalid feature name: $ac_useropt" 929 ac_useropt_orig=$ac_useropt 930 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 931 case $ac_user_opts in 932 *" 933"enable_$ac_useropt" 934"*) ;; 935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 936 ac_unrecognized_sep=', ';; 937 esac 938 eval enable_$ac_useropt=no ;; 939 940 -docdir | --docdir | --docdi | --doc | --do) 941 ac_prev=docdir ;; 942 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 943 docdir=$ac_optarg ;; 944 945 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 946 ac_prev=dvidir ;; 947 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 948 dvidir=$ac_optarg ;; 949 950 -enable-* | --enable-*) 951 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 952 # Reject names that are not valid shell variable names. 953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 954 as_fn_error $? "invalid feature name: $ac_useropt" 955 ac_useropt_orig=$ac_useropt 956 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 957 case $ac_user_opts in 958 *" 959"enable_$ac_useropt" 960"*) ;; 961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 962 ac_unrecognized_sep=', ';; 963 esac 964 eval enable_$ac_useropt=\$ac_optarg ;; 965 966 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 967 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 968 | --exec | --exe | --ex) 969 ac_prev=exec_prefix ;; 970 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 971 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 972 | --exec=* | --exe=* | --ex=*) 973 exec_prefix=$ac_optarg ;; 974 975 -gas | --gas | --ga | --g) 976 # Obsolete; use --with-gas. 977 with_gas=yes ;; 978 979 -help | --help | --hel | --he | -h) 980 ac_init_help=long ;; 981 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 982 ac_init_help=recursive ;; 983 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 984 ac_init_help=short ;; 985 986 -host | --host | --hos | --ho) 987 ac_prev=host_alias ;; 988 -host=* | --host=* | --hos=* | --ho=*) 989 host_alias=$ac_optarg ;; 990 991 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 992 ac_prev=htmldir ;; 993 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 994 | --ht=*) 995 htmldir=$ac_optarg ;; 996 997 -includedir | --includedir | --includedi | --included | --include \ 998 | --includ | --inclu | --incl | --inc) 999 ac_prev=includedir ;; 1000 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1001 | --includ=* | --inclu=* | --incl=* | --inc=*) 1002 includedir=$ac_optarg ;; 1003 1004 -infodir | --infodir | --infodi | --infod | --info | --inf) 1005 ac_prev=infodir ;; 1006 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1007 infodir=$ac_optarg ;; 1008 1009 -libdir | --libdir | --libdi | --libd) 1010 ac_prev=libdir ;; 1011 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1012 libdir=$ac_optarg ;; 1013 1014 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1015 | --libexe | --libex | --libe) 1016 ac_prev=libexecdir ;; 1017 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1018 | --libexe=* | --libex=* | --libe=*) 1019 libexecdir=$ac_optarg ;; 1020 1021 -localedir | --localedir | --localedi | --localed | --locale) 1022 ac_prev=localedir ;; 1023 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1024 localedir=$ac_optarg ;; 1025 1026 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1027 | --localstate | --localstat | --localsta | --localst | --locals) 1028 ac_prev=localstatedir ;; 1029 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1030 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1031 localstatedir=$ac_optarg ;; 1032 1033 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1034 ac_prev=mandir ;; 1035 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1036 mandir=$ac_optarg ;; 1037 1038 -nfp | --nfp | --nf) 1039 # Obsolete; use --without-fp. 1040 with_fp=no ;; 1041 1042 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1043 | --no-cr | --no-c | -n) 1044 no_create=yes ;; 1045 1046 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1047 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1048 no_recursion=yes ;; 1049 1050 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1051 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1052 | --oldin | --oldi | --old | --ol | --o) 1053 ac_prev=oldincludedir ;; 1054 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1055 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1056 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1057 oldincludedir=$ac_optarg ;; 1058 1059 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1060 ac_prev=prefix ;; 1061 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1062 prefix=$ac_optarg ;; 1063 1064 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1065 | --program-pre | --program-pr | --program-p) 1066 ac_prev=program_prefix ;; 1067 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1068 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1069 program_prefix=$ac_optarg ;; 1070 1071 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1072 | --program-suf | --program-su | --program-s) 1073 ac_prev=program_suffix ;; 1074 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1075 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1076 program_suffix=$ac_optarg ;; 1077 1078 -program-transform-name | --program-transform-name \ 1079 | --program-transform-nam | --program-transform-na \ 1080 | --program-transform-n | --program-transform- \ 1081 | --program-transform | --program-transfor \ 1082 | --program-transfo | --program-transf \ 1083 | --program-trans | --program-tran \ 1084 | --progr-tra | --program-tr | --program-t) 1085 ac_prev=program_transform_name ;; 1086 -program-transform-name=* | --program-transform-name=* \ 1087 | --program-transform-nam=* | --program-transform-na=* \ 1088 | --program-transform-n=* | --program-transform-=* \ 1089 | --program-transform=* | --program-transfor=* \ 1090 | --program-transfo=* | --program-transf=* \ 1091 | --program-trans=* | --program-tran=* \ 1092 | --progr-tra=* | --program-tr=* | --program-t=*) 1093 program_transform_name=$ac_optarg ;; 1094 1095 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1096 ac_prev=pdfdir ;; 1097 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1098 pdfdir=$ac_optarg ;; 1099 1100 -psdir | --psdir | --psdi | --psd | --ps) 1101 ac_prev=psdir ;; 1102 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1103 psdir=$ac_optarg ;; 1104 1105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1106 | -silent | --silent | --silen | --sile | --sil) 1107 silent=yes ;; 1108 1109 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1110 ac_prev=sbindir ;; 1111 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1112 | --sbi=* | --sb=*) 1113 sbindir=$ac_optarg ;; 1114 1115 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1116 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1117 | --sharedst | --shareds | --shared | --share | --shar \ 1118 | --sha | --sh) 1119 ac_prev=sharedstatedir ;; 1120 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1121 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1122 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1123 | --sha=* | --sh=*) 1124 sharedstatedir=$ac_optarg ;; 1125 1126 -site | --site | --sit) 1127 ac_prev=site ;; 1128 -site=* | --site=* | --sit=*) 1129 site=$ac_optarg ;; 1130 1131 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1132 ac_prev=srcdir ;; 1133 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1134 srcdir=$ac_optarg ;; 1135 1136 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1137 | --syscon | --sysco | --sysc | --sys | --sy) 1138 ac_prev=sysconfdir ;; 1139 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1140 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1141 sysconfdir=$ac_optarg ;; 1142 1143 -target | --target | --targe | --targ | --tar | --ta | --t) 1144 ac_prev=target_alias ;; 1145 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1146 target_alias=$ac_optarg ;; 1147 1148 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1149 verbose=yes ;; 1150 1151 -version | --version | --versio | --versi | --vers | -V) 1152 ac_init_version=: ;; 1153 1154 -with-* | --with-*) 1155 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1156 # Reject names that are not valid shell variable names. 1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1158 as_fn_error $? "invalid package name: $ac_useropt" 1159 ac_useropt_orig=$ac_useropt 1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1161 case $ac_user_opts in 1162 *" 1163"with_$ac_useropt" 1164"*) ;; 1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1166 ac_unrecognized_sep=', ';; 1167 esac 1168 eval with_$ac_useropt=\$ac_optarg ;; 1169 1170 -without-* | --without-*) 1171 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1172 # Reject names that are not valid shell variable names. 1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1174 as_fn_error $? "invalid package name: $ac_useropt" 1175 ac_useropt_orig=$ac_useropt 1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1177 case $ac_user_opts in 1178 *" 1179"with_$ac_useropt" 1180"*) ;; 1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1182 ac_unrecognized_sep=', ';; 1183 esac 1184 eval with_$ac_useropt=no ;; 1185 1186 --x) 1187 # Obsolete; use --with-x. 1188 with_x=yes ;; 1189 1190 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1191 | --x-incl | --x-inc | --x-in | --x-i) 1192 ac_prev=x_includes ;; 1193 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1194 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1195 x_includes=$ac_optarg ;; 1196 1197 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1198 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1199 ac_prev=x_libraries ;; 1200 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1201 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1202 x_libraries=$ac_optarg ;; 1203 1204 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1205Try \`$0 --help' for more information" 1206 ;; 1207 1208 *=*) 1209 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1210 # Reject names that are not valid shell variable names. 1211 case $ac_envvar in #( 1212 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1213 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1214 esac 1215 eval $ac_envvar=\$ac_optarg 1216 export $ac_envvar ;; 1217 1218 *) 1219 # FIXME: should be removed in autoconf 3.0. 1220 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1221 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1222 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1223 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1224 ;; 1225 1226 esac 1227done 1228 1229if test -n "$ac_prev"; then 1230 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1231 as_fn_error $? "missing argument to $ac_option" 1232fi 1233 1234if test -n "$ac_unrecognized_opts"; then 1235 case $enable_option_checking in 1236 no) ;; 1237 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1238 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1239 esac 1240fi 1241 1242# Check all directory arguments for consistency. 1243for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1244 datadir sysconfdir sharedstatedir localstatedir includedir \ 1245 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1246 libdir localedir mandir 1247do 1248 eval ac_val=\$$ac_var 1249 # Remove trailing slashes. 1250 case $ac_val in 1251 */ ) 1252 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1253 eval $ac_var=\$ac_val;; 1254 esac 1255 # Be sure to have absolute directory names. 1256 case $ac_val in 1257 [\\/$]* | ?:[\\/]* ) continue;; 1258 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1259 esac 1260 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1261done 1262 1263# There might be people who depend on the old broken behavior: `$host' 1264# used to hold the argument of --host etc. 1265# FIXME: To remove some day. 1266build=$build_alias 1267host=$host_alias 1268target=$target_alias 1269 1270# FIXME: To remove some day. 1271if test "x$host_alias" != x; then 1272 if test "x$build_alias" = x; then 1273 cross_compiling=maybe 1274 elif test "x$build_alias" != "x$host_alias"; then 1275 cross_compiling=yes 1276 fi 1277fi 1278 1279ac_tool_prefix= 1280test -n "$host_alias" && ac_tool_prefix=$host_alias- 1281 1282test "$silent" = yes && exec 6>/dev/null 1283 1284 1285ac_pwd=`pwd` && test -n "$ac_pwd" && 1286ac_ls_di=`ls -di .` && 1287ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1288 as_fn_error $? "working directory cannot be determined" 1289test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1290 as_fn_error $? "pwd does not report name of working directory" 1291 1292 1293# Find the source files, if location was not specified. 1294if test -z "$srcdir"; then 1295 ac_srcdir_defaulted=yes 1296 # Try the directory containing this script, then the parent directory. 1297 ac_confdir=`$as_dirname -- "$as_myself" || 1298$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1299 X"$as_myself" : 'X\(//\)[^/]' \| \ 1300 X"$as_myself" : 'X\(//\)$' \| \ 1301 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1302$as_echo X"$as_myself" | 1303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1304 s//\1/ 1305 q 1306 } 1307 /^X\(\/\/\)[^/].*/{ 1308 s//\1/ 1309 q 1310 } 1311 /^X\(\/\/\)$/{ 1312 s//\1/ 1313 q 1314 } 1315 /^X\(\/\).*/{ 1316 s//\1/ 1317 q 1318 } 1319 s/.*/./; q'` 1320 srcdir=$ac_confdir 1321 if test ! -r "$srcdir/$ac_unique_file"; then 1322 srcdir=.. 1323 fi 1324else 1325 ac_srcdir_defaulted=no 1326fi 1327if test ! -r "$srcdir/$ac_unique_file"; then 1328 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1329 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1330fi 1331ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1332ac_abs_confdir=`( 1333 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1334 pwd)` 1335# When building in place, set srcdir=. 1336if test "$ac_abs_confdir" = "$ac_pwd"; then 1337 srcdir=. 1338fi 1339# Remove unnecessary trailing slashes from srcdir. 1340# Double slashes in file names in object file debugging info 1341# mess up M-x gdb in Emacs. 1342case $srcdir in 1343*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1344esac 1345for ac_var in $ac_precious_vars; do 1346 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1347 eval ac_env_${ac_var}_value=\$${ac_var} 1348 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1349 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1350done 1351 1352# 1353# Report the --help message. 1354# 1355if test "$ac_init_help" = "long"; then 1356 # Omit some internal or obsolete options to make the list less imposing. 1357 # This message is too long to be a string in the A/UX 3.1 sh. 1358 cat <<_ACEOF 1359\`configure' configures libXpm 3.5.13 to adapt to many kinds of systems. 1360 1361Usage: $0 [OPTION]... [VAR=VALUE]... 1362 1363To assign environment variables (e.g., CC, CFLAGS...), specify them as 1364VAR=VALUE. See below for descriptions of some of the useful variables. 1365 1366Defaults for the options are specified in brackets. 1367 1368Configuration: 1369 -h, --help display this help and exit 1370 --help=short display options specific to this package 1371 --help=recursive display the short help of all the included packages 1372 -V, --version display version information and exit 1373 -q, --quiet, --silent do not print \`checking ...' messages 1374 --cache-file=FILE cache test results in FILE [disabled] 1375 -C, --config-cache alias for \`--cache-file=config.cache' 1376 -n, --no-create do not create output files 1377 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1378 1379Installation directories: 1380 --prefix=PREFIX install architecture-independent files in PREFIX 1381 [$ac_default_prefix] 1382 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1383 [PREFIX] 1384 1385By default, \`make install' will install all the files in 1386\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1387an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1388for instance \`--prefix=\$HOME'. 1389 1390For better control, use the options below. 1391 1392Fine tuning of the installation directories: 1393 --bindir=DIR user executables [EPREFIX/bin] 1394 --sbindir=DIR system admin executables [EPREFIX/sbin] 1395 --libexecdir=DIR program executables [EPREFIX/libexec] 1396 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1397 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1398 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1399 --libdir=DIR object code libraries [EPREFIX/lib] 1400 --includedir=DIR C header files [PREFIX/include] 1401 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1402 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1403 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1404 --infodir=DIR info documentation [DATAROOTDIR/info] 1405 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1406 --mandir=DIR man documentation [DATAROOTDIR/man] 1407 --docdir=DIR documentation root [DATAROOTDIR/doc/libXpm] 1408 --htmldir=DIR html documentation [DOCDIR] 1409 --dvidir=DIR dvi documentation [DOCDIR] 1410 --pdfdir=DIR pdf documentation [DOCDIR] 1411 --psdir=DIR ps documentation [DOCDIR] 1412_ACEOF 1413 1414 cat <<\_ACEOF 1415 1416Program names: 1417 --program-prefix=PREFIX prepend PREFIX to installed program names 1418 --program-suffix=SUFFIX append SUFFIX to installed program names 1419 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1420 1421System types: 1422 --build=BUILD configure for building on BUILD [guessed] 1423 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1424_ACEOF 1425fi 1426 1427if test -n "$ac_init_help"; then 1428 case $ac_init_help in 1429 short | recursive ) echo "Configuration of libXpm 3.5.13:";; 1430 esac 1431 cat <<\_ACEOF 1432 1433Optional Features: 1434 --disable-option-checking ignore unrecognized --enable/--with options 1435 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1436 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1437 --enable-silent-rules less verbose build output (undo: "make V=1") 1438 --disable-silent-rules verbose build output (undo: "make V=0") 1439 --enable-shared[=PKGS] build shared libraries [default=yes] 1440 --enable-static[=PKGS] build static libraries [default=yes] 1441 --enable-fast-install[=PKGS] 1442 optimize for fast installation [default=yes] 1443 --enable-dependency-tracking 1444 do not reject slow dependency extractors 1445 --disable-dependency-tracking 1446 speeds up one-time build 1447 --disable-libtool-lock avoid locking (might break parallel builds) 1448 --disable-selective-werror 1449 Turn off selective compiler errors. (default: 1450 enabled) 1451 --enable-strict-compilation 1452 Enable all warnings from compiler and make them 1453 errors (default: disabled) 1454 --enable-stat-zfile Search for files with .Z & .gz extensions 1455 automatically [default=yes] 1456 1457Optional Packages: 1458 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1459 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1460 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1461 both] 1462 --with-aix-soname=aix|svr4|both 1463 shared library versioning (aka "SONAME") variant to 1464 provide on AIX, [default=aix]. 1465 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1466 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1467 compiler's sysroot if not specified). 1468 --with-localedir=<path> Path to install message files in (default: 1469 datadir/locale) 1470 1471Some influential environment variables: 1472 CC C compiler command 1473 CFLAGS C compiler flags 1474 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1475 nonstandard directory <lib dir> 1476 LIBS libraries to pass to the linker, e.g. -l<library> 1477 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1478 you have headers in a nonstandard directory <include dir> 1479 LT_SYS_LIBRARY_PATH 1480 User-defined run-time library search path. 1481 CPP C preprocessor 1482 PKG_CONFIG path to pkg-config utility 1483 PKG_CONFIG_PATH 1484 directories to add to pkg-config's search path 1485 PKG_CONFIG_LIBDIR 1486 path overriding pkg-config's built-in search path 1487 XPM_CFLAGS C compiler flags for XPM, overriding pkg-config 1488 XPM_LIBS linker flags for XPM, overriding pkg-config 1489 SXPM_CFLAGS C compiler flags for SXPM, overriding pkg-config 1490 SXPM_LIBS linker flags for SXPM, overriding pkg-config 1491 1492Use these variables to override the choices made by `configure' or to help 1493it to find libraries and programs with nonstandard names/locations. 1494 1495Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXpm/issues>. 1496_ACEOF 1497ac_status=$? 1498fi 1499 1500if test "$ac_init_help" = "recursive"; then 1501 # If there are subdirs, report their specific --help. 1502 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1503 test -d "$ac_dir" || 1504 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1505 continue 1506 ac_builddir=. 1507 1508case "$ac_dir" in 1509.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1510*) 1511 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1512 # A ".." for each directory in $ac_dir_suffix. 1513 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1514 case $ac_top_builddir_sub in 1515 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1516 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1517 esac ;; 1518esac 1519ac_abs_top_builddir=$ac_pwd 1520ac_abs_builddir=$ac_pwd$ac_dir_suffix 1521# for backward compatibility: 1522ac_top_builddir=$ac_top_build_prefix 1523 1524case $srcdir in 1525 .) # We are building in place. 1526 ac_srcdir=. 1527 ac_top_srcdir=$ac_top_builddir_sub 1528 ac_abs_top_srcdir=$ac_pwd ;; 1529 [\\/]* | ?:[\\/]* ) # Absolute name. 1530 ac_srcdir=$srcdir$ac_dir_suffix; 1531 ac_top_srcdir=$srcdir 1532 ac_abs_top_srcdir=$srcdir ;; 1533 *) # Relative name. 1534 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1535 ac_top_srcdir=$ac_top_build_prefix$srcdir 1536 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1537esac 1538ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1539 1540 cd "$ac_dir" || { ac_status=$?; continue; } 1541 # Check for guested configure. 1542 if test -f "$ac_srcdir/configure.gnu"; then 1543 echo && 1544 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1545 elif test -f "$ac_srcdir/configure"; then 1546 echo && 1547 $SHELL "$ac_srcdir/configure" --help=recursive 1548 else 1549 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1550 fi || ac_status=$? 1551 cd "$ac_pwd" || { ac_status=$?; break; } 1552 done 1553fi 1554 1555test -n "$ac_init_help" && exit $ac_status 1556if $ac_init_version; then 1557 cat <<\_ACEOF 1558libXpm configure 3.5.13 1559generated by GNU Autoconf 2.69 1560 1561Copyright (C) 2012 Free Software Foundation, Inc. 1562This configure script is free software; the Free Software Foundation 1563gives unlimited permission to copy, distribute and modify it. 1564_ACEOF 1565 exit 1566fi 1567 1568## ------------------------ ## 1569## Autoconf initialization. ## 1570## ------------------------ ## 1571 1572# ac_fn_c_try_compile LINENO 1573# -------------------------- 1574# Try to compile conftest.$ac_ext, and return whether this succeeded. 1575ac_fn_c_try_compile () 1576{ 1577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1578 rm -f conftest.$ac_objext 1579 if { { ac_try="$ac_compile" 1580case "(($ac_try" in 1581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1582 *) ac_try_echo=$ac_try;; 1583esac 1584eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1585$as_echo "$ac_try_echo"; } >&5 1586 (eval "$ac_compile") 2>conftest.err 1587 ac_status=$? 1588 if test -s conftest.err; then 1589 grep -v '^ *+' conftest.err >conftest.er1 1590 cat conftest.er1 >&5 1591 mv -f conftest.er1 conftest.err 1592 fi 1593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1594 test $ac_status = 0; } && { 1595 test -z "$ac_c_werror_flag" || 1596 test ! -s conftest.err 1597 } && test -s conftest.$ac_objext; then : 1598 ac_retval=0 1599else 1600 $as_echo "$as_me: failed program was:" >&5 1601sed 's/^/| /' conftest.$ac_ext >&5 1602 1603 ac_retval=1 1604fi 1605 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1606 as_fn_set_status $ac_retval 1607 1608} # ac_fn_c_try_compile 1609 1610# ac_fn_c_try_link LINENO 1611# ----------------------- 1612# Try to link conftest.$ac_ext, and return whether this succeeded. 1613ac_fn_c_try_link () 1614{ 1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1616 rm -f conftest.$ac_objext conftest$ac_exeext 1617 if { { ac_try="$ac_link" 1618case "(($ac_try" in 1619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1620 *) ac_try_echo=$ac_try;; 1621esac 1622eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1623$as_echo "$ac_try_echo"; } >&5 1624 (eval "$ac_link") 2>conftest.err 1625 ac_status=$? 1626 if test -s conftest.err; then 1627 grep -v '^ *+' conftest.err >conftest.er1 1628 cat conftest.er1 >&5 1629 mv -f conftest.er1 conftest.err 1630 fi 1631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1632 test $ac_status = 0; } && { 1633 test -z "$ac_c_werror_flag" || 1634 test ! -s conftest.err 1635 } && test -s conftest$ac_exeext && { 1636 test "$cross_compiling" = yes || 1637 test -x conftest$ac_exeext 1638 }; then : 1639 ac_retval=0 1640else 1641 $as_echo "$as_me: failed program was:" >&5 1642sed 's/^/| /' conftest.$ac_ext >&5 1643 1644 ac_retval=1 1645fi 1646 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1647 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1648 # interfere with the next link command; also delete a directory that is 1649 # left behind by Apple's compiler. We do this before executing the actions. 1650 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1652 as_fn_set_status $ac_retval 1653 1654} # ac_fn_c_try_link 1655 1656# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1657# ------------------------------------------------------- 1658# Tests whether HEADER exists and can be compiled using the include files in 1659# INCLUDES, setting the cache variable VAR accordingly. 1660ac_fn_c_check_header_compile () 1661{ 1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1664$as_echo_n "checking for $2... " >&6; } 1665if eval \${$3+:} false; then : 1666 $as_echo_n "(cached) " >&6 1667else 1668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1669/* end confdefs.h. */ 1670$4 1671#include <$2> 1672_ACEOF 1673if ac_fn_c_try_compile "$LINENO"; then : 1674 eval "$3=yes" 1675else 1676 eval "$3=no" 1677fi 1678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1679fi 1680eval ac_res=\$$3 1681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1682$as_echo "$ac_res" >&6; } 1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1684 1685} # ac_fn_c_check_header_compile 1686 1687# ac_fn_c_try_cpp LINENO 1688# ---------------------- 1689# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1690ac_fn_c_try_cpp () 1691{ 1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1693 if { { ac_try="$ac_cpp conftest.$ac_ext" 1694case "(($ac_try" in 1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1696 *) ac_try_echo=$ac_try;; 1697esac 1698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1699$as_echo "$ac_try_echo"; } >&5 1700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1701 ac_status=$? 1702 if test -s conftest.err; then 1703 grep -v '^ *+' conftest.err >conftest.er1 1704 cat conftest.er1 >&5 1705 mv -f conftest.er1 conftest.err 1706 fi 1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1708 test $ac_status = 0; } > conftest.i && { 1709 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1710 test ! -s conftest.err 1711 }; then : 1712 ac_retval=0 1713else 1714 $as_echo "$as_me: failed program was:" >&5 1715sed 's/^/| /' conftest.$ac_ext >&5 1716 1717 ac_retval=1 1718fi 1719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1720 as_fn_set_status $ac_retval 1721 1722} # ac_fn_c_try_cpp 1723 1724# ac_fn_c_try_run LINENO 1725# ---------------------- 1726# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1727# that executables *can* be run. 1728ac_fn_c_try_run () 1729{ 1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1731 if { { ac_try="$ac_link" 1732case "(($ac_try" in 1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1734 *) ac_try_echo=$ac_try;; 1735esac 1736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1737$as_echo "$ac_try_echo"; } >&5 1738 (eval "$ac_link") 2>&5 1739 ac_status=$? 1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1741 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1742 { { case "(($ac_try" in 1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1744 *) ac_try_echo=$ac_try;; 1745esac 1746eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1747$as_echo "$ac_try_echo"; } >&5 1748 (eval "$ac_try") 2>&5 1749 ac_status=$? 1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1751 test $ac_status = 0; }; }; then : 1752 ac_retval=0 1753else 1754 $as_echo "$as_me: program exited with status $ac_status" >&5 1755 $as_echo "$as_me: failed program was:" >&5 1756sed 's/^/| /' conftest.$ac_ext >&5 1757 1758 ac_retval=$ac_status 1759fi 1760 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1762 as_fn_set_status $ac_retval 1763 1764} # ac_fn_c_try_run 1765 1766# ac_fn_c_check_func LINENO FUNC VAR 1767# ---------------------------------- 1768# Tests whether FUNC exists, setting the cache variable VAR accordingly 1769ac_fn_c_check_func () 1770{ 1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1773$as_echo_n "checking for $2... " >&6; } 1774if eval \${$3+:} false; then : 1775 $as_echo_n "(cached) " >&6 1776else 1777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1778/* end confdefs.h. */ 1779/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1780 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1781#define $2 innocuous_$2 1782 1783/* System header to define __stub macros and hopefully few prototypes, 1784 which can conflict with char $2 (); below. 1785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1786 <limits.h> exists even on freestanding compilers. */ 1787 1788#ifdef __STDC__ 1789# include <limits.h> 1790#else 1791# include <assert.h> 1792#endif 1793 1794#undef $2 1795 1796/* Override any GCC internal prototype to avoid an error. 1797 Use char because int might match the return type of a GCC 1798 builtin and then its argument prototype would still apply. */ 1799#ifdef __cplusplus 1800extern "C" 1801#endif 1802char $2 (); 1803/* The GNU C library defines this for functions which it implements 1804 to always fail with ENOSYS. Some functions are actually named 1805 something starting with __ and the normal name is an alias. */ 1806#if defined __stub_$2 || defined __stub___$2 1807choke me 1808#endif 1809 1810int 1811main () 1812{ 1813return $2 (); 1814 ; 1815 return 0; 1816} 1817_ACEOF 1818if ac_fn_c_try_link "$LINENO"; then : 1819 eval "$3=yes" 1820else 1821 eval "$3=no" 1822fi 1823rm -f core conftest.err conftest.$ac_objext \ 1824 conftest$ac_exeext conftest.$ac_ext 1825fi 1826eval ac_res=\$$3 1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1828$as_echo "$ac_res" >&6; } 1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1830 1831} # ac_fn_c_check_func 1832 1833# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1834# --------------------------------------------- 1835# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1836# accordingly. 1837ac_fn_c_check_decl () 1838{ 1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1840 as_decl_name=`echo $2|sed 's/ *(.*//'` 1841 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1843$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1844if eval \${$3+:} false; then : 1845 $as_echo_n "(cached) " >&6 1846else 1847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1848/* end confdefs.h. */ 1849$4 1850int 1851main () 1852{ 1853#ifndef $as_decl_name 1854#ifdef __cplusplus 1855 (void) $as_decl_use; 1856#else 1857 (void) $as_decl_name; 1858#endif 1859#endif 1860 1861 ; 1862 return 0; 1863} 1864_ACEOF 1865if ac_fn_c_try_compile "$LINENO"; then : 1866 eval "$3=yes" 1867else 1868 eval "$3=no" 1869fi 1870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1871fi 1872eval ac_res=\$$3 1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1874$as_echo "$ac_res" >&6; } 1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1876 1877} # ac_fn_c_check_decl 1878cat >config.log <<_ACEOF 1879This file contains any messages produced by compilers while 1880running configure, to aid debugging if configure makes a mistake. 1881 1882It was created by libXpm $as_me 3.5.13, which was 1883generated by GNU Autoconf 2.69. Invocation command line was 1884 1885 $ $0 $@ 1886 1887_ACEOF 1888exec 5>>config.log 1889{ 1890cat <<_ASUNAME 1891## --------- ## 1892## Platform. ## 1893## --------- ## 1894 1895hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1896uname -m = `(uname -m) 2>/dev/null || echo unknown` 1897uname -r = `(uname -r) 2>/dev/null || echo unknown` 1898uname -s = `(uname -s) 2>/dev/null || echo unknown` 1899uname -v = `(uname -v) 2>/dev/null || echo unknown` 1900 1901/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1902/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1903 1904/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1905/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1906/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1907/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1908/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1909/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1910/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1911 1912_ASUNAME 1913 1914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1915for as_dir in $PATH 1916do 1917 IFS=$as_save_IFS 1918 test -z "$as_dir" && as_dir=. 1919 $as_echo "PATH: $as_dir" 1920 done 1921IFS=$as_save_IFS 1922 1923} >&5 1924 1925cat >&5 <<_ACEOF 1926 1927 1928## ----------- ## 1929## Core tests. ## 1930## ----------- ## 1931 1932_ACEOF 1933 1934 1935# Keep a trace of the command line. 1936# Strip out --no-create and --no-recursion so they do not pile up. 1937# Strip out --silent because we don't want to record it for future runs. 1938# Also quote any args containing shell meta-characters. 1939# Make two passes to allow for proper duplicate-argument suppression. 1940ac_configure_args= 1941ac_configure_args0= 1942ac_configure_args1= 1943ac_must_keep_next=false 1944for ac_pass in 1 2 1945do 1946 for ac_arg 1947 do 1948 case $ac_arg in 1949 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1950 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1951 | -silent | --silent | --silen | --sile | --sil) 1952 continue ;; 1953 *\'*) 1954 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1955 esac 1956 case $ac_pass in 1957 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1958 2) 1959 as_fn_append ac_configure_args1 " '$ac_arg'" 1960 if test $ac_must_keep_next = true; then 1961 ac_must_keep_next=false # Got value, back to normal. 1962 else 1963 case $ac_arg in 1964 *=* | --config-cache | -C | -disable-* | --disable-* \ 1965 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1966 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1967 | -with-* | --with-* | -without-* | --without-* | --x) 1968 case "$ac_configure_args0 " in 1969 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1970 esac 1971 ;; 1972 -* ) ac_must_keep_next=true ;; 1973 esac 1974 fi 1975 as_fn_append ac_configure_args " '$ac_arg'" 1976 ;; 1977 esac 1978 done 1979done 1980{ ac_configure_args0=; unset ac_configure_args0;} 1981{ ac_configure_args1=; unset ac_configure_args1;} 1982 1983# When interrupted or exit'd, cleanup temporary files, and complete 1984# config.log. We remove comments because anyway the quotes in there 1985# would cause problems or look ugly. 1986# WARNING: Use '\'' to represent an apostrophe within the trap. 1987# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1988trap 'exit_status=$? 1989 # Save into config.log some information that might help in debugging. 1990 { 1991 echo 1992 1993 $as_echo "## ---------------- ## 1994## Cache variables. ## 1995## ---------------- ##" 1996 echo 1997 # The following way of writing the cache mishandles newlines in values, 1998( 1999 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2000 eval ac_val=\$$ac_var 2001 case $ac_val in #( 2002 *${as_nl}*) 2003 case $ac_var in #( 2004 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2005$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2006 esac 2007 case $ac_var in #( 2008 _ | IFS | as_nl) ;; #( 2009 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2010 *) { eval $ac_var=; unset $ac_var;} ;; 2011 esac ;; 2012 esac 2013 done 2014 (set) 2>&1 | 2015 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2016 *${as_nl}ac_space=\ *) 2017 sed -n \ 2018 "s/'\''/'\''\\\\'\'''\''/g; 2019 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2020 ;; #( 2021 *) 2022 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2023 ;; 2024 esac | 2025 sort 2026) 2027 echo 2028 2029 $as_echo "## ----------------- ## 2030## Output variables. ## 2031## ----------------- ##" 2032 echo 2033 for ac_var in $ac_subst_vars 2034 do 2035 eval ac_val=\$$ac_var 2036 case $ac_val in 2037 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2038 esac 2039 $as_echo "$ac_var='\''$ac_val'\''" 2040 done | sort 2041 echo 2042 2043 if test -n "$ac_subst_files"; then 2044 $as_echo "## ------------------- ## 2045## File substitutions. ## 2046## ------------------- ##" 2047 echo 2048 for ac_var in $ac_subst_files 2049 do 2050 eval ac_val=\$$ac_var 2051 case $ac_val in 2052 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2053 esac 2054 $as_echo "$ac_var='\''$ac_val'\''" 2055 done | sort 2056 echo 2057 fi 2058 2059 if test -s confdefs.h; then 2060 $as_echo "## ----------- ## 2061## confdefs.h. ## 2062## ----------- ##" 2063 echo 2064 cat confdefs.h 2065 echo 2066 fi 2067 test "$ac_signal" != 0 && 2068 $as_echo "$as_me: caught signal $ac_signal" 2069 $as_echo "$as_me: exit $exit_status" 2070 } >&5 2071 rm -f core *.core core.conftest.* && 2072 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2073 exit $exit_status 2074' 0 2075for ac_signal in 1 2 13 15; do 2076 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2077done 2078ac_signal=0 2079 2080# confdefs.h avoids OS command line length limits that DEFS can exceed. 2081rm -f -r conftest* confdefs.h 2082 2083$as_echo "/* confdefs.h */" > confdefs.h 2084 2085# Predefined preprocessor variables. 2086 2087cat >>confdefs.h <<_ACEOF 2088#define PACKAGE_NAME "$PACKAGE_NAME" 2089_ACEOF 2090 2091cat >>confdefs.h <<_ACEOF 2092#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2093_ACEOF 2094 2095cat >>confdefs.h <<_ACEOF 2096#define PACKAGE_VERSION "$PACKAGE_VERSION" 2097_ACEOF 2098 2099cat >>confdefs.h <<_ACEOF 2100#define PACKAGE_STRING "$PACKAGE_STRING" 2101_ACEOF 2102 2103cat >>confdefs.h <<_ACEOF 2104#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2105_ACEOF 2106 2107cat >>confdefs.h <<_ACEOF 2108#define PACKAGE_URL "$PACKAGE_URL" 2109_ACEOF 2110 2111 2112# Let the site file select an alternate cache file if it wants to. 2113# Prefer an explicitly selected file to automatically selected ones. 2114ac_site_file1=NONE 2115ac_site_file2=NONE 2116if test -n "$CONFIG_SITE"; then 2117 # We do not want a PATH search for config.site. 2118 case $CONFIG_SITE in #(( 2119 -*) ac_site_file1=./$CONFIG_SITE;; 2120 */*) ac_site_file1=$CONFIG_SITE;; 2121 *) ac_site_file1=./$CONFIG_SITE;; 2122 esac 2123elif test "x$prefix" != xNONE; then 2124 ac_site_file1=$prefix/share/config.site 2125 ac_site_file2=$prefix/etc/config.site 2126else 2127 ac_site_file1=$ac_default_prefix/share/config.site 2128 ac_site_file2=$ac_default_prefix/etc/config.site 2129fi 2130for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2131do 2132 test "x$ac_site_file" = xNONE && continue 2133 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2134 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2135$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2136 sed 's/^/| /' "$ac_site_file" >&5 2137 . "$ac_site_file" \ 2138 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2139$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2140as_fn_error $? "failed to load site script $ac_site_file 2141See \`config.log' for more details" "$LINENO" 5; } 2142 fi 2143done 2144 2145if test -r "$cache_file"; then 2146 # Some versions of bash will fail to source /dev/null (special files 2147 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2148 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2149 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2150$as_echo "$as_me: loading cache $cache_file" >&6;} 2151 case $cache_file in 2152 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2153 *) . "./$cache_file";; 2154 esac 2155 fi 2156else 2157 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2158$as_echo "$as_me: creating cache $cache_file" >&6;} 2159 >$cache_file 2160fi 2161 2162# Check that the precious variables saved in the cache have kept the same 2163# value. 2164ac_cache_corrupted=false 2165for ac_var in $ac_precious_vars; do 2166 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2167 eval ac_new_set=\$ac_env_${ac_var}_set 2168 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2169 eval ac_new_val=\$ac_env_${ac_var}_value 2170 case $ac_old_set,$ac_new_set in 2171 set,) 2172 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2173$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2174 ac_cache_corrupted=: ;; 2175 ,set) 2176 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2177$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2178 ac_cache_corrupted=: ;; 2179 ,);; 2180 *) 2181 if test "x$ac_old_val" != "x$ac_new_val"; then 2182 # differences in whitespace do not lead to failure. 2183 ac_old_val_w=`echo x $ac_old_val` 2184 ac_new_val_w=`echo x $ac_new_val` 2185 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2186 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2187$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2188 ac_cache_corrupted=: 2189 else 2190 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2191$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2192 eval $ac_var=\$ac_old_val 2193 fi 2194 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2195$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2196 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2197$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2198 fi;; 2199 esac 2200 # Pass precious variables to config.status. 2201 if test "$ac_new_set" = set; then 2202 case $ac_new_val in 2203 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2204 *) ac_arg=$ac_var=$ac_new_val ;; 2205 esac 2206 case " $ac_configure_args " in 2207 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2208 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2209 esac 2210 fi 2211done 2212if $ac_cache_corrupted; then 2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2214$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2216$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2217 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2218fi 2219## -------------------- ## 2220## Main body of script. ## 2221## -------------------- ## 2222 2223ac_ext=c 2224ac_cpp='$CPP $CPPFLAGS' 2225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2227ac_compiler_gnu=$ac_cv_c_compiler_gnu 2228 2229 2230 2231ac_config_headers="$ac_config_headers config.h" 2232 2233 2234 2235# Initialize Automake 2236am__api_version='1.16' 2237 2238ac_aux_dir= 2239for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2240 if test -f "$ac_dir/install-sh"; then 2241 ac_aux_dir=$ac_dir 2242 ac_install_sh="$ac_aux_dir/install-sh -c" 2243 break 2244 elif test -f "$ac_dir/install.sh"; then 2245 ac_aux_dir=$ac_dir 2246 ac_install_sh="$ac_aux_dir/install.sh -c" 2247 break 2248 elif test -f "$ac_dir/shtool"; then 2249 ac_aux_dir=$ac_dir 2250 ac_install_sh="$ac_aux_dir/shtool install -c" 2251 break 2252 fi 2253done 2254if test -z "$ac_aux_dir"; then 2255 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2256fi 2257 2258# These three variables are undocumented and unsupported, 2259# and are intended to be withdrawn in a future Autoconf release. 2260# They can cause serious problems if a builder's source tree is in a directory 2261# whose full name contains unusual characters. 2262ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2263ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2264ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2265 2266 2267# Find a good install program. We prefer a C program (faster), 2268# so one script is as good as another. But avoid the broken or 2269# incompatible versions: 2270# SysV /etc/install, /usr/sbin/install 2271# SunOS /usr/etc/install 2272# IRIX /sbin/install 2273# AIX /bin/install 2274# AmigaOS /C/install, which installs bootblocks on floppy discs 2275# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2276# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2277# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2278# OS/2's system install, which has a completely different semantic 2279# ./install, which can be erroneously created by make from ./install.sh. 2280# Reject install programs that cannot install multiple files. 2281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2282$as_echo_n "checking for a BSD-compatible install... " >&6; } 2283if test -z "$INSTALL"; then 2284if ${ac_cv_path_install+:} false; then : 2285 $as_echo_n "(cached) " >&6 2286else 2287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2288for as_dir in $PATH 2289do 2290 IFS=$as_save_IFS 2291 test -z "$as_dir" && as_dir=. 2292 # Account for people who put trailing slashes in PATH elements. 2293case $as_dir/ in #(( 2294 ./ | .// | /[cC]/* | \ 2295 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2296 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2297 /usr/ucb/* ) ;; 2298 *) 2299 # OSF1 and SCO ODT 3.0 have their own names for install. 2300 # Don't use installbsd from OSF since it installs stuff as root 2301 # by default. 2302 for ac_prog in ginstall scoinst install; do 2303 for ac_exec_ext in '' $ac_executable_extensions; do 2304 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2305 if test $ac_prog = install && 2306 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2307 # AIX install. It has an incompatible calling convention. 2308 : 2309 elif test $ac_prog = install && 2310 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2311 # program-specific install script used by HP pwplus--don't use. 2312 : 2313 else 2314 rm -rf conftest.one conftest.two conftest.dir 2315 echo one > conftest.one 2316 echo two > conftest.two 2317 mkdir conftest.dir 2318 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2319 test -s conftest.one && test -s conftest.two && 2320 test -s conftest.dir/conftest.one && 2321 test -s conftest.dir/conftest.two 2322 then 2323 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2324 break 3 2325 fi 2326 fi 2327 fi 2328 done 2329 done 2330 ;; 2331esac 2332 2333 done 2334IFS=$as_save_IFS 2335 2336rm -rf conftest.one conftest.two conftest.dir 2337 2338fi 2339 if test "${ac_cv_path_install+set}" = set; then 2340 INSTALL=$ac_cv_path_install 2341 else 2342 # As a last resort, use the slow shell script. Don't cache a 2343 # value for INSTALL within a source directory, because that will 2344 # break other packages using the cache if that directory is 2345 # removed, or if the value is a relative name. 2346 INSTALL=$ac_install_sh 2347 fi 2348fi 2349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2350$as_echo "$INSTALL" >&6; } 2351 2352# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2353# It thinks the first close brace ends the variable substitution. 2354test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2355 2356test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2357 2358test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2359 2360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2361$as_echo_n "checking whether build environment is sane... " >&6; } 2362# Reject unsafe characters in $srcdir or the absolute working directory 2363# name. Accept space and tab only in the latter. 2364am_lf=' 2365' 2366case `pwd` in 2367 *[\\\"\#\$\&\'\`$am_lf]*) 2368 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2369esac 2370case $srcdir in 2371 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2372 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2373esac 2374 2375# Do 'set' in a subshell so we don't clobber the current shell's 2376# arguments. Must try -L first in case configure is actually a 2377# symlink; some systems play weird games with the mod time of symlinks 2378# (eg FreeBSD returns the mod time of the symlink's containing 2379# directory). 2380if ( 2381 am_has_slept=no 2382 for am_try in 1 2; do 2383 echo "timestamp, slept: $am_has_slept" > conftest.file 2384 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2385 if test "$*" = "X"; then 2386 # -L didn't work. 2387 set X `ls -t "$srcdir/configure" conftest.file` 2388 fi 2389 if test "$*" != "X $srcdir/configure conftest.file" \ 2390 && test "$*" != "X conftest.file $srcdir/configure"; then 2391 2392 # If neither matched, then we have a broken ls. This can happen 2393 # if, for instance, CONFIG_SHELL is bash and it inherits a 2394 # broken ls alias from the environment. This has actually 2395 # happened. Such a system could not be considered "sane". 2396 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2397 alias in your environment" "$LINENO" 5 2398 fi 2399 if test "$2" = conftest.file || test $am_try -eq 2; then 2400 break 2401 fi 2402 # Just in case. 2403 sleep 1 2404 am_has_slept=yes 2405 done 2406 test "$2" = conftest.file 2407 ) 2408then 2409 # Ok. 2410 : 2411else 2412 as_fn_error $? "newly created file is older than distributed files! 2413Check your system clock" "$LINENO" 5 2414fi 2415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2416$as_echo "yes" >&6; } 2417# If we didn't sleep, we still need to ensure time stamps of config.status and 2418# generated files are strictly newer. 2419am_sleep_pid= 2420if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2421 ( sleep 1 ) & 2422 am_sleep_pid=$! 2423fi 2424 2425rm -f conftest.file 2426 2427test "$program_prefix" != NONE && 2428 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2429# Use a double $ so make ignores it. 2430test "$program_suffix" != NONE && 2431 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2432# Double any \ or $. 2433# By default was `s,x,x', remove it if useless. 2434ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2435program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2436 2437# Expand $ac_aux_dir to an absolute path. 2438am_aux_dir=`cd "$ac_aux_dir" && pwd` 2439 2440if test x"${MISSING+set}" != xset; then 2441 case $am_aux_dir in 2442 *\ * | *\ *) 2443 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2444 *) 2445 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2446 esac 2447fi 2448# Use eval to expand $SHELL 2449if eval "$MISSING --is-lightweight"; then 2450 am_missing_run="$MISSING " 2451else 2452 am_missing_run= 2453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2454$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2455fi 2456 2457if test x"${install_sh+set}" != xset; then 2458 case $am_aux_dir in 2459 *\ * | *\ *) 2460 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2461 *) 2462 install_sh="\${SHELL} $am_aux_dir/install-sh" 2463 esac 2464fi 2465 2466# Installed binaries are usually stripped using 'strip' when the user 2467# run "make install-strip". However 'strip' might not be the right 2468# tool to use in cross-compilation environments, therefore Automake 2469# will honor the 'STRIP' environment variable to overrule this program. 2470if test "$cross_compiling" != no; then 2471 if test -n "$ac_tool_prefix"; then 2472 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2473set dummy ${ac_tool_prefix}strip; ac_word=$2 2474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2475$as_echo_n "checking for $ac_word... " >&6; } 2476if ${ac_cv_prog_STRIP+:} false; then : 2477 $as_echo_n "(cached) " >&6 2478else 2479 if test -n "$STRIP"; then 2480 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2481else 2482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2483for as_dir in $PATH 2484do 2485 IFS=$as_save_IFS 2486 test -z "$as_dir" && as_dir=. 2487 for ac_exec_ext in '' $ac_executable_extensions; do 2488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2489 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2491 break 2 2492 fi 2493done 2494 done 2495IFS=$as_save_IFS 2496 2497fi 2498fi 2499STRIP=$ac_cv_prog_STRIP 2500if test -n "$STRIP"; then 2501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2502$as_echo "$STRIP" >&6; } 2503else 2504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2505$as_echo "no" >&6; } 2506fi 2507 2508 2509fi 2510if test -z "$ac_cv_prog_STRIP"; then 2511 ac_ct_STRIP=$STRIP 2512 # Extract the first word of "strip", so it can be a program name with args. 2513set dummy strip; ac_word=$2 2514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2515$as_echo_n "checking for $ac_word... " >&6; } 2516if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2517 $as_echo_n "(cached) " >&6 2518else 2519 if test -n "$ac_ct_STRIP"; then 2520 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2521else 2522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2523for as_dir in $PATH 2524do 2525 IFS=$as_save_IFS 2526 test -z "$as_dir" && as_dir=. 2527 for ac_exec_ext in '' $ac_executable_extensions; do 2528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2529 ac_cv_prog_ac_ct_STRIP="strip" 2530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2531 break 2 2532 fi 2533done 2534 done 2535IFS=$as_save_IFS 2536 2537fi 2538fi 2539ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2540if test -n "$ac_ct_STRIP"; then 2541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2542$as_echo "$ac_ct_STRIP" >&6; } 2543else 2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2545$as_echo "no" >&6; } 2546fi 2547 2548 if test "x$ac_ct_STRIP" = x; then 2549 STRIP=":" 2550 else 2551 case $cross_compiling:$ac_tool_warned in 2552yes:) 2553{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2554$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2555ac_tool_warned=yes ;; 2556esac 2557 STRIP=$ac_ct_STRIP 2558 fi 2559else 2560 STRIP="$ac_cv_prog_STRIP" 2561fi 2562 2563fi 2564INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2565 2566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2567$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2568if test -z "$MKDIR_P"; then 2569 if ${ac_cv_path_mkdir+:} false; then : 2570 $as_echo_n "(cached) " >&6 2571else 2572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2573for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2574do 2575 IFS=$as_save_IFS 2576 test -z "$as_dir" && as_dir=. 2577 for ac_prog in mkdir gmkdir; do 2578 for ac_exec_ext in '' $ac_executable_extensions; do 2579 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2580 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2581 'mkdir (GNU coreutils) '* | \ 2582 'mkdir (coreutils) '* | \ 2583 'mkdir (fileutils) '4.1*) 2584 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2585 break 3;; 2586 esac 2587 done 2588 done 2589 done 2590IFS=$as_save_IFS 2591 2592fi 2593 2594 test -d ./--version && rmdir ./--version 2595 if test "${ac_cv_path_mkdir+set}" = set; then 2596 MKDIR_P="$ac_cv_path_mkdir -p" 2597 else 2598 # As a last resort, use the slow shell script. Don't cache a 2599 # value for MKDIR_P within a source directory, because that will 2600 # break other packages using the cache if that directory is 2601 # removed, or if the value is a relative name. 2602 MKDIR_P="$ac_install_sh -d" 2603 fi 2604fi 2605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2606$as_echo "$MKDIR_P" >&6; } 2607 2608for ac_prog in gawk mawk nawk awk 2609do 2610 # Extract the first word of "$ac_prog", so it can be a program name with args. 2611set dummy $ac_prog; ac_word=$2 2612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2613$as_echo_n "checking for $ac_word... " >&6; } 2614if ${ac_cv_prog_AWK+:} false; then : 2615 $as_echo_n "(cached) " >&6 2616else 2617 if test -n "$AWK"; then 2618 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2619else 2620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2621for as_dir in $PATH 2622do 2623 IFS=$as_save_IFS 2624 test -z "$as_dir" && as_dir=. 2625 for ac_exec_ext in '' $ac_executable_extensions; do 2626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2627 ac_cv_prog_AWK="$ac_prog" 2628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2629 break 2 2630 fi 2631done 2632 done 2633IFS=$as_save_IFS 2634 2635fi 2636fi 2637AWK=$ac_cv_prog_AWK 2638if test -n "$AWK"; then 2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2640$as_echo "$AWK" >&6; } 2641else 2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2643$as_echo "no" >&6; } 2644fi 2645 2646 2647 test -n "$AWK" && break 2648done 2649 2650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2651$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2652set x ${MAKE-make} 2653ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2654if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2655 $as_echo_n "(cached) " >&6 2656else 2657 cat >conftest.make <<\_ACEOF 2658SHELL = /bin/sh 2659all: 2660 @echo '@@@%%%=$(MAKE)=@@@%%%' 2661_ACEOF 2662# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2663case `${MAKE-make} -f conftest.make 2>/dev/null` in 2664 *@@@%%%=?*=@@@%%%*) 2665 eval ac_cv_prog_make_${ac_make}_set=yes;; 2666 *) 2667 eval ac_cv_prog_make_${ac_make}_set=no;; 2668esac 2669rm -f conftest.make 2670fi 2671if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2673$as_echo "yes" >&6; } 2674 SET_MAKE= 2675else 2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2677$as_echo "no" >&6; } 2678 SET_MAKE="MAKE=${MAKE-make}" 2679fi 2680 2681rm -rf .tst 2>/dev/null 2682mkdir .tst 2>/dev/null 2683if test -d .tst; then 2684 am__leading_dot=. 2685else 2686 am__leading_dot=_ 2687fi 2688rmdir .tst 2>/dev/null 2689 2690# Check whether --enable-silent-rules was given. 2691if test "${enable_silent_rules+set}" = set; then : 2692 enableval=$enable_silent_rules; 2693fi 2694 2695case $enable_silent_rules in # ((( 2696 yes) AM_DEFAULT_VERBOSITY=0;; 2697 no) AM_DEFAULT_VERBOSITY=1;; 2698 *) AM_DEFAULT_VERBOSITY=1;; 2699esac 2700am_make=${MAKE-make} 2701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2702$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2703if ${am_cv_make_support_nested_variables+:} false; then : 2704 $as_echo_n "(cached) " >&6 2705else 2706 if $as_echo 'TRUE=$(BAR$(V)) 2707BAR0=false 2708BAR1=true 2709V=1 2710am__doit: 2711 @$(TRUE) 2712.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2713 am_cv_make_support_nested_variables=yes 2714else 2715 am_cv_make_support_nested_variables=no 2716fi 2717fi 2718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2719$as_echo "$am_cv_make_support_nested_variables" >&6; } 2720if test $am_cv_make_support_nested_variables = yes; then 2721 AM_V='$(V)' 2722 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2723else 2724 AM_V=$AM_DEFAULT_VERBOSITY 2725 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2726fi 2727AM_BACKSLASH='\' 2728 2729if test "`cd $srcdir && pwd`" != "`pwd`"; then 2730 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2731 # is not polluted with repeated "-I." 2732 am__isrc=' -I$(srcdir)' 2733 # test to see if srcdir already configured 2734 if test -f $srcdir/config.status; then 2735 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2736 fi 2737fi 2738 2739# test whether we have cygpath 2740if test -z "$CYGPATH_W"; then 2741 if (cygpath --version) >/dev/null 2>/dev/null; then 2742 CYGPATH_W='cygpath -w' 2743 else 2744 CYGPATH_W=echo 2745 fi 2746fi 2747 2748 2749# Define the identity of the package. 2750 PACKAGE='libXpm' 2751 VERSION='3.5.13' 2752 2753 2754cat >>confdefs.h <<_ACEOF 2755#define PACKAGE "$PACKAGE" 2756_ACEOF 2757 2758 2759cat >>confdefs.h <<_ACEOF 2760#define VERSION "$VERSION" 2761_ACEOF 2762 2763# Some tools Automake needs. 2764 2765ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2766 2767 2768AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2769 2770 2771AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2772 2773 2774AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2775 2776 2777MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2778 2779# For better backward compatibility. To be removed once Automake 1.9.x 2780# dies out for good. For more background, see: 2781# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2782# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2783mkdir_p='$(MKDIR_P)' 2784 2785# We need awk for the "check" target (and possibly the TAP driver). The 2786# system "awk" is bad on some platforms. 2787# Always define AMTAR for backward compatibility. Yes, it's still used 2788# in the wild :-( We should find a proper way to deprecate it ... 2789AMTAR='$${TAR-tar}' 2790 2791 2792# We'll loop over all known methods to create a tar archive until one works. 2793_am_tools='gnutar pax cpio none' 2794 2795am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2796 2797 2798 2799 2800 2801 2802# POSIX will say in a future version that running "rm -f" with no argument 2803# is OK; and we want to be able to make that assumption in our Makefile 2804# recipes. So use an aggressive probe to check that the usage we want is 2805# actually supported "in the wild" to an acceptable degree. 2806# See automake bug#10828. 2807# To make any issue more visible, cause the running configure to be aborted 2808# by default if the 'rm' program in use doesn't match our expectations; the 2809# user can still override this though. 2810if rm -f && rm -fr && rm -rf; then : OK; else 2811 cat >&2 <<'END' 2812Oops! 2813 2814Your 'rm' program seems unable to run without file operands specified 2815on the command line, even when the '-f' option is present. This is contrary 2816to the behaviour of most rm programs out there, and not conforming with 2817the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2818 2819Please tell bug-automake@gnu.org about your system, including the value 2820of your $PATH and any error possibly output before this message. This 2821can help us improve future automake versions. 2822 2823END 2824 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2825 echo 'Configuration will proceed anyway, since you have set the' >&2 2826 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2827 echo >&2 2828 else 2829 cat >&2 <<'END' 2830Aborting the configuration process, to ensure you take notice of the issue. 2831 2832You can download and install GNU coreutils to get an 'rm' implementation 2833that behaves properly: <https://www.gnu.org/software/coreutils/>. 2834 2835If you want to complete the configuration process using your problematic 2836'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2837to "yes", and re-run configure. 2838 2839END 2840 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2841 fi 2842fi 2843 2844 2845# Initialize libtool 2846case `pwd` in 2847 *\ * | *\ *) 2848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2849$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2850esac 2851 2852 2853 2854macro_version='2.4.6' 2855macro_revision='2.4.6' 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869ltmain=$ac_aux_dir/ltmain.sh 2870 2871# Make sure we can run config.sub. 2872$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2873 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2874 2875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2876$as_echo_n "checking build system type... " >&6; } 2877if ${ac_cv_build+:} false; then : 2878 $as_echo_n "(cached) " >&6 2879else 2880 ac_build_alias=$build_alias 2881test "x$ac_build_alias" = x && 2882 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2883test "x$ac_build_alias" = x && 2884 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2885ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2886 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2887 2888fi 2889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2890$as_echo "$ac_cv_build" >&6; } 2891case $ac_cv_build in 2892*-*-*) ;; 2893*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2894esac 2895build=$ac_cv_build 2896ac_save_IFS=$IFS; IFS='-' 2897set x $ac_cv_build 2898shift 2899build_cpu=$1 2900build_vendor=$2 2901shift; shift 2902# Remember, the first character of IFS is used to create $*, 2903# except with old shells: 2904build_os=$* 2905IFS=$ac_save_IFS 2906case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2907 2908 2909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2910$as_echo_n "checking host system type... " >&6; } 2911if ${ac_cv_host+:} false; then : 2912 $as_echo_n "(cached) " >&6 2913else 2914 if test "x$host_alias" = x; then 2915 ac_cv_host=$ac_cv_build 2916else 2917 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2918 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2919fi 2920 2921fi 2922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2923$as_echo "$ac_cv_host" >&6; } 2924case $ac_cv_host in 2925*-*-*) ;; 2926*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2927esac 2928host=$ac_cv_host 2929ac_save_IFS=$IFS; IFS='-' 2930set x $ac_cv_host 2931shift 2932host_cpu=$1 2933host_vendor=$2 2934shift; shift 2935# Remember, the first character of IFS is used to create $*, 2936# except with old shells: 2937host_os=$* 2938IFS=$ac_save_IFS 2939case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2940 2941 2942# Backslashify metacharacters that are still active within 2943# double-quoted strings. 2944sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 2945 2946# Same as above, but do not quote variable references. 2947double_quote_subst='s/\(["`\\]\)/\\\1/g' 2948 2949# Sed substitution to delay expansion of an escaped shell variable in a 2950# double_quote_subst'ed string. 2951delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2952 2953# Sed substitution to delay expansion of an escaped single quote. 2954delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2955 2956# Sed substitution to avoid accidental globbing in evaled expressions 2957no_glob_subst='s/\*/\\\*/g' 2958 2959ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2960ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 2961ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 2962 2963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 2964$as_echo_n "checking how to print strings... " >&6; } 2965# Test print first, because it will be a builtin if present. 2966if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 2967 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 2968 ECHO='print -r --' 2969elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 2970 ECHO='printf %s\n' 2971else 2972 # Use this function as a fallback that always works. 2973 func_fallback_echo () 2974 { 2975 eval 'cat <<_LTECHO_EOF 2976$1 2977_LTECHO_EOF' 2978 } 2979 ECHO='func_fallback_echo' 2980fi 2981 2982# func_echo_all arg... 2983# Invoke $ECHO with all args, space-separated. 2984func_echo_all () 2985{ 2986 $ECHO "" 2987} 2988 2989case $ECHO in 2990 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 2991$as_echo "printf" >&6; } ;; 2992 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 2993$as_echo "print -r" >&6; } ;; 2994 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 2995$as_echo "cat" >&6; } ;; 2996esac 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011DEPDIR="${am__leading_dot}deps" 3012 3013ac_config_commands="$ac_config_commands depfiles" 3014 3015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3016$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3017cat > confinc.mk << 'END' 3018am__doit: 3019 @echo this is the am__doit target >confinc.out 3020.PHONY: am__doit 3021END 3022am__include="#" 3023am__quote= 3024# BSD make does it like this. 3025echo '.include "confinc.mk" # ignored' > confmf.BSD 3026# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3027echo 'include confinc.mk # ignored' > confmf.GNU 3028_am_result=no 3029for s in GNU BSD; do 3030 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3031 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3032 ac_status=$? 3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3034 (exit $ac_status); } 3035 case $?:`cat confinc.out 2>/dev/null` in #( 3036 '0:this is the am__doit target') : 3037 case $s in #( 3038 BSD) : 3039 am__include='.include' am__quote='"' ;; #( 3040 *) : 3041 am__include='include' am__quote='' ;; 3042esac ;; #( 3043 *) : 3044 ;; 3045esac 3046 if test "$am__include" != "#"; then 3047 _am_result="yes ($s style)" 3048 break 3049 fi 3050done 3051rm -f confinc.* confmf.* 3052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3053$as_echo "${_am_result}" >&6; } 3054 3055# Check whether --enable-dependency-tracking was given. 3056if test "${enable_dependency_tracking+set}" = set; then : 3057 enableval=$enable_dependency_tracking; 3058fi 3059 3060if test "x$enable_dependency_tracking" != xno; then 3061 am_depcomp="$ac_aux_dir/depcomp" 3062 AMDEPBACKSLASH='\' 3063 am__nodep='_no' 3064fi 3065 if test "x$enable_dependency_tracking" != xno; then 3066 AMDEP_TRUE= 3067 AMDEP_FALSE='#' 3068else 3069 AMDEP_TRUE='#' 3070 AMDEP_FALSE= 3071fi 3072 3073 3074ac_ext=c 3075ac_cpp='$CPP $CPPFLAGS' 3076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3078ac_compiler_gnu=$ac_cv_c_compiler_gnu 3079if test -n "$ac_tool_prefix"; then 3080 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3081set dummy ${ac_tool_prefix}gcc; ac_word=$2 3082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3083$as_echo_n "checking for $ac_word... " >&6; } 3084if ${ac_cv_prog_CC+:} false; then : 3085 $as_echo_n "(cached) " >&6 3086else 3087 if test -n "$CC"; then 3088 ac_cv_prog_CC="$CC" # Let the user override the test. 3089else 3090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3091for as_dir in $PATH 3092do 3093 IFS=$as_save_IFS 3094 test -z "$as_dir" && as_dir=. 3095 for ac_exec_ext in '' $ac_executable_extensions; do 3096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3097 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3099 break 2 3100 fi 3101done 3102 done 3103IFS=$as_save_IFS 3104 3105fi 3106fi 3107CC=$ac_cv_prog_CC 3108if test -n "$CC"; then 3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3110$as_echo "$CC" >&6; } 3111else 3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3113$as_echo "no" >&6; } 3114fi 3115 3116 3117fi 3118if test -z "$ac_cv_prog_CC"; then 3119 ac_ct_CC=$CC 3120 # Extract the first word of "gcc", so it can be a program name with args. 3121set dummy gcc; ac_word=$2 3122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3123$as_echo_n "checking for $ac_word... " >&6; } 3124if ${ac_cv_prog_ac_ct_CC+:} false; then : 3125 $as_echo_n "(cached) " >&6 3126else 3127 if test -n "$ac_ct_CC"; then 3128 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3129else 3130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3131for as_dir in $PATH 3132do 3133 IFS=$as_save_IFS 3134 test -z "$as_dir" && as_dir=. 3135 for ac_exec_ext in '' $ac_executable_extensions; do 3136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3137 ac_cv_prog_ac_ct_CC="gcc" 3138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3139 break 2 3140 fi 3141done 3142 done 3143IFS=$as_save_IFS 3144 3145fi 3146fi 3147ac_ct_CC=$ac_cv_prog_ac_ct_CC 3148if test -n "$ac_ct_CC"; then 3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3150$as_echo "$ac_ct_CC" >&6; } 3151else 3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3153$as_echo "no" >&6; } 3154fi 3155 3156 if test "x$ac_ct_CC" = x; then 3157 CC="" 3158 else 3159 case $cross_compiling:$ac_tool_warned in 3160yes:) 3161{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3162$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3163ac_tool_warned=yes ;; 3164esac 3165 CC=$ac_ct_CC 3166 fi 3167else 3168 CC="$ac_cv_prog_CC" 3169fi 3170 3171if test -z "$CC"; then 3172 if test -n "$ac_tool_prefix"; then 3173 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3174set dummy ${ac_tool_prefix}cc; ac_word=$2 3175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3176$as_echo_n "checking for $ac_word... " >&6; } 3177if ${ac_cv_prog_CC+:} false; then : 3178 $as_echo_n "(cached) " >&6 3179else 3180 if test -n "$CC"; then 3181 ac_cv_prog_CC="$CC" # Let the user override the test. 3182else 3183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3184for as_dir in $PATH 3185do 3186 IFS=$as_save_IFS 3187 test -z "$as_dir" && as_dir=. 3188 for ac_exec_ext in '' $ac_executable_extensions; do 3189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3190 ac_cv_prog_CC="${ac_tool_prefix}cc" 3191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3192 break 2 3193 fi 3194done 3195 done 3196IFS=$as_save_IFS 3197 3198fi 3199fi 3200CC=$ac_cv_prog_CC 3201if test -n "$CC"; then 3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3203$as_echo "$CC" >&6; } 3204else 3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3206$as_echo "no" >&6; } 3207fi 3208 3209 3210 fi 3211fi 3212if test -z "$CC"; then 3213 # Extract the first word of "cc", so it can be a program name with args. 3214set dummy cc; ac_word=$2 3215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3216$as_echo_n "checking for $ac_word... " >&6; } 3217if ${ac_cv_prog_CC+:} false; then : 3218 $as_echo_n "(cached) " >&6 3219else 3220 if test -n "$CC"; then 3221 ac_cv_prog_CC="$CC" # Let the user override the test. 3222else 3223 ac_prog_rejected=no 3224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3225for as_dir in $PATH 3226do 3227 IFS=$as_save_IFS 3228 test -z "$as_dir" && as_dir=. 3229 for ac_exec_ext in '' $ac_executable_extensions; do 3230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3231 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3232 ac_prog_rejected=yes 3233 continue 3234 fi 3235 ac_cv_prog_CC="cc" 3236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3237 break 2 3238 fi 3239done 3240 done 3241IFS=$as_save_IFS 3242 3243if test $ac_prog_rejected = yes; then 3244 # We found a bogon in the path, so make sure we never use it. 3245 set dummy $ac_cv_prog_CC 3246 shift 3247 if test $# != 0; then 3248 # We chose a different compiler from the bogus one. 3249 # However, it has the same basename, so the bogon will be chosen 3250 # first if we set CC to just the basename; use the full file name. 3251 shift 3252 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3253 fi 3254fi 3255fi 3256fi 3257CC=$ac_cv_prog_CC 3258if test -n "$CC"; then 3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3260$as_echo "$CC" >&6; } 3261else 3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3263$as_echo "no" >&6; } 3264fi 3265 3266 3267fi 3268if test -z "$CC"; then 3269 if test -n "$ac_tool_prefix"; then 3270 for ac_prog in cl.exe 3271 do 3272 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3273set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3275$as_echo_n "checking for $ac_word... " >&6; } 3276if ${ac_cv_prog_CC+:} false; then : 3277 $as_echo_n "(cached) " >&6 3278else 3279 if test -n "$CC"; then 3280 ac_cv_prog_CC="$CC" # Let the user override the test. 3281else 3282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3283for as_dir in $PATH 3284do 3285 IFS=$as_save_IFS 3286 test -z "$as_dir" && as_dir=. 3287 for ac_exec_ext in '' $ac_executable_extensions; do 3288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3289 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3291 break 2 3292 fi 3293done 3294 done 3295IFS=$as_save_IFS 3296 3297fi 3298fi 3299CC=$ac_cv_prog_CC 3300if test -n "$CC"; then 3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3302$as_echo "$CC" >&6; } 3303else 3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3305$as_echo "no" >&6; } 3306fi 3307 3308 3309 test -n "$CC" && break 3310 done 3311fi 3312if test -z "$CC"; then 3313 ac_ct_CC=$CC 3314 for ac_prog in cl.exe 3315do 3316 # Extract the first word of "$ac_prog", so it can be a program name with args. 3317set dummy $ac_prog; ac_word=$2 3318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3319$as_echo_n "checking for $ac_word... " >&6; } 3320if ${ac_cv_prog_ac_ct_CC+:} false; then : 3321 $as_echo_n "(cached) " >&6 3322else 3323 if test -n "$ac_ct_CC"; then 3324 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3325else 3326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3327for as_dir in $PATH 3328do 3329 IFS=$as_save_IFS 3330 test -z "$as_dir" && as_dir=. 3331 for ac_exec_ext in '' $ac_executable_extensions; do 3332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3333 ac_cv_prog_ac_ct_CC="$ac_prog" 3334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3335 break 2 3336 fi 3337done 3338 done 3339IFS=$as_save_IFS 3340 3341fi 3342fi 3343ac_ct_CC=$ac_cv_prog_ac_ct_CC 3344if test -n "$ac_ct_CC"; then 3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3346$as_echo "$ac_ct_CC" >&6; } 3347else 3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3349$as_echo "no" >&6; } 3350fi 3351 3352 3353 test -n "$ac_ct_CC" && break 3354done 3355 3356 if test "x$ac_ct_CC" = x; then 3357 CC="" 3358 else 3359 case $cross_compiling:$ac_tool_warned in 3360yes:) 3361{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3362$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3363ac_tool_warned=yes ;; 3364esac 3365 CC=$ac_ct_CC 3366 fi 3367fi 3368 3369fi 3370 3371 3372test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3373$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3374as_fn_error $? "no acceptable C compiler found in \$PATH 3375See \`config.log' for more details" "$LINENO" 5; } 3376 3377# Provide some information about the compiler. 3378$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3379set X $ac_compile 3380ac_compiler=$2 3381for ac_option in --version -v -V -qversion; do 3382 { { ac_try="$ac_compiler $ac_option >&5" 3383case "(($ac_try" in 3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3385 *) ac_try_echo=$ac_try;; 3386esac 3387eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3388$as_echo "$ac_try_echo"; } >&5 3389 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3390 ac_status=$? 3391 if test -s conftest.err; then 3392 sed '10a\ 3393... rest of stderr output deleted ... 3394 10q' conftest.err >conftest.er1 3395 cat conftest.er1 >&5 3396 fi 3397 rm -f conftest.er1 conftest.err 3398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3399 test $ac_status = 0; } 3400done 3401 3402cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3403/* end confdefs.h. */ 3404 3405int 3406main () 3407{ 3408 3409 ; 3410 return 0; 3411} 3412_ACEOF 3413ac_clean_files_save=$ac_clean_files 3414ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3415# Try to create an executable without -o first, disregard a.out. 3416# It will help us diagnose broken compilers, and finding out an intuition 3417# of exeext. 3418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3419$as_echo_n "checking whether the C compiler works... " >&6; } 3420ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3421 3422# The possible output files: 3423ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3424 3425ac_rmfiles= 3426for ac_file in $ac_files 3427do 3428 case $ac_file in 3429 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3430 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3431 esac 3432done 3433rm -f $ac_rmfiles 3434 3435if { { ac_try="$ac_link_default" 3436case "(($ac_try" in 3437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3438 *) ac_try_echo=$ac_try;; 3439esac 3440eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3441$as_echo "$ac_try_echo"; } >&5 3442 (eval "$ac_link_default") 2>&5 3443 ac_status=$? 3444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3445 test $ac_status = 0; }; then : 3446 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3447# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3448# in a Makefile. We should not override ac_cv_exeext if it was cached, 3449# so that the user can short-circuit this test for compilers unknown to 3450# Autoconf. 3451for ac_file in $ac_files '' 3452do 3453 test -f "$ac_file" || continue 3454 case $ac_file in 3455 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3456 ;; 3457 [ab].out ) 3458 # We found the default executable, but exeext='' is most 3459 # certainly right. 3460 break;; 3461 *.* ) 3462 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3463 then :; else 3464 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3465 fi 3466 # We set ac_cv_exeext here because the later test for it is not 3467 # safe: cross compilers may not add the suffix if given an `-o' 3468 # argument, so we may need to know it at that point already. 3469 # Even if this section looks crufty: it has the advantage of 3470 # actually working. 3471 break;; 3472 * ) 3473 break;; 3474 esac 3475done 3476test "$ac_cv_exeext" = no && ac_cv_exeext= 3477 3478else 3479 ac_file='' 3480fi 3481if test -z "$ac_file"; then : 3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3483$as_echo "no" >&6; } 3484$as_echo "$as_me: failed program was:" >&5 3485sed 's/^/| /' conftest.$ac_ext >&5 3486 3487{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3488$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3489as_fn_error 77 "C compiler cannot create executables 3490See \`config.log' for more details" "$LINENO" 5; } 3491else 3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3493$as_echo "yes" >&6; } 3494fi 3495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3496$as_echo_n "checking for C compiler default output file name... " >&6; } 3497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3498$as_echo "$ac_file" >&6; } 3499ac_exeext=$ac_cv_exeext 3500 3501rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3502ac_clean_files=$ac_clean_files_save 3503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3504$as_echo_n "checking for suffix of executables... " >&6; } 3505if { { ac_try="$ac_link" 3506case "(($ac_try" in 3507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3508 *) ac_try_echo=$ac_try;; 3509esac 3510eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3511$as_echo "$ac_try_echo"; } >&5 3512 (eval "$ac_link") 2>&5 3513 ac_status=$? 3514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3515 test $ac_status = 0; }; then : 3516 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3517# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3518# work properly (i.e., refer to `conftest.exe'), while it won't with 3519# `rm'. 3520for ac_file in conftest.exe conftest conftest.*; do 3521 test -f "$ac_file" || continue 3522 case $ac_file in 3523 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3524 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3525 break;; 3526 * ) break;; 3527 esac 3528done 3529else 3530 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3531$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3532as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3533See \`config.log' for more details" "$LINENO" 5; } 3534fi 3535rm -f conftest conftest$ac_cv_exeext 3536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3537$as_echo "$ac_cv_exeext" >&6; } 3538 3539rm -f conftest.$ac_ext 3540EXEEXT=$ac_cv_exeext 3541ac_exeext=$EXEEXT 3542cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3543/* end confdefs.h. */ 3544#include <stdio.h> 3545int 3546main () 3547{ 3548FILE *f = fopen ("conftest.out", "w"); 3549 return ferror (f) || fclose (f) != 0; 3550 3551 ; 3552 return 0; 3553} 3554_ACEOF 3555ac_clean_files="$ac_clean_files conftest.out" 3556# Check that the compiler produces executables we can run. If not, either 3557# the compiler is broken, or we cross compile. 3558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3559$as_echo_n "checking whether we are cross compiling... " >&6; } 3560if test "$cross_compiling" != yes; then 3561 { { ac_try="$ac_link" 3562case "(($ac_try" in 3563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3564 *) ac_try_echo=$ac_try;; 3565esac 3566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3567$as_echo "$ac_try_echo"; } >&5 3568 (eval "$ac_link") 2>&5 3569 ac_status=$? 3570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3571 test $ac_status = 0; } 3572 if { ac_try='./conftest$ac_cv_exeext' 3573 { { case "(($ac_try" in 3574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3575 *) ac_try_echo=$ac_try;; 3576esac 3577eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3578$as_echo "$ac_try_echo"; } >&5 3579 (eval "$ac_try") 2>&5 3580 ac_status=$? 3581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3582 test $ac_status = 0; }; }; then 3583 cross_compiling=no 3584 else 3585 if test "$cross_compiling" = maybe; then 3586 cross_compiling=yes 3587 else 3588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3589$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3590as_fn_error $? "cannot run C compiled programs. 3591If you meant to cross compile, use \`--host'. 3592See \`config.log' for more details" "$LINENO" 5; } 3593 fi 3594 fi 3595fi 3596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3597$as_echo "$cross_compiling" >&6; } 3598 3599rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3600ac_clean_files=$ac_clean_files_save 3601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3602$as_echo_n "checking for suffix of object files... " >&6; } 3603if ${ac_cv_objext+:} false; then : 3604 $as_echo_n "(cached) " >&6 3605else 3606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3607/* end confdefs.h. */ 3608 3609int 3610main () 3611{ 3612 3613 ; 3614 return 0; 3615} 3616_ACEOF 3617rm -f conftest.o conftest.obj 3618if { { ac_try="$ac_compile" 3619case "(($ac_try" in 3620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3621 *) ac_try_echo=$ac_try;; 3622esac 3623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3624$as_echo "$ac_try_echo"; } >&5 3625 (eval "$ac_compile") 2>&5 3626 ac_status=$? 3627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3628 test $ac_status = 0; }; then : 3629 for ac_file in conftest.o conftest.obj conftest.*; do 3630 test -f "$ac_file" || continue; 3631 case $ac_file in 3632 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3633 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3634 break;; 3635 esac 3636done 3637else 3638 $as_echo "$as_me: failed program was:" >&5 3639sed 's/^/| /' conftest.$ac_ext >&5 3640 3641{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3642$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3643as_fn_error $? "cannot compute suffix of object files: cannot compile 3644See \`config.log' for more details" "$LINENO" 5; } 3645fi 3646rm -f conftest.$ac_cv_objext conftest.$ac_ext 3647fi 3648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3649$as_echo "$ac_cv_objext" >&6; } 3650OBJEXT=$ac_cv_objext 3651ac_objext=$OBJEXT 3652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3653$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3654if ${ac_cv_c_compiler_gnu+:} false; then : 3655 $as_echo_n "(cached) " >&6 3656else 3657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3658/* end confdefs.h. */ 3659 3660int 3661main () 3662{ 3663#ifndef __GNUC__ 3664 choke me 3665#endif 3666 3667 ; 3668 return 0; 3669} 3670_ACEOF 3671if ac_fn_c_try_compile "$LINENO"; then : 3672 ac_compiler_gnu=yes 3673else 3674 ac_compiler_gnu=no 3675fi 3676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3677ac_cv_c_compiler_gnu=$ac_compiler_gnu 3678 3679fi 3680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3681$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3682if test $ac_compiler_gnu = yes; then 3683 GCC=yes 3684else 3685 GCC= 3686fi 3687ac_test_CFLAGS=${CFLAGS+set} 3688ac_save_CFLAGS=$CFLAGS 3689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3690$as_echo_n "checking whether $CC accepts -g... " >&6; } 3691if ${ac_cv_prog_cc_g+:} false; then : 3692 $as_echo_n "(cached) " >&6 3693else 3694 ac_save_c_werror_flag=$ac_c_werror_flag 3695 ac_c_werror_flag=yes 3696 ac_cv_prog_cc_g=no 3697 CFLAGS="-g" 3698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3699/* end confdefs.h. */ 3700 3701int 3702main () 3703{ 3704 3705 ; 3706 return 0; 3707} 3708_ACEOF 3709if ac_fn_c_try_compile "$LINENO"; then : 3710 ac_cv_prog_cc_g=yes 3711else 3712 CFLAGS="" 3713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3714/* end confdefs.h. */ 3715 3716int 3717main () 3718{ 3719 3720 ; 3721 return 0; 3722} 3723_ACEOF 3724if ac_fn_c_try_compile "$LINENO"; then : 3725 3726else 3727 ac_c_werror_flag=$ac_save_c_werror_flag 3728 CFLAGS="-g" 3729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3730/* end confdefs.h. */ 3731 3732int 3733main () 3734{ 3735 3736 ; 3737 return 0; 3738} 3739_ACEOF 3740if ac_fn_c_try_compile "$LINENO"; then : 3741 ac_cv_prog_cc_g=yes 3742fi 3743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3744fi 3745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3746fi 3747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3748 ac_c_werror_flag=$ac_save_c_werror_flag 3749fi 3750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3751$as_echo "$ac_cv_prog_cc_g" >&6; } 3752if test "$ac_test_CFLAGS" = set; then 3753 CFLAGS=$ac_save_CFLAGS 3754elif test $ac_cv_prog_cc_g = yes; then 3755 if test "$GCC" = yes; then 3756 CFLAGS="-g -O2" 3757 else 3758 CFLAGS="-g" 3759 fi 3760else 3761 if test "$GCC" = yes; then 3762 CFLAGS="-O2" 3763 else 3764 CFLAGS= 3765 fi 3766fi 3767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3768$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3769if ${ac_cv_prog_cc_c89+:} false; then : 3770 $as_echo_n "(cached) " >&6 3771else 3772 ac_cv_prog_cc_c89=no 3773ac_save_CC=$CC 3774cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3775/* end confdefs.h. */ 3776#include <stdarg.h> 3777#include <stdio.h> 3778struct stat; 3779/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3780struct buf { int x; }; 3781FILE * (*rcsopen) (struct buf *, struct stat *, int); 3782static char *e (p, i) 3783 char **p; 3784 int i; 3785{ 3786 return p[i]; 3787} 3788static char *f (char * (*g) (char **, int), char **p, ...) 3789{ 3790 char *s; 3791 va_list v; 3792 va_start (v,p); 3793 s = g (p, va_arg (v,int)); 3794 va_end (v); 3795 return s; 3796} 3797 3798/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3799 function prototypes and stuff, but not '\xHH' hex character constants. 3800 These don't provoke an error unfortunately, instead are silently treated 3801 as 'x'. The following induces an error, until -std is added to get 3802 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3803 array size at least. It's necessary to write '\x00'==0 to get something 3804 that's true only with -std. */ 3805int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3806 3807/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3808 inside strings and character constants. */ 3809#define FOO(x) 'x' 3810int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3811 3812int test (int i, double x); 3813struct s1 {int (*f) (int a);}; 3814struct s2 {int (*f) (double a);}; 3815int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3816int argc; 3817char **argv; 3818int 3819main () 3820{ 3821return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3822 ; 3823 return 0; 3824} 3825_ACEOF 3826for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3827 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3828do 3829 CC="$ac_save_CC $ac_arg" 3830 if ac_fn_c_try_compile "$LINENO"; then : 3831 ac_cv_prog_cc_c89=$ac_arg 3832fi 3833rm -f core conftest.err conftest.$ac_objext 3834 test "x$ac_cv_prog_cc_c89" != "xno" && break 3835done 3836rm -f conftest.$ac_ext 3837CC=$ac_save_CC 3838 3839fi 3840# AC_CACHE_VAL 3841case "x$ac_cv_prog_cc_c89" in 3842 x) 3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3844$as_echo "none needed" >&6; } ;; 3845 xno) 3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3847$as_echo "unsupported" >&6; } ;; 3848 *) 3849 CC="$CC $ac_cv_prog_cc_c89" 3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3851$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3852esac 3853if test "x$ac_cv_prog_cc_c89" != xno; then : 3854 3855fi 3856 3857ac_ext=c 3858ac_cpp='$CPP $CPPFLAGS' 3859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3861ac_compiler_gnu=$ac_cv_c_compiler_gnu 3862 3863ac_ext=c 3864ac_cpp='$CPP $CPPFLAGS' 3865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3867ac_compiler_gnu=$ac_cv_c_compiler_gnu 3868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3869$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3870if ${am_cv_prog_cc_c_o+:} false; then : 3871 $as_echo_n "(cached) " >&6 3872else 3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3874/* end confdefs.h. */ 3875 3876int 3877main () 3878{ 3879 3880 ; 3881 return 0; 3882} 3883_ACEOF 3884 # Make sure it works both with $CC and with simple cc. 3885 # Following AC_PROG_CC_C_O, we do the test twice because some 3886 # compilers refuse to overwrite an existing .o file with -o, 3887 # though they will create one. 3888 am_cv_prog_cc_c_o=yes 3889 for am_i in 1 2; do 3890 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3891 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3892 ac_status=$? 3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3894 (exit $ac_status); } \ 3895 && test -f conftest2.$ac_objext; then 3896 : OK 3897 else 3898 am_cv_prog_cc_c_o=no 3899 break 3900 fi 3901 done 3902 rm -f core conftest* 3903 unset am_i 3904fi 3905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3906$as_echo "$am_cv_prog_cc_c_o" >&6; } 3907if test "$am_cv_prog_cc_c_o" != yes; then 3908 # Losing compiler, so override with the script. 3909 # FIXME: It is wrong to rewrite CC. 3910 # But if we don't then we get into trouble of one sort or another. 3911 # A longer-term fix would be to have automake use am__CC in this case, 3912 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3913 CC="$am_aux_dir/compile $CC" 3914fi 3915ac_ext=c 3916ac_cpp='$CPP $CPPFLAGS' 3917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3919ac_compiler_gnu=$ac_cv_c_compiler_gnu 3920 3921 3922depcc="$CC" am_compiler_list= 3923 3924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3925$as_echo_n "checking dependency style of $depcc... " >&6; } 3926if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3927 $as_echo_n "(cached) " >&6 3928else 3929 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3930 # We make a subdir and do the tests there. Otherwise we can end up 3931 # making bogus files that we don't know about and never remove. For 3932 # instance it was reported that on HP-UX the gcc test will end up 3933 # making a dummy file named 'D' -- because '-MD' means "put the output 3934 # in D". 3935 rm -rf conftest.dir 3936 mkdir conftest.dir 3937 # Copy depcomp to subdir because otherwise we won't find it if we're 3938 # using a relative directory. 3939 cp "$am_depcomp" conftest.dir 3940 cd conftest.dir 3941 # We will build objects and dependencies in a subdirectory because 3942 # it helps to detect inapplicable dependency modes. For instance 3943 # both Tru64's cc and ICC support -MD to output dependencies as a 3944 # side effect of compilation, but ICC will put the dependencies in 3945 # the current directory while Tru64 will put them in the object 3946 # directory. 3947 mkdir sub 3948 3949 am_cv_CC_dependencies_compiler_type=none 3950 if test "$am_compiler_list" = ""; then 3951 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3952 fi 3953 am__universal=false 3954 case " $depcc " in #( 3955 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3956 esac 3957 3958 for depmode in $am_compiler_list; do 3959 # Setup a source with many dependencies, because some compilers 3960 # like to wrap large dependency lists on column 80 (with \), and 3961 # we should not choose a depcomp mode which is confused by this. 3962 # 3963 # We need to recreate these files for each test, as the compiler may 3964 # overwrite some of them when testing with obscure command lines. 3965 # This happens at least with the AIX C compiler. 3966 : > sub/conftest.c 3967 for i in 1 2 3 4 5 6; do 3968 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3969 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3970 # Solaris 10 /bin/sh. 3971 echo '/* dummy */' > sub/conftst$i.h 3972 done 3973 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3974 3975 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3976 # mode. It turns out that the SunPro C++ compiler does not properly 3977 # handle '-M -o', and we need to detect this. Also, some Intel 3978 # versions had trouble with output in subdirs. 3979 am__obj=sub/conftest.${OBJEXT-o} 3980 am__minus_obj="-o $am__obj" 3981 case $depmode in 3982 gcc) 3983 # This depmode causes a compiler race in universal mode. 3984 test "$am__universal" = false || continue 3985 ;; 3986 nosideeffect) 3987 # After this tag, mechanisms are not by side-effect, so they'll 3988 # only be used when explicitly requested. 3989 if test "x$enable_dependency_tracking" = xyes; then 3990 continue 3991 else 3992 break 3993 fi 3994 ;; 3995 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3996 # This compiler won't grok '-c -o', but also, the minuso test has 3997 # not run yet. These depmodes are late enough in the game, and 3998 # so weak that their functioning should not be impacted. 3999 am__obj=conftest.${OBJEXT-o} 4000 am__minus_obj= 4001 ;; 4002 none) break ;; 4003 esac 4004 if depmode=$depmode \ 4005 source=sub/conftest.c object=$am__obj \ 4006 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4007 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4008 >/dev/null 2>conftest.err && 4009 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4010 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4011 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4012 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4013 # icc doesn't choke on unknown options, it will just issue warnings 4014 # or remarks (even with -Werror). So we grep stderr for any message 4015 # that says an option was ignored or not supported. 4016 # When given -MP, icc 7.0 and 7.1 complain thusly: 4017 # icc: Command line warning: ignoring option '-M'; no argument required 4018 # The diagnosis changed in icc 8.0: 4019 # icc: Command line remark: option '-MP' not supported 4020 if (grep 'ignoring option' conftest.err || 4021 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4022 am_cv_CC_dependencies_compiler_type=$depmode 4023 break 4024 fi 4025 fi 4026 done 4027 4028 cd .. 4029 rm -rf conftest.dir 4030else 4031 am_cv_CC_dependencies_compiler_type=none 4032fi 4033 4034fi 4035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4036$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4037CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4038 4039 if 4040 test "x$enable_dependency_tracking" != xno \ 4041 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4042 am__fastdepCC_TRUE= 4043 am__fastdepCC_FALSE='#' 4044else 4045 am__fastdepCC_TRUE='#' 4046 am__fastdepCC_FALSE= 4047fi 4048 4049 4050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4051$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4052if ${ac_cv_path_SED+:} false; then : 4053 $as_echo_n "(cached) " >&6 4054else 4055 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4056 for ac_i in 1 2 3 4 5 6 7; do 4057 ac_script="$ac_script$as_nl$ac_script" 4058 done 4059 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4060 { ac_script=; unset ac_script;} 4061 if test -z "$SED"; then 4062 ac_path_SED_found=false 4063 # Loop through the user's path and test for each of PROGNAME-LIST 4064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4065for as_dir in $PATH 4066do 4067 IFS=$as_save_IFS 4068 test -z "$as_dir" && as_dir=. 4069 for ac_prog in sed gsed; do 4070 for ac_exec_ext in '' $ac_executable_extensions; do 4071 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4072 as_fn_executable_p "$ac_path_SED" || continue 4073# Check for GNU ac_path_SED and select it if it is found. 4074 # Check for GNU $ac_path_SED 4075case `"$ac_path_SED" --version 2>&1` in 4076*GNU*) 4077 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4078*) 4079 ac_count=0 4080 $as_echo_n 0123456789 >"conftest.in" 4081 while : 4082 do 4083 cat "conftest.in" "conftest.in" >"conftest.tmp" 4084 mv "conftest.tmp" "conftest.in" 4085 cp "conftest.in" "conftest.nl" 4086 $as_echo '' >> "conftest.nl" 4087 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4088 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4089 as_fn_arith $ac_count + 1 && ac_count=$as_val 4090 if test $ac_count -gt ${ac_path_SED_max-0}; then 4091 # Best one so far, save it but keep looking for a better one 4092 ac_cv_path_SED="$ac_path_SED" 4093 ac_path_SED_max=$ac_count 4094 fi 4095 # 10*(2^10) chars as input seems more than enough 4096 test $ac_count -gt 10 && break 4097 done 4098 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4099esac 4100 4101 $ac_path_SED_found && break 3 4102 done 4103 done 4104 done 4105IFS=$as_save_IFS 4106 if test -z "$ac_cv_path_SED"; then 4107 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4108 fi 4109else 4110 ac_cv_path_SED=$SED 4111fi 4112 4113fi 4114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4115$as_echo "$ac_cv_path_SED" >&6; } 4116 SED="$ac_cv_path_SED" 4117 rm -f conftest.sed 4118 4119test -z "$SED" && SED=sed 4120Xsed="$SED -e 1s/^X//" 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4133$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4134if ${ac_cv_path_GREP+:} false; then : 4135 $as_echo_n "(cached) " >&6 4136else 4137 if test -z "$GREP"; then 4138 ac_path_GREP_found=false 4139 # Loop through the user's path and test for each of PROGNAME-LIST 4140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4141for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4142do 4143 IFS=$as_save_IFS 4144 test -z "$as_dir" && as_dir=. 4145 for ac_prog in grep ggrep; do 4146 for ac_exec_ext in '' $ac_executable_extensions; do 4147 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4148 as_fn_executable_p "$ac_path_GREP" || continue 4149# Check for GNU ac_path_GREP and select it if it is found. 4150 # Check for GNU $ac_path_GREP 4151case `"$ac_path_GREP" --version 2>&1` in 4152*GNU*) 4153 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4154*) 4155 ac_count=0 4156 $as_echo_n 0123456789 >"conftest.in" 4157 while : 4158 do 4159 cat "conftest.in" "conftest.in" >"conftest.tmp" 4160 mv "conftest.tmp" "conftest.in" 4161 cp "conftest.in" "conftest.nl" 4162 $as_echo 'GREP' >> "conftest.nl" 4163 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4164 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4165 as_fn_arith $ac_count + 1 && ac_count=$as_val 4166 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4167 # Best one so far, save it but keep looking for a better one 4168 ac_cv_path_GREP="$ac_path_GREP" 4169 ac_path_GREP_max=$ac_count 4170 fi 4171 # 10*(2^10) chars as input seems more than enough 4172 test $ac_count -gt 10 && break 4173 done 4174 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4175esac 4176 4177 $ac_path_GREP_found && break 3 4178 done 4179 done 4180 done 4181IFS=$as_save_IFS 4182 if test -z "$ac_cv_path_GREP"; then 4183 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4184 fi 4185else 4186 ac_cv_path_GREP=$GREP 4187fi 4188 4189fi 4190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4191$as_echo "$ac_cv_path_GREP" >&6; } 4192 GREP="$ac_cv_path_GREP" 4193 4194 4195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4196$as_echo_n "checking for egrep... " >&6; } 4197if ${ac_cv_path_EGREP+:} false; then : 4198 $as_echo_n "(cached) " >&6 4199else 4200 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4201 then ac_cv_path_EGREP="$GREP -E" 4202 else 4203 if test -z "$EGREP"; then 4204 ac_path_EGREP_found=false 4205 # Loop through the user's path and test for each of PROGNAME-LIST 4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4207for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4208do 4209 IFS=$as_save_IFS 4210 test -z "$as_dir" && as_dir=. 4211 for ac_prog in egrep; do 4212 for ac_exec_ext in '' $ac_executable_extensions; do 4213 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4214 as_fn_executable_p "$ac_path_EGREP" || continue 4215# Check for GNU ac_path_EGREP and select it if it is found. 4216 # Check for GNU $ac_path_EGREP 4217case `"$ac_path_EGREP" --version 2>&1` in 4218*GNU*) 4219 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4220*) 4221 ac_count=0 4222 $as_echo_n 0123456789 >"conftest.in" 4223 while : 4224 do 4225 cat "conftest.in" "conftest.in" >"conftest.tmp" 4226 mv "conftest.tmp" "conftest.in" 4227 cp "conftest.in" "conftest.nl" 4228 $as_echo 'EGREP' >> "conftest.nl" 4229 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4230 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4231 as_fn_arith $ac_count + 1 && ac_count=$as_val 4232 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4233 # Best one so far, save it but keep looking for a better one 4234 ac_cv_path_EGREP="$ac_path_EGREP" 4235 ac_path_EGREP_max=$ac_count 4236 fi 4237 # 10*(2^10) chars as input seems more than enough 4238 test $ac_count -gt 10 && break 4239 done 4240 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4241esac 4242 4243 $ac_path_EGREP_found && break 3 4244 done 4245 done 4246 done 4247IFS=$as_save_IFS 4248 if test -z "$ac_cv_path_EGREP"; then 4249 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4250 fi 4251else 4252 ac_cv_path_EGREP=$EGREP 4253fi 4254 4255 fi 4256fi 4257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4258$as_echo "$ac_cv_path_EGREP" >&6; } 4259 EGREP="$ac_cv_path_EGREP" 4260 4261 4262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4263$as_echo_n "checking for fgrep... " >&6; } 4264if ${ac_cv_path_FGREP+:} false; then : 4265 $as_echo_n "(cached) " >&6 4266else 4267 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4268 then ac_cv_path_FGREP="$GREP -F" 4269 else 4270 if test -z "$FGREP"; then 4271 ac_path_FGREP_found=false 4272 # Loop through the user's path and test for each of PROGNAME-LIST 4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4274for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4275do 4276 IFS=$as_save_IFS 4277 test -z "$as_dir" && as_dir=. 4278 for ac_prog in fgrep; do 4279 for ac_exec_ext in '' $ac_executable_extensions; do 4280 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4281 as_fn_executable_p "$ac_path_FGREP" || continue 4282# Check for GNU ac_path_FGREP and select it if it is found. 4283 # Check for GNU $ac_path_FGREP 4284case `"$ac_path_FGREP" --version 2>&1` in 4285*GNU*) 4286 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4287*) 4288 ac_count=0 4289 $as_echo_n 0123456789 >"conftest.in" 4290 while : 4291 do 4292 cat "conftest.in" "conftest.in" >"conftest.tmp" 4293 mv "conftest.tmp" "conftest.in" 4294 cp "conftest.in" "conftest.nl" 4295 $as_echo 'FGREP' >> "conftest.nl" 4296 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4297 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4298 as_fn_arith $ac_count + 1 && ac_count=$as_val 4299 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4300 # Best one so far, save it but keep looking for a better one 4301 ac_cv_path_FGREP="$ac_path_FGREP" 4302 ac_path_FGREP_max=$ac_count 4303 fi 4304 # 10*(2^10) chars as input seems more than enough 4305 test $ac_count -gt 10 && break 4306 done 4307 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4308esac 4309 4310 $ac_path_FGREP_found && break 3 4311 done 4312 done 4313 done 4314IFS=$as_save_IFS 4315 if test -z "$ac_cv_path_FGREP"; then 4316 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4317 fi 4318else 4319 ac_cv_path_FGREP=$FGREP 4320fi 4321 4322 fi 4323fi 4324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4325$as_echo "$ac_cv_path_FGREP" >&6; } 4326 FGREP="$ac_cv_path_FGREP" 4327 4328 4329test -z "$GREP" && GREP=grep 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349# Check whether --with-gnu-ld was given. 4350if test "${with_gnu_ld+set}" = set; then : 4351 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4352else 4353 with_gnu_ld=no 4354fi 4355 4356ac_prog=ld 4357if test yes = "$GCC"; then 4358 # Check if gcc -print-prog-name=ld gives a path. 4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4360$as_echo_n "checking for ld used by $CC... " >&6; } 4361 case $host in 4362 *-*-mingw*) 4363 # gcc leaves a trailing carriage return, which upsets mingw 4364 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4365 *) 4366 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4367 esac 4368 case $ac_prog in 4369 # Accept absolute paths. 4370 [\\/]* | ?:[\\/]*) 4371 re_direlt='/[^/][^/]*/\.\./' 4372 # Canonicalize the pathname of ld 4373 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4374 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4375 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4376 done 4377 test -z "$LD" && LD=$ac_prog 4378 ;; 4379 "") 4380 # If it fails, then pretend we aren't using GCC. 4381 ac_prog=ld 4382 ;; 4383 *) 4384 # If it is relative, then search for the first ld in PATH. 4385 with_gnu_ld=unknown 4386 ;; 4387 esac 4388elif test yes = "$with_gnu_ld"; then 4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4390$as_echo_n "checking for GNU ld... " >&6; } 4391else 4392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4393$as_echo_n "checking for non-GNU ld... " >&6; } 4394fi 4395if ${lt_cv_path_LD+:} false; then : 4396 $as_echo_n "(cached) " >&6 4397else 4398 if test -z "$LD"; then 4399 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4400 for ac_dir in $PATH; do 4401 IFS=$lt_save_ifs 4402 test -z "$ac_dir" && ac_dir=. 4403 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4404 lt_cv_path_LD=$ac_dir/$ac_prog 4405 # Check to see if the program is GNU ld. I'd rather use --version, 4406 # but apparently some variants of GNU ld only accept -v. 4407 # Break only if it was the GNU/non-GNU ld that we prefer. 4408 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4409 *GNU* | *'with BFD'*) 4410 test no != "$with_gnu_ld" && break 4411 ;; 4412 *) 4413 test yes != "$with_gnu_ld" && break 4414 ;; 4415 esac 4416 fi 4417 done 4418 IFS=$lt_save_ifs 4419else 4420 lt_cv_path_LD=$LD # Let the user override the test with a path. 4421fi 4422fi 4423 4424LD=$lt_cv_path_LD 4425if test -n "$LD"; then 4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4427$as_echo "$LD" >&6; } 4428else 4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4430$as_echo "no" >&6; } 4431fi 4432test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4434$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4435if ${lt_cv_prog_gnu_ld+:} false; then : 4436 $as_echo_n "(cached) " >&6 4437else 4438 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4439case `$LD -v 2>&1 </dev/null` in 4440*GNU* | *'with BFD'*) 4441 lt_cv_prog_gnu_ld=yes 4442 ;; 4443*) 4444 lt_cv_prog_gnu_ld=no 4445 ;; 4446esac 4447fi 4448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4449$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4450with_gnu_ld=$lt_cv_prog_gnu_ld 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4461$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4462if ${lt_cv_path_NM+:} false; then : 4463 $as_echo_n "(cached) " >&6 4464else 4465 if test -n "$NM"; then 4466 # Let the user override the test. 4467 lt_cv_path_NM=$NM 4468else 4469 lt_nm_to_check=${ac_tool_prefix}nm 4470 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4471 lt_nm_to_check="$lt_nm_to_check nm" 4472 fi 4473 for lt_tmp_nm in $lt_nm_to_check; do 4474 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4475 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4476 IFS=$lt_save_ifs 4477 test -z "$ac_dir" && ac_dir=. 4478 tmp_nm=$ac_dir/$lt_tmp_nm 4479 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4480 # Check to see if the nm accepts a BSD-compat flag. 4481 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4482 # nm: unknown option "B" ignored 4483 # Tru64's nm complains that /dev/null is an invalid object file 4484 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4485 case $build_os in 4486 mingw*) lt_bad_file=conftest.nm/nofile ;; 4487 *) lt_bad_file=/dev/null ;; 4488 esac 4489 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4490 *$lt_bad_file* | *'Invalid file or object type'*) 4491 lt_cv_path_NM="$tmp_nm -B" 4492 break 2 4493 ;; 4494 *) 4495 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4496 */dev/null*) 4497 lt_cv_path_NM="$tmp_nm -p" 4498 break 2 4499 ;; 4500 *) 4501 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4502 continue # so that we can try to find one that supports BSD flags 4503 ;; 4504 esac 4505 ;; 4506 esac 4507 fi 4508 done 4509 IFS=$lt_save_ifs 4510 done 4511 : ${lt_cv_path_NM=no} 4512fi 4513fi 4514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4515$as_echo "$lt_cv_path_NM" >&6; } 4516if test no != "$lt_cv_path_NM"; then 4517 NM=$lt_cv_path_NM 4518else 4519 # Didn't find any BSD compatible name lister, look for dumpbin. 4520 if test -n "$DUMPBIN"; then : 4521 # Let the user override the test. 4522 else 4523 if test -n "$ac_tool_prefix"; then 4524 for ac_prog in dumpbin "link -dump" 4525 do 4526 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4527set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4529$as_echo_n "checking for $ac_word... " >&6; } 4530if ${ac_cv_prog_DUMPBIN+:} false; then : 4531 $as_echo_n "(cached) " >&6 4532else 4533 if test -n "$DUMPBIN"; then 4534 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4535else 4536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4537for as_dir in $PATH 4538do 4539 IFS=$as_save_IFS 4540 test -z "$as_dir" && as_dir=. 4541 for ac_exec_ext in '' $ac_executable_extensions; do 4542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4543 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4545 break 2 4546 fi 4547done 4548 done 4549IFS=$as_save_IFS 4550 4551fi 4552fi 4553DUMPBIN=$ac_cv_prog_DUMPBIN 4554if test -n "$DUMPBIN"; then 4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4556$as_echo "$DUMPBIN" >&6; } 4557else 4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4559$as_echo "no" >&6; } 4560fi 4561 4562 4563 test -n "$DUMPBIN" && break 4564 done 4565fi 4566if test -z "$DUMPBIN"; then 4567 ac_ct_DUMPBIN=$DUMPBIN 4568 for ac_prog in dumpbin "link -dump" 4569do 4570 # Extract the first word of "$ac_prog", so it can be a program name with args. 4571set dummy $ac_prog; ac_word=$2 4572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4573$as_echo_n "checking for $ac_word... " >&6; } 4574if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4575 $as_echo_n "(cached) " >&6 4576else 4577 if test -n "$ac_ct_DUMPBIN"; then 4578 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4579else 4580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4581for as_dir in $PATH 4582do 4583 IFS=$as_save_IFS 4584 test -z "$as_dir" && as_dir=. 4585 for ac_exec_ext in '' $ac_executable_extensions; do 4586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4587 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4589 break 2 4590 fi 4591done 4592 done 4593IFS=$as_save_IFS 4594 4595fi 4596fi 4597ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4598if test -n "$ac_ct_DUMPBIN"; then 4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4600$as_echo "$ac_ct_DUMPBIN" >&6; } 4601else 4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4603$as_echo "no" >&6; } 4604fi 4605 4606 4607 test -n "$ac_ct_DUMPBIN" && break 4608done 4609 4610 if test "x$ac_ct_DUMPBIN" = x; then 4611 DUMPBIN=":" 4612 else 4613 case $cross_compiling:$ac_tool_warned in 4614yes:) 4615{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4616$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4617ac_tool_warned=yes ;; 4618esac 4619 DUMPBIN=$ac_ct_DUMPBIN 4620 fi 4621fi 4622 4623 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4624 *COFF*) 4625 DUMPBIN="$DUMPBIN -symbols -headers" 4626 ;; 4627 *) 4628 DUMPBIN=: 4629 ;; 4630 esac 4631 fi 4632 4633 if test : != "$DUMPBIN"; then 4634 NM=$DUMPBIN 4635 fi 4636fi 4637test -z "$NM" && NM=nm 4638 4639 4640 4641 4642 4643 4644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4645$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4646if ${lt_cv_nm_interface+:} false; then : 4647 $as_echo_n "(cached) " >&6 4648else 4649 lt_cv_nm_interface="BSD nm" 4650 echo "int some_variable = 0;" > conftest.$ac_ext 4651 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4652 (eval "$ac_compile" 2>conftest.err) 4653 cat conftest.err >&5 4654 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4655 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4656 cat conftest.err >&5 4657 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4658 cat conftest.out >&5 4659 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4660 lt_cv_nm_interface="MS dumpbin" 4661 fi 4662 rm -f conftest* 4663fi 4664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4665$as_echo "$lt_cv_nm_interface" >&6; } 4666 4667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4668$as_echo_n "checking whether ln -s works... " >&6; } 4669LN_S=$as_ln_s 4670if test "$LN_S" = "ln -s"; then 4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4672$as_echo "yes" >&6; } 4673else 4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4675$as_echo "no, using $LN_S" >&6; } 4676fi 4677 4678# find the maximum length of command line arguments 4679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4680$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4681if ${lt_cv_sys_max_cmd_len+:} false; then : 4682 $as_echo_n "(cached) " >&6 4683else 4684 i=0 4685 teststring=ABCD 4686 4687 case $build_os in 4688 msdosdjgpp*) 4689 # On DJGPP, this test can blow up pretty badly due to problems in libc 4690 # (any single argument exceeding 2000 bytes causes a buffer overrun 4691 # during glob expansion). Even if it were fixed, the result of this 4692 # check would be larger than it should be. 4693 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4694 ;; 4695 4696 gnu*) 4697 # Under GNU Hurd, this test is not required because there is 4698 # no limit to the length of command line arguments. 4699 # Libtool will interpret -1 as no limit whatsoever 4700 lt_cv_sys_max_cmd_len=-1; 4701 ;; 4702 4703 cygwin* | mingw* | cegcc*) 4704 # On Win9x/ME, this test blows up -- it succeeds, but takes 4705 # about 5 minutes as the teststring grows exponentially. 4706 # Worse, since 9x/ME are not pre-emptively multitasking, 4707 # you end up with a "frozen" computer, even though with patience 4708 # the test eventually succeeds (with a max line length of 256k). 4709 # Instead, let's just punt: use the minimum linelength reported by 4710 # all of the supported platforms: 8192 (on NT/2K/XP). 4711 lt_cv_sys_max_cmd_len=8192; 4712 ;; 4713 4714 mint*) 4715 # On MiNT this can take a long time and run out of memory. 4716 lt_cv_sys_max_cmd_len=8192; 4717 ;; 4718 4719 amigaos*) 4720 # On AmigaOS with pdksh, this test takes hours, literally. 4721 # So we just punt and use a minimum line length of 8192. 4722 lt_cv_sys_max_cmd_len=8192; 4723 ;; 4724 4725 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 4726 # This has been around since 386BSD, at least. Likely further. 4727 if test -x /sbin/sysctl; then 4728 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4729 elif test -x /usr/sbin/sysctl; then 4730 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4731 else 4732 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4733 fi 4734 # And add a safety zone 4735 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4736 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4737 ;; 4738 4739 interix*) 4740 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4741 lt_cv_sys_max_cmd_len=196608 4742 ;; 4743 4744 os2*) 4745 # The test takes a long time on OS/2. 4746 lt_cv_sys_max_cmd_len=8192 4747 ;; 4748 4749 osf*) 4750 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4751 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4752 # nice to cause kernel panics so lets avoid the loop below. 4753 # First set a reasonable default. 4754 lt_cv_sys_max_cmd_len=16384 4755 # 4756 if test -x /sbin/sysconfig; then 4757 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4758 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4759 esac 4760 fi 4761 ;; 4762 sco3.2v5*) 4763 lt_cv_sys_max_cmd_len=102400 4764 ;; 4765 sysv5* | sco5v6* | sysv4.2uw2*) 4766 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4767 if test -n "$kargmax"; then 4768 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4769 else 4770 lt_cv_sys_max_cmd_len=32768 4771 fi 4772 ;; 4773 *) 4774 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4775 if test -n "$lt_cv_sys_max_cmd_len" && \ 4776 test undefined != "$lt_cv_sys_max_cmd_len"; then 4777 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4778 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4779 else 4780 # Make teststring a little bigger before we do anything with it. 4781 # a 1K string should be a reasonable start. 4782 for i in 1 2 3 4 5 6 7 8; do 4783 teststring=$teststring$teststring 4784 done 4785 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4786 # If test is not a shell built-in, we'll probably end up computing a 4787 # maximum length that is only half of the actual maximum length, but 4788 # we can't tell. 4789 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 4790 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4791 test 17 != "$i" # 1/2 MB should be enough 4792 do 4793 i=`expr $i + 1` 4794 teststring=$teststring$teststring 4795 done 4796 # Only check the string length outside the loop. 4797 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4798 teststring= 4799 # Add a significant safety factor because C++ compilers can tack on 4800 # massive amounts of additional arguments before passing them to the 4801 # linker. It appears as though 1/2 is a usable value. 4802 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4803 fi 4804 ;; 4805 esac 4806 4807fi 4808 4809if test -n "$lt_cv_sys_max_cmd_len"; then 4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4811$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4812else 4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4814$as_echo "none" >&6; } 4815fi 4816max_cmd_len=$lt_cv_sys_max_cmd_len 4817 4818 4819 4820 4821 4822 4823: ${CP="cp -f"} 4824: ${MV="mv -f"} 4825: ${RM="rm -f"} 4826 4827if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4828 lt_unset=unset 4829else 4830 lt_unset=false 4831fi 4832 4833 4834 4835 4836 4837# test EBCDIC or ASCII 4838case `echo X|tr X '\101'` in 4839 A) # ASCII based system 4840 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4841 lt_SP2NL='tr \040 \012' 4842 lt_NL2SP='tr \015\012 \040\040' 4843 ;; 4844 *) # EBCDIC based system 4845 lt_SP2NL='tr \100 \n' 4846 lt_NL2SP='tr \r\n \100\100' 4847 ;; 4848esac 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4859$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4860if ${lt_cv_to_host_file_cmd+:} false; then : 4861 $as_echo_n "(cached) " >&6 4862else 4863 case $host in 4864 *-*-mingw* ) 4865 case $build in 4866 *-*-mingw* ) # actually msys 4867 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4868 ;; 4869 *-*-cygwin* ) 4870 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4871 ;; 4872 * ) # otherwise, assume *nix 4873 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4874 ;; 4875 esac 4876 ;; 4877 *-*-cygwin* ) 4878 case $build in 4879 *-*-mingw* ) # actually msys 4880 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4881 ;; 4882 *-*-cygwin* ) 4883 lt_cv_to_host_file_cmd=func_convert_file_noop 4884 ;; 4885 * ) # otherwise, assume *nix 4886 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4887 ;; 4888 esac 4889 ;; 4890 * ) # unhandled hosts (and "normal" native builds) 4891 lt_cv_to_host_file_cmd=func_convert_file_noop 4892 ;; 4893esac 4894 4895fi 4896 4897to_host_file_cmd=$lt_cv_to_host_file_cmd 4898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4899$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4900 4901 4902 4903 4904 4905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4906$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4907if ${lt_cv_to_tool_file_cmd+:} false; then : 4908 $as_echo_n "(cached) " >&6 4909else 4910 #assume ordinary cross tools, or native build. 4911lt_cv_to_tool_file_cmd=func_convert_file_noop 4912case $host in 4913 *-*-mingw* ) 4914 case $build in 4915 *-*-mingw* ) # actually msys 4916 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4917 ;; 4918 esac 4919 ;; 4920esac 4921 4922fi 4923 4924to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4926$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4927 4928 4929 4930 4931 4932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4933$as_echo_n "checking for $LD option to reload object files... " >&6; } 4934if ${lt_cv_ld_reload_flag+:} false; then : 4935 $as_echo_n "(cached) " >&6 4936else 4937 lt_cv_ld_reload_flag='-r' 4938fi 4939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4940$as_echo "$lt_cv_ld_reload_flag" >&6; } 4941reload_flag=$lt_cv_ld_reload_flag 4942case $reload_flag in 4943"" | " "*) ;; 4944*) reload_flag=" $reload_flag" ;; 4945esac 4946reload_cmds='$LD$reload_flag -o $output$reload_objs' 4947case $host_os in 4948 cygwin* | mingw* | pw32* | cegcc*) 4949 if test yes != "$GCC"; then 4950 reload_cmds=false 4951 fi 4952 ;; 4953 darwin*) 4954 if test yes = "$GCC"; then 4955 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 4956 else 4957 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4958 fi 4959 ;; 4960esac 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970if test -n "$ac_tool_prefix"; then 4971 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4972set dummy ${ac_tool_prefix}objdump; ac_word=$2 4973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4974$as_echo_n "checking for $ac_word... " >&6; } 4975if ${ac_cv_prog_OBJDUMP+:} false; then : 4976 $as_echo_n "(cached) " >&6 4977else 4978 if test -n "$OBJDUMP"; then 4979 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4980else 4981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4982for as_dir in $PATH 4983do 4984 IFS=$as_save_IFS 4985 test -z "$as_dir" && as_dir=. 4986 for ac_exec_ext in '' $ac_executable_extensions; do 4987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4988 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4990 break 2 4991 fi 4992done 4993 done 4994IFS=$as_save_IFS 4995 4996fi 4997fi 4998OBJDUMP=$ac_cv_prog_OBJDUMP 4999if test -n "$OBJDUMP"; then 5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5001$as_echo "$OBJDUMP" >&6; } 5002else 5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5004$as_echo "no" >&6; } 5005fi 5006 5007 5008fi 5009if test -z "$ac_cv_prog_OBJDUMP"; then 5010 ac_ct_OBJDUMP=$OBJDUMP 5011 # Extract the first word of "objdump", so it can be a program name with args. 5012set dummy objdump; ac_word=$2 5013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5014$as_echo_n "checking for $ac_word... " >&6; } 5015if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5016 $as_echo_n "(cached) " >&6 5017else 5018 if test -n "$ac_ct_OBJDUMP"; then 5019 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5020else 5021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5022for as_dir in $PATH 5023do 5024 IFS=$as_save_IFS 5025 test -z "$as_dir" && as_dir=. 5026 for ac_exec_ext in '' $ac_executable_extensions; do 5027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5028 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5030 break 2 5031 fi 5032done 5033 done 5034IFS=$as_save_IFS 5035 5036fi 5037fi 5038ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5039if test -n "$ac_ct_OBJDUMP"; then 5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5041$as_echo "$ac_ct_OBJDUMP" >&6; } 5042else 5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5044$as_echo "no" >&6; } 5045fi 5046 5047 if test "x$ac_ct_OBJDUMP" = x; then 5048 OBJDUMP="false" 5049 else 5050 case $cross_compiling:$ac_tool_warned in 5051yes:) 5052{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5053$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5054ac_tool_warned=yes ;; 5055esac 5056 OBJDUMP=$ac_ct_OBJDUMP 5057 fi 5058else 5059 OBJDUMP="$ac_cv_prog_OBJDUMP" 5060fi 5061 5062test -z "$OBJDUMP" && OBJDUMP=objdump 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5073$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5074if ${lt_cv_deplibs_check_method+:} false; then : 5075 $as_echo_n "(cached) " >&6 5076else 5077 lt_cv_file_magic_cmd='$MAGIC_CMD' 5078lt_cv_file_magic_test_file= 5079lt_cv_deplibs_check_method='unknown' 5080# Need to set the preceding variable on all platforms that support 5081# interlibrary dependencies. 5082# 'none' -- dependencies not supported. 5083# 'unknown' -- same as none, but documents that we really don't know. 5084# 'pass_all' -- all dependencies passed with no checks. 5085# 'test_compile' -- check by making test program. 5086# 'file_magic [[regex]]' -- check by looking for files in library path 5087# that responds to the $file_magic_cmd with a given extended regex. 5088# If you have 'file' or equivalent on your system and you're not sure 5089# whether 'pass_all' will *always* work, you probably want this one. 5090 5091case $host_os in 5092aix[4-9]*) 5093 lt_cv_deplibs_check_method=pass_all 5094 ;; 5095 5096beos*) 5097 lt_cv_deplibs_check_method=pass_all 5098 ;; 5099 5100bsdi[45]*) 5101 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5102 lt_cv_file_magic_cmd='/usr/bin/file -L' 5103 lt_cv_file_magic_test_file=/shlib/libc.so 5104 ;; 5105 5106cygwin*) 5107 # func_win32_libid is a shell function defined in ltmain.sh 5108 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5109 lt_cv_file_magic_cmd='func_win32_libid' 5110 ;; 5111 5112mingw* | pw32*) 5113 # Base MSYS/MinGW do not provide the 'file' command needed by 5114 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5115 # unless we find 'file', for example because we are cross-compiling. 5116 if ( file / ) >/dev/null 2>&1; then 5117 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5118 lt_cv_file_magic_cmd='func_win32_libid' 5119 else 5120 # Keep this pattern in sync with the one in func_win32_libid. 5121 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5122 lt_cv_file_magic_cmd='$OBJDUMP -f' 5123 fi 5124 ;; 5125 5126cegcc*) 5127 # use the weaker test based on 'objdump'. See mingw*. 5128 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5129 lt_cv_file_magic_cmd='$OBJDUMP -f' 5130 ;; 5131 5132darwin* | rhapsody*) 5133 lt_cv_deplibs_check_method=pass_all 5134 ;; 5135 5136freebsd* | dragonfly*) 5137 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5138 case $host_cpu in 5139 i*86 ) 5140 # Not sure whether the presence of OpenBSD here was a mistake. 5141 # Let's accept both of them until this is cleared up. 5142 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5143 lt_cv_file_magic_cmd=/usr/bin/file 5144 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5145 ;; 5146 esac 5147 else 5148 lt_cv_deplibs_check_method=pass_all 5149 fi 5150 ;; 5151 5152haiku*) 5153 lt_cv_deplibs_check_method=pass_all 5154 ;; 5155 5156hpux10.20* | hpux11*) 5157 lt_cv_file_magic_cmd=/usr/bin/file 5158 case $host_cpu in 5159 ia64*) 5160 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5161 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5162 ;; 5163 hppa*64*) 5164 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]' 5165 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5166 ;; 5167 *) 5168 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5169 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5170 ;; 5171 esac 5172 ;; 5173 5174interix[3-9]*) 5175 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5176 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5177 ;; 5178 5179irix5* | irix6* | nonstopux*) 5180 case $LD in 5181 *-32|*"-32 ") libmagic=32-bit;; 5182 *-n32|*"-n32 ") libmagic=N32;; 5183 *-64|*"-64 ") libmagic=64-bit;; 5184 *) libmagic=never-match;; 5185 esac 5186 lt_cv_deplibs_check_method=pass_all 5187 ;; 5188 5189# This must be glibc/ELF. 5190linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5191 lt_cv_deplibs_check_method=pass_all 5192 ;; 5193 5194netbsd*) 5195 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5196 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5197 else 5198 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5199 fi 5200 ;; 5201 5202newos6*) 5203 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5204 lt_cv_file_magic_cmd=/usr/bin/file 5205 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5206 ;; 5207 5208*nto* | *qnx*) 5209 lt_cv_deplibs_check_method=pass_all 5210 ;; 5211 5212openbsd* | bitrig*) 5213 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5214 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5215 else 5216 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5217 fi 5218 ;; 5219 5220osf3* | osf4* | osf5*) 5221 lt_cv_deplibs_check_method=pass_all 5222 ;; 5223 5224rdos*) 5225 lt_cv_deplibs_check_method=pass_all 5226 ;; 5227 5228solaris*) 5229 lt_cv_deplibs_check_method=pass_all 5230 ;; 5231 5232sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5233 lt_cv_deplibs_check_method=pass_all 5234 ;; 5235 5236sysv4 | sysv4.3*) 5237 case $host_vendor in 5238 motorola) 5239 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]' 5240 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5241 ;; 5242 ncr) 5243 lt_cv_deplibs_check_method=pass_all 5244 ;; 5245 sequent) 5246 lt_cv_file_magic_cmd='/bin/file' 5247 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5248 ;; 5249 sni) 5250 lt_cv_file_magic_cmd='/bin/file' 5251 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5252 lt_cv_file_magic_test_file=/lib/libc.so 5253 ;; 5254 siemens) 5255 lt_cv_deplibs_check_method=pass_all 5256 ;; 5257 pc) 5258 lt_cv_deplibs_check_method=pass_all 5259 ;; 5260 esac 5261 ;; 5262 5263tpf*) 5264 lt_cv_deplibs_check_method=pass_all 5265 ;; 5266os2*) 5267 lt_cv_deplibs_check_method=pass_all 5268 ;; 5269esac 5270 5271fi 5272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5273$as_echo "$lt_cv_deplibs_check_method" >&6; } 5274 5275file_magic_glob= 5276want_nocaseglob=no 5277if test "$build" = "$host"; then 5278 case $host_os in 5279 mingw* | pw32*) 5280 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5281 want_nocaseglob=yes 5282 else 5283 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5284 fi 5285 ;; 5286 esac 5287fi 5288 5289file_magic_cmd=$lt_cv_file_magic_cmd 5290deplibs_check_method=$lt_cv_deplibs_check_method 5291test -z "$deplibs_check_method" && deplibs_check_method=unknown 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314if test -n "$ac_tool_prefix"; then 5315 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5316set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5318$as_echo_n "checking for $ac_word... " >&6; } 5319if ${ac_cv_prog_DLLTOOL+:} false; then : 5320 $as_echo_n "(cached) " >&6 5321else 5322 if test -n "$DLLTOOL"; then 5323 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5324else 5325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5326for as_dir in $PATH 5327do 5328 IFS=$as_save_IFS 5329 test -z "$as_dir" && as_dir=. 5330 for ac_exec_ext in '' $ac_executable_extensions; do 5331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5332 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5334 break 2 5335 fi 5336done 5337 done 5338IFS=$as_save_IFS 5339 5340fi 5341fi 5342DLLTOOL=$ac_cv_prog_DLLTOOL 5343if test -n "$DLLTOOL"; then 5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5345$as_echo "$DLLTOOL" >&6; } 5346else 5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5348$as_echo "no" >&6; } 5349fi 5350 5351 5352fi 5353if test -z "$ac_cv_prog_DLLTOOL"; then 5354 ac_ct_DLLTOOL=$DLLTOOL 5355 # Extract the first word of "dlltool", so it can be a program name with args. 5356set dummy dlltool; ac_word=$2 5357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5358$as_echo_n "checking for $ac_word... " >&6; } 5359if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5360 $as_echo_n "(cached) " >&6 5361else 5362 if test -n "$ac_ct_DLLTOOL"; then 5363 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5364else 5365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5366for as_dir in $PATH 5367do 5368 IFS=$as_save_IFS 5369 test -z "$as_dir" && as_dir=. 5370 for ac_exec_ext in '' $ac_executable_extensions; do 5371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5372 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5374 break 2 5375 fi 5376done 5377 done 5378IFS=$as_save_IFS 5379 5380fi 5381fi 5382ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5383if test -n "$ac_ct_DLLTOOL"; then 5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5385$as_echo "$ac_ct_DLLTOOL" >&6; } 5386else 5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5388$as_echo "no" >&6; } 5389fi 5390 5391 if test "x$ac_ct_DLLTOOL" = x; then 5392 DLLTOOL="false" 5393 else 5394 case $cross_compiling:$ac_tool_warned in 5395yes:) 5396{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5397$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5398ac_tool_warned=yes ;; 5399esac 5400 DLLTOOL=$ac_ct_DLLTOOL 5401 fi 5402else 5403 DLLTOOL="$ac_cv_prog_DLLTOOL" 5404fi 5405 5406test -z "$DLLTOOL" && DLLTOOL=dlltool 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5418$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5419if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5420 $as_echo_n "(cached) " >&6 5421else 5422 lt_cv_sharedlib_from_linklib_cmd='unknown' 5423 5424case $host_os in 5425cygwin* | mingw* | pw32* | cegcc*) 5426 # two different shell functions defined in ltmain.sh; 5427 # decide which one to use based on capabilities of $DLLTOOL 5428 case `$DLLTOOL --help 2>&1` in 5429 *--identify-strict*) 5430 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5431 ;; 5432 *) 5433 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5434 ;; 5435 esac 5436 ;; 5437*) 5438 # fallback: assume linklib IS sharedlib 5439 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5440 ;; 5441esac 5442 5443fi 5444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5445$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5446sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5447test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5448 5449 5450 5451 5452 5453 5454 5455 5456if test -n "$ac_tool_prefix"; then 5457 for ac_prog in ar 5458 do 5459 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5460set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5462$as_echo_n "checking for $ac_word... " >&6; } 5463if ${ac_cv_prog_AR+:} false; then : 5464 $as_echo_n "(cached) " >&6 5465else 5466 if test -n "$AR"; then 5467 ac_cv_prog_AR="$AR" # Let the user override the test. 5468else 5469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5470for as_dir in $PATH 5471do 5472 IFS=$as_save_IFS 5473 test -z "$as_dir" && as_dir=. 5474 for ac_exec_ext in '' $ac_executable_extensions; do 5475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5476 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5478 break 2 5479 fi 5480done 5481 done 5482IFS=$as_save_IFS 5483 5484fi 5485fi 5486AR=$ac_cv_prog_AR 5487if test -n "$AR"; then 5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5489$as_echo "$AR" >&6; } 5490else 5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5492$as_echo "no" >&6; } 5493fi 5494 5495 5496 test -n "$AR" && break 5497 done 5498fi 5499if test -z "$AR"; then 5500 ac_ct_AR=$AR 5501 for ac_prog in ar 5502do 5503 # Extract the first word of "$ac_prog", so it can be a program name with args. 5504set dummy $ac_prog; ac_word=$2 5505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5506$as_echo_n "checking for $ac_word... " >&6; } 5507if ${ac_cv_prog_ac_ct_AR+:} false; then : 5508 $as_echo_n "(cached) " >&6 5509else 5510 if test -n "$ac_ct_AR"; then 5511 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5512else 5513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5514for as_dir in $PATH 5515do 5516 IFS=$as_save_IFS 5517 test -z "$as_dir" && as_dir=. 5518 for ac_exec_ext in '' $ac_executable_extensions; do 5519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5520 ac_cv_prog_ac_ct_AR="$ac_prog" 5521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5522 break 2 5523 fi 5524done 5525 done 5526IFS=$as_save_IFS 5527 5528fi 5529fi 5530ac_ct_AR=$ac_cv_prog_ac_ct_AR 5531if test -n "$ac_ct_AR"; then 5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5533$as_echo "$ac_ct_AR" >&6; } 5534else 5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5536$as_echo "no" >&6; } 5537fi 5538 5539 5540 test -n "$ac_ct_AR" && break 5541done 5542 5543 if test "x$ac_ct_AR" = x; then 5544 AR="false" 5545 else 5546 case $cross_compiling:$ac_tool_warned in 5547yes:) 5548{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5549$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5550ac_tool_warned=yes ;; 5551esac 5552 AR=$ac_ct_AR 5553 fi 5554fi 5555 5556: ${AR=ar} 5557: ${AR_FLAGS=cru} 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5570$as_echo_n "checking for archiver @FILE support... " >&6; } 5571if ${lt_cv_ar_at_file+:} false; then : 5572 $as_echo_n "(cached) " >&6 5573else 5574 lt_cv_ar_at_file=no 5575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5576/* end confdefs.h. */ 5577 5578int 5579main () 5580{ 5581 5582 ; 5583 return 0; 5584} 5585_ACEOF 5586if ac_fn_c_try_compile "$LINENO"; then : 5587 echo conftest.$ac_objext > conftest.lst 5588 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5589 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5590 (eval $lt_ar_try) 2>&5 5591 ac_status=$? 5592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5593 test $ac_status = 0; } 5594 if test 0 -eq "$ac_status"; then 5595 # Ensure the archiver fails upon bogus file names. 5596 rm -f conftest.$ac_objext libconftest.a 5597 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5598 (eval $lt_ar_try) 2>&5 5599 ac_status=$? 5600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5601 test $ac_status = 0; } 5602 if test 0 -ne "$ac_status"; then 5603 lt_cv_ar_at_file=@ 5604 fi 5605 fi 5606 rm -f conftest.* libconftest.a 5607 5608fi 5609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5610 5611fi 5612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5613$as_echo "$lt_cv_ar_at_file" >&6; } 5614 5615if test no = "$lt_cv_ar_at_file"; then 5616 archiver_list_spec= 5617else 5618 archiver_list_spec=$lt_cv_ar_at_file 5619fi 5620 5621 5622 5623 5624 5625 5626 5627if test -n "$ac_tool_prefix"; then 5628 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5629set dummy ${ac_tool_prefix}strip; ac_word=$2 5630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5631$as_echo_n "checking for $ac_word... " >&6; } 5632if ${ac_cv_prog_STRIP+:} false; then : 5633 $as_echo_n "(cached) " >&6 5634else 5635 if test -n "$STRIP"; then 5636 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5637else 5638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5639for as_dir in $PATH 5640do 5641 IFS=$as_save_IFS 5642 test -z "$as_dir" && as_dir=. 5643 for ac_exec_ext in '' $ac_executable_extensions; do 5644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5645 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5647 break 2 5648 fi 5649done 5650 done 5651IFS=$as_save_IFS 5652 5653fi 5654fi 5655STRIP=$ac_cv_prog_STRIP 5656if test -n "$STRIP"; then 5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5658$as_echo "$STRIP" >&6; } 5659else 5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5661$as_echo "no" >&6; } 5662fi 5663 5664 5665fi 5666if test -z "$ac_cv_prog_STRIP"; then 5667 ac_ct_STRIP=$STRIP 5668 # Extract the first word of "strip", so it can be a program name with args. 5669set dummy strip; ac_word=$2 5670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5671$as_echo_n "checking for $ac_word... " >&6; } 5672if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5673 $as_echo_n "(cached) " >&6 5674else 5675 if test -n "$ac_ct_STRIP"; then 5676 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5677else 5678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5679for as_dir in $PATH 5680do 5681 IFS=$as_save_IFS 5682 test -z "$as_dir" && as_dir=. 5683 for ac_exec_ext in '' $ac_executable_extensions; do 5684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5685 ac_cv_prog_ac_ct_STRIP="strip" 5686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5687 break 2 5688 fi 5689done 5690 done 5691IFS=$as_save_IFS 5692 5693fi 5694fi 5695ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5696if test -n "$ac_ct_STRIP"; then 5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5698$as_echo "$ac_ct_STRIP" >&6; } 5699else 5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5701$as_echo "no" >&6; } 5702fi 5703 5704 if test "x$ac_ct_STRIP" = x; then 5705 STRIP=":" 5706 else 5707 case $cross_compiling:$ac_tool_warned in 5708yes:) 5709{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5710$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5711ac_tool_warned=yes ;; 5712esac 5713 STRIP=$ac_ct_STRIP 5714 fi 5715else 5716 STRIP="$ac_cv_prog_STRIP" 5717fi 5718 5719test -z "$STRIP" && STRIP=: 5720 5721 5722 5723 5724 5725 5726if test -n "$ac_tool_prefix"; then 5727 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5728set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5730$as_echo_n "checking for $ac_word... " >&6; } 5731if ${ac_cv_prog_RANLIB+:} false; then : 5732 $as_echo_n "(cached) " >&6 5733else 5734 if test -n "$RANLIB"; then 5735 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5736else 5737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5738for as_dir in $PATH 5739do 5740 IFS=$as_save_IFS 5741 test -z "$as_dir" && as_dir=. 5742 for ac_exec_ext in '' $ac_executable_extensions; do 5743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5744 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5746 break 2 5747 fi 5748done 5749 done 5750IFS=$as_save_IFS 5751 5752fi 5753fi 5754RANLIB=$ac_cv_prog_RANLIB 5755if test -n "$RANLIB"; then 5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5757$as_echo "$RANLIB" >&6; } 5758else 5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5760$as_echo "no" >&6; } 5761fi 5762 5763 5764fi 5765if test -z "$ac_cv_prog_RANLIB"; then 5766 ac_ct_RANLIB=$RANLIB 5767 # Extract the first word of "ranlib", so it can be a program name with args. 5768set dummy ranlib; ac_word=$2 5769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5770$as_echo_n "checking for $ac_word... " >&6; } 5771if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5772 $as_echo_n "(cached) " >&6 5773else 5774 if test -n "$ac_ct_RANLIB"; then 5775 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5776else 5777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5778for as_dir in $PATH 5779do 5780 IFS=$as_save_IFS 5781 test -z "$as_dir" && as_dir=. 5782 for ac_exec_ext in '' $ac_executable_extensions; do 5783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5784 ac_cv_prog_ac_ct_RANLIB="ranlib" 5785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5786 break 2 5787 fi 5788done 5789 done 5790IFS=$as_save_IFS 5791 5792fi 5793fi 5794ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5795if test -n "$ac_ct_RANLIB"; then 5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5797$as_echo "$ac_ct_RANLIB" >&6; } 5798else 5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5800$as_echo "no" >&6; } 5801fi 5802 5803 if test "x$ac_ct_RANLIB" = x; then 5804 RANLIB=":" 5805 else 5806 case $cross_compiling:$ac_tool_warned in 5807yes:) 5808{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5809$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5810ac_tool_warned=yes ;; 5811esac 5812 RANLIB=$ac_ct_RANLIB 5813 fi 5814else 5815 RANLIB="$ac_cv_prog_RANLIB" 5816fi 5817 5818test -z "$RANLIB" && RANLIB=: 5819 5820 5821 5822 5823 5824 5825# Determine commands to create old-style static archives. 5826old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5827old_postinstall_cmds='chmod 644 $oldlib' 5828old_postuninstall_cmds= 5829 5830if test -n "$RANLIB"; then 5831 case $host_os in 5832 bitrig* | openbsd*) 5833 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5834 ;; 5835 *) 5836 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5837 ;; 5838 esac 5839 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5840fi 5841 5842case $host_os in 5843 darwin*) 5844 lock_old_archive_extraction=yes ;; 5845 *) 5846 lock_old_archive_extraction=no ;; 5847esac 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887# If no C compiler was specified, use CC. 5888LTCC=${LTCC-"$CC"} 5889 5890# If no C compiler flags were specified, use CFLAGS. 5891LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5892 5893# Allow CC to be a program name with arguments. 5894compiler=$CC 5895 5896 5897# Check for command to grab the raw symbol name followed by C symbol from nm. 5898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5899$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5900if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5901 $as_echo_n "(cached) " >&6 5902else 5903 5904# These are sane defaults that work on at least a few old systems. 5905# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5906 5907# Character class describing NM global symbol codes. 5908symcode='[BCDEGRST]' 5909 5910# Regexp to match symbols that can be accessed directly from C. 5911sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5912 5913# Define system-specific variables. 5914case $host_os in 5915aix*) 5916 symcode='[BCDT]' 5917 ;; 5918cygwin* | mingw* | pw32* | cegcc*) 5919 symcode='[ABCDGISTW]' 5920 ;; 5921hpux*) 5922 if test ia64 = "$host_cpu"; then 5923 symcode='[ABCDEGRST]' 5924 fi 5925 ;; 5926irix* | nonstopux*) 5927 symcode='[BCDEGRST]' 5928 ;; 5929osf*) 5930 symcode='[BCDEGQRST]' 5931 ;; 5932solaris*) 5933 symcode='[BDRT]' 5934 ;; 5935sco3.2v5*) 5936 symcode='[DT]' 5937 ;; 5938sysv4.2uw2*) 5939 symcode='[DT]' 5940 ;; 5941sysv5* | sco5v6* | unixware* | OpenUNIX*) 5942 symcode='[ABDT]' 5943 ;; 5944sysv4) 5945 symcode='[DFNSTU]' 5946 ;; 5947esac 5948 5949# If we're using GNU nm, then use its standard symbol codes. 5950case `$NM -V 2>&1` in 5951*GNU* | *'with BFD'*) 5952 symcode='[ABCDGIRSTW]' ;; 5953esac 5954 5955if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5956 # Gets list of data symbols to import. 5957 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 5958 # Adjust the below global symbol transforms to fixup imported variables. 5959 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 5960 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 5961 lt_c_name_lib_hook="\ 5962 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 5963 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 5964else 5965 # Disable hooks by default. 5966 lt_cv_sys_global_symbol_to_import= 5967 lt_cdecl_hook= 5968 lt_c_name_hook= 5969 lt_c_name_lib_hook= 5970fi 5971 5972# Transform an extracted symbol line into a proper C declaration. 5973# Some systems (esp. on ia64) link data and code symbols differently, 5974# so use this general approach. 5975lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 5976$lt_cdecl_hook\ 5977" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 5978" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 5979 5980# Transform an extracted symbol line into symbol name and symbol address 5981lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 5982$lt_c_name_hook\ 5983" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 5984" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 5985 5986# Transform an extracted symbol line into symbol name with lib prefix and 5987# symbol address. 5988lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 5989$lt_c_name_lib_hook\ 5990" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 5991" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 5992" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 5993 5994# Handle CRLF in mingw tool chain 5995opt_cr= 5996case $build_os in 5997mingw*) 5998 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5999 ;; 6000esac 6001 6002# Try without a prefix underscore, then with it. 6003for ac_symprfx in "" "_"; do 6004 6005 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6006 symxfrm="\\1 $ac_symprfx\\2 \\2" 6007 6008 # Write the raw and C identifiers. 6009 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6010 # Fake it for dumpbin and say T for any non-static function, 6011 # D for any global variable and I for any imported variable. 6012 # Also find C++ and __fastcall symbols from MSVC++, 6013 # which start with @ or ?. 6014 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6015" {last_section=section; section=\$ 3};"\ 6016" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6017" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6018" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6019" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6020" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6021" \$ 0!~/External *\|/{next};"\ 6022" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6023" {if(hide[section]) next};"\ 6024" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6025" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6026" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6027" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6028" ' prfx=^$ac_symprfx" 6029 else 6030 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6031 fi 6032 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6033 6034 # Check to see that the pipe works correctly. 6035 pipe_works=no 6036 6037 rm -f conftest* 6038 cat > conftest.$ac_ext <<_LT_EOF 6039#ifdef __cplusplus 6040extern "C" { 6041#endif 6042char nm_test_var; 6043void nm_test_func(void); 6044void nm_test_func(void){} 6045#ifdef __cplusplus 6046} 6047#endif 6048int main(){nm_test_var='a';nm_test_func();return(0);} 6049_LT_EOF 6050 6051 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6052 (eval $ac_compile) 2>&5 6053 ac_status=$? 6054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6055 test $ac_status = 0; }; then 6056 # Now try to grab the symbols. 6057 nlist=conftest.nm 6058 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6059 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6060 ac_status=$? 6061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6062 test $ac_status = 0; } && test -s "$nlist"; then 6063 # Try sorting and uniquifying the output. 6064 if sort "$nlist" | uniq > "$nlist"T; then 6065 mv -f "$nlist"T "$nlist" 6066 else 6067 rm -f "$nlist"T 6068 fi 6069 6070 # Make sure that we snagged all the symbols we need. 6071 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6072 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6073 cat <<_LT_EOF > conftest.$ac_ext 6074/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6075#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6076/* DATA imports from DLLs on WIN32 can't be const, because runtime 6077 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6078# define LT_DLSYM_CONST 6079#elif defined __osf__ 6080/* This system does not cope well with relocations in const data. */ 6081# define LT_DLSYM_CONST 6082#else 6083# define LT_DLSYM_CONST const 6084#endif 6085 6086#ifdef __cplusplus 6087extern "C" { 6088#endif 6089 6090_LT_EOF 6091 # Now generate the symbol file. 6092 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6093 6094 cat <<_LT_EOF >> conftest.$ac_ext 6095 6096/* The mapping between symbol names and symbols. */ 6097LT_DLSYM_CONST struct { 6098 const char *name; 6099 void *address; 6100} 6101lt__PROGRAM__LTX_preloaded_symbols[] = 6102{ 6103 { "@PROGRAM@", (void *) 0 }, 6104_LT_EOF 6105 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6106 cat <<\_LT_EOF >> conftest.$ac_ext 6107 {0, (void *) 0} 6108}; 6109 6110/* This works around a problem in FreeBSD linker */ 6111#ifdef FREEBSD_WORKAROUND 6112static const void *lt_preloaded_setup() { 6113 return lt__PROGRAM__LTX_preloaded_symbols; 6114} 6115#endif 6116 6117#ifdef __cplusplus 6118} 6119#endif 6120_LT_EOF 6121 # Now try linking the two files. 6122 mv conftest.$ac_objext conftstm.$ac_objext 6123 lt_globsym_save_LIBS=$LIBS 6124 lt_globsym_save_CFLAGS=$CFLAGS 6125 LIBS=conftstm.$ac_objext 6126 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6127 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6128 (eval $ac_link) 2>&5 6129 ac_status=$? 6130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6131 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6132 pipe_works=yes 6133 fi 6134 LIBS=$lt_globsym_save_LIBS 6135 CFLAGS=$lt_globsym_save_CFLAGS 6136 else 6137 echo "cannot find nm_test_func in $nlist" >&5 6138 fi 6139 else 6140 echo "cannot find nm_test_var in $nlist" >&5 6141 fi 6142 else 6143 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6144 fi 6145 else 6146 echo "$progname: failed program was:" >&5 6147 cat conftest.$ac_ext >&5 6148 fi 6149 rm -rf conftest* conftst* 6150 6151 # Do not use the global_symbol_pipe unless it works. 6152 if test yes = "$pipe_works"; then 6153 break 6154 else 6155 lt_cv_sys_global_symbol_pipe= 6156 fi 6157done 6158 6159fi 6160 6161if test -z "$lt_cv_sys_global_symbol_pipe"; then 6162 lt_cv_sys_global_symbol_to_cdecl= 6163fi 6164if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6166$as_echo "failed" >&6; } 6167else 6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6169$as_echo "ok" >&6; } 6170fi 6171 6172# Response file support. 6173if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6174 nm_file_list_spec='@' 6175elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6176 nm_file_list_spec='@' 6177fi 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6216$as_echo_n "checking for sysroot... " >&6; } 6217 6218# Check whether --with-sysroot was given. 6219if test "${with_sysroot+set}" = set; then : 6220 withval=$with_sysroot; 6221else 6222 with_sysroot=no 6223fi 6224 6225 6226lt_sysroot= 6227case $with_sysroot in #( 6228 yes) 6229 if test yes = "$GCC"; then 6230 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6231 fi 6232 ;; #( 6233 /*) 6234 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6235 ;; #( 6236 no|'') 6237 ;; #( 6238 *) 6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6240$as_echo "$with_sysroot" >&6; } 6241 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6242 ;; 6243esac 6244 6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6246$as_echo "${lt_sysroot:-no}" >&6; } 6247 6248 6249 6250 6251 6252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6253$as_echo_n "checking for a working dd... " >&6; } 6254if ${ac_cv_path_lt_DD+:} false; then : 6255 $as_echo_n "(cached) " >&6 6256else 6257 printf 0123456789abcdef0123456789abcdef >conftest.i 6258cat conftest.i conftest.i >conftest2.i 6259: ${lt_DD:=$DD} 6260if test -z "$lt_DD"; then 6261 ac_path_lt_DD_found=false 6262 # Loop through the user's path and test for each of PROGNAME-LIST 6263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6264for as_dir in $PATH 6265do 6266 IFS=$as_save_IFS 6267 test -z "$as_dir" && as_dir=. 6268 for ac_prog in dd; do 6269 for ac_exec_ext in '' $ac_executable_extensions; do 6270 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6271 as_fn_executable_p "$ac_path_lt_DD" || continue 6272if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6273 cmp -s conftest.i conftest.out \ 6274 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6275fi 6276 $ac_path_lt_DD_found && break 3 6277 done 6278 done 6279 done 6280IFS=$as_save_IFS 6281 if test -z "$ac_cv_path_lt_DD"; then 6282 : 6283 fi 6284else 6285 ac_cv_path_lt_DD=$lt_DD 6286fi 6287 6288rm -f conftest.i conftest2.i conftest.out 6289fi 6290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6291$as_echo "$ac_cv_path_lt_DD" >&6; } 6292 6293 6294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6295$as_echo_n "checking how to truncate binary pipes... " >&6; } 6296if ${lt_cv_truncate_bin+:} false; then : 6297 $as_echo_n "(cached) " >&6 6298else 6299 printf 0123456789abcdef0123456789abcdef >conftest.i 6300cat conftest.i conftest.i >conftest2.i 6301lt_cv_truncate_bin= 6302if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6303 cmp -s conftest.i conftest.out \ 6304 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6305fi 6306rm -f conftest.i conftest2.i conftest.out 6307test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6308fi 6309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6310$as_echo "$lt_cv_truncate_bin" >&6; } 6311 6312 6313 6314 6315 6316 6317 6318# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6319func_cc_basename () 6320{ 6321 for cc_temp in $*""; do 6322 case $cc_temp in 6323 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6324 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6325 \-*) ;; 6326 *) break;; 6327 esac 6328 done 6329 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6330} 6331 6332# Check whether --enable-libtool-lock was given. 6333if test "${enable_libtool_lock+set}" = set; then : 6334 enableval=$enable_libtool_lock; 6335fi 6336 6337test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6338 6339# Some flags need to be propagated to the compiler or linker for good 6340# libtool support. 6341case $host in 6342ia64-*-hpux*) 6343 # Find out what ABI is being produced by ac_compile, and set mode 6344 # options accordingly. 6345 echo 'int i;' > conftest.$ac_ext 6346 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6347 (eval $ac_compile) 2>&5 6348 ac_status=$? 6349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6350 test $ac_status = 0; }; then 6351 case `/usr/bin/file conftest.$ac_objext` in 6352 *ELF-32*) 6353 HPUX_IA64_MODE=32 6354 ;; 6355 *ELF-64*) 6356 HPUX_IA64_MODE=64 6357 ;; 6358 esac 6359 fi 6360 rm -rf conftest* 6361 ;; 6362*-*-irix6*) 6363 # Find out what ABI is being produced by ac_compile, and set linker 6364 # options accordingly. 6365 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6366 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6367 (eval $ac_compile) 2>&5 6368 ac_status=$? 6369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6370 test $ac_status = 0; }; then 6371 if test yes = "$lt_cv_prog_gnu_ld"; then 6372 case `/usr/bin/file conftest.$ac_objext` in 6373 *32-bit*) 6374 LD="${LD-ld} -melf32bsmip" 6375 ;; 6376 *N32*) 6377 LD="${LD-ld} -melf32bmipn32" 6378 ;; 6379 *64-bit*) 6380 LD="${LD-ld} -melf64bmip" 6381 ;; 6382 esac 6383 else 6384 case `/usr/bin/file conftest.$ac_objext` in 6385 *32-bit*) 6386 LD="${LD-ld} -32" 6387 ;; 6388 *N32*) 6389 LD="${LD-ld} -n32" 6390 ;; 6391 *64-bit*) 6392 LD="${LD-ld} -64" 6393 ;; 6394 esac 6395 fi 6396 fi 6397 rm -rf conftest* 6398 ;; 6399 6400mips64*-*linux*) 6401 # Find out what ABI is being produced by ac_compile, and set linker 6402 # options accordingly. 6403 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6404 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6405 (eval $ac_compile) 2>&5 6406 ac_status=$? 6407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6408 test $ac_status = 0; }; then 6409 emul=elf 6410 case `/usr/bin/file conftest.$ac_objext` in 6411 *32-bit*) 6412 emul="${emul}32" 6413 ;; 6414 *64-bit*) 6415 emul="${emul}64" 6416 ;; 6417 esac 6418 case `/usr/bin/file conftest.$ac_objext` in 6419 *MSB*) 6420 emul="${emul}btsmip" 6421 ;; 6422 *LSB*) 6423 emul="${emul}ltsmip" 6424 ;; 6425 esac 6426 case `/usr/bin/file conftest.$ac_objext` in 6427 *N32*) 6428 emul="${emul}n32" 6429 ;; 6430 esac 6431 LD="${LD-ld} -m $emul" 6432 fi 6433 rm -rf conftest* 6434 ;; 6435 6436x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6437s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6438 # Find out what ABI is being produced by ac_compile, and set linker 6439 # options accordingly. Note that the listed cases only cover the 6440 # situations where additional linker options are needed (such as when 6441 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6442 # vice versa); the common cases where no linker options are needed do 6443 # not appear in the list. 6444 echo 'int i;' > conftest.$ac_ext 6445 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6446 (eval $ac_compile) 2>&5 6447 ac_status=$? 6448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6449 test $ac_status = 0; }; then 6450 case `/usr/bin/file conftest.o` in 6451 *32-bit*) 6452 case $host in 6453 x86_64-*kfreebsd*-gnu) 6454 LD="${LD-ld} -m elf_i386_fbsd" 6455 ;; 6456 x86_64-*linux*) 6457 case `/usr/bin/file conftest.o` in 6458 *x86-64*) 6459 LD="${LD-ld} -m elf32_x86_64" 6460 ;; 6461 *) 6462 LD="${LD-ld} -m elf_i386" 6463 ;; 6464 esac 6465 ;; 6466 powerpc64le-*linux*) 6467 LD="${LD-ld} -m elf32lppclinux" 6468 ;; 6469 powerpc64-*linux*) 6470 LD="${LD-ld} -m elf32ppclinux" 6471 ;; 6472 s390x-*linux*) 6473 LD="${LD-ld} -m elf_s390" 6474 ;; 6475 sparc64-*linux*) 6476 LD="${LD-ld} -m elf32_sparc" 6477 ;; 6478 esac 6479 ;; 6480 *64-bit*) 6481 case $host in 6482 x86_64-*kfreebsd*-gnu) 6483 LD="${LD-ld} -m elf_x86_64_fbsd" 6484 ;; 6485 x86_64-*linux*) 6486 LD="${LD-ld} -m elf_x86_64" 6487 ;; 6488 powerpcle-*linux*) 6489 LD="${LD-ld} -m elf64lppc" 6490 ;; 6491 powerpc-*linux*) 6492 LD="${LD-ld} -m elf64ppc" 6493 ;; 6494 s390*-*linux*|s390*-*tpf*) 6495 LD="${LD-ld} -m elf64_s390" 6496 ;; 6497 sparc*-*linux*) 6498 LD="${LD-ld} -m elf64_sparc" 6499 ;; 6500 esac 6501 ;; 6502 esac 6503 fi 6504 rm -rf conftest* 6505 ;; 6506 6507*-*-sco3.2v5*) 6508 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6509 SAVE_CFLAGS=$CFLAGS 6510 CFLAGS="$CFLAGS -belf" 6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6512$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6513if ${lt_cv_cc_needs_belf+:} false; then : 6514 $as_echo_n "(cached) " >&6 6515else 6516 ac_ext=c 6517ac_cpp='$CPP $CPPFLAGS' 6518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6520ac_compiler_gnu=$ac_cv_c_compiler_gnu 6521 6522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6523/* end confdefs.h. */ 6524 6525int 6526main () 6527{ 6528 6529 ; 6530 return 0; 6531} 6532_ACEOF 6533if ac_fn_c_try_link "$LINENO"; then : 6534 lt_cv_cc_needs_belf=yes 6535else 6536 lt_cv_cc_needs_belf=no 6537fi 6538rm -f core conftest.err conftest.$ac_objext \ 6539 conftest$ac_exeext conftest.$ac_ext 6540 ac_ext=c 6541ac_cpp='$CPP $CPPFLAGS' 6542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6544ac_compiler_gnu=$ac_cv_c_compiler_gnu 6545 6546fi 6547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6548$as_echo "$lt_cv_cc_needs_belf" >&6; } 6549 if test yes != "$lt_cv_cc_needs_belf"; then 6550 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6551 CFLAGS=$SAVE_CFLAGS 6552 fi 6553 ;; 6554*-*solaris*) 6555 # Find out what ABI is being produced by ac_compile, and set linker 6556 # options accordingly. 6557 echo 'int i;' > conftest.$ac_ext 6558 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6559 (eval $ac_compile) 2>&5 6560 ac_status=$? 6561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6562 test $ac_status = 0; }; then 6563 case `/usr/bin/file conftest.o` in 6564 *64-bit*) 6565 case $lt_cv_prog_gnu_ld in 6566 yes*) 6567 case $host in 6568 i?86-*-solaris*|x86_64-*-solaris*) 6569 LD="${LD-ld} -m elf_x86_64" 6570 ;; 6571 sparc*-*-solaris*) 6572 LD="${LD-ld} -m elf64_sparc" 6573 ;; 6574 esac 6575 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6576 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6577 LD=${LD-ld}_sol2 6578 fi 6579 ;; 6580 *) 6581 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6582 LD="${LD-ld} -64" 6583 fi 6584 ;; 6585 esac 6586 ;; 6587 esac 6588 fi 6589 rm -rf conftest* 6590 ;; 6591esac 6592 6593need_locks=$enable_libtool_lock 6594 6595if test -n "$ac_tool_prefix"; then 6596 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6597set dummy ${ac_tool_prefix}mt; ac_word=$2 6598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6599$as_echo_n "checking for $ac_word... " >&6; } 6600if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6601 $as_echo_n "(cached) " >&6 6602else 6603 if test -n "$MANIFEST_TOOL"; then 6604 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6605else 6606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6607for as_dir in $PATH 6608do 6609 IFS=$as_save_IFS 6610 test -z "$as_dir" && as_dir=. 6611 for ac_exec_ext in '' $ac_executable_extensions; do 6612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6613 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6615 break 2 6616 fi 6617done 6618 done 6619IFS=$as_save_IFS 6620 6621fi 6622fi 6623MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6624if test -n "$MANIFEST_TOOL"; then 6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6626$as_echo "$MANIFEST_TOOL" >&6; } 6627else 6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6629$as_echo "no" >&6; } 6630fi 6631 6632 6633fi 6634if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6635 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6636 # Extract the first word of "mt", so it can be a program name with args. 6637set dummy mt; ac_word=$2 6638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6639$as_echo_n "checking for $ac_word... " >&6; } 6640if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6641 $as_echo_n "(cached) " >&6 6642else 6643 if test -n "$ac_ct_MANIFEST_TOOL"; then 6644 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6645else 6646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6647for as_dir in $PATH 6648do 6649 IFS=$as_save_IFS 6650 test -z "$as_dir" && as_dir=. 6651 for ac_exec_ext in '' $ac_executable_extensions; do 6652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6653 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6655 break 2 6656 fi 6657done 6658 done 6659IFS=$as_save_IFS 6660 6661fi 6662fi 6663ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6664if test -n "$ac_ct_MANIFEST_TOOL"; then 6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6666$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6667else 6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6669$as_echo "no" >&6; } 6670fi 6671 6672 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6673 MANIFEST_TOOL=":" 6674 else 6675 case $cross_compiling:$ac_tool_warned in 6676yes:) 6677{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6678$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6679ac_tool_warned=yes ;; 6680esac 6681 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6682 fi 6683else 6684 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6685fi 6686 6687test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6689$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6690if ${lt_cv_path_mainfest_tool+:} false; then : 6691 $as_echo_n "(cached) " >&6 6692else 6693 lt_cv_path_mainfest_tool=no 6694 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6695 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6696 cat conftest.err >&5 6697 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6698 lt_cv_path_mainfest_tool=yes 6699 fi 6700 rm -f conftest* 6701fi 6702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6703$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6704if test yes != "$lt_cv_path_mainfest_tool"; then 6705 MANIFEST_TOOL=: 6706fi 6707 6708 6709 6710 6711 6712 6713 case $host_os in 6714 rhapsody* | darwin*) 6715 if test -n "$ac_tool_prefix"; then 6716 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6717set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6719$as_echo_n "checking for $ac_word... " >&6; } 6720if ${ac_cv_prog_DSYMUTIL+:} false; then : 6721 $as_echo_n "(cached) " >&6 6722else 6723 if test -n "$DSYMUTIL"; then 6724 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6725else 6726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6727for as_dir in $PATH 6728do 6729 IFS=$as_save_IFS 6730 test -z "$as_dir" && as_dir=. 6731 for ac_exec_ext in '' $ac_executable_extensions; do 6732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6733 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6735 break 2 6736 fi 6737done 6738 done 6739IFS=$as_save_IFS 6740 6741fi 6742fi 6743DSYMUTIL=$ac_cv_prog_DSYMUTIL 6744if test -n "$DSYMUTIL"; then 6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6746$as_echo "$DSYMUTIL" >&6; } 6747else 6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6749$as_echo "no" >&6; } 6750fi 6751 6752 6753fi 6754if test -z "$ac_cv_prog_DSYMUTIL"; then 6755 ac_ct_DSYMUTIL=$DSYMUTIL 6756 # Extract the first word of "dsymutil", so it can be a program name with args. 6757set dummy dsymutil; ac_word=$2 6758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6759$as_echo_n "checking for $ac_word... " >&6; } 6760if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6761 $as_echo_n "(cached) " >&6 6762else 6763 if test -n "$ac_ct_DSYMUTIL"; then 6764 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6765else 6766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6767for as_dir in $PATH 6768do 6769 IFS=$as_save_IFS 6770 test -z "$as_dir" && as_dir=. 6771 for ac_exec_ext in '' $ac_executable_extensions; do 6772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6773 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6775 break 2 6776 fi 6777done 6778 done 6779IFS=$as_save_IFS 6780 6781fi 6782fi 6783ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6784if test -n "$ac_ct_DSYMUTIL"; then 6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6786$as_echo "$ac_ct_DSYMUTIL" >&6; } 6787else 6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6789$as_echo "no" >&6; } 6790fi 6791 6792 if test "x$ac_ct_DSYMUTIL" = x; then 6793 DSYMUTIL=":" 6794 else 6795 case $cross_compiling:$ac_tool_warned in 6796yes:) 6797{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6798$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6799ac_tool_warned=yes ;; 6800esac 6801 DSYMUTIL=$ac_ct_DSYMUTIL 6802 fi 6803else 6804 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6805fi 6806 6807 if test -n "$ac_tool_prefix"; then 6808 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6809set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6811$as_echo_n "checking for $ac_word... " >&6; } 6812if ${ac_cv_prog_NMEDIT+:} false; then : 6813 $as_echo_n "(cached) " >&6 6814else 6815 if test -n "$NMEDIT"; then 6816 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6817else 6818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6819for as_dir in $PATH 6820do 6821 IFS=$as_save_IFS 6822 test -z "$as_dir" && as_dir=. 6823 for ac_exec_ext in '' $ac_executable_extensions; do 6824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6825 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6827 break 2 6828 fi 6829done 6830 done 6831IFS=$as_save_IFS 6832 6833fi 6834fi 6835NMEDIT=$ac_cv_prog_NMEDIT 6836if test -n "$NMEDIT"; then 6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6838$as_echo "$NMEDIT" >&6; } 6839else 6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6841$as_echo "no" >&6; } 6842fi 6843 6844 6845fi 6846if test -z "$ac_cv_prog_NMEDIT"; then 6847 ac_ct_NMEDIT=$NMEDIT 6848 # Extract the first word of "nmedit", so it can be a program name with args. 6849set dummy nmedit; ac_word=$2 6850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6851$as_echo_n "checking for $ac_word... " >&6; } 6852if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6853 $as_echo_n "(cached) " >&6 6854else 6855 if test -n "$ac_ct_NMEDIT"; then 6856 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6857else 6858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6859for as_dir in $PATH 6860do 6861 IFS=$as_save_IFS 6862 test -z "$as_dir" && as_dir=. 6863 for ac_exec_ext in '' $ac_executable_extensions; do 6864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6865 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6867 break 2 6868 fi 6869done 6870 done 6871IFS=$as_save_IFS 6872 6873fi 6874fi 6875ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6876if test -n "$ac_ct_NMEDIT"; then 6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6878$as_echo "$ac_ct_NMEDIT" >&6; } 6879else 6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6881$as_echo "no" >&6; } 6882fi 6883 6884 if test "x$ac_ct_NMEDIT" = x; then 6885 NMEDIT=":" 6886 else 6887 case $cross_compiling:$ac_tool_warned in 6888yes:) 6889{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6890$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6891ac_tool_warned=yes ;; 6892esac 6893 NMEDIT=$ac_ct_NMEDIT 6894 fi 6895else 6896 NMEDIT="$ac_cv_prog_NMEDIT" 6897fi 6898 6899 if test -n "$ac_tool_prefix"; then 6900 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6901set dummy ${ac_tool_prefix}lipo; ac_word=$2 6902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6903$as_echo_n "checking for $ac_word... " >&6; } 6904if ${ac_cv_prog_LIPO+:} false; then : 6905 $as_echo_n "(cached) " >&6 6906else 6907 if test -n "$LIPO"; then 6908 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6909else 6910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6911for as_dir in $PATH 6912do 6913 IFS=$as_save_IFS 6914 test -z "$as_dir" && as_dir=. 6915 for ac_exec_ext in '' $ac_executable_extensions; do 6916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6917 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6919 break 2 6920 fi 6921done 6922 done 6923IFS=$as_save_IFS 6924 6925fi 6926fi 6927LIPO=$ac_cv_prog_LIPO 6928if test -n "$LIPO"; then 6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6930$as_echo "$LIPO" >&6; } 6931else 6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6933$as_echo "no" >&6; } 6934fi 6935 6936 6937fi 6938if test -z "$ac_cv_prog_LIPO"; then 6939 ac_ct_LIPO=$LIPO 6940 # Extract the first word of "lipo", so it can be a program name with args. 6941set dummy lipo; ac_word=$2 6942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6943$as_echo_n "checking for $ac_word... " >&6; } 6944if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6945 $as_echo_n "(cached) " >&6 6946else 6947 if test -n "$ac_ct_LIPO"; then 6948 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6949else 6950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6951for as_dir in $PATH 6952do 6953 IFS=$as_save_IFS 6954 test -z "$as_dir" && as_dir=. 6955 for ac_exec_ext in '' $ac_executable_extensions; do 6956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6957 ac_cv_prog_ac_ct_LIPO="lipo" 6958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6959 break 2 6960 fi 6961done 6962 done 6963IFS=$as_save_IFS 6964 6965fi 6966fi 6967ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6968if test -n "$ac_ct_LIPO"; then 6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6970$as_echo "$ac_ct_LIPO" >&6; } 6971else 6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6973$as_echo "no" >&6; } 6974fi 6975 6976 if test "x$ac_ct_LIPO" = x; then 6977 LIPO=":" 6978 else 6979 case $cross_compiling:$ac_tool_warned in 6980yes:) 6981{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6982$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6983ac_tool_warned=yes ;; 6984esac 6985 LIPO=$ac_ct_LIPO 6986 fi 6987else 6988 LIPO="$ac_cv_prog_LIPO" 6989fi 6990 6991 if test -n "$ac_tool_prefix"; then 6992 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6993set dummy ${ac_tool_prefix}otool; ac_word=$2 6994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6995$as_echo_n "checking for $ac_word... " >&6; } 6996if ${ac_cv_prog_OTOOL+:} false; then : 6997 $as_echo_n "(cached) " >&6 6998else 6999 if test -n "$OTOOL"; then 7000 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7001else 7002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7003for as_dir in $PATH 7004do 7005 IFS=$as_save_IFS 7006 test -z "$as_dir" && as_dir=. 7007 for ac_exec_ext in '' $ac_executable_extensions; do 7008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7009 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7011 break 2 7012 fi 7013done 7014 done 7015IFS=$as_save_IFS 7016 7017fi 7018fi 7019OTOOL=$ac_cv_prog_OTOOL 7020if test -n "$OTOOL"; then 7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7022$as_echo "$OTOOL" >&6; } 7023else 7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7025$as_echo "no" >&6; } 7026fi 7027 7028 7029fi 7030if test -z "$ac_cv_prog_OTOOL"; then 7031 ac_ct_OTOOL=$OTOOL 7032 # Extract the first word of "otool", so it can be a program name with args. 7033set dummy otool; ac_word=$2 7034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7035$as_echo_n "checking for $ac_word... " >&6; } 7036if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7037 $as_echo_n "(cached) " >&6 7038else 7039 if test -n "$ac_ct_OTOOL"; then 7040 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7041else 7042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7043for as_dir in $PATH 7044do 7045 IFS=$as_save_IFS 7046 test -z "$as_dir" && as_dir=. 7047 for ac_exec_ext in '' $ac_executable_extensions; do 7048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7049 ac_cv_prog_ac_ct_OTOOL="otool" 7050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7051 break 2 7052 fi 7053done 7054 done 7055IFS=$as_save_IFS 7056 7057fi 7058fi 7059ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7060if test -n "$ac_ct_OTOOL"; then 7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7062$as_echo "$ac_ct_OTOOL" >&6; } 7063else 7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7065$as_echo "no" >&6; } 7066fi 7067 7068 if test "x$ac_ct_OTOOL" = x; then 7069 OTOOL=":" 7070 else 7071 case $cross_compiling:$ac_tool_warned in 7072yes:) 7073{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7074$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7075ac_tool_warned=yes ;; 7076esac 7077 OTOOL=$ac_ct_OTOOL 7078 fi 7079else 7080 OTOOL="$ac_cv_prog_OTOOL" 7081fi 7082 7083 if test -n "$ac_tool_prefix"; then 7084 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7085set dummy ${ac_tool_prefix}otool64; ac_word=$2 7086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7087$as_echo_n "checking for $ac_word... " >&6; } 7088if ${ac_cv_prog_OTOOL64+:} false; then : 7089 $as_echo_n "(cached) " >&6 7090else 7091 if test -n "$OTOOL64"; then 7092 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7093else 7094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7095for as_dir in $PATH 7096do 7097 IFS=$as_save_IFS 7098 test -z "$as_dir" && as_dir=. 7099 for ac_exec_ext in '' $ac_executable_extensions; do 7100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7101 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7103 break 2 7104 fi 7105done 7106 done 7107IFS=$as_save_IFS 7108 7109fi 7110fi 7111OTOOL64=$ac_cv_prog_OTOOL64 7112if test -n "$OTOOL64"; then 7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7114$as_echo "$OTOOL64" >&6; } 7115else 7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7117$as_echo "no" >&6; } 7118fi 7119 7120 7121fi 7122if test -z "$ac_cv_prog_OTOOL64"; then 7123 ac_ct_OTOOL64=$OTOOL64 7124 # Extract the first word of "otool64", so it can be a program name with args. 7125set dummy otool64; ac_word=$2 7126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7127$as_echo_n "checking for $ac_word... " >&6; } 7128if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7129 $as_echo_n "(cached) " >&6 7130else 7131 if test -n "$ac_ct_OTOOL64"; then 7132 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7133else 7134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7135for as_dir in $PATH 7136do 7137 IFS=$as_save_IFS 7138 test -z "$as_dir" && as_dir=. 7139 for ac_exec_ext in '' $ac_executable_extensions; do 7140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7141 ac_cv_prog_ac_ct_OTOOL64="otool64" 7142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7143 break 2 7144 fi 7145done 7146 done 7147IFS=$as_save_IFS 7148 7149fi 7150fi 7151ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7152if test -n "$ac_ct_OTOOL64"; then 7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7154$as_echo "$ac_ct_OTOOL64" >&6; } 7155else 7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7157$as_echo "no" >&6; } 7158fi 7159 7160 if test "x$ac_ct_OTOOL64" = x; then 7161 OTOOL64=":" 7162 else 7163 case $cross_compiling:$ac_tool_warned in 7164yes:) 7165{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7166$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7167ac_tool_warned=yes ;; 7168esac 7169 OTOOL64=$ac_ct_OTOOL64 7170 fi 7171else 7172 OTOOL64="$ac_cv_prog_OTOOL64" 7173fi 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7202$as_echo_n "checking for -single_module linker flag... " >&6; } 7203if ${lt_cv_apple_cc_single_mod+:} false; then : 7204 $as_echo_n "(cached) " >&6 7205else 7206 lt_cv_apple_cc_single_mod=no 7207 if test -z "$LT_MULTI_MODULE"; then 7208 # By default we will add the -single_module flag. You can override 7209 # by either setting the environment variable LT_MULTI_MODULE 7210 # non-empty at configure time, or by adding -multi_module to the 7211 # link flags. 7212 rm -rf libconftest.dylib* 7213 echo "int foo(void){return 1;}" > conftest.c 7214 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7215-dynamiclib -Wl,-single_module conftest.c" >&5 7216 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7217 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7218 _lt_result=$? 7219 # If there is a non-empty error log, and "single_module" 7220 # appears in it, assume the flag caused a linker warning 7221 if test -s conftest.err && $GREP single_module conftest.err; then 7222 cat conftest.err >&5 7223 # Otherwise, if the output was created with a 0 exit code from 7224 # the compiler, it worked. 7225 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7226 lt_cv_apple_cc_single_mod=yes 7227 else 7228 cat conftest.err >&5 7229 fi 7230 rm -rf libconftest.dylib* 7231 rm -f conftest.* 7232 fi 7233fi 7234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7235$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7236 7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7238$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7239if ${lt_cv_ld_exported_symbols_list+:} false; then : 7240 $as_echo_n "(cached) " >&6 7241else 7242 lt_cv_ld_exported_symbols_list=no 7243 save_LDFLAGS=$LDFLAGS 7244 echo "_main" > conftest.sym 7245 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7247/* end confdefs.h. */ 7248 7249int 7250main () 7251{ 7252 7253 ; 7254 return 0; 7255} 7256_ACEOF 7257if ac_fn_c_try_link "$LINENO"; then : 7258 lt_cv_ld_exported_symbols_list=yes 7259else 7260 lt_cv_ld_exported_symbols_list=no 7261fi 7262rm -f core conftest.err conftest.$ac_objext \ 7263 conftest$ac_exeext conftest.$ac_ext 7264 LDFLAGS=$save_LDFLAGS 7265 7266fi 7267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7268$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7269 7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7271$as_echo_n "checking for -force_load linker flag... " >&6; } 7272if ${lt_cv_ld_force_load+:} false; then : 7273 $as_echo_n "(cached) " >&6 7274else 7275 lt_cv_ld_force_load=no 7276 cat > conftest.c << _LT_EOF 7277int forced_loaded() { return 2;} 7278_LT_EOF 7279 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7280 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7281 echo "$AR cru libconftest.a conftest.o" >&5 7282 $AR cru libconftest.a conftest.o 2>&5 7283 echo "$RANLIB libconftest.a" >&5 7284 $RANLIB libconftest.a 2>&5 7285 cat > conftest.c << _LT_EOF 7286int main() { return 0;} 7287_LT_EOF 7288 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7289 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7290 _lt_result=$? 7291 if test -s conftest.err && $GREP force_load conftest.err; then 7292 cat conftest.err >&5 7293 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7294 lt_cv_ld_force_load=yes 7295 else 7296 cat conftest.err >&5 7297 fi 7298 rm -f conftest.err libconftest.a conftest conftest.c 7299 rm -rf conftest.dSYM 7300 7301fi 7302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7303$as_echo "$lt_cv_ld_force_load" >&6; } 7304 case $host_os in 7305 rhapsody* | darwin1.[012]) 7306 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7307 darwin1.*) 7308 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7309 darwin*) # darwin 5.x on 7310 # if running on 10.5 or later, the deployment target defaults 7311 # to the OS version, if on x86, and 10.4, the deployment 7312 # target defaults to 10.4. Don't you love it? 7313 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7314 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7315 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7316 10.[012][,.]*) 7317 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7318 10.*) 7319 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7320 esac 7321 ;; 7322 esac 7323 if test yes = "$lt_cv_apple_cc_single_mod"; then 7324 _lt_dar_single_mod='$single_module' 7325 fi 7326 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7327 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7328 else 7329 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7330 fi 7331 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7332 _lt_dsymutil='~$DSYMUTIL $lib || :' 7333 else 7334 _lt_dsymutil= 7335 fi 7336 ;; 7337 esac 7338 7339# func_munge_path_list VARIABLE PATH 7340# ----------------------------------- 7341# VARIABLE is name of variable containing _space_ separated list of 7342# directories to be munged by the contents of PATH, which is string 7343# having a format: 7344# "DIR[:DIR]:" 7345# string "DIR[ DIR]" will be prepended to VARIABLE 7346# ":DIR[:DIR]" 7347# string "DIR[ DIR]" will be appended to VARIABLE 7348# "DIRP[:DIRP]::[DIRA:]DIRA" 7349# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7350# "DIRA[ DIRA]" will be appended to VARIABLE 7351# "DIR[:DIR]" 7352# VARIABLE will be replaced by "DIR[ DIR]" 7353func_munge_path_list () 7354{ 7355 case x$2 in 7356 x) 7357 ;; 7358 *:) 7359 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7360 ;; 7361 x:*) 7362 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7363 ;; 7364 *::*) 7365 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7366 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7367 ;; 7368 *) 7369 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7370 ;; 7371 esac 7372} 7373 7374ac_ext=c 7375ac_cpp='$CPP $CPPFLAGS' 7376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7378ac_compiler_gnu=$ac_cv_c_compiler_gnu 7379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7380$as_echo_n "checking how to run the C preprocessor... " >&6; } 7381# On Suns, sometimes $CPP names a directory. 7382if test -n "$CPP" && test -d "$CPP"; then 7383 CPP= 7384fi 7385if test -z "$CPP"; then 7386 if ${ac_cv_prog_CPP+:} false; then : 7387 $as_echo_n "(cached) " >&6 7388else 7389 # Double quotes because CPP needs to be expanded 7390 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7391 do 7392 ac_preproc_ok=false 7393for ac_c_preproc_warn_flag in '' yes 7394do 7395 # Use a header file that comes with gcc, so configuring glibc 7396 # with a fresh cross-compiler works. 7397 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7398 # <limits.h> exists even on freestanding compilers. 7399 # On the NeXT, cc -E runs the code through the compiler's parser, 7400 # not just through cpp. "Syntax error" is here to catch this case. 7401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7402/* end confdefs.h. */ 7403#ifdef __STDC__ 7404# include <limits.h> 7405#else 7406# include <assert.h> 7407#endif 7408 Syntax error 7409_ACEOF 7410if ac_fn_c_try_cpp "$LINENO"; then : 7411 7412else 7413 # Broken: fails on valid input. 7414continue 7415fi 7416rm -f conftest.err conftest.i conftest.$ac_ext 7417 7418 # OK, works on sane cases. Now check whether nonexistent headers 7419 # can be detected and how. 7420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7421/* end confdefs.h. */ 7422#include <ac_nonexistent.h> 7423_ACEOF 7424if ac_fn_c_try_cpp "$LINENO"; then : 7425 # Broken: success on invalid input. 7426continue 7427else 7428 # Passes both tests. 7429ac_preproc_ok=: 7430break 7431fi 7432rm -f conftest.err conftest.i conftest.$ac_ext 7433 7434done 7435# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7436rm -f conftest.i conftest.err conftest.$ac_ext 7437if $ac_preproc_ok; then : 7438 break 7439fi 7440 7441 done 7442 ac_cv_prog_CPP=$CPP 7443 7444fi 7445 CPP=$ac_cv_prog_CPP 7446else 7447 ac_cv_prog_CPP=$CPP 7448fi 7449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7450$as_echo "$CPP" >&6; } 7451ac_preproc_ok=false 7452for ac_c_preproc_warn_flag in '' yes 7453do 7454 # Use a header file that comes with gcc, so configuring glibc 7455 # with a fresh cross-compiler works. 7456 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7457 # <limits.h> exists even on freestanding compilers. 7458 # On the NeXT, cc -E runs the code through the compiler's parser, 7459 # not just through cpp. "Syntax error" is here to catch this case. 7460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7461/* end confdefs.h. */ 7462#ifdef __STDC__ 7463# include <limits.h> 7464#else 7465# include <assert.h> 7466#endif 7467 Syntax error 7468_ACEOF 7469if ac_fn_c_try_cpp "$LINENO"; then : 7470 7471else 7472 # Broken: fails on valid input. 7473continue 7474fi 7475rm -f conftest.err conftest.i conftest.$ac_ext 7476 7477 # OK, works on sane cases. Now check whether nonexistent headers 7478 # can be detected and how. 7479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7480/* end confdefs.h. */ 7481#include <ac_nonexistent.h> 7482_ACEOF 7483if ac_fn_c_try_cpp "$LINENO"; then : 7484 # Broken: success on invalid input. 7485continue 7486else 7487 # Passes both tests. 7488ac_preproc_ok=: 7489break 7490fi 7491rm -f conftest.err conftest.i conftest.$ac_ext 7492 7493done 7494# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7495rm -f conftest.i conftest.err conftest.$ac_ext 7496if $ac_preproc_ok; then : 7497 7498else 7499 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7500$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7501as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7502See \`config.log' for more details" "$LINENO" 5; } 7503fi 7504 7505ac_ext=c 7506ac_cpp='$CPP $CPPFLAGS' 7507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7509ac_compiler_gnu=$ac_cv_c_compiler_gnu 7510 7511 7512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7513$as_echo_n "checking for ANSI C header files... " >&6; } 7514if ${ac_cv_header_stdc+:} false; then : 7515 $as_echo_n "(cached) " >&6 7516else 7517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7518/* end confdefs.h. */ 7519#include <stdlib.h> 7520#include <stdarg.h> 7521#include <string.h> 7522#include <float.h> 7523 7524int 7525main () 7526{ 7527 7528 ; 7529 return 0; 7530} 7531_ACEOF 7532if ac_fn_c_try_compile "$LINENO"; then : 7533 ac_cv_header_stdc=yes 7534else 7535 ac_cv_header_stdc=no 7536fi 7537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7538 7539if test $ac_cv_header_stdc = yes; then 7540 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7542/* end confdefs.h. */ 7543#include <string.h> 7544 7545_ACEOF 7546if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7547 $EGREP "memchr" >/dev/null 2>&1; then : 7548 7549else 7550 ac_cv_header_stdc=no 7551fi 7552rm -f conftest* 7553 7554fi 7555 7556if test $ac_cv_header_stdc = yes; then 7557 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7559/* end confdefs.h. */ 7560#include <stdlib.h> 7561 7562_ACEOF 7563if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7564 $EGREP "free" >/dev/null 2>&1; then : 7565 7566else 7567 ac_cv_header_stdc=no 7568fi 7569rm -f conftest* 7570 7571fi 7572 7573if test $ac_cv_header_stdc = yes; then 7574 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7575 if test "$cross_compiling" = yes; then : 7576 : 7577else 7578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7579/* end confdefs.h. */ 7580#include <ctype.h> 7581#include <stdlib.h> 7582#if ((' ' & 0x0FF) == 0x020) 7583# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7584# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7585#else 7586# define ISLOWER(c) \ 7587 (('a' <= (c) && (c) <= 'i') \ 7588 || ('j' <= (c) && (c) <= 'r') \ 7589 || ('s' <= (c) && (c) <= 'z')) 7590# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7591#endif 7592 7593#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7594int 7595main () 7596{ 7597 int i; 7598 for (i = 0; i < 256; i++) 7599 if (XOR (islower (i), ISLOWER (i)) 7600 || toupper (i) != TOUPPER (i)) 7601 return 2; 7602 return 0; 7603} 7604_ACEOF 7605if ac_fn_c_try_run "$LINENO"; then : 7606 7607else 7608 ac_cv_header_stdc=no 7609fi 7610rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7611 conftest.$ac_objext conftest.beam conftest.$ac_ext 7612fi 7613 7614fi 7615fi 7616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7617$as_echo "$ac_cv_header_stdc" >&6; } 7618if test $ac_cv_header_stdc = yes; then 7619 7620$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7621 7622fi 7623 7624# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7625for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7626 inttypes.h stdint.h unistd.h 7627do : 7628 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7629ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7630" 7631if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7632 cat >>confdefs.h <<_ACEOF 7633#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7634_ACEOF 7635 7636fi 7637 7638done 7639 7640 7641for ac_header in dlfcn.h 7642do : 7643 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7644" 7645if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7646 cat >>confdefs.h <<_ACEOF 7647#define HAVE_DLFCN_H 1 7648_ACEOF 7649 7650fi 7651 7652done 7653 7654 7655 7656 7657 7658# Set options 7659 7660 7661 7662 enable_dlopen=no 7663 7664 7665 enable_win32_dll=no 7666 7667 7668 # Check whether --enable-shared was given. 7669if test "${enable_shared+set}" = set; then : 7670 enableval=$enable_shared; p=${PACKAGE-default} 7671 case $enableval in 7672 yes) enable_shared=yes ;; 7673 no) enable_shared=no ;; 7674 *) 7675 enable_shared=no 7676 # Look at the argument we got. We use all the common list separators. 7677 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7678 for pkg in $enableval; do 7679 IFS=$lt_save_ifs 7680 if test "X$pkg" = "X$p"; then 7681 enable_shared=yes 7682 fi 7683 done 7684 IFS=$lt_save_ifs 7685 ;; 7686 esac 7687else 7688 enable_shared=yes 7689fi 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 # Check whether --enable-static was given. 7700if test "${enable_static+set}" = set; then : 7701 enableval=$enable_static; p=${PACKAGE-default} 7702 case $enableval in 7703 yes) enable_static=yes ;; 7704 no) enable_static=no ;; 7705 *) 7706 enable_static=no 7707 # Look at the argument we got. We use all the common list separators. 7708 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7709 for pkg in $enableval; do 7710 IFS=$lt_save_ifs 7711 if test "X$pkg" = "X$p"; then 7712 enable_static=yes 7713 fi 7714 done 7715 IFS=$lt_save_ifs 7716 ;; 7717 esac 7718else 7719 enable_static=yes 7720fi 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731# Check whether --with-pic was given. 7732if test "${with_pic+set}" = set; then : 7733 withval=$with_pic; lt_p=${PACKAGE-default} 7734 case $withval in 7735 yes|no) pic_mode=$withval ;; 7736 *) 7737 pic_mode=default 7738 # Look at the argument we got. We use all the common list separators. 7739 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7740 for lt_pkg in $withval; do 7741 IFS=$lt_save_ifs 7742 if test "X$lt_pkg" = "X$lt_p"; then 7743 pic_mode=yes 7744 fi 7745 done 7746 IFS=$lt_save_ifs 7747 ;; 7748 esac 7749else 7750 pic_mode=default 7751fi 7752 7753 7754 7755 7756 7757 7758 7759 7760 # Check whether --enable-fast-install was given. 7761if test "${enable_fast_install+set}" = set; then : 7762 enableval=$enable_fast_install; p=${PACKAGE-default} 7763 case $enableval in 7764 yes) enable_fast_install=yes ;; 7765 no) enable_fast_install=no ;; 7766 *) 7767 enable_fast_install=no 7768 # Look at the argument we got. We use all the common list separators. 7769 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7770 for pkg in $enableval; do 7771 IFS=$lt_save_ifs 7772 if test "X$pkg" = "X$p"; then 7773 enable_fast_install=yes 7774 fi 7775 done 7776 IFS=$lt_save_ifs 7777 ;; 7778 esac 7779else 7780 enable_fast_install=yes 7781fi 7782 7783 7784 7785 7786 7787 7788 7789 7790 shared_archive_member_spec= 7791case $host,$enable_shared in 7792power*-*-aix[5-9]*,yes) 7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 7794$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 7795 7796# Check whether --with-aix-soname was given. 7797if test "${with_aix_soname+set}" = set; then : 7798 withval=$with_aix_soname; case $withval in 7799 aix|svr4|both) 7800 ;; 7801 *) 7802 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 7803 ;; 7804 esac 7805 lt_cv_with_aix_soname=$with_aix_soname 7806else 7807 if ${lt_cv_with_aix_soname+:} false; then : 7808 $as_echo_n "(cached) " >&6 7809else 7810 lt_cv_with_aix_soname=aix 7811fi 7812 7813 with_aix_soname=$lt_cv_with_aix_soname 7814fi 7815 7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 7817$as_echo "$with_aix_soname" >&6; } 7818 if test aix != "$with_aix_soname"; then 7819 # For the AIX way of multilib, we name the shared archive member 7820 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 7821 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 7822 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 7823 # the AIX toolchain works better with OBJECT_MODE set (default 32). 7824 if test 64 = "${OBJECT_MODE-32}"; then 7825 shared_archive_member_spec=shr_64 7826 else 7827 shared_archive_member_spec=shr 7828 fi 7829 fi 7830 ;; 7831*) 7832 with_aix_soname=aix 7833 ;; 7834esac 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845# This can be used to rebuild libtool when needed 7846LIBTOOL_DEPS=$ltmain 7847 7848# Always use our own libtool. 7849LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880test -z "$LN_S" && LN_S="ln -s" 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895if test -n "${ZSH_VERSION+set}"; then 7896 setopt NO_GLOB_SUBST 7897fi 7898 7899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7900$as_echo_n "checking for objdir... " >&6; } 7901if ${lt_cv_objdir+:} false; then : 7902 $as_echo_n "(cached) " >&6 7903else 7904 rm -f .libs 2>/dev/null 7905mkdir .libs 2>/dev/null 7906if test -d .libs; then 7907 lt_cv_objdir=.libs 7908else 7909 # MS-DOS does not allow filenames that begin with a dot. 7910 lt_cv_objdir=_libs 7911fi 7912rmdir .libs 2>/dev/null 7913fi 7914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7915$as_echo "$lt_cv_objdir" >&6; } 7916objdir=$lt_cv_objdir 7917 7918 7919 7920 7921 7922cat >>confdefs.h <<_ACEOF 7923#define LT_OBJDIR "$lt_cv_objdir/" 7924_ACEOF 7925 7926 7927 7928 7929case $host_os in 7930aix3*) 7931 # AIX sometimes has problems with the GCC collect2 program. For some 7932 # reason, if we set the COLLECT_NAMES environment variable, the problems 7933 # vanish in a puff of smoke. 7934 if test set != "${COLLECT_NAMES+set}"; then 7935 COLLECT_NAMES= 7936 export COLLECT_NAMES 7937 fi 7938 ;; 7939esac 7940 7941# Global variables: 7942ofile=libtool 7943can_build_shared=yes 7944 7945# All known linkers require a '.a' archive for static linking (except MSVC, 7946# which needs '.lib'). 7947libext=a 7948 7949with_gnu_ld=$lt_cv_prog_gnu_ld 7950 7951old_CC=$CC 7952old_CFLAGS=$CFLAGS 7953 7954# Set sane defaults for various variables 7955test -z "$CC" && CC=cc 7956test -z "$LTCC" && LTCC=$CC 7957test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7958test -z "$LD" && LD=ld 7959test -z "$ac_objext" && ac_objext=o 7960 7961func_cc_basename $compiler 7962cc_basename=$func_cc_basename_result 7963 7964 7965# Only perform the check for file, if the check method requires it 7966test -z "$MAGIC_CMD" && MAGIC_CMD=file 7967case $deplibs_check_method in 7968file_magic*) 7969 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7971$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7972if ${lt_cv_path_MAGIC_CMD+:} false; then : 7973 $as_echo_n "(cached) " >&6 7974else 7975 case $MAGIC_CMD in 7976[\\/*] | ?:[\\/]*) 7977 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 7978 ;; 7979*) 7980 lt_save_MAGIC_CMD=$MAGIC_CMD 7981 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7982 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7983 for ac_dir in $ac_dummy; do 7984 IFS=$lt_save_ifs 7985 test -z "$ac_dir" && ac_dir=. 7986 if test -f "$ac_dir/${ac_tool_prefix}file"; then 7987 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 7988 if test -n "$file_magic_test_file"; then 7989 case $deplibs_check_method in 7990 "file_magic "*) 7991 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7992 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 7993 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7994 $EGREP "$file_magic_regex" > /dev/null; then 7995 : 7996 else 7997 cat <<_LT_EOF 1>&2 7998 7999*** Warning: the command libtool uses to detect shared libraries, 8000*** $file_magic_cmd, produces output that libtool cannot recognize. 8001*** The result is that libtool may fail to recognize shared libraries 8002*** as such. This will affect the creation of libtool libraries that 8003*** depend on shared libraries, but programs linked with such libtool 8004*** libraries will work regardless of this problem. Nevertheless, you 8005*** may want to report the problem to your system manager and/or to 8006*** bug-libtool@gnu.org 8007 8008_LT_EOF 8009 fi ;; 8010 esac 8011 fi 8012 break 8013 fi 8014 done 8015 IFS=$lt_save_ifs 8016 MAGIC_CMD=$lt_save_MAGIC_CMD 8017 ;; 8018esac 8019fi 8020 8021MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8022if test -n "$MAGIC_CMD"; then 8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8024$as_echo "$MAGIC_CMD" >&6; } 8025else 8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8027$as_echo "no" >&6; } 8028fi 8029 8030 8031 8032 8033 8034if test -z "$lt_cv_path_MAGIC_CMD"; then 8035 if test -n "$ac_tool_prefix"; then 8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8037$as_echo_n "checking for file... " >&6; } 8038if ${lt_cv_path_MAGIC_CMD+:} false; then : 8039 $as_echo_n "(cached) " >&6 8040else 8041 case $MAGIC_CMD in 8042[\\/*] | ?:[\\/]*) 8043 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8044 ;; 8045*) 8046 lt_save_MAGIC_CMD=$MAGIC_CMD 8047 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8048 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8049 for ac_dir in $ac_dummy; do 8050 IFS=$lt_save_ifs 8051 test -z "$ac_dir" && ac_dir=. 8052 if test -f "$ac_dir/file"; then 8053 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8054 if test -n "$file_magic_test_file"; then 8055 case $deplibs_check_method in 8056 "file_magic "*) 8057 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8058 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8059 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8060 $EGREP "$file_magic_regex" > /dev/null; then 8061 : 8062 else 8063 cat <<_LT_EOF 1>&2 8064 8065*** Warning: the command libtool uses to detect shared libraries, 8066*** $file_magic_cmd, produces output that libtool cannot recognize. 8067*** The result is that libtool may fail to recognize shared libraries 8068*** as such. This will affect the creation of libtool libraries that 8069*** depend on shared libraries, but programs linked with such libtool 8070*** libraries will work regardless of this problem. Nevertheless, you 8071*** may want to report the problem to your system manager and/or to 8072*** bug-libtool@gnu.org 8073 8074_LT_EOF 8075 fi ;; 8076 esac 8077 fi 8078 break 8079 fi 8080 done 8081 IFS=$lt_save_ifs 8082 MAGIC_CMD=$lt_save_MAGIC_CMD 8083 ;; 8084esac 8085fi 8086 8087MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8088if test -n "$MAGIC_CMD"; then 8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8090$as_echo "$MAGIC_CMD" >&6; } 8091else 8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8093$as_echo "no" >&6; } 8094fi 8095 8096 8097 else 8098 MAGIC_CMD=: 8099 fi 8100fi 8101 8102 fi 8103 ;; 8104esac 8105 8106# Use C for the default configuration in the libtool script 8107 8108lt_save_CC=$CC 8109ac_ext=c 8110ac_cpp='$CPP $CPPFLAGS' 8111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8113ac_compiler_gnu=$ac_cv_c_compiler_gnu 8114 8115 8116# Source file extension for C test sources. 8117ac_ext=c 8118 8119# Object file extension for compiled C test sources. 8120objext=o 8121objext=$objext 8122 8123# Code to be used in simple compile tests 8124lt_simple_compile_test_code="int some_variable = 0;" 8125 8126# Code to be used in simple link tests 8127lt_simple_link_test_code='int main(){return(0);}' 8128 8129 8130 8131 8132 8133 8134 8135# If no C compiler was specified, use CC. 8136LTCC=${LTCC-"$CC"} 8137 8138# If no C compiler flags were specified, use CFLAGS. 8139LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8140 8141# Allow CC to be a program name with arguments. 8142compiler=$CC 8143 8144# Save the default compiler, since it gets overwritten when the other 8145# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8146compiler_DEFAULT=$CC 8147 8148# save warnings/boilerplate of simple test code 8149ac_outfile=conftest.$ac_objext 8150echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8151eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8152_lt_compiler_boilerplate=`cat conftest.err` 8153$RM conftest* 8154 8155ac_outfile=conftest.$ac_objext 8156echo "$lt_simple_link_test_code" >conftest.$ac_ext 8157eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8158_lt_linker_boilerplate=`cat conftest.err` 8159$RM -r conftest* 8160 8161 8162## CAVEAT EMPTOR: 8163## There is no encapsulation within the following macros, do not change 8164## the running order or otherwise move them around unless you know exactly 8165## what you are doing... 8166if test -n "$compiler"; then 8167 8168lt_prog_compiler_no_builtin_flag= 8169 8170if test yes = "$GCC"; then 8171 case $cc_basename in 8172 nvcc*) 8173 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8174 *) 8175 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8176 esac 8177 8178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8179$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8180if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8181 $as_echo_n "(cached) " >&6 8182else 8183 lt_cv_prog_compiler_rtti_exceptions=no 8184 ac_outfile=conftest.$ac_objext 8185 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8186 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8187 # Insert the option either (1) after the last *FLAGS variable, or 8188 # (2) before a word containing "conftest.", or (3) at the end. 8189 # Note that $ac_compile itself does not contain backslashes and begins 8190 # with a dollar sign (not a hyphen), so the echo should work correctly. 8191 # The option is referenced via a variable to avoid confusing sed. 8192 lt_compile=`echo "$ac_compile" | $SED \ 8193 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8194 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8195 -e 's:$: $lt_compiler_flag:'` 8196 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8197 (eval "$lt_compile" 2>conftest.err) 8198 ac_status=$? 8199 cat conftest.err >&5 8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8201 if (exit $ac_status) && test -s "$ac_outfile"; then 8202 # The compiler can only warn and ignore the option if not recognized 8203 # So say no if there are warnings other than the usual output. 8204 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8205 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8206 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8207 lt_cv_prog_compiler_rtti_exceptions=yes 8208 fi 8209 fi 8210 $RM conftest* 8211 8212fi 8213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8214$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8215 8216if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8217 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8218else 8219 : 8220fi 8221 8222fi 8223 8224 8225 8226 8227 8228 8229 lt_prog_compiler_wl= 8230lt_prog_compiler_pic= 8231lt_prog_compiler_static= 8232 8233 8234 if test yes = "$GCC"; then 8235 lt_prog_compiler_wl='-Wl,' 8236 lt_prog_compiler_static='-static' 8237 8238 case $host_os in 8239 aix*) 8240 # All AIX code is PIC. 8241 if test ia64 = "$host_cpu"; then 8242 # AIX 5 now supports IA64 processor 8243 lt_prog_compiler_static='-Bstatic' 8244 fi 8245 lt_prog_compiler_pic='-fPIC' 8246 ;; 8247 8248 amigaos*) 8249 case $host_cpu in 8250 powerpc) 8251 # see comment about AmigaOS4 .so support 8252 lt_prog_compiler_pic='-fPIC' 8253 ;; 8254 m68k) 8255 # FIXME: we need at least 68020 code to build shared libraries, but 8256 # adding the '-m68020' flag to GCC prevents building anything better, 8257 # like '-m68040'. 8258 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8259 ;; 8260 esac 8261 ;; 8262 8263 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8264 # PIC is the default for these OSes. 8265 ;; 8266 8267 mingw* | cygwin* | pw32* | os2* | cegcc*) 8268 # This hack is so that the source file can tell whether it is being 8269 # built for inclusion in a dll (and should export symbols for example). 8270 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8271 # (--disable-auto-import) libraries 8272 lt_prog_compiler_pic='-DDLL_EXPORT' 8273 case $host_os in 8274 os2*) 8275 lt_prog_compiler_static='$wl-static' 8276 ;; 8277 esac 8278 ;; 8279 8280 darwin* | rhapsody*) 8281 # PIC is the default on this platform 8282 # Common symbols not allowed in MH_DYLIB files 8283 lt_prog_compiler_pic='-fno-common' 8284 ;; 8285 8286 haiku*) 8287 # PIC is the default for Haiku. 8288 # The "-static" flag exists, but is broken. 8289 lt_prog_compiler_static= 8290 ;; 8291 8292 hpux*) 8293 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8294 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8295 # sets the default TLS model and affects inlining. 8296 case $host_cpu in 8297 hppa*64*) 8298 # +Z the default 8299 ;; 8300 *) 8301 lt_prog_compiler_pic='-fPIC' 8302 ;; 8303 esac 8304 ;; 8305 8306 interix[3-9]*) 8307 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8308 # Instead, we relocate shared libraries at runtime. 8309 ;; 8310 8311 msdosdjgpp*) 8312 # Just because we use GCC doesn't mean we suddenly get shared libraries 8313 # on systems that don't support them. 8314 lt_prog_compiler_can_build_shared=no 8315 enable_shared=no 8316 ;; 8317 8318 *nto* | *qnx*) 8319 # QNX uses GNU C++, but need to define -shared option too, otherwise 8320 # it will coredump. 8321 lt_prog_compiler_pic='-fPIC -shared' 8322 ;; 8323 8324 sysv4*MP*) 8325 if test -d /usr/nec; then 8326 lt_prog_compiler_pic=-Kconform_pic 8327 fi 8328 ;; 8329 8330 *) 8331 lt_prog_compiler_pic='-fPIC' 8332 ;; 8333 esac 8334 8335 case $cc_basename in 8336 nvcc*) # Cuda Compiler Driver 2.2 8337 lt_prog_compiler_wl='-Xlinker ' 8338 if test -n "$lt_prog_compiler_pic"; then 8339 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8340 fi 8341 ;; 8342 esac 8343 else 8344 # PORTME Check for flag to pass linker flags through the system compiler. 8345 case $host_os in 8346 aix*) 8347 lt_prog_compiler_wl='-Wl,' 8348 if test ia64 = "$host_cpu"; then 8349 # AIX 5 now supports IA64 processor 8350 lt_prog_compiler_static='-Bstatic' 8351 else 8352 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8353 fi 8354 ;; 8355 8356 darwin* | rhapsody*) 8357 # PIC is the default on this platform 8358 # Common symbols not allowed in MH_DYLIB files 8359 lt_prog_compiler_pic='-fno-common' 8360 case $cc_basename in 8361 nagfor*) 8362 # NAG Fortran compiler 8363 lt_prog_compiler_wl='-Wl,-Wl,,' 8364 lt_prog_compiler_pic='-PIC' 8365 lt_prog_compiler_static='-Bstatic' 8366 ;; 8367 esac 8368 ;; 8369 8370 mingw* | cygwin* | pw32* | os2* | cegcc*) 8371 # This hack is so that the source file can tell whether it is being 8372 # built for inclusion in a dll (and should export symbols for example). 8373 lt_prog_compiler_pic='-DDLL_EXPORT' 8374 case $host_os in 8375 os2*) 8376 lt_prog_compiler_static='$wl-static' 8377 ;; 8378 esac 8379 ;; 8380 8381 hpux9* | hpux10* | hpux11*) 8382 lt_prog_compiler_wl='-Wl,' 8383 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8384 # not for PA HP-UX. 8385 case $host_cpu in 8386 hppa*64*|ia64*) 8387 # +Z the default 8388 ;; 8389 *) 8390 lt_prog_compiler_pic='+Z' 8391 ;; 8392 esac 8393 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8394 lt_prog_compiler_static='$wl-a ${wl}archive' 8395 ;; 8396 8397 irix5* | irix6* | nonstopux*) 8398 lt_prog_compiler_wl='-Wl,' 8399 # PIC (with -KPIC) is the default. 8400 lt_prog_compiler_static='-non_shared' 8401 ;; 8402 8403 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8404 case $cc_basename in 8405 # old Intel for x86_64, which still supported -KPIC. 8406 ecc*) 8407 lt_prog_compiler_wl='-Wl,' 8408 lt_prog_compiler_pic='-KPIC' 8409 lt_prog_compiler_static='-static' 8410 ;; 8411 # icc used to be incompatible with GCC. 8412 # ICC 10 doesn't accept -KPIC any more. 8413 icc* | ifort*) 8414 lt_prog_compiler_wl='-Wl,' 8415 lt_prog_compiler_pic='-fPIC' 8416 lt_prog_compiler_static='-static' 8417 ;; 8418 # Lahey Fortran 8.1. 8419 lf95*) 8420 lt_prog_compiler_wl='-Wl,' 8421 lt_prog_compiler_pic='--shared' 8422 lt_prog_compiler_static='--static' 8423 ;; 8424 nagfor*) 8425 # NAG Fortran compiler 8426 lt_prog_compiler_wl='-Wl,-Wl,,' 8427 lt_prog_compiler_pic='-PIC' 8428 lt_prog_compiler_static='-Bstatic' 8429 ;; 8430 tcc*) 8431 # Fabrice Bellard et al's Tiny C Compiler 8432 lt_prog_compiler_wl='-Wl,' 8433 lt_prog_compiler_pic='-fPIC' 8434 lt_prog_compiler_static='-static' 8435 ;; 8436 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8437 # Portland Group compilers (*not* the Pentium gcc compiler, 8438 # which looks to be a dead project) 8439 lt_prog_compiler_wl='-Wl,' 8440 lt_prog_compiler_pic='-fpic' 8441 lt_prog_compiler_static='-Bstatic' 8442 ;; 8443 ccc*) 8444 lt_prog_compiler_wl='-Wl,' 8445 # All Alpha code is PIC. 8446 lt_prog_compiler_static='-non_shared' 8447 ;; 8448 xl* | bgxl* | bgf* | mpixl*) 8449 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8450 lt_prog_compiler_wl='-Wl,' 8451 lt_prog_compiler_pic='-qpic' 8452 lt_prog_compiler_static='-qstaticlink' 8453 ;; 8454 *) 8455 case `$CC -V 2>&1 | sed 5q` in 8456 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8457 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8458 lt_prog_compiler_pic='-KPIC' 8459 lt_prog_compiler_static='-Bstatic' 8460 lt_prog_compiler_wl='' 8461 ;; 8462 *Sun\ F* | *Sun*Fortran*) 8463 lt_prog_compiler_pic='-KPIC' 8464 lt_prog_compiler_static='-Bstatic' 8465 lt_prog_compiler_wl='-Qoption ld ' 8466 ;; 8467 *Sun\ C*) 8468 # Sun C 5.9 8469 lt_prog_compiler_pic='-KPIC' 8470 lt_prog_compiler_static='-Bstatic' 8471 lt_prog_compiler_wl='-Wl,' 8472 ;; 8473 *Intel*\ [CF]*Compiler*) 8474 lt_prog_compiler_wl='-Wl,' 8475 lt_prog_compiler_pic='-fPIC' 8476 lt_prog_compiler_static='-static' 8477 ;; 8478 *Portland\ Group*) 8479 lt_prog_compiler_wl='-Wl,' 8480 lt_prog_compiler_pic='-fpic' 8481 lt_prog_compiler_static='-Bstatic' 8482 ;; 8483 esac 8484 ;; 8485 esac 8486 ;; 8487 8488 newsos6) 8489 lt_prog_compiler_pic='-KPIC' 8490 lt_prog_compiler_static='-Bstatic' 8491 ;; 8492 8493 *nto* | *qnx*) 8494 # QNX uses GNU C++, but need to define -shared option too, otherwise 8495 # it will coredump. 8496 lt_prog_compiler_pic='-fPIC -shared' 8497 ;; 8498 8499 osf3* | osf4* | osf5*) 8500 lt_prog_compiler_wl='-Wl,' 8501 # All OSF/1 code is PIC. 8502 lt_prog_compiler_static='-non_shared' 8503 ;; 8504 8505 rdos*) 8506 lt_prog_compiler_static='-non_shared' 8507 ;; 8508 8509 solaris*) 8510 lt_prog_compiler_pic='-KPIC' 8511 lt_prog_compiler_static='-Bstatic' 8512 case $cc_basename in 8513 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8514 lt_prog_compiler_wl='-Qoption ld ';; 8515 *) 8516 lt_prog_compiler_wl='-Wl,';; 8517 esac 8518 ;; 8519 8520 sunos4*) 8521 lt_prog_compiler_wl='-Qoption ld ' 8522 lt_prog_compiler_pic='-PIC' 8523 lt_prog_compiler_static='-Bstatic' 8524 ;; 8525 8526 sysv4 | sysv4.2uw2* | sysv4.3*) 8527 lt_prog_compiler_wl='-Wl,' 8528 lt_prog_compiler_pic='-KPIC' 8529 lt_prog_compiler_static='-Bstatic' 8530 ;; 8531 8532 sysv4*MP*) 8533 if test -d /usr/nec; then 8534 lt_prog_compiler_pic='-Kconform_pic' 8535 lt_prog_compiler_static='-Bstatic' 8536 fi 8537 ;; 8538 8539 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8540 lt_prog_compiler_wl='-Wl,' 8541 lt_prog_compiler_pic='-KPIC' 8542 lt_prog_compiler_static='-Bstatic' 8543 ;; 8544 8545 unicos*) 8546 lt_prog_compiler_wl='-Wl,' 8547 lt_prog_compiler_can_build_shared=no 8548 ;; 8549 8550 uts4*) 8551 lt_prog_compiler_pic='-pic' 8552 lt_prog_compiler_static='-Bstatic' 8553 ;; 8554 8555 *) 8556 lt_prog_compiler_can_build_shared=no 8557 ;; 8558 esac 8559 fi 8560 8561case $host_os in 8562 # For platforms that do not support PIC, -DPIC is meaningless: 8563 *djgpp*) 8564 lt_prog_compiler_pic= 8565 ;; 8566 *) 8567 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8568 ;; 8569esac 8570 8571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8572$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8573if ${lt_cv_prog_compiler_pic+:} false; then : 8574 $as_echo_n "(cached) " >&6 8575else 8576 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8577fi 8578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8579$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8580lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8581 8582# 8583# Check to make sure the PIC flag actually works. 8584# 8585if test -n "$lt_prog_compiler_pic"; then 8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8587$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8588if ${lt_cv_prog_compiler_pic_works+:} false; then : 8589 $as_echo_n "(cached) " >&6 8590else 8591 lt_cv_prog_compiler_pic_works=no 8592 ac_outfile=conftest.$ac_objext 8593 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8594 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8595 # Insert the option either (1) after the last *FLAGS variable, or 8596 # (2) before a word containing "conftest.", or (3) at the end. 8597 # Note that $ac_compile itself does not contain backslashes and begins 8598 # with a dollar sign (not a hyphen), so the echo should work correctly. 8599 # The option is referenced via a variable to avoid confusing sed. 8600 lt_compile=`echo "$ac_compile" | $SED \ 8601 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8602 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8603 -e 's:$: $lt_compiler_flag:'` 8604 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8605 (eval "$lt_compile" 2>conftest.err) 8606 ac_status=$? 8607 cat conftest.err >&5 8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8609 if (exit $ac_status) && test -s "$ac_outfile"; then 8610 # The compiler can only warn and ignore the option if not recognized 8611 # So say no if there are warnings other than the usual output. 8612 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8613 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8614 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8615 lt_cv_prog_compiler_pic_works=yes 8616 fi 8617 fi 8618 $RM conftest* 8619 8620fi 8621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8622$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8623 8624if test yes = "$lt_cv_prog_compiler_pic_works"; then 8625 case $lt_prog_compiler_pic in 8626 "" | " "*) ;; 8627 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8628 esac 8629else 8630 lt_prog_compiler_pic= 8631 lt_prog_compiler_can_build_shared=no 8632fi 8633 8634fi 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646# 8647# Check to make sure the static flag actually works. 8648# 8649wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8651$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8652if ${lt_cv_prog_compiler_static_works+:} false; then : 8653 $as_echo_n "(cached) " >&6 8654else 8655 lt_cv_prog_compiler_static_works=no 8656 save_LDFLAGS=$LDFLAGS 8657 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8658 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8659 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8660 # The linker can only warn and ignore the option if not recognized 8661 # So say no if there are warnings 8662 if test -s conftest.err; then 8663 # Append any errors to the config.log. 8664 cat conftest.err 1>&5 8665 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8666 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8667 if diff conftest.exp conftest.er2 >/dev/null; then 8668 lt_cv_prog_compiler_static_works=yes 8669 fi 8670 else 8671 lt_cv_prog_compiler_static_works=yes 8672 fi 8673 fi 8674 $RM -r conftest* 8675 LDFLAGS=$save_LDFLAGS 8676 8677fi 8678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8679$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8680 8681if test yes = "$lt_cv_prog_compiler_static_works"; then 8682 : 8683else 8684 lt_prog_compiler_static= 8685fi 8686 8687 8688 8689 8690 8691 8692 8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8694$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8695if ${lt_cv_prog_compiler_c_o+:} false; then : 8696 $as_echo_n "(cached) " >&6 8697else 8698 lt_cv_prog_compiler_c_o=no 8699 $RM -r conftest 2>/dev/null 8700 mkdir conftest 8701 cd conftest 8702 mkdir out 8703 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8704 8705 lt_compiler_flag="-o out/conftest2.$ac_objext" 8706 # Insert the option either (1) after the last *FLAGS variable, or 8707 # (2) before a word containing "conftest.", or (3) at the end. 8708 # Note that $ac_compile itself does not contain backslashes and begins 8709 # with a dollar sign (not a hyphen), so the echo should work correctly. 8710 lt_compile=`echo "$ac_compile" | $SED \ 8711 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8713 -e 's:$: $lt_compiler_flag:'` 8714 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8715 (eval "$lt_compile" 2>out/conftest.err) 8716 ac_status=$? 8717 cat out/conftest.err >&5 8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8719 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8720 then 8721 # The compiler can only warn and ignore the option if not recognized 8722 # So say no if there are warnings 8723 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8724 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8725 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8726 lt_cv_prog_compiler_c_o=yes 8727 fi 8728 fi 8729 chmod u+w . 2>&5 8730 $RM conftest* 8731 # SGI C++ compiler will create directory out/ii_files/ for 8732 # template instantiation 8733 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8734 $RM out/* && rmdir out 8735 cd .. 8736 $RM -r conftest 8737 $RM conftest* 8738 8739fi 8740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8741$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8742 8743 8744 8745 8746 8747 8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8749$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8750if ${lt_cv_prog_compiler_c_o+:} false; then : 8751 $as_echo_n "(cached) " >&6 8752else 8753 lt_cv_prog_compiler_c_o=no 8754 $RM -r conftest 2>/dev/null 8755 mkdir conftest 8756 cd conftest 8757 mkdir out 8758 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8759 8760 lt_compiler_flag="-o out/conftest2.$ac_objext" 8761 # Insert the option either (1) after the last *FLAGS variable, or 8762 # (2) before a word containing "conftest.", or (3) at the end. 8763 # Note that $ac_compile itself does not contain backslashes and begins 8764 # with a dollar sign (not a hyphen), so the echo should work correctly. 8765 lt_compile=`echo "$ac_compile" | $SED \ 8766 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8767 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8768 -e 's:$: $lt_compiler_flag:'` 8769 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8770 (eval "$lt_compile" 2>out/conftest.err) 8771 ac_status=$? 8772 cat out/conftest.err >&5 8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8774 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8775 then 8776 # The compiler can only warn and ignore the option if not recognized 8777 # So say no if there are warnings 8778 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8779 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8780 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8781 lt_cv_prog_compiler_c_o=yes 8782 fi 8783 fi 8784 chmod u+w . 2>&5 8785 $RM conftest* 8786 # SGI C++ compiler will create directory out/ii_files/ for 8787 # template instantiation 8788 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8789 $RM out/* && rmdir out 8790 cd .. 8791 $RM -r conftest 8792 $RM conftest* 8793 8794fi 8795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8796$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8797 8798 8799 8800 8801hard_links=nottested 8802if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 8803 # do not overwrite the value of need_locks provided by the user 8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8805$as_echo_n "checking if we can lock with hard links... " >&6; } 8806 hard_links=yes 8807 $RM conftest* 8808 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8809 touch conftest.a 8810 ln conftest.a conftest.b 2>&5 || hard_links=no 8811 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8813$as_echo "$hard_links" >&6; } 8814 if test no = "$hard_links"; then 8815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 8816$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 8817 need_locks=warn 8818 fi 8819else 8820 need_locks=no 8821fi 8822 8823 8824 8825 8826 8827 8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8829$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8830 8831 runpath_var= 8832 allow_undefined_flag= 8833 always_export_symbols=no 8834 archive_cmds= 8835 archive_expsym_cmds= 8836 compiler_needs_object=no 8837 enable_shared_with_static_runtimes=no 8838 export_dynamic_flag_spec= 8839 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8840 hardcode_automatic=no 8841 hardcode_direct=no 8842 hardcode_direct_absolute=no 8843 hardcode_libdir_flag_spec= 8844 hardcode_libdir_separator= 8845 hardcode_minus_L=no 8846 hardcode_shlibpath_var=unsupported 8847 inherit_rpath=no 8848 link_all_deplibs=unknown 8849 module_cmds= 8850 module_expsym_cmds= 8851 old_archive_from_new_cmds= 8852 old_archive_from_expsyms_cmds= 8853 thread_safe_flag_spec= 8854 whole_archive_flag_spec= 8855 # include_expsyms should be a list of space-separated symbols to be *always* 8856 # included in the symbol list 8857 include_expsyms= 8858 # exclude_expsyms can be an extended regexp of symbols to exclude 8859 # it will be wrapped by ' (' and ')$', so one must not match beginning or 8860 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 8861 # as well as any symbol that contains 'd'. 8862 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8863 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8864 # platforms (ab)use it in PIC code, but their linkers get confused if 8865 # the symbol is explicitly referenced. Since portable code cannot 8866 # rely on this symbol name, it's probably fine to never include it in 8867 # preloaded symbol tables. 8868 # Exclude shared library initialization/finalization symbols. 8869 extract_expsyms_cmds= 8870 8871 case $host_os in 8872 cygwin* | mingw* | pw32* | cegcc*) 8873 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8874 # When not using gcc, we currently assume that we are using 8875 # Microsoft Visual C++. 8876 if test yes != "$GCC"; then 8877 with_gnu_ld=no 8878 fi 8879 ;; 8880 interix*) 8881 # we just hope/assume this is gcc and not c89 (= MSVC++) 8882 with_gnu_ld=yes 8883 ;; 8884 openbsd* | bitrig*) 8885 with_gnu_ld=no 8886 ;; 8887 esac 8888 8889 ld_shlibs=yes 8890 8891 # On some targets, GNU ld is compatible enough with the native linker 8892 # that we're better off using the native interface for both. 8893 lt_use_gnu_ld_interface=no 8894 if test yes = "$with_gnu_ld"; then 8895 case $host_os in 8896 aix*) 8897 # The AIX port of GNU ld has always aspired to compatibility 8898 # with the native linker. However, as the warning in the GNU ld 8899 # block says, versions before 2.19.5* couldn't really create working 8900 # shared libraries, regardless of the interface used. 8901 case `$LD -v 2>&1` in 8902 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8903 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8904 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8905 *) 8906 lt_use_gnu_ld_interface=yes 8907 ;; 8908 esac 8909 ;; 8910 *) 8911 lt_use_gnu_ld_interface=yes 8912 ;; 8913 esac 8914 fi 8915 8916 if test yes = "$lt_use_gnu_ld_interface"; then 8917 # If archive_cmds runs LD, not CC, wlarc should be empty 8918 wlarc='$wl' 8919 8920 # Set some defaults for GNU ld with shared library support. These 8921 # are reset later if shared libraries are not supported. Putting them 8922 # here allows them to be overridden if necessary. 8923 runpath_var=LD_RUN_PATH 8924 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 8925 export_dynamic_flag_spec='$wl--export-dynamic' 8926 # ancient GNU ld didn't support --whole-archive et. al. 8927 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8928 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 8929 else 8930 whole_archive_flag_spec= 8931 fi 8932 supports_anon_versioning=no 8933 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 8934 *GNU\ gold*) supports_anon_versioning=yes ;; 8935 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8936 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8937 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8938 *\ 2.11.*) ;; # other 2.11 versions 8939 *) supports_anon_versioning=yes ;; 8940 esac 8941 8942 # See if GNU ld supports shared libraries. 8943 case $host_os in 8944 aix[3-9]*) 8945 # On AIX/PPC, the GNU linker is very broken 8946 if test ia64 != "$host_cpu"; then 8947 ld_shlibs=no 8948 cat <<_LT_EOF 1>&2 8949 8950*** Warning: the GNU linker, at least up to release 2.19, is reported 8951*** to be unable to reliably create shared libraries on AIX. 8952*** Therefore, libtool is disabling shared libraries support. If you 8953*** really care for shared libraries, you may want to install binutils 8954*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8955*** You will then need to restart the configuration process. 8956 8957_LT_EOF 8958 fi 8959 ;; 8960 8961 amigaos*) 8962 case $host_cpu in 8963 powerpc) 8964 # see comment about AmigaOS4 .so support 8965 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8966 archive_expsym_cmds='' 8967 ;; 8968 m68k) 8969 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)' 8970 hardcode_libdir_flag_spec='-L$libdir' 8971 hardcode_minus_L=yes 8972 ;; 8973 esac 8974 ;; 8975 8976 beos*) 8977 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8978 allow_undefined_flag=unsupported 8979 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8980 # support --undefined. This deserves some investigation. FIXME 8981 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8982 else 8983 ld_shlibs=no 8984 fi 8985 ;; 8986 8987 cygwin* | mingw* | pw32* | cegcc*) 8988 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8989 # as there is no search path for DLLs. 8990 hardcode_libdir_flag_spec='-L$libdir' 8991 export_dynamic_flag_spec='$wl--export-all-symbols' 8992 allow_undefined_flag=unsupported 8993 always_export_symbols=no 8994 enable_shared_with_static_runtimes=yes 8995 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' 8996 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8997 8998 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8999 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9000 # If the export-symbols file already is a .def file, use it as 9001 # is; otherwise, prepend EXPORTS... 9002 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9003 cp $export_symbols $output_objdir/$soname.def; 9004 else 9005 echo EXPORTS > $output_objdir/$soname.def; 9006 cat $export_symbols >> $output_objdir/$soname.def; 9007 fi~ 9008 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9009 else 9010 ld_shlibs=no 9011 fi 9012 ;; 9013 9014 haiku*) 9015 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9016 link_all_deplibs=yes 9017 ;; 9018 9019 os2*) 9020 hardcode_libdir_flag_spec='-L$libdir' 9021 hardcode_minus_L=yes 9022 allow_undefined_flag=unsupported 9023 shrext_cmds=.dll 9024 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9025 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9026 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9027 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9028 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9029 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9030 emximp -o $lib $output_objdir/$libname.def' 9031 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9032 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9033 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9034 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9035 prefix_cmds="$SED"~ 9036 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9037 prefix_cmds="$prefix_cmds -e 1d"; 9038 fi~ 9039 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9040 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9041 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9042 emximp -o $lib $output_objdir/$libname.def' 9043 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9044 enable_shared_with_static_runtimes=yes 9045 ;; 9046 9047 interix[3-9]*) 9048 hardcode_direct=no 9049 hardcode_shlibpath_var=no 9050 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9051 export_dynamic_flag_spec='$wl-E' 9052 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9053 # Instead, shared libraries are loaded at an image base (0x10000000 by 9054 # default) and relocated if they conflict, which is a slow very memory 9055 # consuming and fragmenting process. To avoid this, we pick a random, 9056 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9057 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9058 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9059 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' 9060 ;; 9061 9062 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9063 tmp_diet=no 9064 if test linux-dietlibc = "$host_os"; then 9065 case $cc_basename in 9066 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9067 esac 9068 fi 9069 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9070 && test no = "$tmp_diet" 9071 then 9072 tmp_addflag=' $pic_flag' 9073 tmp_sharedflag='-shared' 9074 case $cc_basename,$host_cpu in 9075 pgcc*) # Portland Group C compiler 9076 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' 9077 tmp_addflag=' $pic_flag' 9078 ;; 9079 pgf77* | pgf90* | pgf95* | pgfortran*) 9080 # Portland Group f77 and f90 compilers 9081 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' 9082 tmp_addflag=' $pic_flag -Mnomain' ;; 9083 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9084 tmp_addflag=' -i_dynamic' ;; 9085 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9086 tmp_addflag=' -i_dynamic -nofor_main' ;; 9087 ifc* | ifort*) # Intel Fortran compiler 9088 tmp_addflag=' -nofor_main' ;; 9089 lf95*) # Lahey Fortran 8.1 9090 whole_archive_flag_spec= 9091 tmp_sharedflag='--shared' ;; 9092 nagfor*) # NAGFOR 5.3 9093 tmp_sharedflag='-Wl,-shared' ;; 9094 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9095 tmp_sharedflag='-qmkshrobj' 9096 tmp_addflag= ;; 9097 nvcc*) # Cuda Compiler Driver 2.2 9098 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' 9099 compiler_needs_object=yes 9100 ;; 9101 esac 9102 case `$CC -V 2>&1 | sed 5q` in 9103 *Sun\ C*) # Sun C 5.9 9104 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' 9105 compiler_needs_object=yes 9106 tmp_sharedflag='-G' ;; 9107 *Sun\ F*) # Sun Fortran 8.3 9108 tmp_sharedflag='-G' ;; 9109 esac 9110 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9111 9112 if test yes = "$supports_anon_versioning"; then 9113 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9114 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9115 echo "local: *; };" >> $output_objdir/$libname.ver~ 9116 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9117 fi 9118 9119 case $cc_basename in 9120 tcc*) 9121 export_dynamic_flag_spec='-rdynamic' 9122 ;; 9123 xlf* | bgf* | bgxlf* | mpixlf*) 9124 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9125 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9126 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9127 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9128 if test yes = "$supports_anon_versioning"; then 9129 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9130 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9131 echo "local: *; };" >> $output_objdir/$libname.ver~ 9132 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9133 fi 9134 ;; 9135 esac 9136 else 9137 ld_shlibs=no 9138 fi 9139 ;; 9140 9141 netbsd*) 9142 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9143 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9144 wlarc= 9145 else 9146 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9147 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9148 fi 9149 ;; 9150 9151 solaris*) 9152 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9153 ld_shlibs=no 9154 cat <<_LT_EOF 1>&2 9155 9156*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9157*** create shared libraries on Solaris systems. Therefore, libtool 9158*** is disabling shared libraries support. We urge you to upgrade GNU 9159*** binutils to release 2.9.1 or newer. Another option is to modify 9160*** your PATH or compiler configuration so that the native linker is 9161*** used, and then restart. 9162 9163_LT_EOF 9164 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9165 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9166 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9167 else 9168 ld_shlibs=no 9169 fi 9170 ;; 9171 9172 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9173 case `$LD -v 2>&1` in 9174 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9175 ld_shlibs=no 9176 cat <<_LT_EOF 1>&2 9177 9178*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9179*** reliably create shared libraries on SCO systems. Therefore, libtool 9180*** is disabling shared libraries support. We urge you to upgrade GNU 9181*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9182*** your PATH or compiler configuration so that the native linker is 9183*** used, and then restart. 9184 9185_LT_EOF 9186 ;; 9187 *) 9188 # For security reasons, it is highly recommended that you always 9189 # use absolute paths for naming shared libraries, and exclude the 9190 # DT_RUNPATH tag from executables and libraries. But doing so 9191 # requires that you compile everything twice, which is a pain. 9192 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9193 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9194 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9195 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9196 else 9197 ld_shlibs=no 9198 fi 9199 ;; 9200 esac 9201 ;; 9202 9203 sunos4*) 9204 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9205 wlarc= 9206 hardcode_direct=yes 9207 hardcode_shlibpath_var=no 9208 ;; 9209 9210 *) 9211 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9212 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9213 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9214 else 9215 ld_shlibs=no 9216 fi 9217 ;; 9218 esac 9219 9220 if test no = "$ld_shlibs"; then 9221 runpath_var= 9222 hardcode_libdir_flag_spec= 9223 export_dynamic_flag_spec= 9224 whole_archive_flag_spec= 9225 fi 9226 else 9227 # PORTME fill in a description of your system's linker (not GNU ld) 9228 case $host_os in 9229 aix3*) 9230 allow_undefined_flag=unsupported 9231 always_export_symbols=yes 9232 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' 9233 # Note: this linker hardcodes the directories in LIBPATH if there 9234 # are no directories specified by -L. 9235 hardcode_minus_L=yes 9236 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9237 # Neither direct hardcoding nor static linking is supported with a 9238 # broken collect2. 9239 hardcode_direct=unsupported 9240 fi 9241 ;; 9242 9243 aix[4-9]*) 9244 if test ia64 = "$host_cpu"; then 9245 # On IA64, the linker does run time linking by default, so we don't 9246 # have to do anything special. 9247 aix_use_runtimelinking=no 9248 exp_sym_flag='-Bexport' 9249 no_entry_flag= 9250 else 9251 # If we're using GNU nm, then we don't want the "-C" option. 9252 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9253 # Without the "-l" option, or with the "-B" option, AIX nm treats 9254 # weak defined symbols like other global defined symbols, whereas 9255 # GNU nm marks them as "W". 9256 # While the 'weak' keyword is ignored in the Export File, we need 9257 # it in the Import File for the 'aix-soname' feature, so we have 9258 # to replace the "-B" option with "-P" for AIX nm. 9259 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9260 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 9261 else 9262 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 9263 fi 9264 aix_use_runtimelinking=no 9265 9266 # Test if we are trying to use run time linking or normal 9267 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9268 # have runtime linking enabled, and use it for executables. 9269 # For shared libraries, we enable/disable runtime linking 9270 # depending on the kind of the shared library created - 9271 # when "with_aix_soname,aix_use_runtimelinking" is: 9272 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9273 # "aix,yes" lib.so shared, rtl:yes, for executables 9274 # lib.a static archive 9275 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9276 # lib.a(lib.so.V) shared, rtl:no, for executables 9277 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9278 # lib.a(lib.so.V) shared, rtl:no 9279 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9280 # lib.a static archive 9281 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9282 for ld_flag in $LDFLAGS; do 9283 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9284 aix_use_runtimelinking=yes 9285 break 9286 fi 9287 done 9288 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9289 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9290 # so we don't have lib.a shared libs to link our executables. 9291 # We have to force runtime linking in this case. 9292 aix_use_runtimelinking=yes 9293 LDFLAGS="$LDFLAGS -Wl,-brtl" 9294 fi 9295 ;; 9296 esac 9297 9298 exp_sym_flag='-bexport' 9299 no_entry_flag='-bnoentry' 9300 fi 9301 9302 # When large executables or shared objects are built, AIX ld can 9303 # have problems creating the table of contents. If linking a library 9304 # or program results in "error TOC overflow" add -mminimal-toc to 9305 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9306 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9307 9308 archive_cmds='' 9309 hardcode_direct=yes 9310 hardcode_direct_absolute=yes 9311 hardcode_libdir_separator=':' 9312 link_all_deplibs=yes 9313 file_list_spec='$wl-f,' 9314 case $with_aix_soname,$aix_use_runtimelinking in 9315 aix,*) ;; # traditional, no import file 9316 svr4,* | *,yes) # use import file 9317 # The Import File defines what to hardcode. 9318 hardcode_direct=no 9319 hardcode_direct_absolute=no 9320 ;; 9321 esac 9322 9323 if test yes = "$GCC"; then 9324 case $host_os in aix4.[012]|aix4.[012].*) 9325 # We only want to do this on AIX 4.2 and lower, the check 9326 # below for broken collect2 doesn't work under 4.3+ 9327 collect2name=`$CC -print-prog-name=collect2` 9328 if test -f "$collect2name" && 9329 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9330 then 9331 # We have reworked collect2 9332 : 9333 else 9334 # We have old collect2 9335 hardcode_direct=unsupported 9336 # It fails to find uninstalled libraries when the uninstalled 9337 # path is not listed in the libpath. Setting hardcode_minus_L 9338 # to unsupported forces relinking 9339 hardcode_minus_L=yes 9340 hardcode_libdir_flag_spec='-L$libdir' 9341 hardcode_libdir_separator= 9342 fi 9343 ;; 9344 esac 9345 shared_flag='-shared' 9346 if test yes = "$aix_use_runtimelinking"; then 9347 shared_flag="$shared_flag "'$wl-G' 9348 fi 9349 # Need to ensure runtime linking is disabled for the traditional 9350 # shared library, or the linker may eventually find shared libraries 9351 # /with/ Import File - we do not want to mix them. 9352 shared_flag_aix='-shared' 9353 shared_flag_svr4='-shared $wl-G' 9354 else 9355 # not using gcc 9356 if test ia64 = "$host_cpu"; then 9357 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9358 # chokes on -Wl,-G. The following line is correct: 9359 shared_flag='-G' 9360 else 9361 if test yes = "$aix_use_runtimelinking"; then 9362 shared_flag='$wl-G' 9363 else 9364 shared_flag='$wl-bM:SRE' 9365 fi 9366 shared_flag_aix='$wl-bM:SRE' 9367 shared_flag_svr4='$wl-G' 9368 fi 9369 fi 9370 9371 export_dynamic_flag_spec='$wl-bexpall' 9372 # It seems that -bexpall does not export symbols beginning with 9373 # underscore (_), so it is better to generate a list of symbols to export. 9374 always_export_symbols=yes 9375 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9376 # Warning - without using the other runtime loading flags (-brtl), 9377 # -berok will link without error, but may produce a broken library. 9378 allow_undefined_flag='-berok' 9379 # Determine the default libpath from the value encoded in an 9380 # empty executable. 9381 if test set = "${lt_cv_aix_libpath+set}"; then 9382 aix_libpath=$lt_cv_aix_libpath 9383else 9384 if ${lt_cv_aix_libpath_+:} false; then : 9385 $as_echo_n "(cached) " >&6 9386else 9387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9388/* end confdefs.h. */ 9389 9390int 9391main () 9392{ 9393 9394 ; 9395 return 0; 9396} 9397_ACEOF 9398if ac_fn_c_try_link "$LINENO"; then : 9399 9400 lt_aix_libpath_sed=' 9401 /Import File Strings/,/^$/ { 9402 /^0/ { 9403 s/^0 *\([^ ]*\) *$/\1/ 9404 p 9405 } 9406 }' 9407 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9408 # Check for a 64-bit object if we didn't find anything. 9409 if test -z "$lt_cv_aix_libpath_"; then 9410 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9411 fi 9412fi 9413rm -f core conftest.err conftest.$ac_objext \ 9414 conftest$ac_exeext conftest.$ac_ext 9415 if test -z "$lt_cv_aix_libpath_"; then 9416 lt_cv_aix_libpath_=/usr/lib:/lib 9417 fi 9418 9419fi 9420 9421 aix_libpath=$lt_cv_aix_libpath_ 9422fi 9423 9424 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9425 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 9426 else 9427 if test ia64 = "$host_cpu"; then 9428 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9429 allow_undefined_flag="-z nodefs" 9430 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" 9431 else 9432 # Determine the default libpath from the value encoded in an 9433 # empty executable. 9434 if test set = "${lt_cv_aix_libpath+set}"; then 9435 aix_libpath=$lt_cv_aix_libpath 9436else 9437 if ${lt_cv_aix_libpath_+:} false; then : 9438 $as_echo_n "(cached) " >&6 9439else 9440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9441/* end confdefs.h. */ 9442 9443int 9444main () 9445{ 9446 9447 ; 9448 return 0; 9449} 9450_ACEOF 9451if ac_fn_c_try_link "$LINENO"; then : 9452 9453 lt_aix_libpath_sed=' 9454 /Import File Strings/,/^$/ { 9455 /^0/ { 9456 s/^0 *\([^ ]*\) *$/\1/ 9457 p 9458 } 9459 }' 9460 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9461 # Check for a 64-bit object if we didn't find anything. 9462 if test -z "$lt_cv_aix_libpath_"; then 9463 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9464 fi 9465fi 9466rm -f core conftest.err conftest.$ac_objext \ 9467 conftest$ac_exeext conftest.$ac_ext 9468 if test -z "$lt_cv_aix_libpath_"; then 9469 lt_cv_aix_libpath_=/usr/lib:/lib 9470 fi 9471 9472fi 9473 9474 aix_libpath=$lt_cv_aix_libpath_ 9475fi 9476 9477 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9478 # Warning - without using the other run time loading flags, 9479 # -berok will link without error, but may produce a broken library. 9480 no_undefined_flag=' $wl-bernotok' 9481 allow_undefined_flag=' $wl-berok' 9482 if test yes = "$with_gnu_ld"; then 9483 # We only use this code for GNU lds that support --whole-archive. 9484 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9485 else 9486 # Exported symbols can be pulled into shared objects from archives 9487 whole_archive_flag_spec='$convenience' 9488 fi 9489 archive_cmds_need_lc=yes 9490 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9491 # -brtl affects multiple linker settings, -berok does not and is overridden later 9492 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9493 if test svr4 != "$with_aix_soname"; then 9494 # This is similar to how AIX traditionally builds its shared libraries. 9495 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 9496 fi 9497 if test aix != "$with_aix_soname"; then 9498 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 9499 else 9500 # used by -dlpreopen to get the symbols 9501 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9502 fi 9503 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9504 fi 9505 fi 9506 ;; 9507 9508 amigaos*) 9509 case $host_cpu in 9510 powerpc) 9511 # see comment about AmigaOS4 .so support 9512 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9513 archive_expsym_cmds='' 9514 ;; 9515 m68k) 9516 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)' 9517 hardcode_libdir_flag_spec='-L$libdir' 9518 hardcode_minus_L=yes 9519 ;; 9520 esac 9521 ;; 9522 9523 bsdi[45]*) 9524 export_dynamic_flag_spec=-rdynamic 9525 ;; 9526 9527 cygwin* | mingw* | pw32* | cegcc*) 9528 # When not using gcc, we currently assume that we are using 9529 # Microsoft Visual C++. 9530 # hardcode_libdir_flag_spec is actually meaningless, as there is 9531 # no search path for DLLs. 9532 case $cc_basename in 9533 cl*) 9534 # Native MSVC 9535 hardcode_libdir_flag_spec=' ' 9536 allow_undefined_flag=unsupported 9537 always_export_symbols=yes 9538 file_list_spec='@' 9539 # Tell ltmain to make .lib files, not .a files. 9540 libext=lib 9541 # Tell ltmain to make .dll files, not .so files. 9542 shrext_cmds=.dll 9543 # FIXME: Setting linknames here is a bad hack. 9544 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9545 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9546 cp "$export_symbols" "$output_objdir/$soname.def"; 9547 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9548 else 9549 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9550 fi~ 9551 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9552 linknames=' 9553 # The linker will not automatically build a static lib if we build a DLL. 9554 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9555 enable_shared_with_static_runtimes=yes 9556 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9557 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9558 # Don't use ranlib 9559 old_postinstall_cmds='chmod 644 $oldlib' 9560 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9561 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9562 case $lt_outputfile in 9563 *.exe|*.EXE) ;; 9564 *) 9565 lt_outputfile=$lt_outputfile.exe 9566 lt_tool_outputfile=$lt_tool_outputfile.exe 9567 ;; 9568 esac~ 9569 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9570 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9571 $RM "$lt_outputfile.manifest"; 9572 fi' 9573 ;; 9574 *) 9575 # Assume MSVC wrapper 9576 hardcode_libdir_flag_spec=' ' 9577 allow_undefined_flag=unsupported 9578 # Tell ltmain to make .lib files, not .a files. 9579 libext=lib 9580 # Tell ltmain to make .dll files, not .so files. 9581 shrext_cmds=.dll 9582 # FIXME: Setting linknames here is a bad hack. 9583 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9584 # The linker will automatically build a .lib file if we build a DLL. 9585 old_archive_from_new_cmds='true' 9586 # FIXME: Should let the user specify the lib program. 9587 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9588 enable_shared_with_static_runtimes=yes 9589 ;; 9590 esac 9591 ;; 9592 9593 darwin* | rhapsody*) 9594 9595 9596 archive_cmds_need_lc=no 9597 hardcode_direct=no 9598 hardcode_automatic=yes 9599 hardcode_shlibpath_var=unsupported 9600 if test yes = "$lt_cv_ld_force_load"; then 9601 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\"`' 9602 9603 else 9604 whole_archive_flag_spec='' 9605 fi 9606 link_all_deplibs=yes 9607 allow_undefined_flag=$_lt_dar_allow_undefined 9608 case $cc_basename in 9609 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9610 *) _lt_dar_can_shared=$GCC ;; 9611 esac 9612 if test yes = "$_lt_dar_can_shared"; then 9613 output_verbose_link_cmd=func_echo_all 9614 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9615 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9616 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" 9617 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" 9618 9619 else 9620 ld_shlibs=no 9621 fi 9622 9623 ;; 9624 9625 dgux*) 9626 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9627 hardcode_libdir_flag_spec='-L$libdir' 9628 hardcode_shlibpath_var=no 9629 ;; 9630 9631 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9632 # support. Future versions do this automatically, but an explicit c++rt0.o 9633 # does not break anything, and helps significantly (at the cost of a little 9634 # extra space). 9635 freebsd2.2*) 9636 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9637 hardcode_libdir_flag_spec='-R$libdir' 9638 hardcode_direct=yes 9639 hardcode_shlibpath_var=no 9640 ;; 9641 9642 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9643 freebsd2.*) 9644 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9645 hardcode_direct=yes 9646 hardcode_minus_L=yes 9647 hardcode_shlibpath_var=no 9648 ;; 9649 9650 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9651 freebsd* | dragonfly*) 9652 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9653 hardcode_libdir_flag_spec='-R$libdir' 9654 hardcode_direct=yes 9655 hardcode_shlibpath_var=no 9656 ;; 9657 9658 hpux9*) 9659 if test yes = "$GCC"; then 9660 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 9661 else 9662 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 9663 fi 9664 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9665 hardcode_libdir_separator=: 9666 hardcode_direct=yes 9667 9668 # hardcode_minus_L: Not really in the search PATH, 9669 # but as the default location of the library. 9670 hardcode_minus_L=yes 9671 export_dynamic_flag_spec='$wl-E' 9672 ;; 9673 9674 hpux10*) 9675 if test yes,no = "$GCC,$with_gnu_ld"; then 9676 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9677 else 9678 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9679 fi 9680 if test no = "$with_gnu_ld"; then 9681 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9682 hardcode_libdir_separator=: 9683 hardcode_direct=yes 9684 hardcode_direct_absolute=yes 9685 export_dynamic_flag_spec='$wl-E' 9686 # hardcode_minus_L: Not really in the search PATH, 9687 # but as the default location of the library. 9688 hardcode_minus_L=yes 9689 fi 9690 ;; 9691 9692 hpux11*) 9693 if test yes,no = "$GCC,$with_gnu_ld"; then 9694 case $host_cpu in 9695 hppa*64*) 9696 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9697 ;; 9698 ia64*) 9699 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9700 ;; 9701 *) 9702 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9703 ;; 9704 esac 9705 else 9706 case $host_cpu in 9707 hppa*64*) 9708 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9709 ;; 9710 ia64*) 9711 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9712 ;; 9713 *) 9714 9715 # Older versions of the 11.00 compiler do not understand -b yet 9716 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9718$as_echo_n "checking if $CC understands -b... " >&6; } 9719if ${lt_cv_prog_compiler__b+:} false; then : 9720 $as_echo_n "(cached) " >&6 9721else 9722 lt_cv_prog_compiler__b=no 9723 save_LDFLAGS=$LDFLAGS 9724 LDFLAGS="$LDFLAGS -b" 9725 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9726 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9727 # The linker can only warn and ignore the option if not recognized 9728 # So say no if there are warnings 9729 if test -s conftest.err; then 9730 # Append any errors to the config.log. 9731 cat conftest.err 1>&5 9732 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9733 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9734 if diff conftest.exp conftest.er2 >/dev/null; then 9735 lt_cv_prog_compiler__b=yes 9736 fi 9737 else 9738 lt_cv_prog_compiler__b=yes 9739 fi 9740 fi 9741 $RM -r conftest* 9742 LDFLAGS=$save_LDFLAGS 9743 9744fi 9745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9746$as_echo "$lt_cv_prog_compiler__b" >&6; } 9747 9748if test yes = "$lt_cv_prog_compiler__b"; then 9749 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9750else 9751 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9752fi 9753 9754 ;; 9755 esac 9756 fi 9757 if test no = "$with_gnu_ld"; then 9758 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9759 hardcode_libdir_separator=: 9760 9761 case $host_cpu in 9762 hppa*64*|ia64*) 9763 hardcode_direct=no 9764 hardcode_shlibpath_var=no 9765 ;; 9766 *) 9767 hardcode_direct=yes 9768 hardcode_direct_absolute=yes 9769 export_dynamic_flag_spec='$wl-E' 9770 9771 # hardcode_minus_L: Not really in the search PATH, 9772 # but as the default location of the library. 9773 hardcode_minus_L=yes 9774 ;; 9775 esac 9776 fi 9777 ;; 9778 9779 irix5* | irix6* | nonstopux*) 9780 if test yes = "$GCC"; then 9781 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' 9782 # Try to use the -exported_symbol ld option, if it does not 9783 # work, assume that -exports_file does not work either and 9784 # implicitly export all symbols. 9785 # This should be the same for all languages, so no per-tag cache variable. 9786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9787$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9788if ${lt_cv_irix_exported_symbol+:} false; then : 9789 $as_echo_n "(cached) " >&6 9790else 9791 save_LDFLAGS=$LDFLAGS 9792 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 9793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9794/* end confdefs.h. */ 9795int foo (void) { return 0; } 9796_ACEOF 9797if ac_fn_c_try_link "$LINENO"; then : 9798 lt_cv_irix_exported_symbol=yes 9799else 9800 lt_cv_irix_exported_symbol=no 9801fi 9802rm -f core conftest.err conftest.$ac_objext \ 9803 conftest$ac_exeext conftest.$ac_ext 9804 LDFLAGS=$save_LDFLAGS 9805fi 9806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9807$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9808 if test yes = "$lt_cv_irix_exported_symbol"; then 9809 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' 9810 fi 9811 else 9812 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' 9813 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' 9814 fi 9815 archive_cmds_need_lc='no' 9816 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9817 hardcode_libdir_separator=: 9818 inherit_rpath=yes 9819 link_all_deplibs=yes 9820 ;; 9821 9822 linux*) 9823 case $cc_basename in 9824 tcc*) 9825 # Fabrice Bellard et al's Tiny C Compiler 9826 ld_shlibs=yes 9827 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9828 ;; 9829 esac 9830 ;; 9831 9832 netbsd*) 9833 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9834 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9835 else 9836 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9837 fi 9838 hardcode_libdir_flag_spec='-R$libdir' 9839 hardcode_direct=yes 9840 hardcode_shlibpath_var=no 9841 ;; 9842 9843 newsos6) 9844 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9845 hardcode_direct=yes 9846 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9847 hardcode_libdir_separator=: 9848 hardcode_shlibpath_var=no 9849 ;; 9850 9851 *nto* | *qnx*) 9852 ;; 9853 9854 openbsd* | bitrig*) 9855 if test -f /usr/libexec/ld.so; then 9856 hardcode_direct=yes 9857 hardcode_shlibpath_var=no 9858 hardcode_direct_absolute=yes 9859 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 9860 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9861 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 9862 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9863 export_dynamic_flag_spec='$wl-E' 9864 else 9865 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9866 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9867 fi 9868 else 9869 ld_shlibs=no 9870 fi 9871 ;; 9872 9873 os2*) 9874 hardcode_libdir_flag_spec='-L$libdir' 9875 hardcode_minus_L=yes 9876 allow_undefined_flag=unsupported 9877 shrext_cmds=.dll 9878 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9879 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9880 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9881 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9882 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9883 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9884 emximp -o $lib $output_objdir/$libname.def' 9885 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9886 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9887 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9888 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9889 prefix_cmds="$SED"~ 9890 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9891 prefix_cmds="$prefix_cmds -e 1d"; 9892 fi~ 9893 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9894 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9895 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9896 emximp -o $lib $output_objdir/$libname.def' 9897 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9898 enable_shared_with_static_runtimes=yes 9899 ;; 9900 9901 osf3*) 9902 if test yes = "$GCC"; then 9903 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 9904 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' 9905 else 9906 allow_undefined_flag=' -expect_unresolved \*' 9907 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' 9908 fi 9909 archive_cmds_need_lc='no' 9910 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9911 hardcode_libdir_separator=: 9912 ;; 9913 9914 osf4* | osf5*) # as osf3* with the addition of -msym flag 9915 if test yes = "$GCC"; then 9916 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 9917 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' 9918 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9919 else 9920 allow_undefined_flag=' -expect_unresolved \*' 9921 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' 9922 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~ 9923 $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' 9924 9925 # Both c and cxx compiler support -rpath directly 9926 hardcode_libdir_flag_spec='-rpath $libdir' 9927 fi 9928 archive_cmds_need_lc='no' 9929 hardcode_libdir_separator=: 9930 ;; 9931 9932 solaris*) 9933 no_undefined_flag=' -z defs' 9934 if test yes = "$GCC"; then 9935 wlarc='$wl' 9936 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9937 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9938 $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' 9939 else 9940 case `$CC -V 2>&1` in 9941 *"Compilers 5.0"*) 9942 wlarc='' 9943 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 9944 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9945 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9946 ;; 9947 *) 9948 wlarc='$wl' 9949 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9950 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9951 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9952 ;; 9953 esac 9954 fi 9955 hardcode_libdir_flag_spec='-R$libdir' 9956 hardcode_shlibpath_var=no 9957 case $host_os in 9958 solaris2.[0-5] | solaris2.[0-5].*) ;; 9959 *) 9960 # The compiler driver will combine and reorder linker options, 9961 # but understands '-z linker_flag'. GCC discards it without '$wl', 9962 # but is careful enough not to reorder. 9963 # Supported since Solaris 2.6 (maybe 2.5.1?) 9964 if test yes = "$GCC"; then 9965 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 9966 else 9967 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9968 fi 9969 ;; 9970 esac 9971 link_all_deplibs=yes 9972 ;; 9973 9974 sunos4*) 9975 if test sequent = "$host_vendor"; then 9976 # Use $CC to link under sequent, because it throws in some extra .o 9977 # files that make .init and .fini sections work. 9978 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9979 else 9980 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9981 fi 9982 hardcode_libdir_flag_spec='-L$libdir' 9983 hardcode_direct=yes 9984 hardcode_minus_L=yes 9985 hardcode_shlibpath_var=no 9986 ;; 9987 9988 sysv4) 9989 case $host_vendor in 9990 sni) 9991 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9992 hardcode_direct=yes # is this really true??? 9993 ;; 9994 siemens) 9995 ## LD is ld it makes a PLAMLIB 9996 ## CC just makes a GrossModule. 9997 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9998 reload_cmds='$CC -r -o $output$reload_objs' 9999 hardcode_direct=no 10000 ;; 10001 motorola) 10002 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10003 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10004 ;; 10005 esac 10006 runpath_var='LD_RUN_PATH' 10007 hardcode_shlibpath_var=no 10008 ;; 10009 10010 sysv4.3*) 10011 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10012 hardcode_shlibpath_var=no 10013 export_dynamic_flag_spec='-Bexport' 10014 ;; 10015 10016 sysv4*MP*) 10017 if test -d /usr/nec; then 10018 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10019 hardcode_shlibpath_var=no 10020 runpath_var=LD_RUN_PATH 10021 hardcode_runpath_var=yes 10022 ld_shlibs=yes 10023 fi 10024 ;; 10025 10026 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10027 no_undefined_flag='$wl-z,text' 10028 archive_cmds_need_lc=no 10029 hardcode_shlibpath_var=no 10030 runpath_var='LD_RUN_PATH' 10031 10032 if test yes = "$GCC"; then 10033 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10034 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10035 else 10036 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10037 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10038 fi 10039 ;; 10040 10041 sysv5* | sco3.2v5* | sco5v6*) 10042 # Note: We CANNOT use -z defs as we might desire, because we do not 10043 # link with -lc, and that would cause any symbols used from libc to 10044 # always be unresolved, which means just about no library would 10045 # ever link correctly. If we're not using GNU ld we use -z text 10046 # though, which does catch some bad symbols but isn't as heavy-handed 10047 # as -z defs. 10048 no_undefined_flag='$wl-z,text' 10049 allow_undefined_flag='$wl-z,nodefs' 10050 archive_cmds_need_lc=no 10051 hardcode_shlibpath_var=no 10052 hardcode_libdir_flag_spec='$wl-R,$libdir' 10053 hardcode_libdir_separator=':' 10054 link_all_deplibs=yes 10055 export_dynamic_flag_spec='$wl-Bexport' 10056 runpath_var='LD_RUN_PATH' 10057 10058 if test yes = "$GCC"; then 10059 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10060 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10061 else 10062 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10063 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10064 fi 10065 ;; 10066 10067 uts4*) 10068 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10069 hardcode_libdir_flag_spec='-L$libdir' 10070 hardcode_shlibpath_var=no 10071 ;; 10072 10073 *) 10074 ld_shlibs=no 10075 ;; 10076 esac 10077 10078 if test sni = "$host_vendor"; then 10079 case $host in 10080 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10081 export_dynamic_flag_spec='$wl-Blargedynsym' 10082 ;; 10083 esac 10084 fi 10085 fi 10086 10087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10088$as_echo "$ld_shlibs" >&6; } 10089test no = "$ld_shlibs" && can_build_shared=no 10090 10091with_gnu_ld=$with_gnu_ld 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107# 10108# Do we need to explicitly link libc? 10109# 10110case "x$archive_cmds_need_lc" in 10111x|xyes) 10112 # Assume -lc should be added 10113 archive_cmds_need_lc=yes 10114 10115 if test yes,yes = "$GCC,$enable_shared"; then 10116 case $archive_cmds in 10117 *'~'*) 10118 # FIXME: we may have to deal with multi-command sequences. 10119 ;; 10120 '$CC '*) 10121 # Test whether the compiler implicitly links with -lc since on some 10122 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10123 # to ld, don't add -lc before -lgcc. 10124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10125$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10126if ${lt_cv_archive_cmds_need_lc+:} false; then : 10127 $as_echo_n "(cached) " >&6 10128else 10129 $RM conftest* 10130 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10131 10132 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10133 (eval $ac_compile) 2>&5 10134 ac_status=$? 10135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10136 test $ac_status = 0; } 2>conftest.err; then 10137 soname=conftest 10138 lib=conftest 10139 libobjs=conftest.$ac_objext 10140 deplibs= 10141 wl=$lt_prog_compiler_wl 10142 pic_flag=$lt_prog_compiler_pic 10143 compiler_flags=-v 10144 linker_flags=-v 10145 verstring= 10146 output_objdir=. 10147 libname=conftest 10148 lt_save_allow_undefined_flag=$allow_undefined_flag 10149 allow_undefined_flag= 10150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10151 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10152 ac_status=$? 10153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10154 test $ac_status = 0; } 10155 then 10156 lt_cv_archive_cmds_need_lc=no 10157 else 10158 lt_cv_archive_cmds_need_lc=yes 10159 fi 10160 allow_undefined_flag=$lt_save_allow_undefined_flag 10161 else 10162 cat conftest.err 1>&5 10163 fi 10164 $RM conftest* 10165 10166fi 10167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10168$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10169 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10170 ;; 10171 esac 10172 fi 10173 ;; 10174esac 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10328$as_echo_n "checking dynamic linker characteristics... " >&6; } 10329 10330if test yes = "$GCC"; then 10331 case $host_os in 10332 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10333 *) lt_awk_arg='/^libraries:/' ;; 10334 esac 10335 case $host_os in 10336 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10337 *) lt_sed_strip_eq='s|=/|/|g' ;; 10338 esac 10339 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10340 case $lt_search_path_spec in 10341 *\;*) 10342 # if the path contains ";" then we assume it to be the separator 10343 # otherwise default to the standard path separator (i.e. ":") - it is 10344 # assumed that no part of a normal pathname contains ";" but that should 10345 # okay in the real world where ";" in dirpaths is itself problematic. 10346 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10347 ;; 10348 *) 10349 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10350 ;; 10351 esac 10352 # Ok, now we have the path, separated by spaces, we can step through it 10353 # and add multilib dir if necessary... 10354 lt_tmp_lt_search_path_spec= 10355 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10356 # ...but if some path component already ends with the multilib dir we assume 10357 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10358 case "$lt_multi_os_dir; $lt_search_path_spec " in 10359 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10360 lt_multi_os_dir= 10361 ;; 10362 esac 10363 for lt_sys_path in $lt_search_path_spec; do 10364 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10365 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10366 elif test -n "$lt_multi_os_dir"; then 10367 test -d "$lt_sys_path" && \ 10368 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10369 fi 10370 done 10371 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10372BEGIN {RS = " "; FS = "/|\n";} { 10373 lt_foo = ""; 10374 lt_count = 0; 10375 for (lt_i = NF; lt_i > 0; lt_i--) { 10376 if ($lt_i != "" && $lt_i != ".") { 10377 if ($lt_i == "..") { 10378 lt_count++; 10379 } else { 10380 if (lt_count == 0) { 10381 lt_foo = "/" $lt_i lt_foo; 10382 } else { 10383 lt_count--; 10384 } 10385 } 10386 } 10387 } 10388 if (lt_foo != "") { lt_freq[lt_foo]++; } 10389 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10390}'` 10391 # AWK program above erroneously prepends '/' to C:/dos/paths 10392 # for these hosts. 10393 case $host_os in 10394 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10395 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10396 esac 10397 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10398else 10399 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10400fi 10401library_names_spec= 10402libname_spec='lib$name' 10403soname_spec= 10404shrext_cmds=.so 10405postinstall_cmds= 10406postuninstall_cmds= 10407finish_cmds= 10408finish_eval= 10409shlibpath_var= 10410shlibpath_overrides_runpath=unknown 10411version_type=none 10412dynamic_linker="$host_os ld.so" 10413sys_lib_dlsearch_path_spec="/lib /usr/lib" 10414need_lib_prefix=unknown 10415hardcode_into_libs=no 10416 10417# when you set need_version to no, make sure it does not cause -set_version 10418# flags to be left without arguments 10419need_version=unknown 10420 10421 10422 10423case $host_os in 10424aix3*) 10425 version_type=linux # correct to gnu/linux during the next big refactor 10426 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10427 shlibpath_var=LIBPATH 10428 10429 # AIX 3 has no versioning support, so we append a major version to the name. 10430 soname_spec='$libname$release$shared_ext$major' 10431 ;; 10432 10433aix[4-9]*) 10434 version_type=linux # correct to gnu/linux during the next big refactor 10435 need_lib_prefix=no 10436 need_version=no 10437 hardcode_into_libs=yes 10438 if test ia64 = "$host_cpu"; then 10439 # AIX 5 supports IA64 10440 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10441 shlibpath_var=LD_LIBRARY_PATH 10442 else 10443 # With GCC up to 2.95.x, collect2 would create an import file 10444 # for dependence libraries. The import file would start with 10445 # the line '#! .'. This would cause the generated library to 10446 # depend on '.', always an invalid library. This was fixed in 10447 # development snapshots of GCC prior to 3.0. 10448 case $host_os in 10449 aix4 | aix4.[01] | aix4.[01].*) 10450 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10451 echo ' yes ' 10452 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10453 : 10454 else 10455 can_build_shared=no 10456 fi 10457 ;; 10458 esac 10459 # Using Import Files as archive members, it is possible to support 10460 # filename-based versioning of shared library archives on AIX. While 10461 # this would work for both with and without runtime linking, it will 10462 # prevent static linking of such archives. So we do filename-based 10463 # shared library versioning with .so extension only, which is used 10464 # when both runtime linking and shared linking is enabled. 10465 # Unfortunately, runtime linking may impact performance, so we do 10466 # not want this to be the default eventually. Also, we use the 10467 # versioned .so libs for executables only if there is the -brtl 10468 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10469 # To allow for filename-based versioning support, we need to create 10470 # libNAME.so.V as an archive file, containing: 10471 # *) an Import File, referring to the versioned filename of the 10472 # archive as well as the shared archive member, telling the 10473 # bitwidth (32 or 64) of that shared object, and providing the 10474 # list of exported symbols of that shared object, eventually 10475 # decorated with the 'weak' keyword 10476 # *) the shared object with the F_LOADONLY flag set, to really avoid 10477 # it being seen by the linker. 10478 # At run time we better use the real file rather than another symlink, 10479 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10480 10481 case $with_aix_soname,$aix_use_runtimelinking in 10482 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10483 # soname into executable. Probably we can add versioning support to 10484 # collect2, so additional links can be useful in future. 10485 aix,yes) # traditional libtool 10486 dynamic_linker='AIX unversionable lib.so' 10487 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10488 # instead of lib<name>.a to let people know that these are not 10489 # typical AIX shared libraries. 10490 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10491 ;; 10492 aix,no) # traditional AIX only 10493 dynamic_linker='AIX lib.a(lib.so.V)' 10494 # We preserve .a as extension for shared libraries through AIX4.2 10495 # and later when we are not doing run time linking. 10496 library_names_spec='$libname$release.a $libname.a' 10497 soname_spec='$libname$release$shared_ext$major' 10498 ;; 10499 svr4,*) # full svr4 only 10500 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10501 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10502 # We do not specify a path in Import Files, so LIBPATH fires. 10503 shlibpath_overrides_runpath=yes 10504 ;; 10505 *,yes) # both, prefer svr4 10506 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10507 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10508 # unpreferred sharedlib libNAME.a needs extra handling 10509 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 10510 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 10511 # We do not specify a path in Import Files, so LIBPATH fires. 10512 shlibpath_overrides_runpath=yes 10513 ;; 10514 *,no) # both, prefer aix 10515 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10516 library_names_spec='$libname$release.a $libname.a' 10517 soname_spec='$libname$release$shared_ext$major' 10518 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10519 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 10520 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 10521 ;; 10522 esac 10523 shlibpath_var=LIBPATH 10524 fi 10525 ;; 10526 10527amigaos*) 10528 case $host_cpu in 10529 powerpc) 10530 # Since July 2007 AmigaOS4 officially supports .so libraries. 10531 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10532 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10533 ;; 10534 m68k) 10535 library_names_spec='$libname.ixlibrary $libname.a' 10536 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10537 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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' 10538 ;; 10539 esac 10540 ;; 10541 10542beos*) 10543 library_names_spec='$libname$shared_ext' 10544 dynamic_linker="$host_os ld.so" 10545 shlibpath_var=LIBRARY_PATH 10546 ;; 10547 10548bsdi[45]*) 10549 version_type=linux # correct to gnu/linux during the next big refactor 10550 need_version=no 10551 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10552 soname_spec='$libname$release$shared_ext$major' 10553 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10554 shlibpath_var=LD_LIBRARY_PATH 10555 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10556 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10557 # the default ld.so.conf also contains /usr/contrib/lib and 10558 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10559 # libtool to hard-code these into programs 10560 ;; 10561 10562cygwin* | mingw* | pw32* | cegcc*) 10563 version_type=windows 10564 shrext_cmds=.dll 10565 need_version=no 10566 need_lib_prefix=no 10567 10568 case $GCC,$cc_basename in 10569 yes,*) 10570 # gcc 10571 library_names_spec='$libname.dll.a' 10572 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10573 postinstall_cmds='base_file=`basename \$file`~ 10574 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10575 dldir=$destdir/`dirname \$dlpath`~ 10576 test -d \$dldir || mkdir -p \$dldir~ 10577 $install_prog $dir/$dlname \$dldir/$dlname~ 10578 chmod a+x \$dldir/$dlname~ 10579 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10580 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10581 fi' 10582 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10583 dlpath=$dir/\$dldll~ 10584 $RM \$dlpath' 10585 shlibpath_overrides_runpath=yes 10586 10587 case $host_os in 10588 cygwin*) 10589 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10590 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10591 10592 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10593 ;; 10594 mingw* | cegcc*) 10595 # MinGW DLLs use traditional 'lib' prefix 10596 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10597 ;; 10598 pw32*) 10599 # pw32 DLLs use 'pw' prefix rather than 'lib' 10600 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10601 ;; 10602 esac 10603 dynamic_linker='Win32 ld.exe' 10604 ;; 10605 10606 *,cl*) 10607 # Native MSVC 10608 libname_spec='$name' 10609 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10610 library_names_spec='$libname.dll.lib' 10611 10612 case $build_os in 10613 mingw*) 10614 sys_lib_search_path_spec= 10615 lt_save_ifs=$IFS 10616 IFS=';' 10617 for lt_path in $LIB 10618 do 10619 IFS=$lt_save_ifs 10620 # Let DOS variable expansion print the short 8.3 style file name. 10621 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10622 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10623 done 10624 IFS=$lt_save_ifs 10625 # Convert to MSYS style. 10626 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10627 ;; 10628 cygwin*) 10629 # Convert to unix form, then to dos form, then back to unix form 10630 # but this time dos style (no spaces!) so that the unix form looks 10631 # like /cygdrive/c/PROGRA~1:/cygdr... 10632 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10633 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10634 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10635 ;; 10636 *) 10637 sys_lib_search_path_spec=$LIB 10638 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10639 # It is most probably a Windows format PATH. 10640 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10641 else 10642 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10643 fi 10644 # FIXME: find the short name or the path components, as spaces are 10645 # common. (e.g. "Program Files" -> "PROGRA~1") 10646 ;; 10647 esac 10648 10649 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10650 postinstall_cmds='base_file=`basename \$file`~ 10651 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10652 dldir=$destdir/`dirname \$dlpath`~ 10653 test -d \$dldir || mkdir -p \$dldir~ 10654 $install_prog $dir/$dlname \$dldir/$dlname' 10655 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10656 dlpath=$dir/\$dldll~ 10657 $RM \$dlpath' 10658 shlibpath_overrides_runpath=yes 10659 dynamic_linker='Win32 link.exe' 10660 ;; 10661 10662 *) 10663 # Assume MSVC wrapper 10664 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10665 dynamic_linker='Win32 ld.exe' 10666 ;; 10667 esac 10668 # FIXME: first we should search . and the directory the executable is in 10669 shlibpath_var=PATH 10670 ;; 10671 10672darwin* | rhapsody*) 10673 dynamic_linker="$host_os dyld" 10674 version_type=darwin 10675 need_lib_prefix=no 10676 need_version=no 10677 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 10678 soname_spec='$libname$release$major$shared_ext' 10679 shlibpath_overrides_runpath=yes 10680 shlibpath_var=DYLD_LIBRARY_PATH 10681 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10682 10683 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10684 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10685 ;; 10686 10687dgux*) 10688 version_type=linux # correct to gnu/linux during the next big refactor 10689 need_lib_prefix=no 10690 need_version=no 10691 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10692 soname_spec='$libname$release$shared_ext$major' 10693 shlibpath_var=LD_LIBRARY_PATH 10694 ;; 10695 10696freebsd* | dragonfly*) 10697 # DragonFly does not have aout. When/if they implement a new 10698 # versioning mechanism, adjust this. 10699 if test -x /usr/bin/objformat; then 10700 objformat=`/usr/bin/objformat` 10701 else 10702 case $host_os in 10703 freebsd[23].*) objformat=aout ;; 10704 *) objformat=elf ;; 10705 esac 10706 fi 10707 version_type=freebsd-$objformat 10708 case $version_type in 10709 freebsd-elf*) 10710 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10711 soname_spec='$libname$release$shared_ext$major' 10712 need_version=no 10713 need_lib_prefix=no 10714 ;; 10715 freebsd-*) 10716 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10717 need_version=yes 10718 ;; 10719 esac 10720 shlibpath_var=LD_LIBRARY_PATH 10721 case $host_os in 10722 freebsd2.*) 10723 shlibpath_overrides_runpath=yes 10724 ;; 10725 freebsd3.[01]* | freebsdelf3.[01]*) 10726 shlibpath_overrides_runpath=yes 10727 hardcode_into_libs=yes 10728 ;; 10729 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10730 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10731 shlibpath_overrides_runpath=no 10732 hardcode_into_libs=yes 10733 ;; 10734 *) # from 4.6 on, and DragonFly 10735 shlibpath_overrides_runpath=yes 10736 hardcode_into_libs=yes 10737 ;; 10738 esac 10739 ;; 10740 10741haiku*) 10742 version_type=linux # correct to gnu/linux during the next big refactor 10743 need_lib_prefix=no 10744 need_version=no 10745 dynamic_linker="$host_os runtime_loader" 10746 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10747 soname_spec='$libname$release$shared_ext$major' 10748 shlibpath_var=LIBRARY_PATH 10749 shlibpath_overrides_runpath=no 10750 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10751 hardcode_into_libs=yes 10752 ;; 10753 10754hpux9* | hpux10* | hpux11*) 10755 # Give a soname corresponding to the major version so that dld.sl refuses to 10756 # link against other versions. 10757 version_type=sunos 10758 need_lib_prefix=no 10759 need_version=no 10760 case $host_cpu in 10761 ia64*) 10762 shrext_cmds='.so' 10763 hardcode_into_libs=yes 10764 dynamic_linker="$host_os dld.so" 10765 shlibpath_var=LD_LIBRARY_PATH 10766 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10767 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10768 soname_spec='$libname$release$shared_ext$major' 10769 if test 32 = "$HPUX_IA64_MODE"; then 10770 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10771 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 10772 else 10773 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10774 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 10775 fi 10776 ;; 10777 hppa*64*) 10778 shrext_cmds='.sl' 10779 hardcode_into_libs=yes 10780 dynamic_linker="$host_os dld.sl" 10781 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10782 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10783 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10784 soname_spec='$libname$release$shared_ext$major' 10785 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10786 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10787 ;; 10788 *) 10789 shrext_cmds='.sl' 10790 dynamic_linker="$host_os dld.sl" 10791 shlibpath_var=SHLIB_PATH 10792 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10793 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10794 soname_spec='$libname$release$shared_ext$major' 10795 ;; 10796 esac 10797 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10798 postinstall_cmds='chmod 555 $lib' 10799 # or fails outright, so override atomically: 10800 install_override_mode=555 10801 ;; 10802 10803interix[3-9]*) 10804 version_type=linux # correct to gnu/linux during the next big refactor 10805 need_lib_prefix=no 10806 need_version=no 10807 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10808 soname_spec='$libname$release$shared_ext$major' 10809 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10810 shlibpath_var=LD_LIBRARY_PATH 10811 shlibpath_overrides_runpath=no 10812 hardcode_into_libs=yes 10813 ;; 10814 10815irix5* | irix6* | nonstopux*) 10816 case $host_os in 10817 nonstopux*) version_type=nonstopux ;; 10818 *) 10819 if test yes = "$lt_cv_prog_gnu_ld"; then 10820 version_type=linux # correct to gnu/linux during the next big refactor 10821 else 10822 version_type=irix 10823 fi ;; 10824 esac 10825 need_lib_prefix=no 10826 need_version=no 10827 soname_spec='$libname$release$shared_ext$major' 10828 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 10829 case $host_os in 10830 irix5* | nonstopux*) 10831 libsuff= shlibsuff= 10832 ;; 10833 *) 10834 case $LD in # libtool.m4 will add one of these switches to LD 10835 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10836 libsuff= shlibsuff= libmagic=32-bit;; 10837 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10838 libsuff=32 shlibsuff=N32 libmagic=N32;; 10839 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10840 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10841 *) libsuff= shlibsuff= libmagic=never-match;; 10842 esac 10843 ;; 10844 esac 10845 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10846 shlibpath_overrides_runpath=no 10847 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 10848 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 10849 hardcode_into_libs=yes 10850 ;; 10851 10852# No shared lib support for Linux oldld, aout, or coff. 10853linux*oldld* | linux*aout* | linux*coff*) 10854 dynamic_linker=no 10855 ;; 10856 10857linux*android*) 10858 version_type=none # Android doesn't support versioned libraries. 10859 need_lib_prefix=no 10860 need_version=no 10861 library_names_spec='$libname$release$shared_ext' 10862 soname_spec='$libname$release$shared_ext' 10863 finish_cmds= 10864 shlibpath_var=LD_LIBRARY_PATH 10865 shlibpath_overrides_runpath=yes 10866 10867 # This implies no fast_install, which is unacceptable. 10868 # Some rework will be needed to allow for fast_install 10869 # before this can be enabled. 10870 hardcode_into_libs=yes 10871 10872 dynamic_linker='Android linker' 10873 # Don't embed -rpath directories since the linker doesn't support them. 10874 hardcode_libdir_flag_spec='-L$libdir' 10875 ;; 10876 10877# This must be glibc/ELF. 10878linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10879 version_type=linux # correct to gnu/linux during the next big refactor 10880 need_lib_prefix=no 10881 need_version=no 10882 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10883 soname_spec='$libname$release$shared_ext$major' 10884 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10885 shlibpath_var=LD_LIBRARY_PATH 10886 shlibpath_overrides_runpath=no 10887 10888 # Some binutils ld are patched to set DT_RUNPATH 10889 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10890 $as_echo_n "(cached) " >&6 10891else 10892 lt_cv_shlibpath_overrides_runpath=no 10893 save_LDFLAGS=$LDFLAGS 10894 save_libdir=$libdir 10895 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10896 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10898/* end confdefs.h. */ 10899 10900int 10901main () 10902{ 10903 10904 ; 10905 return 0; 10906} 10907_ACEOF 10908if ac_fn_c_try_link "$LINENO"; then : 10909 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10910 lt_cv_shlibpath_overrides_runpath=yes 10911fi 10912fi 10913rm -f core conftest.err conftest.$ac_objext \ 10914 conftest$ac_exeext conftest.$ac_ext 10915 LDFLAGS=$save_LDFLAGS 10916 libdir=$save_libdir 10917 10918fi 10919 10920 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10921 10922 # This implies no fast_install, which is unacceptable. 10923 # Some rework will be needed to allow for fast_install 10924 # before this can be enabled. 10925 hardcode_into_libs=yes 10926 10927 # Add ABI-specific directories to the system library path. 10928 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 10929 10930 # Ideally, we could use ldconfig to report *all* directores which are 10931 # searched for libraries, however this is still not possible. Aside from not 10932 # being certain /sbin/ldconfig is available, command 10933 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 10934 # even though it is searched at run-time. Try to do the best guess by 10935 # appending ld.so.conf contents (and includes) to the search path. 10936 if test -f /etc/ld.so.conf; then 10937 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' ' '` 10938 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 10939 fi 10940 10941 # We used to test for /lib/ld.so.1 and disable shared libraries on 10942 # powerpc, because MkLinux only supported shared libraries with the 10943 # GNU dynamic linker. Since this was broken with cross compilers, 10944 # most powerpc-linux boxes support dynamic linking these days and 10945 # people can always --disable-shared, the test was removed, and we 10946 # assume the GNU/Linux dynamic linker is in use. 10947 dynamic_linker='GNU/Linux ld.so' 10948 ;; 10949 10950netbsd*) 10951 version_type=sunos 10952 need_lib_prefix=no 10953 need_version=no 10954 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10955 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10956 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10957 dynamic_linker='NetBSD (a.out) ld.so' 10958 else 10959 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10960 soname_spec='$libname$release$shared_ext$major' 10961 dynamic_linker='NetBSD ld.elf_so' 10962 fi 10963 shlibpath_var=LD_LIBRARY_PATH 10964 shlibpath_overrides_runpath=yes 10965 hardcode_into_libs=yes 10966 ;; 10967 10968newsos6) 10969 version_type=linux # correct to gnu/linux during the next big refactor 10970 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10971 shlibpath_var=LD_LIBRARY_PATH 10972 shlibpath_overrides_runpath=yes 10973 ;; 10974 10975*nto* | *qnx*) 10976 version_type=qnx 10977 need_lib_prefix=no 10978 need_version=no 10979 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10980 soname_spec='$libname$release$shared_ext$major' 10981 shlibpath_var=LD_LIBRARY_PATH 10982 shlibpath_overrides_runpath=no 10983 hardcode_into_libs=yes 10984 dynamic_linker='ldqnx.so' 10985 ;; 10986 10987openbsd* | bitrig*) 10988 version_type=sunos 10989 sys_lib_dlsearch_path_spec=/usr/lib 10990 need_lib_prefix=no 10991 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10992 need_version=no 10993 else 10994 need_version=yes 10995 fi 10996 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10997 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10998 shlibpath_var=LD_LIBRARY_PATH 10999 shlibpath_overrides_runpath=yes 11000 ;; 11001 11002os2*) 11003 libname_spec='$name' 11004 version_type=windows 11005 shrext_cmds=.dll 11006 need_version=no 11007 need_lib_prefix=no 11008 # OS/2 can only load a DLL with a base name of 8 characters or less. 11009 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11010 v=$($ECHO $release$versuffix | tr -d .-); 11011 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11012 $ECHO $n$v`$shared_ext' 11013 library_names_spec='${libname}_dll.$libext' 11014 dynamic_linker='OS/2 ld.exe' 11015 shlibpath_var=BEGINLIBPATH 11016 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11017 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11018 postinstall_cmds='base_file=`basename \$file`~ 11019 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11020 dldir=$destdir/`dirname \$dlpath`~ 11021 test -d \$dldir || mkdir -p \$dldir~ 11022 $install_prog $dir/$dlname \$dldir/$dlname~ 11023 chmod a+x \$dldir/$dlname~ 11024 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11025 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11026 fi' 11027 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11028 dlpath=$dir/\$dldll~ 11029 $RM \$dlpath' 11030 ;; 11031 11032osf3* | osf4* | osf5*) 11033 version_type=osf 11034 need_lib_prefix=no 11035 need_version=no 11036 soname_spec='$libname$release$shared_ext$major' 11037 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11038 shlibpath_var=LD_LIBRARY_PATH 11039 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11040 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11041 ;; 11042 11043rdos*) 11044 dynamic_linker=no 11045 ;; 11046 11047solaris*) 11048 version_type=linux # correct to gnu/linux during the next big refactor 11049 need_lib_prefix=no 11050 need_version=no 11051 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11052 soname_spec='$libname$release$shared_ext$major' 11053 shlibpath_var=LD_LIBRARY_PATH 11054 shlibpath_overrides_runpath=yes 11055 hardcode_into_libs=yes 11056 # ldd complains unless libraries are executable 11057 postinstall_cmds='chmod +x $lib' 11058 ;; 11059 11060sunos4*) 11061 version_type=sunos 11062 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11063 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11064 shlibpath_var=LD_LIBRARY_PATH 11065 shlibpath_overrides_runpath=yes 11066 if test yes = "$with_gnu_ld"; then 11067 need_lib_prefix=no 11068 fi 11069 need_version=yes 11070 ;; 11071 11072sysv4 | sysv4.3*) 11073 version_type=linux # correct to gnu/linux during the next big refactor 11074 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11075 soname_spec='$libname$release$shared_ext$major' 11076 shlibpath_var=LD_LIBRARY_PATH 11077 case $host_vendor in 11078 sni) 11079 shlibpath_overrides_runpath=no 11080 need_lib_prefix=no 11081 runpath_var=LD_RUN_PATH 11082 ;; 11083 siemens) 11084 need_lib_prefix=no 11085 ;; 11086 motorola) 11087 need_lib_prefix=no 11088 need_version=no 11089 shlibpath_overrides_runpath=no 11090 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11091 ;; 11092 esac 11093 ;; 11094 11095sysv4*MP*) 11096 if test -d /usr/nec; then 11097 version_type=linux # correct to gnu/linux during the next big refactor 11098 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11099 soname_spec='$libname$shared_ext.$major' 11100 shlibpath_var=LD_LIBRARY_PATH 11101 fi 11102 ;; 11103 11104sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11105 version_type=sco 11106 need_lib_prefix=no 11107 need_version=no 11108 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11109 soname_spec='$libname$release$shared_ext$major' 11110 shlibpath_var=LD_LIBRARY_PATH 11111 shlibpath_overrides_runpath=yes 11112 hardcode_into_libs=yes 11113 if test yes = "$with_gnu_ld"; then 11114 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11115 else 11116 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11117 case $host_os in 11118 sco3.2v5*) 11119 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11120 ;; 11121 esac 11122 fi 11123 sys_lib_dlsearch_path_spec='/usr/lib' 11124 ;; 11125 11126tpf*) 11127 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11128 version_type=linux # correct to gnu/linux during the next big refactor 11129 need_lib_prefix=no 11130 need_version=no 11131 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11132 shlibpath_var=LD_LIBRARY_PATH 11133 shlibpath_overrides_runpath=no 11134 hardcode_into_libs=yes 11135 ;; 11136 11137uts4*) 11138 version_type=linux # correct to gnu/linux during the next big refactor 11139 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11140 soname_spec='$libname$release$shared_ext$major' 11141 shlibpath_var=LD_LIBRARY_PATH 11142 ;; 11143 11144*) 11145 dynamic_linker=no 11146 ;; 11147esac 11148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11149$as_echo "$dynamic_linker" >&6; } 11150test no = "$dynamic_linker" && can_build_shared=no 11151 11152variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11153if test yes = "$GCC"; then 11154 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11155fi 11156 11157if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11158 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11159fi 11160 11161if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11162 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11163fi 11164 11165# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11166configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11167 11168# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11169func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11170 11171# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11172configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11271$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11272hardcode_action= 11273if test -n "$hardcode_libdir_flag_spec" || 11274 test -n "$runpath_var" || 11275 test yes = "$hardcode_automatic"; then 11276 11277 # We can hardcode non-existent directories. 11278 if test no != "$hardcode_direct" && 11279 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11280 # have to relink, otherwise we might link with an installed library 11281 # when we should be linking with a yet-to-be-installed one 11282 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11283 test no != "$hardcode_minus_L"; then 11284 # Linking always hardcodes the temporary library directory. 11285 hardcode_action=relink 11286 else 11287 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11288 hardcode_action=immediate 11289 fi 11290else 11291 # We cannot hardcode anything, or else we can only hardcode existing 11292 # directories. 11293 hardcode_action=unsupported 11294fi 11295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11296$as_echo "$hardcode_action" >&6; } 11297 11298if test relink = "$hardcode_action" || 11299 test yes = "$inherit_rpath"; then 11300 # Fast installation is not supported 11301 enable_fast_install=no 11302elif test yes = "$shlibpath_overrides_runpath" || 11303 test no = "$enable_shared"; then 11304 # Fast installation is not necessary 11305 enable_fast_install=needless 11306fi 11307 11308 11309 11310 11311 11312 11313 if test yes != "$enable_dlopen"; then 11314 enable_dlopen=unknown 11315 enable_dlopen_self=unknown 11316 enable_dlopen_self_static=unknown 11317else 11318 lt_cv_dlopen=no 11319 lt_cv_dlopen_libs= 11320 11321 case $host_os in 11322 beos*) 11323 lt_cv_dlopen=load_add_on 11324 lt_cv_dlopen_libs= 11325 lt_cv_dlopen_self=yes 11326 ;; 11327 11328 mingw* | pw32* | cegcc*) 11329 lt_cv_dlopen=LoadLibrary 11330 lt_cv_dlopen_libs= 11331 ;; 11332 11333 cygwin*) 11334 lt_cv_dlopen=dlopen 11335 lt_cv_dlopen_libs= 11336 ;; 11337 11338 darwin*) 11339 # if libdl is installed we need to link against it 11340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11341$as_echo_n "checking for dlopen in -ldl... " >&6; } 11342if ${ac_cv_lib_dl_dlopen+:} false; then : 11343 $as_echo_n "(cached) " >&6 11344else 11345 ac_check_lib_save_LIBS=$LIBS 11346LIBS="-ldl $LIBS" 11347cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11348/* end confdefs.h. */ 11349 11350/* Override any GCC internal prototype to avoid an error. 11351 Use char because int might match the return type of a GCC 11352 builtin and then its argument prototype would still apply. */ 11353#ifdef __cplusplus 11354extern "C" 11355#endif 11356char dlopen (); 11357int 11358main () 11359{ 11360return dlopen (); 11361 ; 11362 return 0; 11363} 11364_ACEOF 11365if ac_fn_c_try_link "$LINENO"; then : 11366 ac_cv_lib_dl_dlopen=yes 11367else 11368 ac_cv_lib_dl_dlopen=no 11369fi 11370rm -f core conftest.err conftest.$ac_objext \ 11371 conftest$ac_exeext conftest.$ac_ext 11372LIBS=$ac_check_lib_save_LIBS 11373fi 11374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11375$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11376if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11377 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11378else 11379 11380 lt_cv_dlopen=dyld 11381 lt_cv_dlopen_libs= 11382 lt_cv_dlopen_self=yes 11383 11384fi 11385 11386 ;; 11387 11388 tpf*) 11389 # Don't try to run any link tests for TPF. We know it's impossible 11390 # because TPF is a cross-compiler, and we know how we open DSOs. 11391 lt_cv_dlopen=dlopen 11392 lt_cv_dlopen_libs= 11393 lt_cv_dlopen_self=no 11394 ;; 11395 11396 *) 11397 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11398if test "x$ac_cv_func_shl_load" = xyes; then : 11399 lt_cv_dlopen=shl_load 11400else 11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11402$as_echo_n "checking for shl_load in -ldld... " >&6; } 11403if ${ac_cv_lib_dld_shl_load+:} false; then : 11404 $as_echo_n "(cached) " >&6 11405else 11406 ac_check_lib_save_LIBS=$LIBS 11407LIBS="-ldld $LIBS" 11408cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11409/* end confdefs.h. */ 11410 11411/* Override any GCC internal prototype to avoid an error. 11412 Use char because int might match the return type of a GCC 11413 builtin and then its argument prototype would still apply. */ 11414#ifdef __cplusplus 11415extern "C" 11416#endif 11417char shl_load (); 11418int 11419main () 11420{ 11421return shl_load (); 11422 ; 11423 return 0; 11424} 11425_ACEOF 11426if ac_fn_c_try_link "$LINENO"; then : 11427 ac_cv_lib_dld_shl_load=yes 11428else 11429 ac_cv_lib_dld_shl_load=no 11430fi 11431rm -f core conftest.err conftest.$ac_objext \ 11432 conftest$ac_exeext conftest.$ac_ext 11433LIBS=$ac_check_lib_save_LIBS 11434fi 11435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11436$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11437if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11438 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11439else 11440 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11441if test "x$ac_cv_func_dlopen" = xyes; then : 11442 lt_cv_dlopen=dlopen 11443else 11444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11445$as_echo_n "checking for dlopen in -ldl... " >&6; } 11446if ${ac_cv_lib_dl_dlopen+:} false; then : 11447 $as_echo_n "(cached) " >&6 11448else 11449 ac_check_lib_save_LIBS=$LIBS 11450LIBS="-ldl $LIBS" 11451cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11452/* end confdefs.h. */ 11453 11454/* Override any GCC internal prototype to avoid an error. 11455 Use char because int might match the return type of a GCC 11456 builtin and then its argument prototype would still apply. */ 11457#ifdef __cplusplus 11458extern "C" 11459#endif 11460char dlopen (); 11461int 11462main () 11463{ 11464return dlopen (); 11465 ; 11466 return 0; 11467} 11468_ACEOF 11469if ac_fn_c_try_link "$LINENO"; then : 11470 ac_cv_lib_dl_dlopen=yes 11471else 11472 ac_cv_lib_dl_dlopen=no 11473fi 11474rm -f core conftest.err conftest.$ac_objext \ 11475 conftest$ac_exeext conftest.$ac_ext 11476LIBS=$ac_check_lib_save_LIBS 11477fi 11478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11479$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11480if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11481 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11482else 11483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11484$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11485if ${ac_cv_lib_svld_dlopen+:} false; then : 11486 $as_echo_n "(cached) " >&6 11487else 11488 ac_check_lib_save_LIBS=$LIBS 11489LIBS="-lsvld $LIBS" 11490cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11491/* end confdefs.h. */ 11492 11493/* Override any GCC internal prototype to avoid an error. 11494 Use char because int might match the return type of a GCC 11495 builtin and then its argument prototype would still apply. */ 11496#ifdef __cplusplus 11497extern "C" 11498#endif 11499char dlopen (); 11500int 11501main () 11502{ 11503return dlopen (); 11504 ; 11505 return 0; 11506} 11507_ACEOF 11508if ac_fn_c_try_link "$LINENO"; then : 11509 ac_cv_lib_svld_dlopen=yes 11510else 11511 ac_cv_lib_svld_dlopen=no 11512fi 11513rm -f core conftest.err conftest.$ac_objext \ 11514 conftest$ac_exeext conftest.$ac_ext 11515LIBS=$ac_check_lib_save_LIBS 11516fi 11517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11518$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11519if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11520 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11521else 11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11523$as_echo_n "checking for dld_link in -ldld... " >&6; } 11524if ${ac_cv_lib_dld_dld_link+:} false; then : 11525 $as_echo_n "(cached) " >&6 11526else 11527 ac_check_lib_save_LIBS=$LIBS 11528LIBS="-ldld $LIBS" 11529cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11530/* end confdefs.h. */ 11531 11532/* Override any GCC internal prototype to avoid an error. 11533 Use char because int might match the return type of a GCC 11534 builtin and then its argument prototype would still apply. */ 11535#ifdef __cplusplus 11536extern "C" 11537#endif 11538char dld_link (); 11539int 11540main () 11541{ 11542return dld_link (); 11543 ; 11544 return 0; 11545} 11546_ACEOF 11547if ac_fn_c_try_link "$LINENO"; then : 11548 ac_cv_lib_dld_dld_link=yes 11549else 11550 ac_cv_lib_dld_dld_link=no 11551fi 11552rm -f core conftest.err conftest.$ac_objext \ 11553 conftest$ac_exeext conftest.$ac_ext 11554LIBS=$ac_check_lib_save_LIBS 11555fi 11556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11557$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11558if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11559 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11560fi 11561 11562 11563fi 11564 11565 11566fi 11567 11568 11569fi 11570 11571 11572fi 11573 11574 11575fi 11576 11577 ;; 11578 esac 11579 11580 if test no = "$lt_cv_dlopen"; then 11581 enable_dlopen=no 11582 else 11583 enable_dlopen=yes 11584 fi 11585 11586 case $lt_cv_dlopen in 11587 dlopen) 11588 save_CPPFLAGS=$CPPFLAGS 11589 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11590 11591 save_LDFLAGS=$LDFLAGS 11592 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11593 11594 save_LIBS=$LIBS 11595 LIBS="$lt_cv_dlopen_libs $LIBS" 11596 11597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11598$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11599if ${lt_cv_dlopen_self+:} false; then : 11600 $as_echo_n "(cached) " >&6 11601else 11602 if test yes = "$cross_compiling"; then : 11603 lt_cv_dlopen_self=cross 11604else 11605 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11606 lt_status=$lt_dlunknown 11607 cat > conftest.$ac_ext <<_LT_EOF 11608#line $LINENO "configure" 11609#include "confdefs.h" 11610 11611#if HAVE_DLFCN_H 11612#include <dlfcn.h> 11613#endif 11614 11615#include <stdio.h> 11616 11617#ifdef RTLD_GLOBAL 11618# define LT_DLGLOBAL RTLD_GLOBAL 11619#else 11620# ifdef DL_GLOBAL 11621# define LT_DLGLOBAL DL_GLOBAL 11622# else 11623# define LT_DLGLOBAL 0 11624# endif 11625#endif 11626 11627/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11628 find out it does not work in some platform. */ 11629#ifndef LT_DLLAZY_OR_NOW 11630# ifdef RTLD_LAZY 11631# define LT_DLLAZY_OR_NOW RTLD_LAZY 11632# else 11633# ifdef DL_LAZY 11634# define LT_DLLAZY_OR_NOW DL_LAZY 11635# else 11636# ifdef RTLD_NOW 11637# define LT_DLLAZY_OR_NOW RTLD_NOW 11638# else 11639# ifdef DL_NOW 11640# define LT_DLLAZY_OR_NOW DL_NOW 11641# else 11642# define LT_DLLAZY_OR_NOW 0 11643# endif 11644# endif 11645# endif 11646# endif 11647#endif 11648 11649/* When -fvisibility=hidden is used, assume the code has been annotated 11650 correspondingly for the symbols needed. */ 11651#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11652int fnord () __attribute__((visibility("default"))); 11653#endif 11654 11655int fnord () { return 42; } 11656int main () 11657{ 11658 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11659 int status = $lt_dlunknown; 11660 11661 if (self) 11662 { 11663 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11664 else 11665 { 11666 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11667 else puts (dlerror ()); 11668 } 11669 /* dlclose (self); */ 11670 } 11671 else 11672 puts (dlerror ()); 11673 11674 return status; 11675} 11676_LT_EOF 11677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11678 (eval $ac_link) 2>&5 11679 ac_status=$? 11680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11681 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11682 (./conftest; exit; ) >&5 2>/dev/null 11683 lt_status=$? 11684 case x$lt_status in 11685 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11686 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11687 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11688 esac 11689 else : 11690 # compilation failed 11691 lt_cv_dlopen_self=no 11692 fi 11693fi 11694rm -fr conftest* 11695 11696 11697fi 11698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11699$as_echo "$lt_cv_dlopen_self" >&6; } 11700 11701 if test yes = "$lt_cv_dlopen_self"; then 11702 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11704$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11705if ${lt_cv_dlopen_self_static+:} false; then : 11706 $as_echo_n "(cached) " >&6 11707else 11708 if test yes = "$cross_compiling"; then : 11709 lt_cv_dlopen_self_static=cross 11710else 11711 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11712 lt_status=$lt_dlunknown 11713 cat > conftest.$ac_ext <<_LT_EOF 11714#line $LINENO "configure" 11715#include "confdefs.h" 11716 11717#if HAVE_DLFCN_H 11718#include <dlfcn.h> 11719#endif 11720 11721#include <stdio.h> 11722 11723#ifdef RTLD_GLOBAL 11724# define LT_DLGLOBAL RTLD_GLOBAL 11725#else 11726# ifdef DL_GLOBAL 11727# define LT_DLGLOBAL DL_GLOBAL 11728# else 11729# define LT_DLGLOBAL 0 11730# endif 11731#endif 11732 11733/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11734 find out it does not work in some platform. */ 11735#ifndef LT_DLLAZY_OR_NOW 11736# ifdef RTLD_LAZY 11737# define LT_DLLAZY_OR_NOW RTLD_LAZY 11738# else 11739# ifdef DL_LAZY 11740# define LT_DLLAZY_OR_NOW DL_LAZY 11741# else 11742# ifdef RTLD_NOW 11743# define LT_DLLAZY_OR_NOW RTLD_NOW 11744# else 11745# ifdef DL_NOW 11746# define LT_DLLAZY_OR_NOW DL_NOW 11747# else 11748# define LT_DLLAZY_OR_NOW 0 11749# endif 11750# endif 11751# endif 11752# endif 11753#endif 11754 11755/* When -fvisibility=hidden is used, assume the code has been annotated 11756 correspondingly for the symbols needed. */ 11757#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11758int fnord () __attribute__((visibility("default"))); 11759#endif 11760 11761int fnord () { return 42; } 11762int main () 11763{ 11764 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11765 int status = $lt_dlunknown; 11766 11767 if (self) 11768 { 11769 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11770 else 11771 { 11772 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11773 else puts (dlerror ()); 11774 } 11775 /* dlclose (self); */ 11776 } 11777 else 11778 puts (dlerror ()); 11779 11780 return status; 11781} 11782_LT_EOF 11783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11784 (eval $ac_link) 2>&5 11785 ac_status=$? 11786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11787 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11788 (./conftest; exit; ) >&5 2>/dev/null 11789 lt_status=$? 11790 case x$lt_status in 11791 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11792 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11793 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11794 esac 11795 else : 11796 # compilation failed 11797 lt_cv_dlopen_self_static=no 11798 fi 11799fi 11800rm -fr conftest* 11801 11802 11803fi 11804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11805$as_echo "$lt_cv_dlopen_self_static" >&6; } 11806 fi 11807 11808 CPPFLAGS=$save_CPPFLAGS 11809 LDFLAGS=$save_LDFLAGS 11810 LIBS=$save_LIBS 11811 ;; 11812 esac 11813 11814 case $lt_cv_dlopen_self in 11815 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11816 *) enable_dlopen_self=unknown ;; 11817 esac 11818 11819 case $lt_cv_dlopen_self_static in 11820 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11821 *) enable_dlopen_self_static=unknown ;; 11822 esac 11823fi 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841striplib= 11842old_striplib= 11843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11844$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11845if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11846 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11847 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11849$as_echo "yes" >&6; } 11850else 11851# FIXME - insert some real tests, host_os isn't really good enough 11852 case $host_os in 11853 darwin*) 11854 if test -n "$STRIP"; then 11855 striplib="$STRIP -x" 11856 old_striplib="$STRIP -S" 11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11858$as_echo "yes" >&6; } 11859 else 11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11861$as_echo "no" >&6; } 11862 fi 11863 ;; 11864 *) 11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11866$as_echo "no" >&6; } 11867 ;; 11868 esac 11869fi 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 # Report what library types will actually be built 11883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11884$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11886$as_echo "$can_build_shared" >&6; } 11887 11888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11889$as_echo_n "checking whether to build shared libraries... " >&6; } 11890 test no = "$can_build_shared" && enable_shared=no 11891 11892 # On AIX, shared libraries and static libraries use the same namespace, and 11893 # are all built from PIC. 11894 case $host_os in 11895 aix3*) 11896 test yes = "$enable_shared" && enable_static=no 11897 if test -n "$RANLIB"; then 11898 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11899 postinstall_cmds='$RANLIB $lib' 11900 fi 11901 ;; 11902 11903 aix[4-9]*) 11904 if test ia64 != "$host_cpu"; then 11905 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 11906 yes,aix,yes) ;; # shared object as lib.so file only 11907 yes,svr4,*) ;; # shared object as lib.so archive member only 11908 yes,*) enable_static=no ;; # shared object in lib.a archive as well 11909 esac 11910 fi 11911 ;; 11912 esac 11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11914$as_echo "$enable_shared" >&6; } 11915 11916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11917$as_echo_n "checking whether to build static libraries... " >&6; } 11918 # Make sure either enable_shared or enable_static is yes. 11919 test yes = "$enable_shared" || enable_static=yes 11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11921$as_echo "$enable_static" >&6; } 11922 11923 11924 11925 11926fi 11927ac_ext=c 11928ac_cpp='$CPP $CPPFLAGS' 11929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11931ac_compiler_gnu=$ac_cv_c_compiler_gnu 11932 11933CC=$lt_save_CC 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 ac_config_commands="$ac_config_commands libtool" 11950 11951 11952 11953 11954# Only expand once: 11955 11956 11957 11958# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11971$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11972if ${ac_cv_prog_cc_c99+:} false; then : 11973 $as_echo_n "(cached) " >&6 11974else 11975 ac_cv_prog_cc_c99=no 11976ac_save_CC=$CC 11977cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11978/* end confdefs.h. */ 11979#include <stdarg.h> 11980#include <stdbool.h> 11981#include <stdlib.h> 11982#include <wchar.h> 11983#include <stdio.h> 11984 11985// Check varargs macros. These examples are taken from C99 6.10.3.5. 11986#define debug(...) fprintf (stderr, __VA_ARGS__) 11987#define showlist(...) puts (#__VA_ARGS__) 11988#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11989static void 11990test_varargs_macros (void) 11991{ 11992 int x = 1234; 11993 int y = 5678; 11994 debug ("Flag"); 11995 debug ("X = %d\n", x); 11996 showlist (The first, second, and third items.); 11997 report (x>y, "x is %d but y is %d", x, y); 11998} 11999 12000// Check long long types. 12001#define BIG64 18446744073709551615ull 12002#define BIG32 4294967295ul 12003#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 12004#if !BIG_OK 12005 your preprocessor is broken; 12006#endif 12007#if BIG_OK 12008#else 12009 your preprocessor is broken; 12010#endif 12011static long long int bignum = -9223372036854775807LL; 12012static unsigned long long int ubignum = BIG64; 12013 12014struct incomplete_array 12015{ 12016 int datasize; 12017 double data[]; 12018}; 12019 12020struct named_init { 12021 int number; 12022 const wchar_t *name; 12023 double average; 12024}; 12025 12026typedef const char *ccp; 12027 12028static inline int 12029test_restrict (ccp restrict text) 12030{ 12031 // See if C++-style comments work. 12032 // Iterate through items via the restricted pointer. 12033 // Also check for declarations in for loops. 12034 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 12035 continue; 12036 return 0; 12037} 12038 12039// Check varargs and va_copy. 12040static void 12041test_varargs (const char *format, ...) 12042{ 12043 va_list args; 12044 va_start (args, format); 12045 va_list args_copy; 12046 va_copy (args_copy, args); 12047 12048 const char *str; 12049 int number; 12050 float fnumber; 12051 12052 while (*format) 12053 { 12054 switch (*format++) 12055 { 12056 case 's': // string 12057 str = va_arg (args_copy, const char *); 12058 break; 12059 case 'd': // int 12060 number = va_arg (args_copy, int); 12061 break; 12062 case 'f': // float 12063 fnumber = va_arg (args_copy, double); 12064 break; 12065 default: 12066 break; 12067 } 12068 } 12069 va_end (args_copy); 12070 va_end (args); 12071} 12072 12073int 12074main () 12075{ 12076 12077 // Check bool. 12078 _Bool success = false; 12079 12080 // Check restrict. 12081 if (test_restrict ("String literal") == 0) 12082 success = true; 12083 char *restrict newvar = "Another string"; 12084 12085 // Check varargs. 12086 test_varargs ("s, d' f .", "string", 65, 34.234); 12087 test_varargs_macros (); 12088 12089 // Check flexible array members. 12090 struct incomplete_array *ia = 12091 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 12092 ia->datasize = 10; 12093 for (int i = 0; i < ia->datasize; ++i) 12094 ia->data[i] = i * 1.234; 12095 12096 // Check named initializers. 12097 struct named_init ni = { 12098 .number = 34, 12099 .name = L"Test wide string", 12100 .average = 543.34343, 12101 }; 12102 12103 ni.number = 58; 12104 12105 int dynamic_array[ni.number]; 12106 dynamic_array[ni.number - 1] = 543; 12107 12108 // work around unused variable warnings 12109 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 12110 || dynamic_array[ni.number - 1] != 543); 12111 12112 ; 12113 return 0; 12114} 12115_ACEOF 12116for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 12117do 12118 CC="$ac_save_CC $ac_arg" 12119 if ac_fn_c_try_compile "$LINENO"; then : 12120 ac_cv_prog_cc_c99=$ac_arg 12121fi 12122rm -f core conftest.err conftest.$ac_objext 12123 test "x$ac_cv_prog_cc_c99" != "xno" && break 12124done 12125rm -f conftest.$ac_ext 12126CC=$ac_save_CC 12127 12128fi 12129# AC_CACHE_VAL 12130case "x$ac_cv_prog_cc_c99" in 12131 x) 12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12133$as_echo "none needed" >&6; } ;; 12134 xno) 12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12136$as_echo "unsupported" >&6; } ;; 12137 *) 12138 CC="$CC $ac_cv_prog_cc_c99" 12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 12140$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 12141esac 12142if test "x$ac_cv_prog_cc_c99" != xno; then : 12143 12144fi 12145 12146 12147 12148 12149 12150 12151ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 12152if test "x$ac_cv_have_decl___clang__" = xyes; then : 12153 CLANGCC="yes" 12154else 12155 CLANGCC="no" 12156fi 12157 12158ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 12159if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 12160 INTELCC="yes" 12161else 12162 INTELCC="no" 12163fi 12164 12165ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 12166if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 12167 SUNCC="yes" 12168else 12169 SUNCC="no" 12170fi 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12181 if test -n "$ac_tool_prefix"; then 12182 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12183set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12185$as_echo_n "checking for $ac_word... " >&6; } 12186if ${ac_cv_path_PKG_CONFIG+:} false; then : 12187 $as_echo_n "(cached) " >&6 12188else 12189 case $PKG_CONFIG in 12190 [\\/]* | ?:[\\/]*) 12191 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12192 ;; 12193 *) 12194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12195for as_dir in $PATH 12196do 12197 IFS=$as_save_IFS 12198 test -z "$as_dir" && as_dir=. 12199 for ac_exec_ext in '' $ac_executable_extensions; do 12200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12201 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12203 break 2 12204 fi 12205done 12206 done 12207IFS=$as_save_IFS 12208 12209 ;; 12210esac 12211fi 12212PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12213if test -n "$PKG_CONFIG"; then 12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12215$as_echo "$PKG_CONFIG" >&6; } 12216else 12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12218$as_echo "no" >&6; } 12219fi 12220 12221 12222fi 12223if test -z "$ac_cv_path_PKG_CONFIG"; then 12224 ac_pt_PKG_CONFIG=$PKG_CONFIG 12225 # Extract the first word of "pkg-config", so it can be a program name with args. 12226set dummy pkg-config; ac_word=$2 12227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12228$as_echo_n "checking for $ac_word... " >&6; } 12229if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 12230 $as_echo_n "(cached) " >&6 12231else 12232 case $ac_pt_PKG_CONFIG in 12233 [\\/]* | ?:[\\/]*) 12234 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12235 ;; 12236 *) 12237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12238for as_dir in $PATH 12239do 12240 IFS=$as_save_IFS 12241 test -z "$as_dir" && as_dir=. 12242 for ac_exec_ext in '' $ac_executable_extensions; do 12243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12244 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12246 break 2 12247 fi 12248done 12249 done 12250IFS=$as_save_IFS 12251 12252 ;; 12253esac 12254fi 12255ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12256if test -n "$ac_pt_PKG_CONFIG"; then 12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12258$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12259else 12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12261$as_echo "no" >&6; } 12262fi 12263 12264 if test "x$ac_pt_PKG_CONFIG" = x; then 12265 PKG_CONFIG="" 12266 else 12267 case $cross_compiling:$ac_tool_warned in 12268yes:) 12269{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12270$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12271ac_tool_warned=yes ;; 12272esac 12273 PKG_CONFIG=$ac_pt_PKG_CONFIG 12274 fi 12275else 12276 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12277fi 12278 12279fi 12280if test -n "$PKG_CONFIG"; then 12281 _pkg_min_version=0.9.0 12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12283$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12284 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12286$as_echo "yes" >&6; } 12287 else 12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12289$as_echo "no" >&6; } 12290 PKG_CONFIG="" 12291 fi 12292fi 12293 12294 12295 12296 12297 12298# Check whether --enable-selective-werror was given. 12299if test "${enable_selective_werror+set}" = set; then : 12300 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 12301else 12302 SELECTIVE_WERROR=yes 12303fi 12304 12305 12306 12307 12308 12309# -v is too short to test reliably with XORG_TESTSET_CFLAG 12310if test "x$SUNCC" = "xyes"; then 12311 BASE_CFLAGS="-v" 12312else 12313 BASE_CFLAGS="" 12314fi 12315 12316# This chunk of warnings were those that existed in the legacy CWARNFLAGS 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330xorg_testset_save_CFLAGS="$CFLAGS" 12331 12332if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12333 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12335$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12336if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12337 $as_echo_n "(cached) " >&6 12338else 12339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12340/* end confdefs.h. */ 12341int i; 12342_ACEOF 12343if ac_fn_c_try_compile "$LINENO"; then : 12344 xorg_cv_cc_flag_unknown_warning_option=yes 12345else 12346 xorg_cv_cc_flag_unknown_warning_option=no 12347fi 12348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12349fi 12350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12351$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12352 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12353 CFLAGS="$xorg_testset_save_CFLAGS" 12354fi 12355 12356if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12358 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12359 fi 12360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12362$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12363if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12364 $as_echo_n "(cached) " >&6 12365else 12366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12367/* end confdefs.h. */ 12368int i; 12369_ACEOF 12370if ac_fn_c_try_compile "$LINENO"; then : 12371 xorg_cv_cc_flag_unused_command_line_argument=yes 12372else 12373 xorg_cv_cc_flag_unused_command_line_argument=no 12374fi 12375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12376fi 12377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12378$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12379 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12380 CFLAGS="$xorg_testset_save_CFLAGS" 12381fi 12382 12383found="no" 12384 12385 if test $found = "no" ; then 12386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12387 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12388 fi 12389 12390 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12392 fi 12393 12394 CFLAGS="$CFLAGS -Wall" 12395 12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 12397$as_echo_n "checking if $CC supports -Wall... " >&6; } 12398 cacheid=xorg_cv_cc_flag__Wall 12399 if eval \${$cacheid+:} false; then : 12400 $as_echo_n "(cached) " >&6 12401else 12402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12403/* end confdefs.h. */ 12404int i; 12405int 12406main () 12407{ 12408 12409 ; 12410 return 0; 12411} 12412_ACEOF 12413if ac_fn_c_try_link "$LINENO"; then : 12414 eval $cacheid=yes 12415else 12416 eval $cacheid=no 12417fi 12418rm -f core conftest.err conftest.$ac_objext \ 12419 conftest$ac_exeext conftest.$ac_ext 12420fi 12421 12422 12423 CFLAGS="$xorg_testset_save_CFLAGS" 12424 12425 eval supported=\$$cacheid 12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12427$as_echo "$supported" >&6; } 12428 if test "$supported" = "yes" ; then 12429 BASE_CFLAGS="$BASE_CFLAGS -Wall" 12430 found="yes" 12431 fi 12432 fi 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448xorg_testset_save_CFLAGS="$CFLAGS" 12449 12450if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12451 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12453$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12454if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12455 $as_echo_n "(cached) " >&6 12456else 12457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12458/* end confdefs.h. */ 12459int i; 12460_ACEOF 12461if ac_fn_c_try_compile "$LINENO"; then : 12462 xorg_cv_cc_flag_unknown_warning_option=yes 12463else 12464 xorg_cv_cc_flag_unknown_warning_option=no 12465fi 12466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12467fi 12468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12469$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12470 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12471 CFLAGS="$xorg_testset_save_CFLAGS" 12472fi 12473 12474if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12475 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12476 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12477 fi 12478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12480$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12481if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12482 $as_echo_n "(cached) " >&6 12483else 12484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12485/* end confdefs.h. */ 12486int i; 12487_ACEOF 12488if ac_fn_c_try_compile "$LINENO"; then : 12489 xorg_cv_cc_flag_unused_command_line_argument=yes 12490else 12491 xorg_cv_cc_flag_unused_command_line_argument=no 12492fi 12493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12494fi 12495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12496$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12497 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12498 CFLAGS="$xorg_testset_save_CFLAGS" 12499fi 12500 12501found="no" 12502 12503 if test $found = "no" ; then 12504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12506 fi 12507 12508 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12510 fi 12511 12512 CFLAGS="$CFLAGS -Wpointer-arith" 12513 12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 12515$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 12516 cacheid=xorg_cv_cc_flag__Wpointer_arith 12517 if eval \${$cacheid+:} false; then : 12518 $as_echo_n "(cached) " >&6 12519else 12520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12521/* end confdefs.h. */ 12522int i; 12523int 12524main () 12525{ 12526 12527 ; 12528 return 0; 12529} 12530_ACEOF 12531if ac_fn_c_try_link "$LINENO"; then : 12532 eval $cacheid=yes 12533else 12534 eval $cacheid=no 12535fi 12536rm -f core conftest.err conftest.$ac_objext \ 12537 conftest$ac_exeext conftest.$ac_ext 12538fi 12539 12540 12541 CFLAGS="$xorg_testset_save_CFLAGS" 12542 12543 eval supported=\$$cacheid 12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12545$as_echo "$supported" >&6; } 12546 if test "$supported" = "yes" ; then 12547 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12548 found="yes" 12549 fi 12550 fi 12551 12552 12553 12554 12555 12556 12557 12558 12559 12560 12561 12562 12563 12564 12565 12566xorg_testset_save_CFLAGS="$CFLAGS" 12567 12568if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12569 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12571$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12572if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12573 $as_echo_n "(cached) " >&6 12574else 12575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12576/* end confdefs.h. */ 12577int i; 12578_ACEOF 12579if ac_fn_c_try_compile "$LINENO"; then : 12580 xorg_cv_cc_flag_unknown_warning_option=yes 12581else 12582 xorg_cv_cc_flag_unknown_warning_option=no 12583fi 12584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12585fi 12586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12587$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12588 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12589 CFLAGS="$xorg_testset_save_CFLAGS" 12590fi 12591 12592if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12594 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12595 fi 12596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12598$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12599if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12600 $as_echo_n "(cached) " >&6 12601else 12602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12603/* end confdefs.h. */ 12604int i; 12605_ACEOF 12606if ac_fn_c_try_compile "$LINENO"; then : 12607 xorg_cv_cc_flag_unused_command_line_argument=yes 12608else 12609 xorg_cv_cc_flag_unused_command_line_argument=no 12610fi 12611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12612fi 12613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12614$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12615 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12616 CFLAGS="$xorg_testset_save_CFLAGS" 12617fi 12618 12619found="no" 12620 12621 if test $found = "no" ; then 12622 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12623 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12624 fi 12625 12626 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12627 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12628 fi 12629 12630 CFLAGS="$CFLAGS -Wmissing-declarations" 12631 12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 12633$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 12634 cacheid=xorg_cv_cc_flag__Wmissing_declarations 12635 if eval \${$cacheid+:} false; then : 12636 $as_echo_n "(cached) " >&6 12637else 12638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12639/* end confdefs.h. */ 12640int i; 12641int 12642main () 12643{ 12644 12645 ; 12646 return 0; 12647} 12648_ACEOF 12649if ac_fn_c_try_link "$LINENO"; then : 12650 eval $cacheid=yes 12651else 12652 eval $cacheid=no 12653fi 12654rm -f core conftest.err conftest.$ac_objext \ 12655 conftest$ac_exeext conftest.$ac_ext 12656fi 12657 12658 12659 CFLAGS="$xorg_testset_save_CFLAGS" 12660 12661 eval supported=\$$cacheid 12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12663$as_echo "$supported" >&6; } 12664 if test "$supported" = "yes" ; then 12665 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12666 found="yes" 12667 fi 12668 fi 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684xorg_testset_save_CFLAGS="$CFLAGS" 12685 12686if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12687 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12689$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12690if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12691 $as_echo_n "(cached) " >&6 12692else 12693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12694/* end confdefs.h. */ 12695int i; 12696_ACEOF 12697if ac_fn_c_try_compile "$LINENO"; then : 12698 xorg_cv_cc_flag_unknown_warning_option=yes 12699else 12700 xorg_cv_cc_flag_unknown_warning_option=no 12701fi 12702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12703fi 12704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12705$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12706 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12707 CFLAGS="$xorg_testset_save_CFLAGS" 12708fi 12709 12710if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12711 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12712 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12713 fi 12714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12716$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12717if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12718 $as_echo_n "(cached) " >&6 12719else 12720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12721/* end confdefs.h. */ 12722int i; 12723_ACEOF 12724if ac_fn_c_try_compile "$LINENO"; then : 12725 xorg_cv_cc_flag_unused_command_line_argument=yes 12726else 12727 xorg_cv_cc_flag_unused_command_line_argument=no 12728fi 12729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12730fi 12731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12732$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12733 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12734 CFLAGS="$xorg_testset_save_CFLAGS" 12735fi 12736 12737found="no" 12738 12739 if test $found = "no" ; then 12740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12742 fi 12743 12744 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12746 fi 12747 12748 CFLAGS="$CFLAGS -Wformat=2" 12749 12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12751$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12752 cacheid=xorg_cv_cc_flag__Wformat_2 12753 if eval \${$cacheid+:} false; then : 12754 $as_echo_n "(cached) " >&6 12755else 12756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12757/* end confdefs.h. */ 12758int i; 12759int 12760main () 12761{ 12762 12763 ; 12764 return 0; 12765} 12766_ACEOF 12767if ac_fn_c_try_link "$LINENO"; then : 12768 eval $cacheid=yes 12769else 12770 eval $cacheid=no 12771fi 12772rm -f core conftest.err conftest.$ac_objext \ 12773 conftest$ac_exeext conftest.$ac_ext 12774fi 12775 12776 12777 CFLAGS="$xorg_testset_save_CFLAGS" 12778 12779 eval supported=\$$cacheid 12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12781$as_echo "$supported" >&6; } 12782 if test "$supported" = "yes" ; then 12783 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12784 found="yes" 12785 fi 12786 fi 12787 12788 if test $found = "no" ; then 12789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12790 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12791 fi 12792 12793 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12795 fi 12796 12797 CFLAGS="$CFLAGS -Wformat" 12798 12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 12800$as_echo_n "checking if $CC supports -Wformat... " >&6; } 12801 cacheid=xorg_cv_cc_flag__Wformat 12802 if eval \${$cacheid+:} false; then : 12803 $as_echo_n "(cached) " >&6 12804else 12805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12806/* end confdefs.h. */ 12807int i; 12808int 12809main () 12810{ 12811 12812 ; 12813 return 0; 12814} 12815_ACEOF 12816if ac_fn_c_try_link "$LINENO"; then : 12817 eval $cacheid=yes 12818else 12819 eval $cacheid=no 12820fi 12821rm -f core conftest.err conftest.$ac_objext \ 12822 conftest$ac_exeext conftest.$ac_ext 12823fi 12824 12825 12826 CFLAGS="$xorg_testset_save_CFLAGS" 12827 12828 eval supported=\$$cacheid 12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12830$as_echo "$supported" >&6; } 12831 if test "$supported" = "yes" ; then 12832 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 12833 found="yes" 12834 fi 12835 fi 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853xorg_testset_save_CFLAGS="$CFLAGS" 12854 12855if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12856 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12858$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12859if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12860 $as_echo_n "(cached) " >&6 12861else 12862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12863/* end confdefs.h. */ 12864int i; 12865_ACEOF 12866if ac_fn_c_try_compile "$LINENO"; then : 12867 xorg_cv_cc_flag_unknown_warning_option=yes 12868else 12869 xorg_cv_cc_flag_unknown_warning_option=no 12870fi 12871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12872fi 12873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12874$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12875 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12876 CFLAGS="$xorg_testset_save_CFLAGS" 12877fi 12878 12879if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12882 fi 12883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12885$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12886if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12887 $as_echo_n "(cached) " >&6 12888else 12889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12890/* end confdefs.h. */ 12891int i; 12892_ACEOF 12893if ac_fn_c_try_compile "$LINENO"; then : 12894 xorg_cv_cc_flag_unused_command_line_argument=yes 12895else 12896 xorg_cv_cc_flag_unused_command_line_argument=no 12897fi 12898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12899fi 12900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12901$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12902 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12903 CFLAGS="$xorg_testset_save_CFLAGS" 12904fi 12905 12906found="no" 12907 12908 if test $found = "no" ; then 12909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12910 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12911 fi 12912 12913 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12915 fi 12916 12917 CFLAGS="$CFLAGS -Wstrict-prototypes" 12918 12919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 12920$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 12921 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 12922 if eval \${$cacheid+:} false; then : 12923 $as_echo_n "(cached) " >&6 12924else 12925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12926/* end confdefs.h. */ 12927int i; 12928int 12929main () 12930{ 12931 12932 ; 12933 return 0; 12934} 12935_ACEOF 12936if ac_fn_c_try_link "$LINENO"; then : 12937 eval $cacheid=yes 12938else 12939 eval $cacheid=no 12940fi 12941rm -f core conftest.err conftest.$ac_objext \ 12942 conftest$ac_exeext conftest.$ac_ext 12943fi 12944 12945 12946 CFLAGS="$xorg_testset_save_CFLAGS" 12947 12948 eval supported=\$$cacheid 12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12950$as_echo "$supported" >&6; } 12951 if test "$supported" = "yes" ; then 12952 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 12953 found="yes" 12954 fi 12955 fi 12956 12957 12958 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971xorg_testset_save_CFLAGS="$CFLAGS" 12972 12973if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12974 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12976$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12977if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12978 $as_echo_n "(cached) " >&6 12979else 12980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12981/* end confdefs.h. */ 12982int i; 12983_ACEOF 12984if ac_fn_c_try_compile "$LINENO"; then : 12985 xorg_cv_cc_flag_unknown_warning_option=yes 12986else 12987 xorg_cv_cc_flag_unknown_warning_option=no 12988fi 12989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12990fi 12991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12992$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12993 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12994 CFLAGS="$xorg_testset_save_CFLAGS" 12995fi 12996 12997if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13000 fi 13001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13003$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13004if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13005 $as_echo_n "(cached) " >&6 13006else 13007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13008/* end confdefs.h. */ 13009int i; 13010_ACEOF 13011if ac_fn_c_try_compile "$LINENO"; then : 13012 xorg_cv_cc_flag_unused_command_line_argument=yes 13013else 13014 xorg_cv_cc_flag_unused_command_line_argument=no 13015fi 13016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13017fi 13018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13019$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13020 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13021 CFLAGS="$xorg_testset_save_CFLAGS" 13022fi 13023 13024found="no" 13025 13026 if test $found = "no" ; then 13027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13029 fi 13030 13031 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13033 fi 13034 13035 CFLAGS="$CFLAGS -Wmissing-prototypes" 13036 13037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 13038$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 13039 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 13040 if eval \${$cacheid+:} false; then : 13041 $as_echo_n "(cached) " >&6 13042else 13043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13044/* end confdefs.h. */ 13045int i; 13046int 13047main () 13048{ 13049 13050 ; 13051 return 0; 13052} 13053_ACEOF 13054if ac_fn_c_try_link "$LINENO"; then : 13055 eval $cacheid=yes 13056else 13057 eval $cacheid=no 13058fi 13059rm -f core conftest.err conftest.$ac_objext \ 13060 conftest$ac_exeext conftest.$ac_ext 13061fi 13062 13063 13064 CFLAGS="$xorg_testset_save_CFLAGS" 13065 13066 eval supported=\$$cacheid 13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13068$as_echo "$supported" >&6; } 13069 if test "$supported" = "yes" ; then 13070 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 13071 found="yes" 13072 fi 13073 fi 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089xorg_testset_save_CFLAGS="$CFLAGS" 13090 13091if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13094$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13095if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13096 $as_echo_n "(cached) " >&6 13097else 13098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13099/* end confdefs.h. */ 13100int i; 13101_ACEOF 13102if ac_fn_c_try_compile "$LINENO"; then : 13103 xorg_cv_cc_flag_unknown_warning_option=yes 13104else 13105 xorg_cv_cc_flag_unknown_warning_option=no 13106fi 13107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13108fi 13109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13110$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13111 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13112 CFLAGS="$xorg_testset_save_CFLAGS" 13113fi 13114 13115if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13118 fi 13119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13121$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13122if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13123 $as_echo_n "(cached) " >&6 13124else 13125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13126/* end confdefs.h. */ 13127int i; 13128_ACEOF 13129if ac_fn_c_try_compile "$LINENO"; then : 13130 xorg_cv_cc_flag_unused_command_line_argument=yes 13131else 13132 xorg_cv_cc_flag_unused_command_line_argument=no 13133fi 13134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13135fi 13136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13137$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13138 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13139 CFLAGS="$xorg_testset_save_CFLAGS" 13140fi 13141 13142found="no" 13143 13144 if test $found = "no" ; then 13145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13147 fi 13148 13149 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13151 fi 13152 13153 CFLAGS="$CFLAGS -Wnested-externs" 13154 13155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 13156$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 13157 cacheid=xorg_cv_cc_flag__Wnested_externs 13158 if eval \${$cacheid+:} false; then : 13159 $as_echo_n "(cached) " >&6 13160else 13161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13162/* end confdefs.h. */ 13163int i; 13164int 13165main () 13166{ 13167 13168 ; 13169 return 0; 13170} 13171_ACEOF 13172if ac_fn_c_try_link "$LINENO"; then : 13173 eval $cacheid=yes 13174else 13175 eval $cacheid=no 13176fi 13177rm -f core conftest.err conftest.$ac_objext \ 13178 conftest$ac_exeext conftest.$ac_ext 13179fi 13180 13181 13182 CFLAGS="$xorg_testset_save_CFLAGS" 13183 13184 eval supported=\$$cacheid 13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13186$as_echo "$supported" >&6; } 13187 if test "$supported" = "yes" ; then 13188 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 13189 found="yes" 13190 fi 13191 fi 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207xorg_testset_save_CFLAGS="$CFLAGS" 13208 13209if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13212$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13213if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13214 $as_echo_n "(cached) " >&6 13215else 13216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13217/* end confdefs.h. */ 13218int i; 13219_ACEOF 13220if ac_fn_c_try_compile "$LINENO"; then : 13221 xorg_cv_cc_flag_unknown_warning_option=yes 13222else 13223 xorg_cv_cc_flag_unknown_warning_option=no 13224fi 13225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13226fi 13227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13228$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13229 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13230 CFLAGS="$xorg_testset_save_CFLAGS" 13231fi 13232 13233if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13236 fi 13237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13239$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13240if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13241 $as_echo_n "(cached) " >&6 13242else 13243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13244/* end confdefs.h. */ 13245int i; 13246_ACEOF 13247if ac_fn_c_try_compile "$LINENO"; then : 13248 xorg_cv_cc_flag_unused_command_line_argument=yes 13249else 13250 xorg_cv_cc_flag_unused_command_line_argument=no 13251fi 13252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13253fi 13254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13255$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13256 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13257 CFLAGS="$xorg_testset_save_CFLAGS" 13258fi 13259 13260found="no" 13261 13262 if test $found = "no" ; then 13263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13265 fi 13266 13267 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13269 fi 13270 13271 CFLAGS="$CFLAGS -Wbad-function-cast" 13272 13273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 13274$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 13275 cacheid=xorg_cv_cc_flag__Wbad_function_cast 13276 if eval \${$cacheid+:} false; then : 13277 $as_echo_n "(cached) " >&6 13278else 13279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13280/* end confdefs.h. */ 13281int i; 13282int 13283main () 13284{ 13285 13286 ; 13287 return 0; 13288} 13289_ACEOF 13290if ac_fn_c_try_link "$LINENO"; then : 13291 eval $cacheid=yes 13292else 13293 eval $cacheid=no 13294fi 13295rm -f core conftest.err conftest.$ac_objext \ 13296 conftest$ac_exeext conftest.$ac_ext 13297fi 13298 13299 13300 CFLAGS="$xorg_testset_save_CFLAGS" 13301 13302 eval supported=\$$cacheid 13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13304$as_echo "$supported" >&6; } 13305 if test "$supported" = "yes" ; then 13306 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 13307 found="yes" 13308 fi 13309 fi 13310 13311 13312 13313 13314 13315 13316 13317 13318 13319 13320 13321 13322 13323 13324 13325xorg_testset_save_CFLAGS="$CFLAGS" 13326 13327if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13328 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13330$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13331if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13332 $as_echo_n "(cached) " >&6 13333else 13334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13335/* end confdefs.h. */ 13336int i; 13337_ACEOF 13338if ac_fn_c_try_compile "$LINENO"; then : 13339 xorg_cv_cc_flag_unknown_warning_option=yes 13340else 13341 xorg_cv_cc_flag_unknown_warning_option=no 13342fi 13343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13344fi 13345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13346$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13347 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13348 CFLAGS="$xorg_testset_save_CFLAGS" 13349fi 13350 13351if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13352 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13353 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13354 fi 13355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13357$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13358if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13359 $as_echo_n "(cached) " >&6 13360else 13361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13362/* end confdefs.h. */ 13363int i; 13364_ACEOF 13365if ac_fn_c_try_compile "$LINENO"; then : 13366 xorg_cv_cc_flag_unused_command_line_argument=yes 13367else 13368 xorg_cv_cc_flag_unused_command_line_argument=no 13369fi 13370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13371fi 13372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13373$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13374 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13375 CFLAGS="$xorg_testset_save_CFLAGS" 13376fi 13377 13378found="no" 13379 13380 if test $found = "no" ; then 13381 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13382 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13383 fi 13384 13385 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13387 fi 13388 13389 CFLAGS="$CFLAGS -Wold-style-definition" 13390 13391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 13392$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 13393 cacheid=xorg_cv_cc_flag__Wold_style_definition 13394 if eval \${$cacheid+:} false; then : 13395 $as_echo_n "(cached) " >&6 13396else 13397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13398/* end confdefs.h. */ 13399int i; 13400int 13401main () 13402{ 13403 13404 ; 13405 return 0; 13406} 13407_ACEOF 13408if ac_fn_c_try_link "$LINENO"; then : 13409 eval $cacheid=yes 13410else 13411 eval $cacheid=no 13412fi 13413rm -f core conftest.err conftest.$ac_objext \ 13414 conftest$ac_exeext conftest.$ac_ext 13415fi 13416 13417 13418 CFLAGS="$xorg_testset_save_CFLAGS" 13419 13420 eval supported=\$$cacheid 13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13422$as_echo "$supported" >&6; } 13423 if test "$supported" = "yes" ; then 13424 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 13425 found="yes" 13426 fi 13427 fi 13428 13429 if test $found = "no" ; then 13430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13431 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13432 fi 13433 13434 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13436 fi 13437 13438 CFLAGS="$CFLAGS -fd" 13439 13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 13441$as_echo_n "checking if $CC supports -fd... " >&6; } 13442 cacheid=xorg_cv_cc_flag__fd 13443 if eval \${$cacheid+:} false; then : 13444 $as_echo_n "(cached) " >&6 13445else 13446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13447/* end confdefs.h. */ 13448int i; 13449int 13450main () 13451{ 13452 13453 ; 13454 return 0; 13455} 13456_ACEOF 13457if ac_fn_c_try_link "$LINENO"; then : 13458 eval $cacheid=yes 13459else 13460 eval $cacheid=no 13461fi 13462rm -f core conftest.err conftest.$ac_objext \ 13463 conftest$ac_exeext conftest.$ac_ext 13464fi 13465 13466 13467 CFLAGS="$xorg_testset_save_CFLAGS" 13468 13469 eval supported=\$$cacheid 13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13471$as_echo "$supported" >&6; } 13472 if test "$supported" = "yes" ; then 13473 BASE_CFLAGS="$BASE_CFLAGS -fd" 13474 found="yes" 13475 fi 13476 fi 13477 13478 13479 13480 13481 13482 13483 13484 13485 13486 13487 13488 13489 13490 13491 13492xorg_testset_save_CFLAGS="$CFLAGS" 13493 13494if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13495 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13497$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13498if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13499 $as_echo_n "(cached) " >&6 13500else 13501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13502/* end confdefs.h. */ 13503int i; 13504_ACEOF 13505if ac_fn_c_try_compile "$LINENO"; then : 13506 xorg_cv_cc_flag_unknown_warning_option=yes 13507else 13508 xorg_cv_cc_flag_unknown_warning_option=no 13509fi 13510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13511fi 13512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13513$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13514 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13515 CFLAGS="$xorg_testset_save_CFLAGS" 13516fi 13517 13518if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13521 fi 13522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13524$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13525if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13526 $as_echo_n "(cached) " >&6 13527else 13528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13529/* end confdefs.h. */ 13530int i; 13531_ACEOF 13532if ac_fn_c_try_compile "$LINENO"; then : 13533 xorg_cv_cc_flag_unused_command_line_argument=yes 13534else 13535 xorg_cv_cc_flag_unused_command_line_argument=no 13536fi 13537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13538fi 13539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13540$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13541 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13542 CFLAGS="$xorg_testset_save_CFLAGS" 13543fi 13544 13545found="no" 13546 13547 if test $found = "no" ; then 13548 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13549 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13550 fi 13551 13552 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13554 fi 13555 13556 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 13557 13558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 13559$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 13560 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 13561 if eval \${$cacheid+:} false; then : 13562 $as_echo_n "(cached) " >&6 13563else 13564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13565/* end confdefs.h. */ 13566int i; 13567int 13568main () 13569{ 13570 13571 ; 13572 return 0; 13573} 13574_ACEOF 13575if ac_fn_c_try_link "$LINENO"; then : 13576 eval $cacheid=yes 13577else 13578 eval $cacheid=no 13579fi 13580rm -f core conftest.err conftest.$ac_objext \ 13581 conftest$ac_exeext conftest.$ac_ext 13582fi 13583 13584 13585 CFLAGS="$xorg_testset_save_CFLAGS" 13586 13587 eval supported=\$$cacheid 13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13589$as_echo "$supported" >&6; } 13590 if test "$supported" = "yes" ; then 13591 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 13592 found="yes" 13593 fi 13594 fi 13595 13596 13597 13598 13599 13600# This chunk adds additional warnings that could catch undesired effects. 13601 13602 13603 13604 13605 13606 13607 13608 13609 13610 13611 13612 13613 13614xorg_testset_save_CFLAGS="$CFLAGS" 13615 13616if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13619$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13620if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13621 $as_echo_n "(cached) " >&6 13622else 13623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13624/* end confdefs.h. */ 13625int i; 13626_ACEOF 13627if ac_fn_c_try_compile "$LINENO"; then : 13628 xorg_cv_cc_flag_unknown_warning_option=yes 13629else 13630 xorg_cv_cc_flag_unknown_warning_option=no 13631fi 13632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13633fi 13634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13635$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13636 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13637 CFLAGS="$xorg_testset_save_CFLAGS" 13638fi 13639 13640if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13641 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13642 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13643 fi 13644 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13646$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13647if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13648 $as_echo_n "(cached) " >&6 13649else 13650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13651/* end confdefs.h. */ 13652int i; 13653_ACEOF 13654if ac_fn_c_try_compile "$LINENO"; then : 13655 xorg_cv_cc_flag_unused_command_line_argument=yes 13656else 13657 xorg_cv_cc_flag_unused_command_line_argument=no 13658fi 13659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13660fi 13661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13662$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13663 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13664 CFLAGS="$xorg_testset_save_CFLAGS" 13665fi 13666 13667found="no" 13668 13669 if test $found = "no" ; then 13670 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13671 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13672 fi 13673 13674 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13676 fi 13677 13678 CFLAGS="$CFLAGS -Wunused" 13679 13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 13681$as_echo_n "checking if $CC supports -Wunused... " >&6; } 13682 cacheid=xorg_cv_cc_flag__Wunused 13683 if eval \${$cacheid+:} false; then : 13684 $as_echo_n "(cached) " >&6 13685else 13686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13687/* end confdefs.h. */ 13688int i; 13689int 13690main () 13691{ 13692 13693 ; 13694 return 0; 13695} 13696_ACEOF 13697if ac_fn_c_try_link "$LINENO"; then : 13698 eval $cacheid=yes 13699else 13700 eval $cacheid=no 13701fi 13702rm -f core conftest.err conftest.$ac_objext \ 13703 conftest$ac_exeext conftest.$ac_ext 13704fi 13705 13706 13707 CFLAGS="$xorg_testset_save_CFLAGS" 13708 13709 eval supported=\$$cacheid 13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13711$as_echo "$supported" >&6; } 13712 if test "$supported" = "yes" ; then 13713 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13714 found="yes" 13715 fi 13716 fi 13717 13718 13719 13720 13721 13722 13723 13724 13725 13726 13727 13728 13729 13730 13731 13732xorg_testset_save_CFLAGS="$CFLAGS" 13733 13734if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13735 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13737$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13738if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13739 $as_echo_n "(cached) " >&6 13740else 13741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13742/* end confdefs.h. */ 13743int i; 13744_ACEOF 13745if ac_fn_c_try_compile "$LINENO"; then : 13746 xorg_cv_cc_flag_unknown_warning_option=yes 13747else 13748 xorg_cv_cc_flag_unknown_warning_option=no 13749fi 13750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13751fi 13752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13753$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13754 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13755 CFLAGS="$xorg_testset_save_CFLAGS" 13756fi 13757 13758if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13760 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13761 fi 13762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13764$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13765if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13766 $as_echo_n "(cached) " >&6 13767else 13768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13769/* end confdefs.h. */ 13770int i; 13771_ACEOF 13772if ac_fn_c_try_compile "$LINENO"; then : 13773 xorg_cv_cc_flag_unused_command_line_argument=yes 13774else 13775 xorg_cv_cc_flag_unused_command_line_argument=no 13776fi 13777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13778fi 13779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13780$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13781 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13782 CFLAGS="$xorg_testset_save_CFLAGS" 13783fi 13784 13785found="no" 13786 13787 if test $found = "no" ; then 13788 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13789 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13790 fi 13791 13792 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13794 fi 13795 13796 CFLAGS="$CFLAGS -Wuninitialized" 13797 13798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 13799$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 13800 cacheid=xorg_cv_cc_flag__Wuninitialized 13801 if eval \${$cacheid+:} false; then : 13802 $as_echo_n "(cached) " >&6 13803else 13804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13805/* end confdefs.h. */ 13806int i; 13807int 13808main () 13809{ 13810 13811 ; 13812 return 0; 13813} 13814_ACEOF 13815if ac_fn_c_try_link "$LINENO"; then : 13816 eval $cacheid=yes 13817else 13818 eval $cacheid=no 13819fi 13820rm -f core conftest.err conftest.$ac_objext \ 13821 conftest$ac_exeext conftest.$ac_ext 13822fi 13823 13824 13825 CFLAGS="$xorg_testset_save_CFLAGS" 13826 13827 eval supported=\$$cacheid 13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13829$as_echo "$supported" >&6; } 13830 if test "$supported" = "yes" ; then 13831 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13832 found="yes" 13833 fi 13834 fi 13835 13836 13837 13838 13839 13840 13841 13842 13843 13844 13845 13846 13847 13848 13849 13850xorg_testset_save_CFLAGS="$CFLAGS" 13851 13852if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13855$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13856if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13857 $as_echo_n "(cached) " >&6 13858else 13859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13860/* end confdefs.h. */ 13861int i; 13862_ACEOF 13863if ac_fn_c_try_compile "$LINENO"; then : 13864 xorg_cv_cc_flag_unknown_warning_option=yes 13865else 13866 xorg_cv_cc_flag_unknown_warning_option=no 13867fi 13868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13869fi 13870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13871$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13872 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13873 CFLAGS="$xorg_testset_save_CFLAGS" 13874fi 13875 13876if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13877 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13878 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13879 fi 13880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13882$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13883if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13884 $as_echo_n "(cached) " >&6 13885else 13886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13887/* end confdefs.h. */ 13888int i; 13889_ACEOF 13890if ac_fn_c_try_compile "$LINENO"; then : 13891 xorg_cv_cc_flag_unused_command_line_argument=yes 13892else 13893 xorg_cv_cc_flag_unused_command_line_argument=no 13894fi 13895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13896fi 13897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13898$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13899 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13900 CFLAGS="$xorg_testset_save_CFLAGS" 13901fi 13902 13903found="no" 13904 13905 if test $found = "no" ; then 13906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13908 fi 13909 13910 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13912 fi 13913 13914 CFLAGS="$CFLAGS -Wshadow" 13915 13916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 13917$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 13918 cacheid=xorg_cv_cc_flag__Wshadow 13919 if eval \${$cacheid+:} false; then : 13920 $as_echo_n "(cached) " >&6 13921else 13922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13923/* end confdefs.h. */ 13924int i; 13925int 13926main () 13927{ 13928 13929 ; 13930 return 0; 13931} 13932_ACEOF 13933if ac_fn_c_try_link "$LINENO"; then : 13934 eval $cacheid=yes 13935else 13936 eval $cacheid=no 13937fi 13938rm -f core conftest.err conftest.$ac_objext \ 13939 conftest$ac_exeext conftest.$ac_ext 13940fi 13941 13942 13943 CFLAGS="$xorg_testset_save_CFLAGS" 13944 13945 eval supported=\$$cacheid 13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13947$as_echo "$supported" >&6; } 13948 if test "$supported" = "yes" ; then 13949 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 13950 found="yes" 13951 fi 13952 fi 13953 13954 13955 13956 13957 13958 13959 13960 13961 13962 13963 13964 13965 13966 13967 13968xorg_testset_save_CFLAGS="$CFLAGS" 13969 13970if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13973$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13974if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13975 $as_echo_n "(cached) " >&6 13976else 13977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13978/* end confdefs.h. */ 13979int i; 13980_ACEOF 13981if ac_fn_c_try_compile "$LINENO"; then : 13982 xorg_cv_cc_flag_unknown_warning_option=yes 13983else 13984 xorg_cv_cc_flag_unknown_warning_option=no 13985fi 13986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13987fi 13988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13989$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13990 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13991 CFLAGS="$xorg_testset_save_CFLAGS" 13992fi 13993 13994if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13996 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13997 fi 13998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14000$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14001if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14002 $as_echo_n "(cached) " >&6 14003else 14004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14005/* end confdefs.h. */ 14006int i; 14007_ACEOF 14008if ac_fn_c_try_compile "$LINENO"; then : 14009 xorg_cv_cc_flag_unused_command_line_argument=yes 14010else 14011 xorg_cv_cc_flag_unused_command_line_argument=no 14012fi 14013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14014fi 14015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14016$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14017 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14018 CFLAGS="$xorg_testset_save_CFLAGS" 14019fi 14020 14021found="no" 14022 14023 if test $found = "no" ; then 14024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14026 fi 14027 14028 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14030 fi 14031 14032 CFLAGS="$CFLAGS -Wmissing-noreturn" 14033 14034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 14035$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 14036 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 14037 if eval \${$cacheid+:} false; then : 14038 $as_echo_n "(cached) " >&6 14039else 14040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14041/* end confdefs.h. */ 14042int i; 14043int 14044main () 14045{ 14046 14047 ; 14048 return 0; 14049} 14050_ACEOF 14051if ac_fn_c_try_link "$LINENO"; then : 14052 eval $cacheid=yes 14053else 14054 eval $cacheid=no 14055fi 14056rm -f core conftest.err conftest.$ac_objext \ 14057 conftest$ac_exeext conftest.$ac_ext 14058fi 14059 14060 14061 CFLAGS="$xorg_testset_save_CFLAGS" 14062 14063 eval supported=\$$cacheid 14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14065$as_echo "$supported" >&6; } 14066 if test "$supported" = "yes" ; then 14067 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 14068 found="yes" 14069 fi 14070 fi 14071 14072 14073 14074 14075 14076 14077 14078 14079 14080 14081 14082 14083 14084 14085 14086xorg_testset_save_CFLAGS="$CFLAGS" 14087 14088if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14091$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14092if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14093 $as_echo_n "(cached) " >&6 14094else 14095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14096/* end confdefs.h. */ 14097int i; 14098_ACEOF 14099if ac_fn_c_try_compile "$LINENO"; then : 14100 xorg_cv_cc_flag_unknown_warning_option=yes 14101else 14102 xorg_cv_cc_flag_unknown_warning_option=no 14103fi 14104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14105fi 14106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14107$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14108 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14109 CFLAGS="$xorg_testset_save_CFLAGS" 14110fi 14111 14112if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14114 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14115 fi 14116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14118$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14119if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14120 $as_echo_n "(cached) " >&6 14121else 14122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14123/* end confdefs.h. */ 14124int i; 14125_ACEOF 14126if ac_fn_c_try_compile "$LINENO"; then : 14127 xorg_cv_cc_flag_unused_command_line_argument=yes 14128else 14129 xorg_cv_cc_flag_unused_command_line_argument=no 14130fi 14131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14132fi 14133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14134$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14135 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14136 CFLAGS="$xorg_testset_save_CFLAGS" 14137fi 14138 14139found="no" 14140 14141 if test $found = "no" ; then 14142 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14143 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14144 fi 14145 14146 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14147 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14148 fi 14149 14150 CFLAGS="$CFLAGS -Wmissing-format-attribute" 14151 14152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 14153$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 14154 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 14155 if eval \${$cacheid+:} false; then : 14156 $as_echo_n "(cached) " >&6 14157else 14158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14159/* end confdefs.h. */ 14160int i; 14161int 14162main () 14163{ 14164 14165 ; 14166 return 0; 14167} 14168_ACEOF 14169if ac_fn_c_try_link "$LINENO"; then : 14170 eval $cacheid=yes 14171else 14172 eval $cacheid=no 14173fi 14174rm -f core conftest.err conftest.$ac_objext \ 14175 conftest$ac_exeext conftest.$ac_ext 14176fi 14177 14178 14179 CFLAGS="$xorg_testset_save_CFLAGS" 14180 14181 eval supported=\$$cacheid 14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14183$as_echo "$supported" >&6; } 14184 if test "$supported" = "yes" ; then 14185 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 14186 found="yes" 14187 fi 14188 fi 14189 14190 14191 14192 14193 14194 14195 14196 14197 14198 14199 14200 14201 14202 14203 14204xorg_testset_save_CFLAGS="$CFLAGS" 14205 14206if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14209$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14210if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14211 $as_echo_n "(cached) " >&6 14212else 14213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14214/* end confdefs.h. */ 14215int i; 14216_ACEOF 14217if ac_fn_c_try_compile "$LINENO"; then : 14218 xorg_cv_cc_flag_unknown_warning_option=yes 14219else 14220 xorg_cv_cc_flag_unknown_warning_option=no 14221fi 14222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14223fi 14224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14225$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14226 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14227 CFLAGS="$xorg_testset_save_CFLAGS" 14228fi 14229 14230if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14232 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14233 fi 14234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14236$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14237if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14238 $as_echo_n "(cached) " >&6 14239else 14240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14241/* end confdefs.h. */ 14242int i; 14243_ACEOF 14244if ac_fn_c_try_compile "$LINENO"; then : 14245 xorg_cv_cc_flag_unused_command_line_argument=yes 14246else 14247 xorg_cv_cc_flag_unused_command_line_argument=no 14248fi 14249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14250fi 14251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14252$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14253 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14254 CFLAGS="$xorg_testset_save_CFLAGS" 14255fi 14256 14257found="no" 14258 14259 if test $found = "no" ; then 14260 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14261 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14262 fi 14263 14264 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14266 fi 14267 14268 CFLAGS="$CFLAGS -Wredundant-decls" 14269 14270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 14271$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 14272 cacheid=xorg_cv_cc_flag__Wredundant_decls 14273 if eval \${$cacheid+:} false; then : 14274 $as_echo_n "(cached) " >&6 14275else 14276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14277/* end confdefs.h. */ 14278int i; 14279int 14280main () 14281{ 14282 14283 ; 14284 return 0; 14285} 14286_ACEOF 14287if ac_fn_c_try_link "$LINENO"; then : 14288 eval $cacheid=yes 14289else 14290 eval $cacheid=no 14291fi 14292rm -f core conftest.err conftest.$ac_objext \ 14293 conftest$ac_exeext conftest.$ac_ext 14294fi 14295 14296 14297 CFLAGS="$xorg_testset_save_CFLAGS" 14298 14299 eval supported=\$$cacheid 14300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14301$as_echo "$supported" >&6; } 14302 if test "$supported" = "yes" ; then 14303 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 14304 found="yes" 14305 fi 14306 fi 14307 14308 14309 14310 14311 14312 14313 14314 14315 14316 14317 14318 14319 14320 14321 14322xorg_testset_save_CFLAGS="$CFLAGS" 14323 14324if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14325 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14327$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14328if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14329 $as_echo_n "(cached) " >&6 14330else 14331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14332/* end confdefs.h. */ 14333int i; 14334_ACEOF 14335if ac_fn_c_try_compile "$LINENO"; then : 14336 xorg_cv_cc_flag_unknown_warning_option=yes 14337else 14338 xorg_cv_cc_flag_unknown_warning_option=no 14339fi 14340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14341fi 14342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14343$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14344 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14345 CFLAGS="$xorg_testset_save_CFLAGS" 14346fi 14347 14348if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14351 fi 14352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14354$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14355if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14356 $as_echo_n "(cached) " >&6 14357else 14358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14359/* end confdefs.h. */ 14360int i; 14361_ACEOF 14362if ac_fn_c_try_compile "$LINENO"; then : 14363 xorg_cv_cc_flag_unused_command_line_argument=yes 14364else 14365 xorg_cv_cc_flag_unused_command_line_argument=no 14366fi 14367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14368fi 14369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14370$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14371 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14372 CFLAGS="$xorg_testset_save_CFLAGS" 14373fi 14374 14375found="no" 14376 14377 if test $found = "no" ; then 14378 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14379 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14380 fi 14381 14382 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14384 fi 14385 14386 CFLAGS="$CFLAGS -Wlogical-op" 14387 14388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 14389$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 14390 cacheid=xorg_cv_cc_flag__Wlogical_op 14391 if eval \${$cacheid+:} false; then : 14392 $as_echo_n "(cached) " >&6 14393else 14394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14395/* end confdefs.h. */ 14396int i; 14397int 14398main () 14399{ 14400 14401 ; 14402 return 0; 14403} 14404_ACEOF 14405if ac_fn_c_try_link "$LINENO"; then : 14406 eval $cacheid=yes 14407else 14408 eval $cacheid=no 14409fi 14410rm -f core conftest.err conftest.$ac_objext \ 14411 conftest$ac_exeext conftest.$ac_ext 14412fi 14413 14414 14415 CFLAGS="$xorg_testset_save_CFLAGS" 14416 14417 eval supported=\$$cacheid 14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14419$as_echo "$supported" >&6; } 14420 if test "$supported" = "yes" ; then 14421 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 14422 found="yes" 14423 fi 14424 fi 14425 14426 14427 14428# These are currently disabled because they are noisy. They will be enabled 14429# in the future once the codebase is sufficiently modernized to silence 14430# them. For now, I don't want them to drown out the other warnings. 14431# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 14432# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 14433# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 14434 14435# Turn some warnings into errors, so we don't accidently get successful builds 14436# when there are problems that should be fixed. 14437 14438if test "x$SELECTIVE_WERROR" = "xyes" ; then 14439 14440 14441 14442 14443 14444 14445 14446 14447 14448 14449 14450 14451 14452xorg_testset_save_CFLAGS="$CFLAGS" 14453 14454if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14455 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14457$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14458if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14459 $as_echo_n "(cached) " >&6 14460else 14461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14462/* end confdefs.h. */ 14463int i; 14464_ACEOF 14465if ac_fn_c_try_compile "$LINENO"; then : 14466 xorg_cv_cc_flag_unknown_warning_option=yes 14467else 14468 xorg_cv_cc_flag_unknown_warning_option=no 14469fi 14470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14471fi 14472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14473$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14474 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14475 CFLAGS="$xorg_testset_save_CFLAGS" 14476fi 14477 14478if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14481 fi 14482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14484$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14485if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14486 $as_echo_n "(cached) " >&6 14487else 14488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14489/* end confdefs.h. */ 14490int i; 14491_ACEOF 14492if ac_fn_c_try_compile "$LINENO"; then : 14493 xorg_cv_cc_flag_unused_command_line_argument=yes 14494else 14495 xorg_cv_cc_flag_unused_command_line_argument=no 14496fi 14497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14498fi 14499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14500$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14501 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14502 CFLAGS="$xorg_testset_save_CFLAGS" 14503fi 14504 14505found="no" 14506 14507 if test $found = "no" ; then 14508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14509 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14510 fi 14511 14512 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14514 fi 14515 14516 CFLAGS="$CFLAGS -Werror=implicit" 14517 14518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 14519$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 14520 cacheid=xorg_cv_cc_flag__Werror_implicit 14521 if eval \${$cacheid+:} false; then : 14522 $as_echo_n "(cached) " >&6 14523else 14524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14525/* end confdefs.h. */ 14526int i; 14527int 14528main () 14529{ 14530 14531 ; 14532 return 0; 14533} 14534_ACEOF 14535if ac_fn_c_try_link "$LINENO"; then : 14536 eval $cacheid=yes 14537else 14538 eval $cacheid=no 14539fi 14540rm -f core conftest.err conftest.$ac_objext \ 14541 conftest$ac_exeext conftest.$ac_ext 14542fi 14543 14544 14545 CFLAGS="$xorg_testset_save_CFLAGS" 14546 14547 eval supported=\$$cacheid 14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14549$as_echo "$supported" >&6; } 14550 if test "$supported" = "yes" ; then 14551 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 14552 found="yes" 14553 fi 14554 fi 14555 14556 if test $found = "no" ; then 14557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14559 fi 14560 14561 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14563 fi 14564 14565 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14566 14567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 14568$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 14569 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 14570 if eval \${$cacheid+:} false; then : 14571 $as_echo_n "(cached) " >&6 14572else 14573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14574/* end confdefs.h. */ 14575int i; 14576int 14577main () 14578{ 14579 14580 ; 14581 return 0; 14582} 14583_ACEOF 14584if ac_fn_c_try_link "$LINENO"; then : 14585 eval $cacheid=yes 14586else 14587 eval $cacheid=no 14588fi 14589rm -f core conftest.err conftest.$ac_objext \ 14590 conftest$ac_exeext conftest.$ac_ext 14591fi 14592 14593 14594 CFLAGS="$xorg_testset_save_CFLAGS" 14595 14596 eval supported=\$$cacheid 14597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14598$as_echo "$supported" >&6; } 14599 if test "$supported" = "yes" ; then 14600 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14601 found="yes" 14602 fi 14603 fi 14604 14605 14606 14607 14608 14609 14610 14611 14612 14613 14614 14615 14616 14617 14618 14619xorg_testset_save_CFLAGS="$CFLAGS" 14620 14621if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14622 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14624$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14625if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14626 $as_echo_n "(cached) " >&6 14627else 14628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14629/* end confdefs.h. */ 14630int i; 14631_ACEOF 14632if ac_fn_c_try_compile "$LINENO"; then : 14633 xorg_cv_cc_flag_unknown_warning_option=yes 14634else 14635 xorg_cv_cc_flag_unknown_warning_option=no 14636fi 14637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14638fi 14639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14640$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14641 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14642 CFLAGS="$xorg_testset_save_CFLAGS" 14643fi 14644 14645if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14646 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14647 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14648 fi 14649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14651$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14652if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14653 $as_echo_n "(cached) " >&6 14654else 14655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14656/* end confdefs.h. */ 14657int i; 14658_ACEOF 14659if ac_fn_c_try_compile "$LINENO"; then : 14660 xorg_cv_cc_flag_unused_command_line_argument=yes 14661else 14662 xorg_cv_cc_flag_unused_command_line_argument=no 14663fi 14664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14665fi 14666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14667$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14668 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14669 CFLAGS="$xorg_testset_save_CFLAGS" 14670fi 14671 14672found="no" 14673 14674 if test $found = "no" ; then 14675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14676 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14677 fi 14678 14679 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14681 fi 14682 14683 CFLAGS="$CFLAGS -Werror=nonnull" 14684 14685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 14686$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 14687 cacheid=xorg_cv_cc_flag__Werror_nonnull 14688 if eval \${$cacheid+:} false; then : 14689 $as_echo_n "(cached) " >&6 14690else 14691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14692/* end confdefs.h. */ 14693int i; 14694int 14695main () 14696{ 14697 14698 ; 14699 return 0; 14700} 14701_ACEOF 14702if ac_fn_c_try_link "$LINENO"; then : 14703 eval $cacheid=yes 14704else 14705 eval $cacheid=no 14706fi 14707rm -f core conftest.err conftest.$ac_objext \ 14708 conftest$ac_exeext conftest.$ac_ext 14709fi 14710 14711 14712 CFLAGS="$xorg_testset_save_CFLAGS" 14713 14714 eval supported=\$$cacheid 14715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14716$as_echo "$supported" >&6; } 14717 if test "$supported" = "yes" ; then 14718 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14719 found="yes" 14720 fi 14721 fi 14722 14723 14724 14725 14726 14727 14728 14729 14730 14731 14732 14733 14734 14735 14736 14737xorg_testset_save_CFLAGS="$CFLAGS" 14738 14739if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14742$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14743if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14744 $as_echo_n "(cached) " >&6 14745else 14746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14747/* end confdefs.h. */ 14748int i; 14749_ACEOF 14750if ac_fn_c_try_compile "$LINENO"; then : 14751 xorg_cv_cc_flag_unknown_warning_option=yes 14752else 14753 xorg_cv_cc_flag_unknown_warning_option=no 14754fi 14755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14756fi 14757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14758$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14759 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14760 CFLAGS="$xorg_testset_save_CFLAGS" 14761fi 14762 14763if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14765 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14766 fi 14767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14769$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14770if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14771 $as_echo_n "(cached) " >&6 14772else 14773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14774/* end confdefs.h. */ 14775int i; 14776_ACEOF 14777if ac_fn_c_try_compile "$LINENO"; then : 14778 xorg_cv_cc_flag_unused_command_line_argument=yes 14779else 14780 xorg_cv_cc_flag_unused_command_line_argument=no 14781fi 14782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14783fi 14784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14785$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14786 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14787 CFLAGS="$xorg_testset_save_CFLAGS" 14788fi 14789 14790found="no" 14791 14792 if test $found = "no" ; then 14793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14794 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14795 fi 14796 14797 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14799 fi 14800 14801 CFLAGS="$CFLAGS -Werror=init-self" 14802 14803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 14804$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 14805 cacheid=xorg_cv_cc_flag__Werror_init_self 14806 if eval \${$cacheid+:} false; then : 14807 $as_echo_n "(cached) " >&6 14808else 14809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14810/* end confdefs.h. */ 14811int i; 14812int 14813main () 14814{ 14815 14816 ; 14817 return 0; 14818} 14819_ACEOF 14820if ac_fn_c_try_link "$LINENO"; then : 14821 eval $cacheid=yes 14822else 14823 eval $cacheid=no 14824fi 14825rm -f core conftest.err conftest.$ac_objext \ 14826 conftest$ac_exeext conftest.$ac_ext 14827fi 14828 14829 14830 CFLAGS="$xorg_testset_save_CFLAGS" 14831 14832 eval supported=\$$cacheid 14833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14834$as_echo "$supported" >&6; } 14835 if test "$supported" = "yes" ; then 14836 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 14837 found="yes" 14838 fi 14839 fi 14840 14841 14842 14843 14844 14845 14846 14847 14848 14849 14850 14851 14852 14853 14854 14855xorg_testset_save_CFLAGS="$CFLAGS" 14856 14857if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14860$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14861if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14862 $as_echo_n "(cached) " >&6 14863else 14864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14865/* end confdefs.h. */ 14866int i; 14867_ACEOF 14868if ac_fn_c_try_compile "$LINENO"; then : 14869 xorg_cv_cc_flag_unknown_warning_option=yes 14870else 14871 xorg_cv_cc_flag_unknown_warning_option=no 14872fi 14873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14874fi 14875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14876$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14877 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14878 CFLAGS="$xorg_testset_save_CFLAGS" 14879fi 14880 14881if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14882 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14883 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14884 fi 14885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14887$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14888if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14889 $as_echo_n "(cached) " >&6 14890else 14891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14892/* end confdefs.h. */ 14893int i; 14894_ACEOF 14895if ac_fn_c_try_compile "$LINENO"; then : 14896 xorg_cv_cc_flag_unused_command_line_argument=yes 14897else 14898 xorg_cv_cc_flag_unused_command_line_argument=no 14899fi 14900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14901fi 14902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14903$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14904 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14905 CFLAGS="$xorg_testset_save_CFLAGS" 14906fi 14907 14908found="no" 14909 14910 if test $found = "no" ; then 14911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14912 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14913 fi 14914 14915 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14917 fi 14918 14919 CFLAGS="$CFLAGS -Werror=main" 14920 14921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 14922$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 14923 cacheid=xorg_cv_cc_flag__Werror_main 14924 if eval \${$cacheid+:} false; then : 14925 $as_echo_n "(cached) " >&6 14926else 14927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14928/* end confdefs.h. */ 14929int i; 14930int 14931main () 14932{ 14933 14934 ; 14935 return 0; 14936} 14937_ACEOF 14938if ac_fn_c_try_link "$LINENO"; then : 14939 eval $cacheid=yes 14940else 14941 eval $cacheid=no 14942fi 14943rm -f core conftest.err conftest.$ac_objext \ 14944 conftest$ac_exeext conftest.$ac_ext 14945fi 14946 14947 14948 CFLAGS="$xorg_testset_save_CFLAGS" 14949 14950 eval supported=\$$cacheid 14951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14952$as_echo "$supported" >&6; } 14953 if test "$supported" = "yes" ; then 14954 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 14955 found="yes" 14956 fi 14957 fi 14958 14959 14960 14961 14962 14963 14964 14965 14966 14967 14968 14969 14970 14971 14972 14973xorg_testset_save_CFLAGS="$CFLAGS" 14974 14975if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14976 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14978$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14979if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14980 $as_echo_n "(cached) " >&6 14981else 14982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14983/* end confdefs.h. */ 14984int i; 14985_ACEOF 14986if ac_fn_c_try_compile "$LINENO"; then : 14987 xorg_cv_cc_flag_unknown_warning_option=yes 14988else 14989 xorg_cv_cc_flag_unknown_warning_option=no 14990fi 14991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14992fi 14993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14994$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14995 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14996 CFLAGS="$xorg_testset_save_CFLAGS" 14997fi 14998 14999if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15002 fi 15003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15005$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15006if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15007 $as_echo_n "(cached) " >&6 15008else 15009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15010/* end confdefs.h. */ 15011int i; 15012_ACEOF 15013if ac_fn_c_try_compile "$LINENO"; then : 15014 xorg_cv_cc_flag_unused_command_line_argument=yes 15015else 15016 xorg_cv_cc_flag_unused_command_line_argument=no 15017fi 15018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15019fi 15020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15021$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15022 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15023 CFLAGS="$xorg_testset_save_CFLAGS" 15024fi 15025 15026found="no" 15027 15028 if test $found = "no" ; then 15029 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15030 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15031 fi 15032 15033 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15035 fi 15036 15037 CFLAGS="$CFLAGS -Werror=missing-braces" 15038 15039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 15040$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 15041 cacheid=xorg_cv_cc_flag__Werror_missing_braces 15042 if eval \${$cacheid+:} false; then : 15043 $as_echo_n "(cached) " >&6 15044else 15045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15046/* end confdefs.h. */ 15047int i; 15048int 15049main () 15050{ 15051 15052 ; 15053 return 0; 15054} 15055_ACEOF 15056if ac_fn_c_try_link "$LINENO"; then : 15057 eval $cacheid=yes 15058else 15059 eval $cacheid=no 15060fi 15061rm -f core conftest.err conftest.$ac_objext \ 15062 conftest$ac_exeext conftest.$ac_ext 15063fi 15064 15065 15066 CFLAGS="$xorg_testset_save_CFLAGS" 15067 15068 eval supported=\$$cacheid 15069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15070$as_echo "$supported" >&6; } 15071 if test "$supported" = "yes" ; then 15072 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 15073 found="yes" 15074 fi 15075 fi 15076 15077 15078 15079 15080 15081 15082 15083 15084 15085 15086 15087 15088 15089 15090 15091xorg_testset_save_CFLAGS="$CFLAGS" 15092 15093if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15094 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15096$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15097if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15098 $as_echo_n "(cached) " >&6 15099else 15100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15101/* end confdefs.h. */ 15102int i; 15103_ACEOF 15104if ac_fn_c_try_compile "$LINENO"; then : 15105 xorg_cv_cc_flag_unknown_warning_option=yes 15106else 15107 xorg_cv_cc_flag_unknown_warning_option=no 15108fi 15109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15110fi 15111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15112$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15113 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15114 CFLAGS="$xorg_testset_save_CFLAGS" 15115fi 15116 15117if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15119 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15120 fi 15121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15123$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15124if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15125 $as_echo_n "(cached) " >&6 15126else 15127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15128/* end confdefs.h. */ 15129int i; 15130_ACEOF 15131if ac_fn_c_try_compile "$LINENO"; then : 15132 xorg_cv_cc_flag_unused_command_line_argument=yes 15133else 15134 xorg_cv_cc_flag_unused_command_line_argument=no 15135fi 15136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15137fi 15138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15139$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15140 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15141 CFLAGS="$xorg_testset_save_CFLAGS" 15142fi 15143 15144found="no" 15145 15146 if test $found = "no" ; then 15147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15148 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15149 fi 15150 15151 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15153 fi 15154 15155 CFLAGS="$CFLAGS -Werror=sequence-point" 15156 15157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 15158$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 15159 cacheid=xorg_cv_cc_flag__Werror_sequence_point 15160 if eval \${$cacheid+:} false; then : 15161 $as_echo_n "(cached) " >&6 15162else 15163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15164/* end confdefs.h. */ 15165int i; 15166int 15167main () 15168{ 15169 15170 ; 15171 return 0; 15172} 15173_ACEOF 15174if ac_fn_c_try_link "$LINENO"; then : 15175 eval $cacheid=yes 15176else 15177 eval $cacheid=no 15178fi 15179rm -f core conftest.err conftest.$ac_objext \ 15180 conftest$ac_exeext conftest.$ac_ext 15181fi 15182 15183 15184 CFLAGS="$xorg_testset_save_CFLAGS" 15185 15186 eval supported=\$$cacheid 15187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15188$as_echo "$supported" >&6; } 15189 if test "$supported" = "yes" ; then 15190 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 15191 found="yes" 15192 fi 15193 fi 15194 15195 15196 15197 15198 15199 15200 15201 15202 15203 15204 15205 15206 15207 15208 15209xorg_testset_save_CFLAGS="$CFLAGS" 15210 15211if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15212 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15214$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15215if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15216 $as_echo_n "(cached) " >&6 15217else 15218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15219/* end confdefs.h. */ 15220int i; 15221_ACEOF 15222if ac_fn_c_try_compile "$LINENO"; then : 15223 xorg_cv_cc_flag_unknown_warning_option=yes 15224else 15225 xorg_cv_cc_flag_unknown_warning_option=no 15226fi 15227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15228fi 15229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15230$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15231 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15232 CFLAGS="$xorg_testset_save_CFLAGS" 15233fi 15234 15235if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15238 fi 15239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15241$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15242if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15243 $as_echo_n "(cached) " >&6 15244else 15245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15246/* end confdefs.h. */ 15247int i; 15248_ACEOF 15249if ac_fn_c_try_compile "$LINENO"; then : 15250 xorg_cv_cc_flag_unused_command_line_argument=yes 15251else 15252 xorg_cv_cc_flag_unused_command_line_argument=no 15253fi 15254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15255fi 15256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15257$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15258 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15259 CFLAGS="$xorg_testset_save_CFLAGS" 15260fi 15261 15262found="no" 15263 15264 if test $found = "no" ; then 15265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15266 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15267 fi 15268 15269 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15271 fi 15272 15273 CFLAGS="$CFLAGS -Werror=return-type" 15274 15275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 15276$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 15277 cacheid=xorg_cv_cc_flag__Werror_return_type 15278 if eval \${$cacheid+:} false; then : 15279 $as_echo_n "(cached) " >&6 15280else 15281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15282/* end confdefs.h. */ 15283int i; 15284int 15285main () 15286{ 15287 15288 ; 15289 return 0; 15290} 15291_ACEOF 15292if ac_fn_c_try_link "$LINENO"; then : 15293 eval $cacheid=yes 15294else 15295 eval $cacheid=no 15296fi 15297rm -f core conftest.err conftest.$ac_objext \ 15298 conftest$ac_exeext conftest.$ac_ext 15299fi 15300 15301 15302 CFLAGS="$xorg_testset_save_CFLAGS" 15303 15304 eval supported=\$$cacheid 15305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15306$as_echo "$supported" >&6; } 15307 if test "$supported" = "yes" ; then 15308 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 15309 found="yes" 15310 fi 15311 fi 15312 15313 if test $found = "no" ; then 15314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15315 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15316 fi 15317 15318 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15320 fi 15321 15322 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15323 15324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 15325$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 15326 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 15327 if eval \${$cacheid+:} false; then : 15328 $as_echo_n "(cached) " >&6 15329else 15330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15331/* end confdefs.h. */ 15332int i; 15333int 15334main () 15335{ 15336 15337 ; 15338 return 0; 15339} 15340_ACEOF 15341if ac_fn_c_try_link "$LINENO"; then : 15342 eval $cacheid=yes 15343else 15344 eval $cacheid=no 15345fi 15346rm -f core conftest.err conftest.$ac_objext \ 15347 conftest$ac_exeext conftest.$ac_ext 15348fi 15349 15350 15351 CFLAGS="$xorg_testset_save_CFLAGS" 15352 15353 eval supported=\$$cacheid 15354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15355$as_echo "$supported" >&6; } 15356 if test "$supported" = "yes" ; then 15357 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15358 found="yes" 15359 fi 15360 fi 15361 15362 15363 15364 15365 15366 15367 15368 15369 15370 15371 15372 15373 15374 15375 15376xorg_testset_save_CFLAGS="$CFLAGS" 15377 15378if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15379 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15381$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15382if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15383 $as_echo_n "(cached) " >&6 15384else 15385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15386/* end confdefs.h. */ 15387int i; 15388_ACEOF 15389if ac_fn_c_try_compile "$LINENO"; then : 15390 xorg_cv_cc_flag_unknown_warning_option=yes 15391else 15392 xorg_cv_cc_flag_unknown_warning_option=no 15393fi 15394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15395fi 15396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15397$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15398 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15399 CFLAGS="$xorg_testset_save_CFLAGS" 15400fi 15401 15402if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15403 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15404 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15405 fi 15406 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15408$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15409if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15410 $as_echo_n "(cached) " >&6 15411else 15412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15413/* end confdefs.h. */ 15414int i; 15415_ACEOF 15416if ac_fn_c_try_compile "$LINENO"; then : 15417 xorg_cv_cc_flag_unused_command_line_argument=yes 15418else 15419 xorg_cv_cc_flag_unused_command_line_argument=no 15420fi 15421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15422fi 15423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15424$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15425 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15426 CFLAGS="$xorg_testset_save_CFLAGS" 15427fi 15428 15429found="no" 15430 15431 if test $found = "no" ; then 15432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15433 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15434 fi 15435 15436 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15438 fi 15439 15440 CFLAGS="$CFLAGS -Werror=trigraphs" 15441 15442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 15443$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 15444 cacheid=xorg_cv_cc_flag__Werror_trigraphs 15445 if eval \${$cacheid+:} false; then : 15446 $as_echo_n "(cached) " >&6 15447else 15448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15449/* end confdefs.h. */ 15450int i; 15451int 15452main () 15453{ 15454 15455 ; 15456 return 0; 15457} 15458_ACEOF 15459if ac_fn_c_try_link "$LINENO"; then : 15460 eval $cacheid=yes 15461else 15462 eval $cacheid=no 15463fi 15464rm -f core conftest.err conftest.$ac_objext \ 15465 conftest$ac_exeext conftest.$ac_ext 15466fi 15467 15468 15469 CFLAGS="$xorg_testset_save_CFLAGS" 15470 15471 eval supported=\$$cacheid 15472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15473$as_echo "$supported" >&6; } 15474 if test "$supported" = "yes" ; then 15475 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 15476 found="yes" 15477 fi 15478 fi 15479 15480 15481 15482 15483 15484 15485 15486 15487 15488 15489 15490 15491 15492 15493 15494xorg_testset_save_CFLAGS="$CFLAGS" 15495 15496if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15497 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15499$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15500if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15501 $as_echo_n "(cached) " >&6 15502else 15503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15504/* end confdefs.h. */ 15505int i; 15506_ACEOF 15507if ac_fn_c_try_compile "$LINENO"; then : 15508 xorg_cv_cc_flag_unknown_warning_option=yes 15509else 15510 xorg_cv_cc_flag_unknown_warning_option=no 15511fi 15512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15513fi 15514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15515$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15516 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15517 CFLAGS="$xorg_testset_save_CFLAGS" 15518fi 15519 15520if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15521 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15522 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15523 fi 15524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15526$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15527if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15528 $as_echo_n "(cached) " >&6 15529else 15530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15531/* end confdefs.h. */ 15532int i; 15533_ACEOF 15534if ac_fn_c_try_compile "$LINENO"; then : 15535 xorg_cv_cc_flag_unused_command_line_argument=yes 15536else 15537 xorg_cv_cc_flag_unused_command_line_argument=no 15538fi 15539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15540fi 15541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15542$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15543 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15544 CFLAGS="$xorg_testset_save_CFLAGS" 15545fi 15546 15547found="no" 15548 15549 if test $found = "no" ; then 15550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15551 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15552 fi 15553 15554 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15556 fi 15557 15558 CFLAGS="$CFLAGS -Werror=array-bounds" 15559 15560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 15561$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 15562 cacheid=xorg_cv_cc_flag__Werror_array_bounds 15563 if eval \${$cacheid+:} false; then : 15564 $as_echo_n "(cached) " >&6 15565else 15566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15567/* end confdefs.h. */ 15568int i; 15569int 15570main () 15571{ 15572 15573 ; 15574 return 0; 15575} 15576_ACEOF 15577if ac_fn_c_try_link "$LINENO"; then : 15578 eval $cacheid=yes 15579else 15580 eval $cacheid=no 15581fi 15582rm -f core conftest.err conftest.$ac_objext \ 15583 conftest$ac_exeext conftest.$ac_ext 15584fi 15585 15586 15587 CFLAGS="$xorg_testset_save_CFLAGS" 15588 15589 eval supported=\$$cacheid 15590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15591$as_echo "$supported" >&6; } 15592 if test "$supported" = "yes" ; then 15593 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 15594 found="yes" 15595 fi 15596 fi 15597 15598 15599 15600 15601 15602 15603 15604 15605 15606 15607 15608 15609 15610 15611 15612xorg_testset_save_CFLAGS="$CFLAGS" 15613 15614if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15615 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15617$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15618if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15619 $as_echo_n "(cached) " >&6 15620else 15621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15622/* end confdefs.h. */ 15623int i; 15624_ACEOF 15625if ac_fn_c_try_compile "$LINENO"; then : 15626 xorg_cv_cc_flag_unknown_warning_option=yes 15627else 15628 xorg_cv_cc_flag_unknown_warning_option=no 15629fi 15630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15631fi 15632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15633$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15634 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15635 CFLAGS="$xorg_testset_save_CFLAGS" 15636fi 15637 15638if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15640 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15641 fi 15642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15644$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15645if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15646 $as_echo_n "(cached) " >&6 15647else 15648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15649/* end confdefs.h. */ 15650int i; 15651_ACEOF 15652if ac_fn_c_try_compile "$LINENO"; then : 15653 xorg_cv_cc_flag_unused_command_line_argument=yes 15654else 15655 xorg_cv_cc_flag_unused_command_line_argument=no 15656fi 15657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15658fi 15659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15660$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15661 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15662 CFLAGS="$xorg_testset_save_CFLAGS" 15663fi 15664 15665found="no" 15666 15667 if test $found = "no" ; then 15668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15669 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15670 fi 15671 15672 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15673 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15674 fi 15675 15676 CFLAGS="$CFLAGS -Werror=write-strings" 15677 15678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 15679$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 15680 cacheid=xorg_cv_cc_flag__Werror_write_strings 15681 if eval \${$cacheid+:} false; then : 15682 $as_echo_n "(cached) " >&6 15683else 15684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15685/* end confdefs.h. */ 15686int i; 15687int 15688main () 15689{ 15690 15691 ; 15692 return 0; 15693} 15694_ACEOF 15695if ac_fn_c_try_link "$LINENO"; then : 15696 eval $cacheid=yes 15697else 15698 eval $cacheid=no 15699fi 15700rm -f core conftest.err conftest.$ac_objext \ 15701 conftest$ac_exeext conftest.$ac_ext 15702fi 15703 15704 15705 CFLAGS="$xorg_testset_save_CFLAGS" 15706 15707 eval supported=\$$cacheid 15708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15709$as_echo "$supported" >&6; } 15710 if test "$supported" = "yes" ; then 15711 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 15712 found="yes" 15713 fi 15714 fi 15715 15716 15717 15718 15719 15720 15721 15722 15723 15724 15725 15726 15727 15728 15729 15730xorg_testset_save_CFLAGS="$CFLAGS" 15731 15732if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15735$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15736if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15737 $as_echo_n "(cached) " >&6 15738else 15739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15740/* end confdefs.h. */ 15741int i; 15742_ACEOF 15743if ac_fn_c_try_compile "$LINENO"; then : 15744 xorg_cv_cc_flag_unknown_warning_option=yes 15745else 15746 xorg_cv_cc_flag_unknown_warning_option=no 15747fi 15748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15749fi 15750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15751$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15752 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15753 CFLAGS="$xorg_testset_save_CFLAGS" 15754fi 15755 15756if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15758 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15759 fi 15760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15762$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15763if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15764 $as_echo_n "(cached) " >&6 15765else 15766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15767/* end confdefs.h. */ 15768int i; 15769_ACEOF 15770if ac_fn_c_try_compile "$LINENO"; then : 15771 xorg_cv_cc_flag_unused_command_line_argument=yes 15772else 15773 xorg_cv_cc_flag_unused_command_line_argument=no 15774fi 15775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15776fi 15777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15778$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15779 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15780 CFLAGS="$xorg_testset_save_CFLAGS" 15781fi 15782 15783found="no" 15784 15785 if test $found = "no" ; then 15786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15788 fi 15789 15790 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15791 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15792 fi 15793 15794 CFLAGS="$CFLAGS -Werror=address" 15795 15796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 15797$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 15798 cacheid=xorg_cv_cc_flag__Werror_address 15799 if eval \${$cacheid+:} false; then : 15800 $as_echo_n "(cached) " >&6 15801else 15802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15803/* end confdefs.h. */ 15804int i; 15805int 15806main () 15807{ 15808 15809 ; 15810 return 0; 15811} 15812_ACEOF 15813if ac_fn_c_try_link "$LINENO"; then : 15814 eval $cacheid=yes 15815else 15816 eval $cacheid=no 15817fi 15818rm -f core conftest.err conftest.$ac_objext \ 15819 conftest$ac_exeext conftest.$ac_ext 15820fi 15821 15822 15823 CFLAGS="$xorg_testset_save_CFLAGS" 15824 15825 eval supported=\$$cacheid 15826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15827$as_echo "$supported" >&6; } 15828 if test "$supported" = "yes" ; then 15829 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 15830 found="yes" 15831 fi 15832 fi 15833 15834 15835 15836 15837 15838 15839 15840 15841 15842 15843 15844 15845 15846 15847 15848xorg_testset_save_CFLAGS="$CFLAGS" 15849 15850if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15851 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15853$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15854if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15855 $as_echo_n "(cached) " >&6 15856else 15857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15858/* end confdefs.h. */ 15859int i; 15860_ACEOF 15861if ac_fn_c_try_compile "$LINENO"; then : 15862 xorg_cv_cc_flag_unknown_warning_option=yes 15863else 15864 xorg_cv_cc_flag_unknown_warning_option=no 15865fi 15866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15867fi 15868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15869$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15870 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15871 CFLAGS="$xorg_testset_save_CFLAGS" 15872fi 15873 15874if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15877 fi 15878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15880$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15881if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15882 $as_echo_n "(cached) " >&6 15883else 15884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15885/* end confdefs.h. */ 15886int i; 15887_ACEOF 15888if ac_fn_c_try_compile "$LINENO"; then : 15889 xorg_cv_cc_flag_unused_command_line_argument=yes 15890else 15891 xorg_cv_cc_flag_unused_command_line_argument=no 15892fi 15893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15894fi 15895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15896$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15897 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15898 CFLAGS="$xorg_testset_save_CFLAGS" 15899fi 15900 15901found="no" 15902 15903 if test $found = "no" ; then 15904 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15905 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15906 fi 15907 15908 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15909 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15910 fi 15911 15912 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 15913 15914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 15915$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 15916 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 15917 if eval \${$cacheid+:} false; then : 15918 $as_echo_n "(cached) " >&6 15919else 15920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15921/* end confdefs.h. */ 15922int i; 15923int 15924main () 15925{ 15926 15927 ; 15928 return 0; 15929} 15930_ACEOF 15931if ac_fn_c_try_link "$LINENO"; then : 15932 eval $cacheid=yes 15933else 15934 eval $cacheid=no 15935fi 15936rm -f core conftest.err conftest.$ac_objext \ 15937 conftest$ac_exeext conftest.$ac_ext 15938fi 15939 15940 15941 CFLAGS="$xorg_testset_save_CFLAGS" 15942 15943 eval supported=\$$cacheid 15944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15945$as_echo "$supported" >&6; } 15946 if test "$supported" = "yes" ; then 15947 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 15948 found="yes" 15949 fi 15950 fi 15951 15952 if test $found = "no" ; then 15953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15955 fi 15956 15957 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15959 fi 15960 15961 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15962 15963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 15964$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 15965 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 15966 if eval \${$cacheid+:} false; then : 15967 $as_echo_n "(cached) " >&6 15968else 15969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15970/* end confdefs.h. */ 15971int i; 15972int 15973main () 15974{ 15975 15976 ; 15977 return 0; 15978} 15979_ACEOF 15980if ac_fn_c_try_link "$LINENO"; then : 15981 eval $cacheid=yes 15982else 15983 eval $cacheid=no 15984fi 15985rm -f core conftest.err conftest.$ac_objext \ 15986 conftest$ac_exeext conftest.$ac_ext 15987fi 15988 15989 15990 CFLAGS="$xorg_testset_save_CFLAGS" 15991 15992 eval supported=\$$cacheid 15993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15994$as_echo "$supported" >&6; } 15995 if test "$supported" = "yes" ; then 15996 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15997 found="yes" 15998 fi 15999 fi 16000 16001 16002 16003 16004 16005 16006 16007 16008 16009 16010 16011 16012 16013 16014 16015xorg_testset_save_CFLAGS="$CFLAGS" 16016 16017if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16018 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16020$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16021if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16022 $as_echo_n "(cached) " >&6 16023else 16024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16025/* end confdefs.h. */ 16026int i; 16027_ACEOF 16028if ac_fn_c_try_compile "$LINENO"; then : 16029 xorg_cv_cc_flag_unknown_warning_option=yes 16030else 16031 xorg_cv_cc_flag_unknown_warning_option=no 16032fi 16033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16034fi 16035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16036$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16037 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16038 CFLAGS="$xorg_testset_save_CFLAGS" 16039fi 16040 16041if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16044 fi 16045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16047$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16048if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16049 $as_echo_n "(cached) " >&6 16050else 16051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16052/* end confdefs.h. */ 16053int i; 16054_ACEOF 16055if ac_fn_c_try_compile "$LINENO"; then : 16056 xorg_cv_cc_flag_unused_command_line_argument=yes 16057else 16058 xorg_cv_cc_flag_unused_command_line_argument=no 16059fi 16060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16061fi 16062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16063$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16064 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16065 CFLAGS="$xorg_testset_save_CFLAGS" 16066fi 16067 16068found="no" 16069 16070 if test $found = "no" ; then 16071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16073 fi 16074 16075 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16077 fi 16078 16079 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 16080 16081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 16082$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 16083 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 16084 if eval \${$cacheid+:} false; then : 16085 $as_echo_n "(cached) " >&6 16086else 16087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16088/* end confdefs.h. */ 16089int i; 16090int 16091main () 16092{ 16093 16094 ; 16095 return 0; 16096} 16097_ACEOF 16098if ac_fn_c_try_link "$LINENO"; then : 16099 eval $cacheid=yes 16100else 16101 eval $cacheid=no 16102fi 16103rm -f core conftest.err conftest.$ac_objext \ 16104 conftest$ac_exeext conftest.$ac_ext 16105fi 16106 16107 16108 CFLAGS="$xorg_testset_save_CFLAGS" 16109 16110 eval supported=\$$cacheid 16111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16112$as_echo "$supported" >&6; } 16113 if test "$supported" = "yes" ; then 16114 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 16115 found="yes" 16116 fi 16117 fi 16118 16119 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 16120else 16121{ $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 16122$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;} 16123 16124 16125 16126 16127 16128 16129 16130 16131 16132 16133 16134 16135 16136xorg_testset_save_CFLAGS="$CFLAGS" 16137 16138if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16141$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16142if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16143 $as_echo_n "(cached) " >&6 16144else 16145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16146/* end confdefs.h. */ 16147int i; 16148_ACEOF 16149if ac_fn_c_try_compile "$LINENO"; then : 16150 xorg_cv_cc_flag_unknown_warning_option=yes 16151else 16152 xorg_cv_cc_flag_unknown_warning_option=no 16153fi 16154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16155fi 16156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16157$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16158 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16159 CFLAGS="$xorg_testset_save_CFLAGS" 16160fi 16161 16162if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16165 fi 16166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16168$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16169if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16170 $as_echo_n "(cached) " >&6 16171else 16172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16173/* end confdefs.h. */ 16174int i; 16175_ACEOF 16176if ac_fn_c_try_compile "$LINENO"; then : 16177 xorg_cv_cc_flag_unused_command_line_argument=yes 16178else 16179 xorg_cv_cc_flag_unused_command_line_argument=no 16180fi 16181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16182fi 16183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16184$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16185 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16186 CFLAGS="$xorg_testset_save_CFLAGS" 16187fi 16188 16189found="no" 16190 16191 if test $found = "no" ; then 16192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16193 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16194 fi 16195 16196 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16198 fi 16199 16200 CFLAGS="$CFLAGS -Wimplicit" 16201 16202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 16203$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 16204 cacheid=xorg_cv_cc_flag__Wimplicit 16205 if eval \${$cacheid+:} false; then : 16206 $as_echo_n "(cached) " >&6 16207else 16208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16209/* end confdefs.h. */ 16210int i; 16211int 16212main () 16213{ 16214 16215 ; 16216 return 0; 16217} 16218_ACEOF 16219if ac_fn_c_try_link "$LINENO"; then : 16220 eval $cacheid=yes 16221else 16222 eval $cacheid=no 16223fi 16224rm -f core conftest.err conftest.$ac_objext \ 16225 conftest$ac_exeext conftest.$ac_ext 16226fi 16227 16228 16229 CFLAGS="$xorg_testset_save_CFLAGS" 16230 16231 eval supported=\$$cacheid 16232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16233$as_echo "$supported" >&6; } 16234 if test "$supported" = "yes" ; then 16235 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 16236 found="yes" 16237 fi 16238 fi 16239 16240 16241 16242 16243 16244 16245 16246 16247 16248 16249 16250 16251 16252 16253 16254xorg_testset_save_CFLAGS="$CFLAGS" 16255 16256if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16257 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16259$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16260if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16261 $as_echo_n "(cached) " >&6 16262else 16263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16264/* end confdefs.h. */ 16265int i; 16266_ACEOF 16267if ac_fn_c_try_compile "$LINENO"; then : 16268 xorg_cv_cc_flag_unknown_warning_option=yes 16269else 16270 xorg_cv_cc_flag_unknown_warning_option=no 16271fi 16272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16273fi 16274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16275$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16276 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16277 CFLAGS="$xorg_testset_save_CFLAGS" 16278fi 16279 16280if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16281 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16282 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16283 fi 16284 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16286$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16287if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16288 $as_echo_n "(cached) " >&6 16289else 16290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16291/* end confdefs.h. */ 16292int i; 16293_ACEOF 16294if ac_fn_c_try_compile "$LINENO"; then : 16295 xorg_cv_cc_flag_unused_command_line_argument=yes 16296else 16297 xorg_cv_cc_flag_unused_command_line_argument=no 16298fi 16299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16300fi 16301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16302$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16303 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16304 CFLAGS="$xorg_testset_save_CFLAGS" 16305fi 16306 16307found="no" 16308 16309 if test $found = "no" ; then 16310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16311 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16312 fi 16313 16314 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16316 fi 16317 16318 CFLAGS="$CFLAGS -Wnonnull" 16319 16320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 16321$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 16322 cacheid=xorg_cv_cc_flag__Wnonnull 16323 if eval \${$cacheid+:} false; then : 16324 $as_echo_n "(cached) " >&6 16325else 16326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16327/* end confdefs.h. */ 16328int i; 16329int 16330main () 16331{ 16332 16333 ; 16334 return 0; 16335} 16336_ACEOF 16337if ac_fn_c_try_link "$LINENO"; then : 16338 eval $cacheid=yes 16339else 16340 eval $cacheid=no 16341fi 16342rm -f core conftest.err conftest.$ac_objext \ 16343 conftest$ac_exeext conftest.$ac_ext 16344fi 16345 16346 16347 CFLAGS="$xorg_testset_save_CFLAGS" 16348 16349 eval supported=\$$cacheid 16350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16351$as_echo "$supported" >&6; } 16352 if test "$supported" = "yes" ; then 16353 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 16354 found="yes" 16355 fi 16356 fi 16357 16358 16359 16360 16361 16362 16363 16364 16365 16366 16367 16368 16369 16370 16371 16372xorg_testset_save_CFLAGS="$CFLAGS" 16373 16374if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16375 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16377$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16378if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16379 $as_echo_n "(cached) " >&6 16380else 16381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16382/* end confdefs.h. */ 16383int i; 16384_ACEOF 16385if ac_fn_c_try_compile "$LINENO"; then : 16386 xorg_cv_cc_flag_unknown_warning_option=yes 16387else 16388 xorg_cv_cc_flag_unknown_warning_option=no 16389fi 16390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16391fi 16392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16393$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16394 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16395 CFLAGS="$xorg_testset_save_CFLAGS" 16396fi 16397 16398if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16400 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16401 fi 16402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16404$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16405if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16406 $as_echo_n "(cached) " >&6 16407else 16408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16409/* end confdefs.h. */ 16410int i; 16411_ACEOF 16412if ac_fn_c_try_compile "$LINENO"; then : 16413 xorg_cv_cc_flag_unused_command_line_argument=yes 16414else 16415 xorg_cv_cc_flag_unused_command_line_argument=no 16416fi 16417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16418fi 16419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16420$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16421 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16422 CFLAGS="$xorg_testset_save_CFLAGS" 16423fi 16424 16425found="no" 16426 16427 if test $found = "no" ; then 16428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16429 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16430 fi 16431 16432 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16434 fi 16435 16436 CFLAGS="$CFLAGS -Winit-self" 16437 16438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 16439$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 16440 cacheid=xorg_cv_cc_flag__Winit_self 16441 if eval \${$cacheid+:} false; then : 16442 $as_echo_n "(cached) " >&6 16443else 16444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16445/* end confdefs.h. */ 16446int i; 16447int 16448main () 16449{ 16450 16451 ; 16452 return 0; 16453} 16454_ACEOF 16455if ac_fn_c_try_link "$LINENO"; then : 16456 eval $cacheid=yes 16457else 16458 eval $cacheid=no 16459fi 16460rm -f core conftest.err conftest.$ac_objext \ 16461 conftest$ac_exeext conftest.$ac_ext 16462fi 16463 16464 16465 CFLAGS="$xorg_testset_save_CFLAGS" 16466 16467 eval supported=\$$cacheid 16468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16469$as_echo "$supported" >&6; } 16470 if test "$supported" = "yes" ; then 16471 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 16472 found="yes" 16473 fi 16474 fi 16475 16476 16477 16478 16479 16480 16481 16482 16483 16484 16485 16486 16487 16488 16489 16490xorg_testset_save_CFLAGS="$CFLAGS" 16491 16492if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16495$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16496if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16497 $as_echo_n "(cached) " >&6 16498else 16499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16500/* end confdefs.h. */ 16501int i; 16502_ACEOF 16503if ac_fn_c_try_compile "$LINENO"; then : 16504 xorg_cv_cc_flag_unknown_warning_option=yes 16505else 16506 xorg_cv_cc_flag_unknown_warning_option=no 16507fi 16508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16509fi 16510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16511$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16512 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16513 CFLAGS="$xorg_testset_save_CFLAGS" 16514fi 16515 16516if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16518 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16519 fi 16520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16522$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16523if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16524 $as_echo_n "(cached) " >&6 16525else 16526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16527/* end confdefs.h. */ 16528int i; 16529_ACEOF 16530if ac_fn_c_try_compile "$LINENO"; then : 16531 xorg_cv_cc_flag_unused_command_line_argument=yes 16532else 16533 xorg_cv_cc_flag_unused_command_line_argument=no 16534fi 16535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16536fi 16537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16538$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16539 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16540 CFLAGS="$xorg_testset_save_CFLAGS" 16541fi 16542 16543found="no" 16544 16545 if test $found = "no" ; then 16546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16547 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16548 fi 16549 16550 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16552 fi 16553 16554 CFLAGS="$CFLAGS -Wmain" 16555 16556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 16557$as_echo_n "checking if $CC supports -Wmain... " >&6; } 16558 cacheid=xorg_cv_cc_flag__Wmain 16559 if eval \${$cacheid+:} false; then : 16560 $as_echo_n "(cached) " >&6 16561else 16562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16563/* end confdefs.h. */ 16564int i; 16565int 16566main () 16567{ 16568 16569 ; 16570 return 0; 16571} 16572_ACEOF 16573if ac_fn_c_try_link "$LINENO"; then : 16574 eval $cacheid=yes 16575else 16576 eval $cacheid=no 16577fi 16578rm -f core conftest.err conftest.$ac_objext \ 16579 conftest$ac_exeext conftest.$ac_ext 16580fi 16581 16582 16583 CFLAGS="$xorg_testset_save_CFLAGS" 16584 16585 eval supported=\$$cacheid 16586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16587$as_echo "$supported" >&6; } 16588 if test "$supported" = "yes" ; then 16589 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 16590 found="yes" 16591 fi 16592 fi 16593 16594 16595 16596 16597 16598 16599 16600 16601 16602 16603 16604 16605 16606 16607 16608xorg_testset_save_CFLAGS="$CFLAGS" 16609 16610if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16611 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16613$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16614if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16615 $as_echo_n "(cached) " >&6 16616else 16617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16618/* end confdefs.h. */ 16619int i; 16620_ACEOF 16621if ac_fn_c_try_compile "$LINENO"; then : 16622 xorg_cv_cc_flag_unknown_warning_option=yes 16623else 16624 xorg_cv_cc_flag_unknown_warning_option=no 16625fi 16626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16627fi 16628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16629$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16630 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16631 CFLAGS="$xorg_testset_save_CFLAGS" 16632fi 16633 16634if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16636 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16637 fi 16638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16640$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16641if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16642 $as_echo_n "(cached) " >&6 16643else 16644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16645/* end confdefs.h. */ 16646int i; 16647_ACEOF 16648if ac_fn_c_try_compile "$LINENO"; then : 16649 xorg_cv_cc_flag_unused_command_line_argument=yes 16650else 16651 xorg_cv_cc_flag_unused_command_line_argument=no 16652fi 16653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16654fi 16655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16656$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16657 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16658 CFLAGS="$xorg_testset_save_CFLAGS" 16659fi 16660 16661found="no" 16662 16663 if test $found = "no" ; then 16664 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16665 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16666 fi 16667 16668 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16670 fi 16671 16672 CFLAGS="$CFLAGS -Wmissing-braces" 16673 16674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 16675$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 16676 cacheid=xorg_cv_cc_flag__Wmissing_braces 16677 if eval \${$cacheid+:} false; then : 16678 $as_echo_n "(cached) " >&6 16679else 16680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16681/* end confdefs.h. */ 16682int i; 16683int 16684main () 16685{ 16686 16687 ; 16688 return 0; 16689} 16690_ACEOF 16691if ac_fn_c_try_link "$LINENO"; then : 16692 eval $cacheid=yes 16693else 16694 eval $cacheid=no 16695fi 16696rm -f core conftest.err conftest.$ac_objext \ 16697 conftest$ac_exeext conftest.$ac_ext 16698fi 16699 16700 16701 CFLAGS="$xorg_testset_save_CFLAGS" 16702 16703 eval supported=\$$cacheid 16704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16705$as_echo "$supported" >&6; } 16706 if test "$supported" = "yes" ; then 16707 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 16708 found="yes" 16709 fi 16710 fi 16711 16712 16713 16714 16715 16716 16717 16718 16719 16720 16721 16722 16723 16724 16725 16726xorg_testset_save_CFLAGS="$CFLAGS" 16727 16728if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16729 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16731$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16732if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16733 $as_echo_n "(cached) " >&6 16734else 16735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16736/* end confdefs.h. */ 16737int i; 16738_ACEOF 16739if ac_fn_c_try_compile "$LINENO"; then : 16740 xorg_cv_cc_flag_unknown_warning_option=yes 16741else 16742 xorg_cv_cc_flag_unknown_warning_option=no 16743fi 16744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16745fi 16746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16747$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16748 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16749 CFLAGS="$xorg_testset_save_CFLAGS" 16750fi 16751 16752if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16754 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16755 fi 16756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16758$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16759if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16760 $as_echo_n "(cached) " >&6 16761else 16762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16763/* end confdefs.h. */ 16764int i; 16765_ACEOF 16766if ac_fn_c_try_compile "$LINENO"; then : 16767 xorg_cv_cc_flag_unused_command_line_argument=yes 16768else 16769 xorg_cv_cc_flag_unused_command_line_argument=no 16770fi 16771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16772fi 16773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16774$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16775 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16776 CFLAGS="$xorg_testset_save_CFLAGS" 16777fi 16778 16779found="no" 16780 16781 if test $found = "no" ; then 16782 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16783 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16784 fi 16785 16786 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16788 fi 16789 16790 CFLAGS="$CFLAGS -Wsequence-point" 16791 16792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 16793$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 16794 cacheid=xorg_cv_cc_flag__Wsequence_point 16795 if eval \${$cacheid+:} false; then : 16796 $as_echo_n "(cached) " >&6 16797else 16798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16799/* end confdefs.h. */ 16800int i; 16801int 16802main () 16803{ 16804 16805 ; 16806 return 0; 16807} 16808_ACEOF 16809if ac_fn_c_try_link "$LINENO"; then : 16810 eval $cacheid=yes 16811else 16812 eval $cacheid=no 16813fi 16814rm -f core conftest.err conftest.$ac_objext \ 16815 conftest$ac_exeext conftest.$ac_ext 16816fi 16817 16818 16819 CFLAGS="$xorg_testset_save_CFLAGS" 16820 16821 eval supported=\$$cacheid 16822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16823$as_echo "$supported" >&6; } 16824 if test "$supported" = "yes" ; then 16825 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 16826 found="yes" 16827 fi 16828 fi 16829 16830 16831 16832 16833 16834 16835 16836 16837 16838 16839 16840 16841 16842 16843 16844xorg_testset_save_CFLAGS="$CFLAGS" 16845 16846if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16847 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16849$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16850if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16851 $as_echo_n "(cached) " >&6 16852else 16853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16854/* end confdefs.h. */ 16855int i; 16856_ACEOF 16857if ac_fn_c_try_compile "$LINENO"; then : 16858 xorg_cv_cc_flag_unknown_warning_option=yes 16859else 16860 xorg_cv_cc_flag_unknown_warning_option=no 16861fi 16862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16863fi 16864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16865$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16866 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16867 CFLAGS="$xorg_testset_save_CFLAGS" 16868fi 16869 16870if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16873 fi 16874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16876$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16877if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16878 $as_echo_n "(cached) " >&6 16879else 16880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16881/* end confdefs.h. */ 16882int i; 16883_ACEOF 16884if ac_fn_c_try_compile "$LINENO"; then : 16885 xorg_cv_cc_flag_unused_command_line_argument=yes 16886else 16887 xorg_cv_cc_flag_unused_command_line_argument=no 16888fi 16889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16890fi 16891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16892$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16893 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16894 CFLAGS="$xorg_testset_save_CFLAGS" 16895fi 16896 16897found="no" 16898 16899 if test $found = "no" ; then 16900 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16901 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16902 fi 16903 16904 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16906 fi 16907 16908 CFLAGS="$CFLAGS -Wreturn-type" 16909 16910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 16911$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 16912 cacheid=xorg_cv_cc_flag__Wreturn_type 16913 if eval \${$cacheid+:} false; then : 16914 $as_echo_n "(cached) " >&6 16915else 16916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16917/* end confdefs.h. */ 16918int i; 16919int 16920main () 16921{ 16922 16923 ; 16924 return 0; 16925} 16926_ACEOF 16927if ac_fn_c_try_link "$LINENO"; then : 16928 eval $cacheid=yes 16929else 16930 eval $cacheid=no 16931fi 16932rm -f core conftest.err conftest.$ac_objext \ 16933 conftest$ac_exeext conftest.$ac_ext 16934fi 16935 16936 16937 CFLAGS="$xorg_testset_save_CFLAGS" 16938 16939 eval supported=\$$cacheid 16940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16941$as_echo "$supported" >&6; } 16942 if test "$supported" = "yes" ; then 16943 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 16944 found="yes" 16945 fi 16946 fi 16947 16948 16949 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962xorg_testset_save_CFLAGS="$CFLAGS" 16963 16964if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16967$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16968if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16969 $as_echo_n "(cached) " >&6 16970else 16971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16972/* end confdefs.h. */ 16973int i; 16974_ACEOF 16975if ac_fn_c_try_compile "$LINENO"; then : 16976 xorg_cv_cc_flag_unknown_warning_option=yes 16977else 16978 xorg_cv_cc_flag_unknown_warning_option=no 16979fi 16980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16981fi 16982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16983$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16984 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16985 CFLAGS="$xorg_testset_save_CFLAGS" 16986fi 16987 16988if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16990 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16991 fi 16992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16994$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16995if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16996 $as_echo_n "(cached) " >&6 16997else 16998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16999/* end confdefs.h. */ 17000int i; 17001_ACEOF 17002if ac_fn_c_try_compile "$LINENO"; then : 17003 xorg_cv_cc_flag_unused_command_line_argument=yes 17004else 17005 xorg_cv_cc_flag_unused_command_line_argument=no 17006fi 17007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17008fi 17009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17010$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17011 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17012 CFLAGS="$xorg_testset_save_CFLAGS" 17013fi 17014 17015found="no" 17016 17017 if test $found = "no" ; then 17018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17019 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17020 fi 17021 17022 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17024 fi 17025 17026 CFLAGS="$CFLAGS -Wtrigraphs" 17027 17028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 17029$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 17030 cacheid=xorg_cv_cc_flag__Wtrigraphs 17031 if eval \${$cacheid+:} false; then : 17032 $as_echo_n "(cached) " >&6 17033else 17034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17035/* end confdefs.h. */ 17036int i; 17037int 17038main () 17039{ 17040 17041 ; 17042 return 0; 17043} 17044_ACEOF 17045if ac_fn_c_try_link "$LINENO"; then : 17046 eval $cacheid=yes 17047else 17048 eval $cacheid=no 17049fi 17050rm -f core conftest.err conftest.$ac_objext \ 17051 conftest$ac_exeext conftest.$ac_ext 17052fi 17053 17054 17055 CFLAGS="$xorg_testset_save_CFLAGS" 17056 17057 eval supported=\$$cacheid 17058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17059$as_echo "$supported" >&6; } 17060 if test "$supported" = "yes" ; then 17061 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 17062 found="yes" 17063 fi 17064 fi 17065 17066 17067 17068 17069 17070 17071 17072 17073 17074 17075 17076 17077 17078 17079 17080xorg_testset_save_CFLAGS="$CFLAGS" 17081 17082if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17083 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17085$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17086if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17087 $as_echo_n "(cached) " >&6 17088else 17089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17090/* end confdefs.h. */ 17091int i; 17092_ACEOF 17093if ac_fn_c_try_compile "$LINENO"; then : 17094 xorg_cv_cc_flag_unknown_warning_option=yes 17095else 17096 xorg_cv_cc_flag_unknown_warning_option=no 17097fi 17098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17099fi 17100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17101$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17102 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17103 CFLAGS="$xorg_testset_save_CFLAGS" 17104fi 17105 17106if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17108 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17109 fi 17110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17112$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17113if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17114 $as_echo_n "(cached) " >&6 17115else 17116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17117/* end confdefs.h. */ 17118int i; 17119_ACEOF 17120if ac_fn_c_try_compile "$LINENO"; then : 17121 xorg_cv_cc_flag_unused_command_line_argument=yes 17122else 17123 xorg_cv_cc_flag_unused_command_line_argument=no 17124fi 17125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17126fi 17127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17128$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17129 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17130 CFLAGS="$xorg_testset_save_CFLAGS" 17131fi 17132 17133found="no" 17134 17135 if test $found = "no" ; then 17136 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17137 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17138 fi 17139 17140 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17142 fi 17143 17144 CFLAGS="$CFLAGS -Warray-bounds" 17145 17146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 17147$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 17148 cacheid=xorg_cv_cc_flag__Warray_bounds 17149 if eval \${$cacheid+:} false; then : 17150 $as_echo_n "(cached) " >&6 17151else 17152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17153/* end confdefs.h. */ 17154int i; 17155int 17156main () 17157{ 17158 17159 ; 17160 return 0; 17161} 17162_ACEOF 17163if ac_fn_c_try_link "$LINENO"; then : 17164 eval $cacheid=yes 17165else 17166 eval $cacheid=no 17167fi 17168rm -f core conftest.err conftest.$ac_objext \ 17169 conftest$ac_exeext conftest.$ac_ext 17170fi 17171 17172 17173 CFLAGS="$xorg_testset_save_CFLAGS" 17174 17175 eval supported=\$$cacheid 17176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17177$as_echo "$supported" >&6; } 17178 if test "$supported" = "yes" ; then 17179 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 17180 found="yes" 17181 fi 17182 fi 17183 17184 17185 17186 17187 17188 17189 17190 17191 17192 17193 17194 17195 17196 17197 17198xorg_testset_save_CFLAGS="$CFLAGS" 17199 17200if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17203$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17204if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17205 $as_echo_n "(cached) " >&6 17206else 17207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17208/* end confdefs.h. */ 17209int i; 17210_ACEOF 17211if ac_fn_c_try_compile "$LINENO"; then : 17212 xorg_cv_cc_flag_unknown_warning_option=yes 17213else 17214 xorg_cv_cc_flag_unknown_warning_option=no 17215fi 17216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17217fi 17218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17219$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17220 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17221 CFLAGS="$xorg_testset_save_CFLAGS" 17222fi 17223 17224if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17226 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17227 fi 17228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17230$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17231if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17232 $as_echo_n "(cached) " >&6 17233else 17234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17235/* end confdefs.h. */ 17236int i; 17237_ACEOF 17238if ac_fn_c_try_compile "$LINENO"; then : 17239 xorg_cv_cc_flag_unused_command_line_argument=yes 17240else 17241 xorg_cv_cc_flag_unused_command_line_argument=no 17242fi 17243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17244fi 17245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17246$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17247 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17248 CFLAGS="$xorg_testset_save_CFLAGS" 17249fi 17250 17251found="no" 17252 17253 if test $found = "no" ; then 17254 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17255 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17256 fi 17257 17258 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17259 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17260 fi 17261 17262 CFLAGS="$CFLAGS -Wwrite-strings" 17263 17264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 17265$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 17266 cacheid=xorg_cv_cc_flag__Wwrite_strings 17267 if eval \${$cacheid+:} false; then : 17268 $as_echo_n "(cached) " >&6 17269else 17270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17271/* end confdefs.h. */ 17272int i; 17273int 17274main () 17275{ 17276 17277 ; 17278 return 0; 17279} 17280_ACEOF 17281if ac_fn_c_try_link "$LINENO"; then : 17282 eval $cacheid=yes 17283else 17284 eval $cacheid=no 17285fi 17286rm -f core conftest.err conftest.$ac_objext \ 17287 conftest$ac_exeext conftest.$ac_ext 17288fi 17289 17290 17291 CFLAGS="$xorg_testset_save_CFLAGS" 17292 17293 eval supported=\$$cacheid 17294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17295$as_echo "$supported" >&6; } 17296 if test "$supported" = "yes" ; then 17297 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 17298 found="yes" 17299 fi 17300 fi 17301 17302 17303 17304 17305 17306 17307 17308 17309 17310 17311 17312 17313 17314 17315 17316xorg_testset_save_CFLAGS="$CFLAGS" 17317 17318if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17321$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17322if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17323 $as_echo_n "(cached) " >&6 17324else 17325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17326/* end confdefs.h. */ 17327int i; 17328_ACEOF 17329if ac_fn_c_try_compile "$LINENO"; then : 17330 xorg_cv_cc_flag_unknown_warning_option=yes 17331else 17332 xorg_cv_cc_flag_unknown_warning_option=no 17333fi 17334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17335fi 17336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17337$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17338 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17339 CFLAGS="$xorg_testset_save_CFLAGS" 17340fi 17341 17342if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17344 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17345 fi 17346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17348$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17349if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17350 $as_echo_n "(cached) " >&6 17351else 17352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17353/* end confdefs.h. */ 17354int i; 17355_ACEOF 17356if ac_fn_c_try_compile "$LINENO"; then : 17357 xorg_cv_cc_flag_unused_command_line_argument=yes 17358else 17359 xorg_cv_cc_flag_unused_command_line_argument=no 17360fi 17361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17362fi 17363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17364$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17365 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17366 CFLAGS="$xorg_testset_save_CFLAGS" 17367fi 17368 17369found="no" 17370 17371 if test $found = "no" ; then 17372 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17373 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17374 fi 17375 17376 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17378 fi 17379 17380 CFLAGS="$CFLAGS -Waddress" 17381 17382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 17383$as_echo_n "checking if $CC supports -Waddress... " >&6; } 17384 cacheid=xorg_cv_cc_flag__Waddress 17385 if eval \${$cacheid+:} false; then : 17386 $as_echo_n "(cached) " >&6 17387else 17388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17389/* end confdefs.h. */ 17390int i; 17391int 17392main () 17393{ 17394 17395 ; 17396 return 0; 17397} 17398_ACEOF 17399if ac_fn_c_try_link "$LINENO"; then : 17400 eval $cacheid=yes 17401else 17402 eval $cacheid=no 17403fi 17404rm -f core conftest.err conftest.$ac_objext \ 17405 conftest$ac_exeext conftest.$ac_ext 17406fi 17407 17408 17409 CFLAGS="$xorg_testset_save_CFLAGS" 17410 17411 eval supported=\$$cacheid 17412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17413$as_echo "$supported" >&6; } 17414 if test "$supported" = "yes" ; then 17415 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 17416 found="yes" 17417 fi 17418 fi 17419 17420 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_cc_unknown_warning_option" = "xyes" ; then 17491 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17492 fi 17493 17494 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17495 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17496 fi 17497 17498 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 17499 17500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 17501$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 17502 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 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 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 17534 found="yes" 17535 fi 17536 fi 17537 17538 17539 17540 17541 17542 17543 17544 17545 17546 17547 17548 17549 17550 17551 17552xorg_testset_save_CFLAGS="$CFLAGS" 17553 17554if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17555 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17557$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17558if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17559 $as_echo_n "(cached) " >&6 17560else 17561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17562/* end confdefs.h. */ 17563int i; 17564_ACEOF 17565if ac_fn_c_try_compile "$LINENO"; then : 17566 xorg_cv_cc_flag_unknown_warning_option=yes 17567else 17568 xorg_cv_cc_flag_unknown_warning_option=no 17569fi 17570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17571fi 17572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17573$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17574 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17575 CFLAGS="$xorg_testset_save_CFLAGS" 17576fi 17577 17578if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17579 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17580 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17581 fi 17582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17584$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17585if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17586 $as_echo_n "(cached) " >&6 17587else 17588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17589/* end confdefs.h. */ 17590int i; 17591_ACEOF 17592if ac_fn_c_try_compile "$LINENO"; then : 17593 xorg_cv_cc_flag_unused_command_line_argument=yes 17594else 17595 xorg_cv_cc_flag_unused_command_line_argument=no 17596fi 17597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17598fi 17599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17600$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17601 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17602 CFLAGS="$xorg_testset_save_CFLAGS" 17603fi 17604 17605found="no" 17606 17607 if test $found = "no" ; then 17608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17610 fi 17611 17612 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17613 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17614 fi 17615 17616 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 17617 17618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 17619$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 17620 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 17621 if eval \${$cacheid+:} false; then : 17622 $as_echo_n "(cached) " >&6 17623else 17624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17625/* end confdefs.h. */ 17626int i; 17627int 17628main () 17629{ 17630 17631 ; 17632 return 0; 17633} 17634_ACEOF 17635if ac_fn_c_try_link "$LINENO"; then : 17636 eval $cacheid=yes 17637else 17638 eval $cacheid=no 17639fi 17640rm -f core conftest.err conftest.$ac_objext \ 17641 conftest$ac_exeext conftest.$ac_ext 17642fi 17643 17644 17645 CFLAGS="$xorg_testset_save_CFLAGS" 17646 17647 eval supported=\$$cacheid 17648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17649$as_echo "$supported" >&6; } 17650 if test "$supported" = "yes" ; then 17651 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 17652 found="yes" 17653 fi 17654 fi 17655 17656 17657fi 17658 17659 17660 17661 17662 17663 17664 17665 CWARNFLAGS="$BASE_CFLAGS" 17666 if test "x$GCC" = xyes ; then 17667 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 17668 fi 17669 17670 17671 17672 17673 17674 17675 17676 17677# Check whether --enable-strict-compilation was given. 17678if test "${enable_strict_compilation+set}" = set; then : 17679 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 17680else 17681 STRICT_COMPILE=no 17682fi 17683 17684 17685 17686 17687 17688 17689STRICT_CFLAGS="" 17690 17691 17692 17693 17694 17695 17696 17697 17698 17699 17700 17701 17702 17703xorg_testset_save_CFLAGS="$CFLAGS" 17704 17705if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17708$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17709if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17710 $as_echo_n "(cached) " >&6 17711else 17712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17713/* end confdefs.h. */ 17714int i; 17715_ACEOF 17716if ac_fn_c_try_compile "$LINENO"; then : 17717 xorg_cv_cc_flag_unknown_warning_option=yes 17718else 17719 xorg_cv_cc_flag_unknown_warning_option=no 17720fi 17721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17722fi 17723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17724$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17725 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17726 CFLAGS="$xorg_testset_save_CFLAGS" 17727fi 17728 17729if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17730 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17731 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17732 fi 17733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17735$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17736if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17737 $as_echo_n "(cached) " >&6 17738else 17739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17740/* end confdefs.h. */ 17741int i; 17742_ACEOF 17743if ac_fn_c_try_compile "$LINENO"; then : 17744 xorg_cv_cc_flag_unused_command_line_argument=yes 17745else 17746 xorg_cv_cc_flag_unused_command_line_argument=no 17747fi 17748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17749fi 17750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17751$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17752 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17753 CFLAGS="$xorg_testset_save_CFLAGS" 17754fi 17755 17756found="no" 17757 17758 if test $found = "no" ; then 17759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17760 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17761 fi 17762 17763 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17765 fi 17766 17767 CFLAGS="$CFLAGS -pedantic" 17768 17769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 17770$as_echo_n "checking if $CC supports -pedantic... " >&6; } 17771 cacheid=xorg_cv_cc_flag__pedantic 17772 if eval \${$cacheid+:} false; then : 17773 $as_echo_n "(cached) " >&6 17774else 17775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17776/* end confdefs.h. */ 17777int i; 17778int 17779main () 17780{ 17781 17782 ; 17783 return 0; 17784} 17785_ACEOF 17786if ac_fn_c_try_link "$LINENO"; then : 17787 eval $cacheid=yes 17788else 17789 eval $cacheid=no 17790fi 17791rm -f core conftest.err conftest.$ac_objext \ 17792 conftest$ac_exeext conftest.$ac_ext 17793fi 17794 17795 17796 CFLAGS="$xorg_testset_save_CFLAGS" 17797 17798 eval supported=\$$cacheid 17799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17800$as_echo "$supported" >&6; } 17801 if test "$supported" = "yes" ; then 17802 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 17803 found="yes" 17804 fi 17805 fi 17806 17807 17808 17809 17810 17811 17812 17813 17814 17815 17816 17817 17818 17819 17820 17821xorg_testset_save_CFLAGS="$CFLAGS" 17822 17823if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17826$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17827if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17828 $as_echo_n "(cached) " >&6 17829else 17830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17831/* end confdefs.h. */ 17832int i; 17833_ACEOF 17834if ac_fn_c_try_compile "$LINENO"; then : 17835 xorg_cv_cc_flag_unknown_warning_option=yes 17836else 17837 xorg_cv_cc_flag_unknown_warning_option=no 17838fi 17839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17840fi 17841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17842$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17843 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17844 CFLAGS="$xorg_testset_save_CFLAGS" 17845fi 17846 17847if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17850 fi 17851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17853$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17854if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17855 $as_echo_n "(cached) " >&6 17856else 17857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17858/* end confdefs.h. */ 17859int i; 17860_ACEOF 17861if ac_fn_c_try_compile "$LINENO"; then : 17862 xorg_cv_cc_flag_unused_command_line_argument=yes 17863else 17864 xorg_cv_cc_flag_unused_command_line_argument=no 17865fi 17866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17867fi 17868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17869$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17870 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17871 CFLAGS="$xorg_testset_save_CFLAGS" 17872fi 17873 17874found="no" 17875 17876 if test $found = "no" ; then 17877 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17878 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17879 fi 17880 17881 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17883 fi 17884 17885 CFLAGS="$CFLAGS -Werror" 17886 17887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 17888$as_echo_n "checking if $CC supports -Werror... " >&6; } 17889 cacheid=xorg_cv_cc_flag__Werror 17890 if eval \${$cacheid+:} false; then : 17891 $as_echo_n "(cached) " >&6 17892else 17893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17894/* end confdefs.h. */ 17895int i; 17896int 17897main () 17898{ 17899 17900 ; 17901 return 0; 17902} 17903_ACEOF 17904if ac_fn_c_try_link "$LINENO"; then : 17905 eval $cacheid=yes 17906else 17907 eval $cacheid=no 17908fi 17909rm -f core conftest.err conftest.$ac_objext \ 17910 conftest$ac_exeext conftest.$ac_ext 17911fi 17912 17913 17914 CFLAGS="$xorg_testset_save_CFLAGS" 17915 17916 eval supported=\$$cacheid 17917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17918$as_echo "$supported" >&6; } 17919 if test "$supported" = "yes" ; then 17920 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 17921 found="yes" 17922 fi 17923 fi 17924 17925 if test $found = "no" ; then 17926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17927 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17928 fi 17929 17930 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17932 fi 17933 17934 CFLAGS="$CFLAGS -errwarn" 17935 17936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 17937$as_echo_n "checking if $CC supports -errwarn... " >&6; } 17938 cacheid=xorg_cv_cc_flag__errwarn 17939 if eval \${$cacheid+:} false; then : 17940 $as_echo_n "(cached) " >&6 17941else 17942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17943/* end confdefs.h. */ 17944int i; 17945int 17946main () 17947{ 17948 17949 ; 17950 return 0; 17951} 17952_ACEOF 17953if ac_fn_c_try_link "$LINENO"; then : 17954 eval $cacheid=yes 17955else 17956 eval $cacheid=no 17957fi 17958rm -f core conftest.err conftest.$ac_objext \ 17959 conftest$ac_exeext conftest.$ac_ext 17960fi 17961 17962 17963 CFLAGS="$xorg_testset_save_CFLAGS" 17964 17965 eval supported=\$$cacheid 17966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17967$as_echo "$supported" >&6; } 17968 if test "$supported" = "yes" ; then 17969 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 17970 found="yes" 17971 fi 17972 fi 17973 17974 17975 17976# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 17977# activate it with -Werror, so we add it here explicitly. 17978 17979 17980 17981 17982 17983 17984 17985 17986 17987 17988 17989 17990 17991xorg_testset_save_CFLAGS="$CFLAGS" 17992 17993if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17994 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17996$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17997if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17998 $as_echo_n "(cached) " >&6 17999else 18000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18001/* end confdefs.h. */ 18002int i; 18003_ACEOF 18004if ac_fn_c_try_compile "$LINENO"; then : 18005 xorg_cv_cc_flag_unknown_warning_option=yes 18006else 18007 xorg_cv_cc_flag_unknown_warning_option=no 18008fi 18009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18010fi 18011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18012$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18013 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18014 CFLAGS="$xorg_testset_save_CFLAGS" 18015fi 18016 18017if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18019 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18020 fi 18021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18023$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18024if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18025 $as_echo_n "(cached) " >&6 18026else 18027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18028/* end confdefs.h. */ 18029int i; 18030_ACEOF 18031if ac_fn_c_try_compile "$LINENO"; then : 18032 xorg_cv_cc_flag_unused_command_line_argument=yes 18033else 18034 xorg_cv_cc_flag_unused_command_line_argument=no 18035fi 18036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18037fi 18038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18039$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18040 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18041 CFLAGS="$xorg_testset_save_CFLAGS" 18042fi 18043 18044found="no" 18045 18046 if test $found = "no" ; then 18047 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18048 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18049 fi 18050 18051 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18052 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18053 fi 18054 18055 CFLAGS="$CFLAGS -Werror=attributes" 18056 18057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 18058$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 18059 cacheid=xorg_cv_cc_flag__Werror_attributes 18060 if eval \${$cacheid+:} false; then : 18061 $as_echo_n "(cached) " >&6 18062else 18063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18064/* end confdefs.h. */ 18065int i; 18066int 18067main () 18068{ 18069 18070 ; 18071 return 0; 18072} 18073_ACEOF 18074if ac_fn_c_try_link "$LINENO"; then : 18075 eval $cacheid=yes 18076else 18077 eval $cacheid=no 18078fi 18079rm -f core conftest.err conftest.$ac_objext \ 18080 conftest$ac_exeext conftest.$ac_ext 18081fi 18082 18083 18084 CFLAGS="$xorg_testset_save_CFLAGS" 18085 18086 eval supported=\$$cacheid 18087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18088$as_echo "$supported" >&6; } 18089 if test "$supported" = "yes" ; then 18090 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 18091 found="yes" 18092 fi 18093 fi 18094 18095 18096 18097if test "x$STRICT_COMPILE" = "xyes"; then 18098 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 18099 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 18100fi 18101 18102 18103 18104 18105 18106 18107cat >>confdefs.h <<_ACEOF 18108#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 18109_ACEOF 18110 18111 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 18112 if test "x$PVM" = "x"; then 18113 PVM="0" 18114 fi 18115 18116cat >>confdefs.h <<_ACEOF 18117#define PACKAGE_VERSION_MINOR $PVM 18118_ACEOF 18119 18120 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 18121 if test "x$PVP" = "x"; then 18122 PVP="0" 18123 fi 18124 18125cat >>confdefs.h <<_ACEOF 18126#define PACKAGE_VERSION_PATCHLEVEL $PVP 18127_ACEOF 18128 18129 18130 18131CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 18132mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 18133|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 18134touch \$(top_srcdir)/ChangeLog; \ 18135echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 18136 18137 18138 18139 18140macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 18141INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 18142mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 18143|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 18144touch \$(top_srcdir)/INSTALL; \ 18145echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 18146 18147 18148 18149 18150 18151 18152case $host_os in 18153 solaris*) 18154 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 18155 # check for a man page file found in later versions that use 18156 # traditional section numbers instead 18157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 18158$as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; } 18159if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then : 18160 $as_echo_n "(cached) " >&6 18161else 18162 test "$cross_compiling" = yes && 18163 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 18164if test -r "/usr/share/man/man7/attributes.7"; then 18165 ac_cv_file__usr_share_man_man7_attributes_7=yes 18166else 18167 ac_cv_file__usr_share_man_man7_attributes_7=no 18168fi 18169fi 18170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 18171$as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 18172if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then : 18173 SYSV_MAN_SECTIONS=false 18174else 18175 SYSV_MAN_SECTIONS=true 18176fi 18177 18178 ;; 18179 *) SYSV_MAN_SECTIONS=false ;; 18180esac 18181 18182if test x$APP_MAN_SUFFIX = x ; then 18183 APP_MAN_SUFFIX=1 18184fi 18185if test x$APP_MAN_DIR = x ; then 18186 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 18187fi 18188 18189if test x$LIB_MAN_SUFFIX = x ; then 18190 LIB_MAN_SUFFIX=3 18191fi 18192if test x$LIB_MAN_DIR = x ; then 18193 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 18194fi 18195 18196if test x$FILE_MAN_SUFFIX = x ; then 18197 case $SYSV_MAN_SECTIONS in 18198 true) FILE_MAN_SUFFIX=4 ;; 18199 *) FILE_MAN_SUFFIX=5 ;; 18200 esac 18201fi 18202if test x$FILE_MAN_DIR = x ; then 18203 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 18204fi 18205 18206if test x$MISC_MAN_SUFFIX = x ; then 18207 case $SYSV_MAN_SECTIONS in 18208 true) MISC_MAN_SUFFIX=5 ;; 18209 *) MISC_MAN_SUFFIX=7 ;; 18210 esac 18211fi 18212if test x$MISC_MAN_DIR = x ; then 18213 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 18214fi 18215 18216if test x$DRIVER_MAN_SUFFIX = x ; then 18217 case $SYSV_MAN_SECTIONS in 18218 true) DRIVER_MAN_SUFFIX=7 ;; 18219 *) DRIVER_MAN_SUFFIX=4 ;; 18220 esac 18221fi 18222if test x$DRIVER_MAN_DIR = x ; then 18223 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 18224fi 18225 18226if test x$ADMIN_MAN_SUFFIX = x ; then 18227 case $SYSV_MAN_SECTIONS in 18228 true) ADMIN_MAN_SUFFIX=1m ;; 18229 *) ADMIN_MAN_SUFFIX=8 ;; 18230 esac 18231fi 18232if test x$ADMIN_MAN_DIR = x ; then 18233 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 18234fi 18235 18236 18237 18238 18239 18240 18241 18242 18243 18244 18245 18246 18247 18248 18249 18250XORG_MAN_PAGE="X Version 11" 18251 18252MAN_SUBSTS="\ 18253 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18254 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18255 -e 's|__xservername__|Xorg|g' \ 18256 -e 's|__xconfigfile__|xorg.conf|g' \ 18257 -e 's|__projectroot__|\$(prefix)|g' \ 18258 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 18259 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 18260 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 18261 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 18262 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 18263 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 18264 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 18265 18266 18267 18268# Check whether --enable-silent-rules was given. 18269if test "${enable_silent_rules+set}" = set; then : 18270 enableval=$enable_silent_rules; 18271fi 18272 18273case $enable_silent_rules in # ((( 18274 yes) AM_DEFAULT_VERBOSITY=0;; 18275 no) AM_DEFAULT_VERBOSITY=1;; 18276 *) AM_DEFAULT_VERBOSITY=0;; 18277esac 18278am_make=${MAKE-make} 18279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 18280$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 18281if ${am_cv_make_support_nested_variables+:} false; then : 18282 $as_echo_n "(cached) " >&6 18283else 18284 if $as_echo 'TRUE=$(BAR$(V)) 18285BAR0=false 18286BAR1=true 18287V=1 18288am__doit: 18289 @$(TRUE) 18290.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 18291 am_cv_make_support_nested_variables=yes 18292else 18293 am_cv_make_support_nested_variables=no 18294fi 18295fi 18296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 18297$as_echo "$am_cv_make_support_nested_variables" >&6; } 18298if test $am_cv_make_support_nested_variables = yes; then 18299 AM_V='$(V)' 18300 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 18301else 18302 AM_V=$AM_DEFAULT_VERBOSITY 18303 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 18304fi 18305AM_BACKSLASH='\' 18306 18307 18308 18309# Checks for library functions 18310for ac_func in strlcat 18311do : 18312 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 18313if test "x$ac_cv_func_strlcat" = xyes; then : 18314 cat >>confdefs.h <<_ACEOF 18315#define HAVE_STRLCAT 1 18316_ACEOF 18317 18318fi 18319done 18320 18321ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork" 18322if test "x$ac_cv_func_fork" = xyes; then : 18323 18324else 18325 $as_echo "#define NO_ZPIPE 1" >>confdefs.h 18326 18327fi 18328 18329 18330# Obtain compiler/linker options for dependencies 18331 18332pkg_failed=no 18333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPM" >&5 18334$as_echo_n "checking for XPM... " >&6; } 18335 18336if test -n "$XPM_CFLAGS"; then 18337 pkg_cv_XPM_CFLAGS="$XPM_CFLAGS" 18338 elif test -n "$PKG_CONFIG"; then 18339 if test -n "$PKG_CONFIG" && \ 18340 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11\""; } >&5 18341 ($PKG_CONFIG --exists --print-errors "xproto x11") 2>&5 18342 ac_status=$? 18343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18344 test $ac_status = 0; }; then 18345 pkg_cv_XPM_CFLAGS=`$PKG_CONFIG --cflags "xproto x11" 2>/dev/null` 18346 test "x$?" != "x0" && pkg_failed=yes 18347else 18348 pkg_failed=yes 18349fi 18350 else 18351 pkg_failed=untried 18352fi 18353if test -n "$XPM_LIBS"; then 18354 pkg_cv_XPM_LIBS="$XPM_LIBS" 18355 elif test -n "$PKG_CONFIG"; then 18356 if test -n "$PKG_CONFIG" && \ 18357 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11\""; } >&5 18358 ($PKG_CONFIG --exists --print-errors "xproto x11") 2>&5 18359 ac_status=$? 18360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18361 test $ac_status = 0; }; then 18362 pkg_cv_XPM_LIBS=`$PKG_CONFIG --libs "xproto x11" 2>/dev/null` 18363 test "x$?" != "x0" && pkg_failed=yes 18364else 18365 pkg_failed=yes 18366fi 18367 else 18368 pkg_failed=untried 18369fi 18370 18371 18372 18373if test $pkg_failed = yes; then 18374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18375$as_echo "no" >&6; } 18376 18377if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18378 _pkg_short_errors_supported=yes 18379else 18380 _pkg_short_errors_supported=no 18381fi 18382 if test $_pkg_short_errors_supported = yes; then 18383 XPM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto x11" 2>&1` 18384 else 18385 XPM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto x11" 2>&1` 18386 fi 18387 # Put the nasty error message in config.log where it belongs 18388 echo "$XPM_PKG_ERRORS" >&5 18389 18390 as_fn_error $? "Package requirements (xproto x11) were not met: 18391 18392$XPM_PKG_ERRORS 18393 18394Consider adjusting the PKG_CONFIG_PATH environment variable if you 18395installed software in a non-standard prefix. 18396 18397Alternatively, you may set the environment variables XPM_CFLAGS 18398and XPM_LIBS to avoid the need to call pkg-config. 18399See the pkg-config man page for more details." "$LINENO" 5 18400elif test $pkg_failed = untried; then 18401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18402$as_echo "no" >&6; } 18403 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18404$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18405as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18406is in your PATH or set the PKG_CONFIG environment variable to the full 18407path to pkg-config. 18408 18409Alternatively, you may set the environment variables XPM_CFLAGS 18410and XPM_LIBS to avoid the need to call pkg-config. 18411See the pkg-config man page for more details. 18412 18413To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18414See \`config.log' for more details" "$LINENO" 5; } 18415else 18416 XPM_CFLAGS=$pkg_cv_XPM_CFLAGS 18417 XPM_LIBS=$pkg_cv_XPM_LIBS 18418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18419$as_echo "yes" >&6; } 18420 18421fi 18422 18423pkg_failed=no 18424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SXPM" >&5 18425$as_echo_n "checking for SXPM... " >&6; } 18426 18427if test -n "$SXPM_CFLAGS"; then 18428 pkg_cv_SXPM_CFLAGS="$SXPM_CFLAGS" 18429 elif test -n "$PKG_CONFIG"; then 18430 if test -n "$PKG_CONFIG" && \ 18431 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xt xext xextproto xproto >= 7.0.17\""; } >&5 18432 ($PKG_CONFIG --exists --print-errors "x11 xt xext xextproto xproto >= 7.0.17") 2>&5 18433 ac_status=$? 18434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18435 test $ac_status = 0; }; then 18436 pkg_cv_SXPM_CFLAGS=`$PKG_CONFIG --cflags "x11 xt xext xextproto xproto >= 7.0.17" 2>/dev/null` 18437 test "x$?" != "x0" && pkg_failed=yes 18438else 18439 pkg_failed=yes 18440fi 18441 else 18442 pkg_failed=untried 18443fi 18444if test -n "$SXPM_LIBS"; then 18445 pkg_cv_SXPM_LIBS="$SXPM_LIBS" 18446 elif test -n "$PKG_CONFIG"; then 18447 if test -n "$PKG_CONFIG" && \ 18448 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xt xext xextproto xproto >= 7.0.17\""; } >&5 18449 ($PKG_CONFIG --exists --print-errors "x11 xt xext xextproto xproto >= 7.0.17") 2>&5 18450 ac_status=$? 18451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18452 test $ac_status = 0; }; then 18453 pkg_cv_SXPM_LIBS=`$PKG_CONFIG --libs "x11 xt xext xextproto xproto >= 7.0.17" 2>/dev/null` 18454 test "x$?" != "x0" && pkg_failed=yes 18455else 18456 pkg_failed=yes 18457fi 18458 else 18459 pkg_failed=untried 18460fi 18461 18462 18463 18464if test $pkg_failed = yes; then 18465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18466$as_echo "no" >&6; } 18467 18468if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18469 _pkg_short_errors_supported=yes 18470else 18471 _pkg_short_errors_supported=no 18472fi 18473 if test $_pkg_short_errors_supported = yes; then 18474 SXPM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xt xext xextproto xproto >= 7.0.17" 2>&1` 18475 else 18476 SXPM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xt xext xextproto xproto >= 7.0.17" 2>&1` 18477 fi 18478 # Put the nasty error message in config.log where it belongs 18479 echo "$SXPM_PKG_ERRORS" >&5 18480 18481 build_sxpm=false 18482elif test $pkg_failed = untried; then 18483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18484$as_echo "no" >&6; } 18485 build_sxpm=false 18486else 18487 SXPM_CFLAGS=$pkg_cv_SXPM_CFLAGS 18488 SXPM_LIBS=$pkg_cv_SXPM_LIBS 18489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18490$as_echo "yes" >&6; } 18491 build_sxpm=true 18492fi 18493 if test x$build_sxpm = xtrue; then 18494 BUILD_SXPM_TRUE= 18495 BUILD_SXPM_FALSE='#' 18496else 18497 BUILD_SXPM_TRUE='#' 18498 BUILD_SXPM_FALSE= 18499fi 18500 18501 18502# Internationalization & localization support 18503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gettext" >&5 18504$as_echo_n "checking for library containing gettext... " >&6; } 18505if ${ac_cv_search_gettext+:} false; then : 18506 $as_echo_n "(cached) " >&6 18507else 18508 ac_func_search_save_LIBS=$LIBS 18509cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18510/* end confdefs.h. */ 18511 18512/* Override any GCC internal prototype to avoid an error. 18513 Use char because int might match the return type of a GCC 18514 builtin and then its argument prototype would still apply. */ 18515#ifdef __cplusplus 18516extern "C" 18517#endif 18518char gettext (); 18519int 18520main () 18521{ 18522return gettext (); 18523 ; 18524 return 0; 18525} 18526_ACEOF 18527for ac_lib in '' intl; do 18528 if test -z "$ac_lib"; then 18529 ac_res="none required" 18530 else 18531 ac_res=-l$ac_lib 18532 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18533 fi 18534 if ac_fn_c_try_link "$LINENO"; then : 18535 ac_cv_search_gettext=$ac_res 18536fi 18537rm -f core conftest.err conftest.$ac_objext \ 18538 conftest$ac_exeext 18539 if ${ac_cv_search_gettext+:} false; then : 18540 break 18541fi 18542done 18543if ${ac_cv_search_gettext+:} false; then : 18544 18545else 18546 ac_cv_search_gettext=no 18547fi 18548rm conftest.$ac_ext 18549LIBS=$ac_func_search_save_LIBS 18550fi 18551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gettext" >&5 18552$as_echo "$ac_cv_search_gettext" >&6; } 18553ac_res=$ac_cv_search_gettext 18554if test "$ac_res" != no; then : 18555 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18556 USE_GETTEXT="yes" 18557else 18558 USE_GETTEXT="no" 18559fi 18560 18561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install localized messages" >&5 18562$as_echo_n "checking where to install localized messages... " >&6; } 18563 18564# Check whether --with-localedir was given. 18565if test "${with_localedir+set}" = set; then : 18566 withval=$with_localedir; LOCALEDIR=${withval} 18567else 18568 LOCALEDIR=${datadir}/locale 18569fi 18570 18571 18572 prefix_NONE= 18573 exec_prefix_NONE= 18574 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 18575 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 18576 eval ax_define_dir="\"$LOCALEDIR\"" 18577 eval ax_define_dir="\"$ax_define_dir\"" 18578 LOCALEDIR="$ax_define_dir" 18579 18580 18581cat >>confdefs.h <<_ACEOF 18582#define LOCALEDIR "$ax_define_dir" 18583_ACEOF 18584 18585 test "$prefix_NONE" && prefix=NONE 18586 test "$exec_prefix_NONE" && exec_prefix=NONE 18587 18588if test "x$LOCALEDIR" = "xno" -o "x$USE_GETTEXT" = "xno" ; then 18589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: nowhere" >&5 18590$as_echo "nowhere" >&6; } 18591 USE_GETTEXT="no" 18592else 18593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALEDIR" >&5 18594$as_echo "$LOCALEDIR" >&6; } 18595fi 18596 18597if test "x$USE_GETTEXT" = "xyes" ; then 18598 18599$as_echo "#define USE_GETTEXT 1" >>confdefs.h 18600 18601fi 18602 if test "x$USE_GETTEXT" = "xyes"; then 18603 USE_GETTEXT_TRUE= 18604 USE_GETTEXT_FALSE='#' 18605else 18606 USE_GETTEXT_TRUE='#' 18607 USE_GETTEXT_FALSE= 18608fi 18609 18610 18611# Optional feature: When ___.xpm is requested, also look for ___.xpm.Z & .gz 18612# Replaces ZFILEDEF = -DSTAT_ZFILE in old Imakefile 18613# Check whether --enable-stat-zfile was given. 18614if test "${enable_stat_zfile+set}" = set; then : 18615 enableval=$enable_stat_zfile; STAT_ZFILE=$enableval 18616else 18617 STAT_ZFILE=yes 18618fi 18619 18620if test x$STAT_ZFILE = xyes ; then 18621 18622$as_echo "#define STAT_ZFILE 1" >>confdefs.h 18623 18624fi 18625 18626 18627case $host_os in 18628 *mingw*) 18629 18630$as_echo "#define NO_ZPIPE 1" >>confdefs.h 18631 18632 ;; 18633 *) 18634 ;; 18635esac 18636 18637ac_config_files="$ac_config_files Makefile doc/Makefile include/Makefile man/Makefile src/Makefile sxpm/Makefile cxpm/Makefile xpm.pc" 18638 18639cat >confcache <<\_ACEOF 18640# This file is a shell script that caches the results of configure 18641# tests run on this system so they can be shared between configure 18642# scripts and configure runs, see configure's option --config-cache. 18643# It is not useful on other systems. If it contains results you don't 18644# want to keep, you may remove or edit it. 18645# 18646# config.status only pays attention to the cache file if you give it 18647# the --recheck option to rerun configure. 18648# 18649# `ac_cv_env_foo' variables (set or unset) will be overridden when 18650# loading this file, other *unset* `ac_cv_foo' will be assigned the 18651# following values. 18652 18653_ACEOF 18654 18655# The following way of writing the cache mishandles newlines in values, 18656# but we know of no workaround that is simple, portable, and efficient. 18657# So, we kill variables containing newlines. 18658# Ultrix sh set writes to stderr and can't be redirected directly, 18659# and sets the high bit in the cache file unless we assign to the vars. 18660( 18661 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18662 eval ac_val=\$$ac_var 18663 case $ac_val in #( 18664 *${as_nl}*) 18665 case $ac_var in #( 18666 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18667$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18668 esac 18669 case $ac_var in #( 18670 _ | IFS | as_nl) ;; #( 18671 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18672 *) { eval $ac_var=; unset $ac_var;} ;; 18673 esac ;; 18674 esac 18675 done 18676 18677 (set) 2>&1 | 18678 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18679 *${as_nl}ac_space=\ *) 18680 # `set' does not quote correctly, so add quotes: double-quote 18681 # substitution turns \\\\ into \\, and sed turns \\ into \. 18682 sed -n \ 18683 "s/'/'\\\\''/g; 18684 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18685 ;; #( 18686 *) 18687 # `set' quotes correctly as required by POSIX, so do not add quotes. 18688 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18689 ;; 18690 esac | 18691 sort 18692) | 18693 sed ' 18694 /^ac_cv_env_/b end 18695 t clear 18696 :clear 18697 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18698 t end 18699 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18700 :end' >>confcache 18701if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18702 if test -w "$cache_file"; then 18703 if test "x$cache_file" != "x/dev/null"; then 18704 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18705$as_echo "$as_me: updating cache $cache_file" >&6;} 18706 if test ! -f "$cache_file" || test -h "$cache_file"; then 18707 cat confcache >"$cache_file" 18708 else 18709 case $cache_file in #( 18710 */* | ?:*) 18711 mv -f confcache "$cache_file"$$ && 18712 mv -f "$cache_file"$$ "$cache_file" ;; #( 18713 *) 18714 mv -f confcache "$cache_file" ;; 18715 esac 18716 fi 18717 fi 18718 else 18719 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18720$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18721 fi 18722fi 18723rm -f confcache 18724 18725test "x$prefix" = xNONE && prefix=$ac_default_prefix 18726# Let make expand exec_prefix. 18727test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18728 18729DEFS=-DHAVE_CONFIG_H 18730 18731ac_libobjs= 18732ac_ltlibobjs= 18733U= 18734for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18735 # 1. Remove the extension, and $U if already installed. 18736 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18737 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18738 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18739 # will be set to the directory where LIBOBJS objects are built. 18740 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18741 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18742done 18743LIBOBJS=$ac_libobjs 18744 18745LTLIBOBJS=$ac_ltlibobjs 18746 18747 18748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18749$as_echo_n "checking that generated files are newer than configure... " >&6; } 18750 if test -n "$am_sleep_pid"; then 18751 # Hide warnings about reused PIDs. 18752 wait $am_sleep_pid 2>/dev/null 18753 fi 18754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 18755$as_echo "done" >&6; } 18756 if test -n "$EXEEXT"; then 18757 am__EXEEXT_TRUE= 18758 am__EXEEXT_FALSE='#' 18759else 18760 am__EXEEXT_TRUE='#' 18761 am__EXEEXT_FALSE= 18762fi 18763 18764if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18765 as_fn_error $? "conditional \"AMDEP\" was never defined. 18766Usually this means the macro was only invoked conditionally." "$LINENO" 5 18767fi 18768if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18769 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18770Usually this means the macro was only invoked conditionally." "$LINENO" 5 18771fi 18772if test -z "${BUILD_SXPM_TRUE}" && test -z "${BUILD_SXPM_FALSE}"; then 18773 as_fn_error $? "conditional \"BUILD_SXPM\" was never defined. 18774Usually this means the macro was only invoked conditionally." "$LINENO" 5 18775fi 18776if test -z "${USE_GETTEXT_TRUE}" && test -z "${USE_GETTEXT_FALSE}"; then 18777 as_fn_error $? "conditional \"USE_GETTEXT\" was never defined. 18778Usually this means the macro was only invoked conditionally." "$LINENO" 5 18779fi 18780 18781: "${CONFIG_STATUS=./config.status}" 18782ac_write_fail=0 18783ac_clean_files_save=$ac_clean_files 18784ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18785{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18786$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18787as_write_fail=0 18788cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18789#! $SHELL 18790# Generated by $as_me. 18791# Run this file to recreate the current configuration. 18792# Compiler output produced by configure, useful for debugging 18793# configure, is in config.log if it exists. 18794 18795debug=false 18796ac_cs_recheck=false 18797ac_cs_silent=false 18798 18799SHELL=\${CONFIG_SHELL-$SHELL} 18800export SHELL 18801_ASEOF 18802cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18803## -------------------- ## 18804## M4sh Initialization. ## 18805## -------------------- ## 18806 18807# Be more Bourne compatible 18808DUALCASE=1; export DUALCASE # for MKS sh 18809if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18810 emulate sh 18811 NULLCMD=: 18812 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18813 # is contrary to our usage. Disable this feature. 18814 alias -g '${1+"$@"}'='"$@"' 18815 setopt NO_GLOB_SUBST 18816else 18817 case `(set -o) 2>/dev/null` in #( 18818 *posix*) : 18819 set -o posix ;; #( 18820 *) : 18821 ;; 18822esac 18823fi 18824 18825 18826as_nl=' 18827' 18828export as_nl 18829# Printing a long string crashes Solaris 7 /usr/bin/printf. 18830as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18831as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18832as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18833# Prefer a ksh shell builtin over an external printf program on Solaris, 18834# but without wasting forks for bash or zsh. 18835if test -z "$BASH_VERSION$ZSH_VERSION" \ 18836 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18837 as_echo='print -r --' 18838 as_echo_n='print -rn --' 18839elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18840 as_echo='printf %s\n' 18841 as_echo_n='printf %s' 18842else 18843 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18844 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18845 as_echo_n='/usr/ucb/echo -n' 18846 else 18847 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18848 as_echo_n_body='eval 18849 arg=$1; 18850 case $arg in #( 18851 *"$as_nl"*) 18852 expr "X$arg" : "X\\(.*\\)$as_nl"; 18853 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18854 esac; 18855 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18856 ' 18857 export as_echo_n_body 18858 as_echo_n='sh -c $as_echo_n_body as_echo' 18859 fi 18860 export as_echo_body 18861 as_echo='sh -c $as_echo_body as_echo' 18862fi 18863 18864# The user is always right. 18865if test "${PATH_SEPARATOR+set}" != set; then 18866 PATH_SEPARATOR=: 18867 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18868 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18869 PATH_SEPARATOR=';' 18870 } 18871fi 18872 18873 18874# IFS 18875# We need space, tab and new line, in precisely that order. Quoting is 18876# there to prevent editors from complaining about space-tab. 18877# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18878# splitting by setting IFS to empty value.) 18879IFS=" "" $as_nl" 18880 18881# Find who we are. Look in the path if we contain no directory separator. 18882as_myself= 18883case $0 in #(( 18884 *[\\/]* ) as_myself=$0 ;; 18885 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18886for as_dir in $PATH 18887do 18888 IFS=$as_save_IFS 18889 test -z "$as_dir" && as_dir=. 18890 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18891 done 18892IFS=$as_save_IFS 18893 18894 ;; 18895esac 18896# We did not find ourselves, most probably we were run as `sh COMMAND' 18897# in which case we are not to be found in the path. 18898if test "x$as_myself" = x; then 18899 as_myself=$0 18900fi 18901if test ! -f "$as_myself"; then 18902 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18903 exit 1 18904fi 18905 18906# Unset variables that we do not need and which cause bugs (e.g. in 18907# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18908# suppresses any "Segmentation fault" message there. '((' could 18909# trigger a bug in pdksh 5.2.14. 18910for as_var in BASH_ENV ENV MAIL MAILPATH 18911do eval test x\${$as_var+set} = xset \ 18912 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18913done 18914PS1='$ ' 18915PS2='> ' 18916PS4='+ ' 18917 18918# NLS nuisances. 18919LC_ALL=C 18920export LC_ALL 18921LANGUAGE=C 18922export LANGUAGE 18923 18924# CDPATH. 18925(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18926 18927 18928# as_fn_error STATUS ERROR [LINENO LOG_FD] 18929# ---------------------------------------- 18930# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18931# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18932# script with STATUS, using 1 if that was 0. 18933as_fn_error () 18934{ 18935 as_status=$1; test $as_status -eq 0 && as_status=1 18936 if test "$4"; then 18937 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18938 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18939 fi 18940 $as_echo "$as_me: error: $2" >&2 18941 as_fn_exit $as_status 18942} # as_fn_error 18943 18944 18945# as_fn_set_status STATUS 18946# ----------------------- 18947# Set $? to STATUS, without forking. 18948as_fn_set_status () 18949{ 18950 return $1 18951} # as_fn_set_status 18952 18953# as_fn_exit STATUS 18954# ----------------- 18955# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18956as_fn_exit () 18957{ 18958 set +e 18959 as_fn_set_status $1 18960 exit $1 18961} # as_fn_exit 18962 18963# as_fn_unset VAR 18964# --------------- 18965# Portably unset VAR. 18966as_fn_unset () 18967{ 18968 { eval $1=; unset $1;} 18969} 18970as_unset=as_fn_unset 18971# as_fn_append VAR VALUE 18972# ---------------------- 18973# Append the text in VALUE to the end of the definition contained in VAR. Take 18974# advantage of any shell optimizations that allow amortized linear growth over 18975# repeated appends, instead of the typical quadratic growth present in naive 18976# implementations. 18977if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18978 eval 'as_fn_append () 18979 { 18980 eval $1+=\$2 18981 }' 18982else 18983 as_fn_append () 18984 { 18985 eval $1=\$$1\$2 18986 } 18987fi # as_fn_append 18988 18989# as_fn_arith ARG... 18990# ------------------ 18991# Perform arithmetic evaluation on the ARGs, and store the result in the 18992# global $as_val. Take advantage of shells that can avoid forks. The arguments 18993# must be portable across $(()) and expr. 18994if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18995 eval 'as_fn_arith () 18996 { 18997 as_val=$(( $* )) 18998 }' 18999else 19000 as_fn_arith () 19001 { 19002 as_val=`expr "$@" || test $? -eq 1` 19003 } 19004fi # as_fn_arith 19005 19006 19007if expr a : '\(a\)' >/dev/null 2>&1 && 19008 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19009 as_expr=expr 19010else 19011 as_expr=false 19012fi 19013 19014if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19015 as_basename=basename 19016else 19017 as_basename=false 19018fi 19019 19020if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19021 as_dirname=dirname 19022else 19023 as_dirname=false 19024fi 19025 19026as_me=`$as_basename -- "$0" || 19027$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19028 X"$0" : 'X\(//\)$' \| \ 19029 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19030$as_echo X/"$0" | 19031 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19032 s//\1/ 19033 q 19034 } 19035 /^X\/\(\/\/\)$/{ 19036 s//\1/ 19037 q 19038 } 19039 /^X\/\(\/\).*/{ 19040 s//\1/ 19041 q 19042 } 19043 s/.*/./; q'` 19044 19045# Avoid depending upon Character Ranges. 19046as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19047as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19048as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19049as_cr_digits='0123456789' 19050as_cr_alnum=$as_cr_Letters$as_cr_digits 19051 19052ECHO_C= ECHO_N= ECHO_T= 19053case `echo -n x` in #((((( 19054-n*) 19055 case `echo 'xy\c'` in 19056 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19057 xy) ECHO_C='\c';; 19058 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19059 ECHO_T=' ';; 19060 esac;; 19061*) 19062 ECHO_N='-n';; 19063esac 19064 19065rm -f conf$$ conf$$.exe conf$$.file 19066if test -d conf$$.dir; then 19067 rm -f conf$$.dir/conf$$.file 19068else 19069 rm -f conf$$.dir 19070 mkdir conf$$.dir 2>/dev/null 19071fi 19072if (echo >conf$$.file) 2>/dev/null; then 19073 if ln -s conf$$.file conf$$ 2>/dev/null; then 19074 as_ln_s='ln -s' 19075 # ... but there are two gotchas: 19076 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19077 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19078 # In both cases, we have to default to `cp -pR'. 19079 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19080 as_ln_s='cp -pR' 19081 elif ln conf$$.file conf$$ 2>/dev/null; then 19082 as_ln_s=ln 19083 else 19084 as_ln_s='cp -pR' 19085 fi 19086else 19087 as_ln_s='cp -pR' 19088fi 19089rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19090rmdir conf$$.dir 2>/dev/null 19091 19092 19093# as_fn_mkdir_p 19094# ------------- 19095# Create "$as_dir" as a directory, including parents if necessary. 19096as_fn_mkdir_p () 19097{ 19098 19099 case $as_dir in #( 19100 -*) as_dir=./$as_dir;; 19101 esac 19102 test -d "$as_dir" || eval $as_mkdir_p || { 19103 as_dirs= 19104 while :; do 19105 case $as_dir in #( 19106 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19107 *) as_qdir=$as_dir;; 19108 esac 19109 as_dirs="'$as_qdir' $as_dirs" 19110 as_dir=`$as_dirname -- "$as_dir" || 19111$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19112 X"$as_dir" : 'X\(//\)[^/]' \| \ 19113 X"$as_dir" : 'X\(//\)$' \| \ 19114 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19115$as_echo X"$as_dir" | 19116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19117 s//\1/ 19118 q 19119 } 19120 /^X\(\/\/\)[^/].*/{ 19121 s//\1/ 19122 q 19123 } 19124 /^X\(\/\/\)$/{ 19125 s//\1/ 19126 q 19127 } 19128 /^X\(\/\).*/{ 19129 s//\1/ 19130 q 19131 } 19132 s/.*/./; q'` 19133 test -d "$as_dir" && break 19134 done 19135 test -z "$as_dirs" || eval "mkdir $as_dirs" 19136 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19137 19138 19139} # as_fn_mkdir_p 19140if mkdir -p . 2>/dev/null; then 19141 as_mkdir_p='mkdir -p "$as_dir"' 19142else 19143 test -d ./-p && rmdir ./-p 19144 as_mkdir_p=false 19145fi 19146 19147 19148# as_fn_executable_p FILE 19149# ----------------------- 19150# Test if FILE is an executable regular file. 19151as_fn_executable_p () 19152{ 19153 test -f "$1" && test -x "$1" 19154} # as_fn_executable_p 19155as_test_x='test -x' 19156as_executable_p=as_fn_executable_p 19157 19158# Sed expression to map a string onto a valid CPP name. 19159as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19160 19161# Sed expression to map a string onto a valid variable name. 19162as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19163 19164 19165exec 6>&1 19166## ----------------------------------- ## 19167## Main body of $CONFIG_STATUS script. ## 19168## ----------------------------------- ## 19169_ASEOF 19170test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19171 19172cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19173# Save the log message, to keep $0 and so on meaningful, and to 19174# report actual input values of CONFIG_FILES etc. instead of their 19175# values after options handling. 19176ac_log=" 19177This file was extended by libXpm $as_me 3.5.13, which was 19178generated by GNU Autoconf 2.69. Invocation command line was 19179 19180 CONFIG_FILES = $CONFIG_FILES 19181 CONFIG_HEADERS = $CONFIG_HEADERS 19182 CONFIG_LINKS = $CONFIG_LINKS 19183 CONFIG_COMMANDS = $CONFIG_COMMANDS 19184 $ $0 $@ 19185 19186on `(hostname || uname -n) 2>/dev/null | sed 1q` 19187" 19188 19189_ACEOF 19190 19191case $ac_config_files in *" 19192"*) set x $ac_config_files; shift; ac_config_files=$*;; 19193esac 19194 19195case $ac_config_headers in *" 19196"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19197esac 19198 19199 19200cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19201# Files that config.status was made for. 19202config_files="$ac_config_files" 19203config_headers="$ac_config_headers" 19204config_commands="$ac_config_commands" 19205 19206_ACEOF 19207 19208cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19209ac_cs_usage="\ 19210\`$as_me' instantiates files and other configuration actions 19211from templates according to the current configuration. Unless the files 19212and actions are specified as TAGs, all are instantiated by default. 19213 19214Usage: $0 [OPTION]... [TAG]... 19215 19216 -h, --help print this help, then exit 19217 -V, --version print version number and configuration settings, then exit 19218 --config print configuration, then exit 19219 -q, --quiet, --silent 19220 do not print progress messages 19221 -d, --debug don't remove temporary files 19222 --recheck update $as_me by reconfiguring in the same conditions 19223 --file=FILE[:TEMPLATE] 19224 instantiate the configuration file FILE 19225 --header=FILE[:TEMPLATE] 19226 instantiate the configuration header FILE 19227 19228Configuration files: 19229$config_files 19230 19231Configuration headers: 19232$config_headers 19233 19234Configuration commands: 19235$config_commands 19236 19237Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXpm/issues>." 19238 19239_ACEOF 19240cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19241ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19242ac_cs_version="\\ 19243libXpm config.status 3.5.13 19244configured by $0, generated by GNU Autoconf 2.69, 19245 with options \\"\$ac_cs_config\\" 19246 19247Copyright (C) 2012 Free Software Foundation, Inc. 19248This config.status script is free software; the Free Software Foundation 19249gives unlimited permission to copy, distribute and modify it." 19250 19251ac_pwd='$ac_pwd' 19252srcdir='$srcdir' 19253INSTALL='$INSTALL' 19254MKDIR_P='$MKDIR_P' 19255AWK='$AWK' 19256test -n "\$AWK" || AWK=awk 19257_ACEOF 19258 19259cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19260# The default lists apply if the user does not specify any file. 19261ac_need_defaults=: 19262while test $# != 0 19263do 19264 case $1 in 19265 --*=?*) 19266 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19267 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19268 ac_shift=: 19269 ;; 19270 --*=) 19271 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19272 ac_optarg= 19273 ac_shift=: 19274 ;; 19275 *) 19276 ac_option=$1 19277 ac_optarg=$2 19278 ac_shift=shift 19279 ;; 19280 esac 19281 19282 case $ac_option in 19283 # Handling of the options. 19284 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19285 ac_cs_recheck=: ;; 19286 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19287 $as_echo "$ac_cs_version"; exit ;; 19288 --config | --confi | --conf | --con | --co | --c ) 19289 $as_echo "$ac_cs_config"; exit ;; 19290 --debug | --debu | --deb | --de | --d | -d ) 19291 debug=: ;; 19292 --file | --fil | --fi | --f ) 19293 $ac_shift 19294 case $ac_optarg in 19295 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19296 '') as_fn_error $? "missing file argument" ;; 19297 esac 19298 as_fn_append CONFIG_FILES " '$ac_optarg'" 19299 ac_need_defaults=false;; 19300 --header | --heade | --head | --hea ) 19301 $ac_shift 19302 case $ac_optarg in 19303 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19304 esac 19305 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19306 ac_need_defaults=false;; 19307 --he | --h) 19308 # Conflict between --help and --header 19309 as_fn_error $? "ambiguous option: \`$1' 19310Try \`$0 --help' for more information.";; 19311 --help | --hel | -h ) 19312 $as_echo "$ac_cs_usage"; exit ;; 19313 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19314 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19315 ac_cs_silent=: ;; 19316 19317 # This is an error. 19318 -*) as_fn_error $? "unrecognized option: \`$1' 19319Try \`$0 --help' for more information." ;; 19320 19321 *) as_fn_append ac_config_targets " $1" 19322 ac_need_defaults=false ;; 19323 19324 esac 19325 shift 19326done 19327 19328ac_configure_extra_args= 19329 19330if $ac_cs_silent; then 19331 exec 6>/dev/null 19332 ac_configure_extra_args="$ac_configure_extra_args --silent" 19333fi 19334 19335_ACEOF 19336cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19337if \$ac_cs_recheck; then 19338 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19339 shift 19340 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19341 CONFIG_SHELL='$SHELL' 19342 export CONFIG_SHELL 19343 exec "\$@" 19344fi 19345 19346_ACEOF 19347cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19348exec 5>>config.log 19349{ 19350 echo 19351 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19352## Running $as_me. ## 19353_ASBOX 19354 $as_echo "$ac_log" 19355} >&5 19356 19357_ACEOF 19358cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19359# 19360# INIT-COMMANDS 19361# 19362AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 19363 19364 19365# The HP-UX ksh and POSIX shell print the target directory to stdout 19366# if CDPATH is set. 19367(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19368 19369sed_quote_subst='$sed_quote_subst' 19370double_quote_subst='$double_quote_subst' 19371delay_variable_subst='$delay_variable_subst' 19372macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19373macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19374enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19375enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19376pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19377enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19378shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 19379SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19380ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19381PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19382host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19383host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19384host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19385build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19386build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19387build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19388SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19389Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19390GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19391EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19392FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19393LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19394NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19395LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19396max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19397ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19398exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19399lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19400lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19401lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19402lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19403lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19404reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19405reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19406OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19407deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19408file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19409file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19410want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19411DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19412sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19413AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19414AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19415archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19416STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19417RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19418old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19419old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19420old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19421lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19422CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19423CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19424compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19425GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19426lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19427lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19428lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 19429lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19430lt_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"`' 19431lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 19432nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19433lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19434lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 19435objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19436MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19437lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19438lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19439lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19440lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19441lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19442need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19443MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19444DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19445NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19446LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19447OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19448OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19449libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19450shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19451extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19452archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19453enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19454export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19455whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19456compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19457old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19458old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19459archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19460archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19461module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19462module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19463with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19464allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19465no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19466hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19467hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19468hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19469hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19470hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19471hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19472hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19473inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19474link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19475always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19476export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19477exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19478include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19479prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19480postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19481file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19482variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19483need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19484need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19485version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19486runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19487shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19488shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19489libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19490library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19491soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19492install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19493postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19494postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19495finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19496finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19497hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19498sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19499configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 19500configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 19501hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19502enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19503enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19504enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19505old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19506striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19507 19508LTCC='$LTCC' 19509LTCFLAGS='$LTCFLAGS' 19510compiler='$compiler_DEFAULT' 19511 19512# A function that is used when there is no print builtin or printf. 19513func_fallback_echo () 19514{ 19515 eval 'cat <<_LTECHO_EOF 19516\$1 19517_LTECHO_EOF' 19518} 19519 19520# Quote evaled strings. 19521for var in SHELL \ 19522ECHO \ 19523PATH_SEPARATOR \ 19524SED \ 19525GREP \ 19526EGREP \ 19527FGREP \ 19528LD \ 19529NM \ 19530LN_S \ 19531lt_SP2NL \ 19532lt_NL2SP \ 19533reload_flag \ 19534OBJDUMP \ 19535deplibs_check_method \ 19536file_magic_cmd \ 19537file_magic_glob \ 19538want_nocaseglob \ 19539DLLTOOL \ 19540sharedlib_from_linklib_cmd \ 19541AR \ 19542AR_FLAGS \ 19543archiver_list_spec \ 19544STRIP \ 19545RANLIB \ 19546CC \ 19547CFLAGS \ 19548compiler \ 19549lt_cv_sys_global_symbol_pipe \ 19550lt_cv_sys_global_symbol_to_cdecl \ 19551lt_cv_sys_global_symbol_to_import \ 19552lt_cv_sys_global_symbol_to_c_name_address \ 19553lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19554lt_cv_nm_interface \ 19555nm_file_list_spec \ 19556lt_cv_truncate_bin \ 19557lt_prog_compiler_no_builtin_flag \ 19558lt_prog_compiler_pic \ 19559lt_prog_compiler_wl \ 19560lt_prog_compiler_static \ 19561lt_cv_prog_compiler_c_o \ 19562need_locks \ 19563MANIFEST_TOOL \ 19564DSYMUTIL \ 19565NMEDIT \ 19566LIPO \ 19567OTOOL \ 19568OTOOL64 \ 19569shrext_cmds \ 19570export_dynamic_flag_spec \ 19571whole_archive_flag_spec \ 19572compiler_needs_object \ 19573with_gnu_ld \ 19574allow_undefined_flag \ 19575no_undefined_flag \ 19576hardcode_libdir_flag_spec \ 19577hardcode_libdir_separator \ 19578exclude_expsyms \ 19579include_expsyms \ 19580file_list_spec \ 19581variables_saved_for_relink \ 19582libname_spec \ 19583library_names_spec \ 19584soname_spec \ 19585install_override_mode \ 19586finish_eval \ 19587old_striplib \ 19588striplib; do 19589 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19590 *[\\\\\\\`\\"\\\$]*) 19591 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19592 ;; 19593 *) 19594 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19595 ;; 19596 esac 19597done 19598 19599# Double-quote double-evaled strings. 19600for var in reload_cmds \ 19601old_postinstall_cmds \ 19602old_postuninstall_cmds \ 19603old_archive_cmds \ 19604extract_expsyms_cmds \ 19605old_archive_from_new_cmds \ 19606old_archive_from_expsyms_cmds \ 19607archive_cmds \ 19608archive_expsym_cmds \ 19609module_cmds \ 19610module_expsym_cmds \ 19611export_symbols_cmds \ 19612prelink_cmds \ 19613postlink_cmds \ 19614postinstall_cmds \ 19615postuninstall_cmds \ 19616finish_cmds \ 19617sys_lib_search_path_spec \ 19618configure_time_dlsearch_path \ 19619configure_time_lt_sys_library_path; do 19620 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19621 *[\\\\\\\`\\"\\\$]*) 19622 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19623 ;; 19624 *) 19625 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19626 ;; 19627 esac 19628done 19629 19630ac_aux_dir='$ac_aux_dir' 19631 19632# See if we are running on zsh, and set the options that allow our 19633# commands through without removal of \ escapes INIT. 19634if test -n "\${ZSH_VERSION+set}"; then 19635 setopt NO_GLOB_SUBST 19636fi 19637 19638 19639 PACKAGE='$PACKAGE' 19640 VERSION='$VERSION' 19641 RM='$RM' 19642 ofile='$ofile' 19643 19644 19645 19646 19647_ACEOF 19648 19649cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19650 19651# Handling of arguments. 19652for ac_config_target in $ac_config_targets 19653do 19654 case $ac_config_target in 19655 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19656 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19657 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19658 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19659 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 19660 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 19661 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 19662 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19663 "sxpm/Makefile") CONFIG_FILES="$CONFIG_FILES sxpm/Makefile" ;; 19664 "cxpm/Makefile") CONFIG_FILES="$CONFIG_FILES cxpm/Makefile" ;; 19665 "xpm.pc") CONFIG_FILES="$CONFIG_FILES xpm.pc" ;; 19666 19667 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19668 esac 19669done 19670 19671 19672# If the user did not use the arguments to specify the items to instantiate, 19673# then the envvar interface is used. Set only those that are not. 19674# We use the long form for the default assignment because of an extremely 19675# bizarre bug on SunOS 4.1.3. 19676if $ac_need_defaults; then 19677 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19678 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19679 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19680fi 19681 19682# Have a temporary directory for convenience. Make it in the build tree 19683# simply because there is no reason against having it here, and in addition, 19684# creating and moving files from /tmp can sometimes cause problems. 19685# Hook for its removal unless debugging. 19686# Note that there is a small window in which the directory will not be cleaned: 19687# after its creation but before its name has been assigned to `$tmp'. 19688$debug || 19689{ 19690 tmp= ac_tmp= 19691 trap 'exit_status=$? 19692 : "${ac_tmp:=$tmp}" 19693 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19694' 0 19695 trap 'as_fn_exit 1' 1 2 13 15 19696} 19697# Create a (secure) tmp directory for tmp files. 19698 19699{ 19700 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19701 test -d "$tmp" 19702} || 19703{ 19704 tmp=./conf$$-$RANDOM 19705 (umask 077 && mkdir "$tmp") 19706} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19707ac_tmp=$tmp 19708 19709# Set up the scripts for CONFIG_FILES section. 19710# No need to generate them if there are no CONFIG_FILES. 19711# This happens for instance with `./config.status config.h'. 19712if test -n "$CONFIG_FILES"; then 19713 19714 19715ac_cr=`echo X | tr X '\015'` 19716# On cygwin, bash can eat \r inside `` if the user requested igncr. 19717# But we know of no other shell where ac_cr would be empty at this 19718# point, so we can use a bashism as a fallback. 19719if test "x$ac_cr" = x; then 19720 eval ac_cr=\$\'\\r\' 19721fi 19722ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19723if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19724 ac_cs_awk_cr='\\r' 19725else 19726 ac_cs_awk_cr=$ac_cr 19727fi 19728 19729echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19730_ACEOF 19731 19732 19733{ 19734 echo "cat >conf$$subs.awk <<_ACEOF" && 19735 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19736 echo "_ACEOF" 19737} >conf$$subs.sh || 19738 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19739ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19740ac_delim='%!_!# ' 19741for ac_last_try in false false false false false :; do 19742 . ./conf$$subs.sh || 19743 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19744 19745 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19746 if test $ac_delim_n = $ac_delim_num; then 19747 break 19748 elif $ac_last_try; then 19749 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19750 else 19751 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19752 fi 19753done 19754rm -f conf$$subs.sh 19755 19756cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19757cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19758_ACEOF 19759sed -n ' 19760h 19761s/^/S["/; s/!.*/"]=/ 19762p 19763g 19764s/^[^!]*!// 19765:repl 19766t repl 19767s/'"$ac_delim"'$// 19768t delim 19769:nl 19770h 19771s/\(.\{148\}\)..*/\1/ 19772t more1 19773s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19774p 19775n 19776b repl 19777:more1 19778s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19779p 19780g 19781s/.\{148\}// 19782t nl 19783:delim 19784h 19785s/\(.\{148\}\)..*/\1/ 19786t more2 19787s/["\\]/\\&/g; s/^/"/; s/$/"/ 19788p 19789b 19790:more2 19791s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19792p 19793g 19794s/.\{148\}// 19795t delim 19796' <conf$$subs.awk | sed ' 19797/^[^""]/{ 19798 N 19799 s/\n// 19800} 19801' >>$CONFIG_STATUS || ac_write_fail=1 19802rm -f conf$$subs.awk 19803cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19804_ACAWK 19805cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19806 for (key in S) S_is_set[key] = 1 19807 FS = "" 19808 19809} 19810{ 19811 line = $ 0 19812 nfields = split(line, field, "@") 19813 substed = 0 19814 len = length(field[1]) 19815 for (i = 2; i < nfields; i++) { 19816 key = field[i] 19817 keylen = length(key) 19818 if (S_is_set[key]) { 19819 value = S[key] 19820 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19821 len += length(value) + length(field[++i]) 19822 substed = 1 19823 } else 19824 len += 1 + keylen 19825 } 19826 19827 print line 19828} 19829 19830_ACAWK 19831_ACEOF 19832cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19833if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19834 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19835else 19836 cat 19837fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19838 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19839_ACEOF 19840 19841# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19842# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19843# trailing colons and then remove the whole line if VPATH becomes empty 19844# (actually we leave an empty line to preserve line numbers). 19845if test "x$srcdir" = x.; then 19846 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19847h 19848s/// 19849s/^/:/ 19850s/[ ]*$/:/ 19851s/:\$(srcdir):/:/g 19852s/:\${srcdir}:/:/g 19853s/:@srcdir@:/:/g 19854s/^:*// 19855s/:*$// 19856x 19857s/\(=[ ]*\).*/\1/ 19858G 19859s/\n// 19860s/^[^=]*=[ ]*$// 19861}' 19862fi 19863 19864cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19865fi # test -n "$CONFIG_FILES" 19866 19867# Set up the scripts for CONFIG_HEADERS section. 19868# No need to generate them if there are no CONFIG_HEADERS. 19869# This happens for instance with `./config.status Makefile'. 19870if test -n "$CONFIG_HEADERS"; then 19871cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19872BEGIN { 19873_ACEOF 19874 19875# Transform confdefs.h into an awk script `defines.awk', embedded as 19876# here-document in config.status, that substitutes the proper values into 19877# config.h.in to produce config.h. 19878 19879# Create a delimiter string that does not exist in confdefs.h, to ease 19880# handling of long lines. 19881ac_delim='%!_!# ' 19882for ac_last_try in false false :; do 19883 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19884 if test -z "$ac_tt"; then 19885 break 19886 elif $ac_last_try; then 19887 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19888 else 19889 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19890 fi 19891done 19892 19893# For the awk script, D is an array of macro values keyed by name, 19894# likewise P contains macro parameters if any. Preserve backslash 19895# newline sequences. 19896 19897ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19898sed -n ' 19899s/.\{148\}/&'"$ac_delim"'/g 19900t rset 19901:rset 19902s/^[ ]*#[ ]*define[ ][ ]*/ / 19903t def 19904d 19905:def 19906s/\\$// 19907t bsnl 19908s/["\\]/\\&/g 19909s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19910D["\1"]=" \3"/p 19911s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19912d 19913:bsnl 19914s/["\\]/\\&/g 19915s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19916D["\1"]=" \3\\\\\\n"\\/p 19917t cont 19918s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19919t cont 19920d 19921:cont 19922n 19923s/.\{148\}/&'"$ac_delim"'/g 19924t clear 19925:clear 19926s/\\$// 19927t bsnlc 19928s/["\\]/\\&/g; s/^/"/; s/$/"/p 19929d 19930:bsnlc 19931s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19932b cont 19933' <confdefs.h | sed ' 19934s/'"$ac_delim"'/"\\\ 19935"/g' >>$CONFIG_STATUS || ac_write_fail=1 19936 19937cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19938 for (key in D) D_is_set[key] = 1 19939 FS = "" 19940} 19941/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19942 line = \$ 0 19943 split(line, arg, " ") 19944 if (arg[1] == "#") { 19945 defundef = arg[2] 19946 mac1 = arg[3] 19947 } else { 19948 defundef = substr(arg[1], 2) 19949 mac1 = arg[2] 19950 } 19951 split(mac1, mac2, "(") #) 19952 macro = mac2[1] 19953 prefix = substr(line, 1, index(line, defundef) - 1) 19954 if (D_is_set[macro]) { 19955 # Preserve the white space surrounding the "#". 19956 print prefix "define", macro P[macro] D[macro] 19957 next 19958 } else { 19959 # Replace #undef with comments. This is necessary, for example, 19960 # in the case of _POSIX_SOURCE, which is predefined and required 19961 # on some systems where configure will not decide to define it. 19962 if (defundef == "undef") { 19963 print "/*", prefix defundef, macro, "*/" 19964 next 19965 } 19966 } 19967} 19968{ print } 19969_ACAWK 19970_ACEOF 19971cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19972 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19973fi # test -n "$CONFIG_HEADERS" 19974 19975 19976eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19977shift 19978for ac_tag 19979do 19980 case $ac_tag in 19981 :[FHLC]) ac_mode=$ac_tag; continue;; 19982 esac 19983 case $ac_mode$ac_tag in 19984 :[FHL]*:*);; 19985 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19986 :[FH]-) ac_tag=-:-;; 19987 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19988 esac 19989 ac_save_IFS=$IFS 19990 IFS=: 19991 set x $ac_tag 19992 IFS=$ac_save_IFS 19993 shift 19994 ac_file=$1 19995 shift 19996 19997 case $ac_mode in 19998 :L) ac_source=$1;; 19999 :[FH]) 20000 ac_file_inputs= 20001 for ac_f 20002 do 20003 case $ac_f in 20004 -) ac_f="$ac_tmp/stdin";; 20005 *) # Look for the file first in the build tree, then in the source tree 20006 # (if the path is not absolute). The absolute path cannot be DOS-style, 20007 # because $ac_f cannot contain `:'. 20008 test -f "$ac_f" || 20009 case $ac_f in 20010 [\\/$]*) false;; 20011 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20012 esac || 20013 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20014 esac 20015 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20016 as_fn_append ac_file_inputs " '$ac_f'" 20017 done 20018 20019 # Let's still pretend it is `configure' which instantiates (i.e., don't 20020 # use $as_me), people would be surprised to read: 20021 # /* config.h. Generated by config.status. */ 20022 configure_input='Generated from '` 20023 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20024 `' by configure.' 20025 if test x"$ac_file" != x-; then 20026 configure_input="$ac_file. $configure_input" 20027 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20028$as_echo "$as_me: creating $ac_file" >&6;} 20029 fi 20030 # Neutralize special characters interpreted by sed in replacement strings. 20031 case $configure_input in #( 20032 *\&* | *\|* | *\\* ) 20033 ac_sed_conf_input=`$as_echo "$configure_input" | 20034 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20035 *) ac_sed_conf_input=$configure_input;; 20036 esac 20037 20038 case $ac_tag in 20039 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20040 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20041 esac 20042 ;; 20043 esac 20044 20045 ac_dir=`$as_dirname -- "$ac_file" || 20046$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20047 X"$ac_file" : 'X\(//\)[^/]' \| \ 20048 X"$ac_file" : 'X\(//\)$' \| \ 20049 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20050$as_echo X"$ac_file" | 20051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20052 s//\1/ 20053 q 20054 } 20055 /^X\(\/\/\)[^/].*/{ 20056 s//\1/ 20057 q 20058 } 20059 /^X\(\/\/\)$/{ 20060 s//\1/ 20061 q 20062 } 20063 /^X\(\/\).*/{ 20064 s//\1/ 20065 q 20066 } 20067 s/.*/./; q'` 20068 as_dir="$ac_dir"; as_fn_mkdir_p 20069 ac_builddir=. 20070 20071case "$ac_dir" in 20072.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20073*) 20074 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20075 # A ".." for each directory in $ac_dir_suffix. 20076 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20077 case $ac_top_builddir_sub in 20078 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20079 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20080 esac ;; 20081esac 20082ac_abs_top_builddir=$ac_pwd 20083ac_abs_builddir=$ac_pwd$ac_dir_suffix 20084# for backward compatibility: 20085ac_top_builddir=$ac_top_build_prefix 20086 20087case $srcdir in 20088 .) # We are building in place. 20089 ac_srcdir=. 20090 ac_top_srcdir=$ac_top_builddir_sub 20091 ac_abs_top_srcdir=$ac_pwd ;; 20092 [\\/]* | ?:[\\/]* ) # Absolute name. 20093 ac_srcdir=$srcdir$ac_dir_suffix; 20094 ac_top_srcdir=$srcdir 20095 ac_abs_top_srcdir=$srcdir ;; 20096 *) # Relative name. 20097 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20098 ac_top_srcdir=$ac_top_build_prefix$srcdir 20099 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20100esac 20101ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20102 20103 20104 case $ac_mode in 20105 :F) 20106 # 20107 # CONFIG_FILE 20108 # 20109 20110 case $INSTALL in 20111 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20112 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20113 esac 20114 ac_MKDIR_P=$MKDIR_P 20115 case $MKDIR_P in 20116 [\\/$]* | ?:[\\/]* ) ;; 20117 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20118 esac 20119_ACEOF 20120 20121cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20122# If the template does not know about datarootdir, expand it. 20123# FIXME: This hack should be removed a few years after 2.60. 20124ac_datarootdir_hack=; ac_datarootdir_seen= 20125ac_sed_dataroot=' 20126/datarootdir/ { 20127 p 20128 q 20129} 20130/@datadir@/p 20131/@docdir@/p 20132/@infodir@/p 20133/@localedir@/p 20134/@mandir@/p' 20135case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20136*datarootdir*) ac_datarootdir_seen=yes;; 20137*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20139$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20140_ACEOF 20141cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20142 ac_datarootdir_hack=' 20143 s&@datadir@&$datadir&g 20144 s&@docdir@&$docdir&g 20145 s&@infodir@&$infodir&g 20146 s&@localedir@&$localedir&g 20147 s&@mandir@&$mandir&g 20148 s&\\\${datarootdir}&$datarootdir&g' ;; 20149esac 20150_ACEOF 20151 20152# Neutralize VPATH when `$srcdir' = `.'. 20153# Shell code in configure.ac might set extrasub. 20154# FIXME: do we really want to maintain this feature? 20155cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20156ac_sed_extra="$ac_vpsub 20157$extrasub 20158_ACEOF 20159cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20160:t 20161/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20162s|@configure_input@|$ac_sed_conf_input|;t t 20163s&@top_builddir@&$ac_top_builddir_sub&;t t 20164s&@top_build_prefix@&$ac_top_build_prefix&;t t 20165s&@srcdir@&$ac_srcdir&;t t 20166s&@abs_srcdir@&$ac_abs_srcdir&;t t 20167s&@top_srcdir@&$ac_top_srcdir&;t t 20168s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20169s&@builddir@&$ac_builddir&;t t 20170s&@abs_builddir@&$ac_abs_builddir&;t t 20171s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20172s&@INSTALL@&$ac_INSTALL&;t t 20173s&@MKDIR_P@&$ac_MKDIR_P&;t t 20174$ac_datarootdir_hack 20175" 20176eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20177 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20178 20179test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20180 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20181 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20182 "$ac_tmp/out"`; test -z "$ac_out"; } && 20183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20184which seems to be undefined. Please make sure it is defined" >&5 20185$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20186which seems to be undefined. Please make sure it is defined" >&2;} 20187 20188 rm -f "$ac_tmp/stdin" 20189 case $ac_file in 20190 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20191 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20192 esac \ 20193 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20194 ;; 20195 :H) 20196 # 20197 # CONFIG_HEADER 20198 # 20199 if test x"$ac_file" != x-; then 20200 { 20201 $as_echo "/* $configure_input */" \ 20202 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20203 } >"$ac_tmp/config.h" \ 20204 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20205 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20206 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20207$as_echo "$as_me: $ac_file is unchanged" >&6;} 20208 else 20209 rm -f "$ac_file" 20210 mv "$ac_tmp/config.h" "$ac_file" \ 20211 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20212 fi 20213 else 20214 $as_echo "/* $configure_input */" \ 20215 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20216 || as_fn_error $? "could not create -" "$LINENO" 5 20217 fi 20218# Compute "$ac_file"'s index in $config_headers. 20219_am_arg="$ac_file" 20220_am_stamp_count=1 20221for _am_header in $config_headers :; do 20222 case $_am_header in 20223 $_am_arg | $_am_arg:* ) 20224 break ;; 20225 * ) 20226 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20227 esac 20228done 20229echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20230$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20231 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20232 X"$_am_arg" : 'X\(//\)$' \| \ 20233 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20234$as_echo X"$_am_arg" | 20235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20236 s//\1/ 20237 q 20238 } 20239 /^X\(\/\/\)[^/].*/{ 20240 s//\1/ 20241 q 20242 } 20243 /^X\(\/\/\)$/{ 20244 s//\1/ 20245 q 20246 } 20247 /^X\(\/\).*/{ 20248 s//\1/ 20249 q 20250 } 20251 s/.*/./; q'`/stamp-h$_am_stamp_count 20252 ;; 20253 20254 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20255$as_echo "$as_me: executing $ac_file commands" >&6;} 20256 ;; 20257 esac 20258 20259 20260 case $ac_file$ac_mode in 20261 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20262 # Older Autoconf quotes --file arguments for eval, but not when files 20263 # are listed without --file. Let's play safe and only enable the eval 20264 # if we detect the quoting. 20265 # TODO: see whether this extra hack can be removed once we start 20266 # requiring Autoconf 2.70 or later. 20267 case $CONFIG_FILES in #( 20268 *\'*) : 20269 eval set x "$CONFIG_FILES" ;; #( 20270 *) : 20271 set x $CONFIG_FILES ;; #( 20272 *) : 20273 ;; 20274esac 20275 shift 20276 # Used to flag and report bootstrapping failures. 20277 am_rc=0 20278 for am_mf 20279 do 20280 # Strip MF so we end up with the name of the file. 20281 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 20282 # Check whether this is an Automake generated Makefile which includes 20283 # dependency-tracking related rules and includes. 20284 # Grep'ing the whole file directly is not great: AIX grep has a line 20285 # limit of 2048, but all sed's we know have understand at least 4000. 20286 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 20287 || continue 20288 am_dirpart=`$as_dirname -- "$am_mf" || 20289$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20290 X"$am_mf" : 'X\(//\)[^/]' \| \ 20291 X"$am_mf" : 'X\(//\)$' \| \ 20292 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 20293$as_echo X"$am_mf" | 20294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20295 s//\1/ 20296 q 20297 } 20298 /^X\(\/\/\)[^/].*/{ 20299 s//\1/ 20300 q 20301 } 20302 /^X\(\/\/\)$/{ 20303 s//\1/ 20304 q 20305 } 20306 /^X\(\/\).*/{ 20307 s//\1/ 20308 q 20309 } 20310 s/.*/./; q'` 20311 am_filepart=`$as_basename -- "$am_mf" || 20312$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 20313 X"$am_mf" : 'X\(//\)$' \| \ 20314 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 20315$as_echo X/"$am_mf" | 20316 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20317 s//\1/ 20318 q 20319 } 20320 /^X\/\(\/\/\)$/{ 20321 s//\1/ 20322 q 20323 } 20324 /^X\/\(\/\).*/{ 20325 s//\1/ 20326 q 20327 } 20328 s/.*/./; q'` 20329 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 20330 && sed -e '/# am--include-marker/d' "$am_filepart" \ 20331 | $MAKE -f - am--depfiles" >&5 20332 (cd "$am_dirpart" \ 20333 && sed -e '/# am--include-marker/d' "$am_filepart" \ 20334 | $MAKE -f - am--depfiles) >&5 2>&5 20335 ac_status=$? 20336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20337 (exit $ac_status); } || am_rc=$? 20338 done 20339 if test $am_rc -ne 0; then 20340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20341$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20342as_fn_error $? "Something went wrong bootstrapping makefile fragments 20343 for automatic dependency tracking. Try re-running configure with the 20344 '--disable-dependency-tracking' option to at least be able to build 20345 the package (albeit without support for automatic dependency tracking). 20346See \`config.log' for more details" "$LINENO" 5; } 20347 fi 20348 { am_dirpart=; unset am_dirpart;} 20349 { am_filepart=; unset am_filepart;} 20350 { am_mf=; unset am_mf;} 20351 { am_rc=; unset am_rc;} 20352 rm -f conftest-deps.mk 20353} 20354 ;; 20355 "libtool":C) 20356 20357 # See if we are running on zsh, and set the options that allow our 20358 # commands through without removal of \ escapes. 20359 if test -n "${ZSH_VERSION+set}"; then 20360 setopt NO_GLOB_SUBST 20361 fi 20362 20363 cfgfile=${ofile}T 20364 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20365 $RM "$cfgfile" 20366 20367 cat <<_LT_EOF >> "$cfgfile" 20368#! $SHELL 20369# Generated automatically by $as_me ($PACKAGE) $VERSION 20370# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20371# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20372 20373# Provide generalized library-building support services. 20374# Written by Gordon Matzigkeit, 1996 20375 20376# Copyright (C) 2014 Free Software Foundation, Inc. 20377# This is free software; see the source for copying conditions. There is NO 20378# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 20379 20380# GNU Libtool is free software; you can redistribute it and/or modify 20381# it under the terms of the GNU General Public License as published by 20382# the Free Software Foundation; either version 2 of of the License, or 20383# (at your option) any later version. 20384# 20385# As a special exception to the GNU General Public License, if you 20386# distribute this file as part of a program or library that is built 20387# using GNU Libtool, you may include this file under the same 20388# distribution terms that you use for the rest of that program. 20389# 20390# GNU Libtool is distributed in the hope that it will be useful, but 20391# WITHOUT ANY WARRANTY; without even the implied warranty of 20392# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20393# GNU General Public License for more details. 20394# 20395# You should have received a copy of the GNU General Public License 20396# along with this program. If not, see <http://www.gnu.org/licenses/>. 20397 20398 20399# The names of the tagged configurations supported by this script. 20400available_tags='' 20401 20402# Configured defaults for sys_lib_dlsearch_path munging. 20403: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 20404 20405# ### BEGIN LIBTOOL CONFIG 20406 20407# Which release of libtool.m4 was used? 20408macro_version=$macro_version 20409macro_revision=$macro_revision 20410 20411# Whether or not to build shared libraries. 20412build_libtool_libs=$enable_shared 20413 20414# Whether or not to build static libraries. 20415build_old_libs=$enable_static 20416 20417# What type of objects to build. 20418pic_mode=$pic_mode 20419 20420# Whether or not to optimize for fast installation. 20421fast_install=$enable_fast_install 20422 20423# Shared archive member basename,for filename based shared library versioning on AIX. 20424shared_archive_member_spec=$shared_archive_member_spec 20425 20426# Shell to use when invoking shell scripts. 20427SHELL=$lt_SHELL 20428 20429# An echo program that protects backslashes. 20430ECHO=$lt_ECHO 20431 20432# The PATH separator for the build system. 20433PATH_SEPARATOR=$lt_PATH_SEPARATOR 20434 20435# The host system. 20436host_alias=$host_alias 20437host=$host 20438host_os=$host_os 20439 20440# The build system. 20441build_alias=$build_alias 20442build=$build 20443build_os=$build_os 20444 20445# A sed program that does not truncate output. 20446SED=$lt_SED 20447 20448# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20449Xsed="\$SED -e 1s/^X//" 20450 20451# A grep program that handles long lines. 20452GREP=$lt_GREP 20453 20454# An ERE matcher. 20455EGREP=$lt_EGREP 20456 20457# A literal string matcher. 20458FGREP=$lt_FGREP 20459 20460# A BSD- or MS-compatible name lister. 20461NM=$lt_NM 20462 20463# Whether we need soft or hard links. 20464LN_S=$lt_LN_S 20465 20466# What is the maximum length of a command? 20467max_cmd_len=$max_cmd_len 20468 20469# Object file suffix (normally "o"). 20470objext=$ac_objext 20471 20472# Executable file suffix (normally ""). 20473exeext=$exeext 20474 20475# whether the shell understands "unset". 20476lt_unset=$lt_unset 20477 20478# turn spaces into newlines. 20479SP2NL=$lt_lt_SP2NL 20480 20481# turn newlines into spaces. 20482NL2SP=$lt_lt_NL2SP 20483 20484# convert \$build file names to \$host format. 20485to_host_file_cmd=$lt_cv_to_host_file_cmd 20486 20487# convert \$build files to toolchain format. 20488to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20489 20490# An object symbol dumper. 20491OBJDUMP=$lt_OBJDUMP 20492 20493# Method to check whether dependent libraries are shared objects. 20494deplibs_check_method=$lt_deplibs_check_method 20495 20496# Command to use when deplibs_check_method = "file_magic". 20497file_magic_cmd=$lt_file_magic_cmd 20498 20499# How to find potential files when deplibs_check_method = "file_magic". 20500file_magic_glob=$lt_file_magic_glob 20501 20502# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20503want_nocaseglob=$lt_want_nocaseglob 20504 20505# DLL creation program. 20506DLLTOOL=$lt_DLLTOOL 20507 20508# Command to associate shared and link libraries. 20509sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20510 20511# The archiver. 20512AR=$lt_AR 20513 20514# Flags to create an archive. 20515AR_FLAGS=$lt_AR_FLAGS 20516 20517# How to feed a file listing to the archiver. 20518archiver_list_spec=$lt_archiver_list_spec 20519 20520# A symbol stripping program. 20521STRIP=$lt_STRIP 20522 20523# Commands used to install an old-style archive. 20524RANLIB=$lt_RANLIB 20525old_postinstall_cmds=$lt_old_postinstall_cmds 20526old_postuninstall_cmds=$lt_old_postuninstall_cmds 20527 20528# Whether to use a lock for old archive extraction. 20529lock_old_archive_extraction=$lock_old_archive_extraction 20530 20531# A C compiler. 20532LTCC=$lt_CC 20533 20534# LTCC compiler flags. 20535LTCFLAGS=$lt_CFLAGS 20536 20537# Take the output of nm and produce a listing of raw symbols and C names. 20538global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20539 20540# Transform the output of nm in a proper C declaration. 20541global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20542 20543# Transform the output of nm into a list of symbols to manually relocate. 20544global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 20545 20546# Transform the output of nm in a C name address pair. 20547global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20548 20549# Transform the output of nm in a C name address pair when lib prefix is needed. 20550global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20551 20552# The name lister interface. 20553nm_interface=$lt_lt_cv_nm_interface 20554 20555# Specify filename containing input files for \$NM. 20556nm_file_list_spec=$lt_nm_file_list_spec 20557 20558# The root where to search for dependent libraries,and where our libraries should be installed. 20559lt_sysroot=$lt_sysroot 20560 20561# Command to truncate a binary pipe. 20562lt_truncate_bin=$lt_lt_cv_truncate_bin 20563 20564# The name of the directory that contains temporary libtool files. 20565objdir=$objdir 20566 20567# Used to examine libraries when file_magic_cmd begins with "file". 20568MAGIC_CMD=$MAGIC_CMD 20569 20570# Must we lock files when doing compilation? 20571need_locks=$lt_need_locks 20572 20573# Manifest tool. 20574MANIFEST_TOOL=$lt_MANIFEST_TOOL 20575 20576# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20577DSYMUTIL=$lt_DSYMUTIL 20578 20579# Tool to change global to local symbols on Mac OS X. 20580NMEDIT=$lt_NMEDIT 20581 20582# Tool to manipulate fat objects and archives on Mac OS X. 20583LIPO=$lt_LIPO 20584 20585# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20586OTOOL=$lt_OTOOL 20587 20588# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20589OTOOL64=$lt_OTOOL64 20590 20591# Old archive suffix (normally "a"). 20592libext=$libext 20593 20594# Shared library suffix (normally ".so"). 20595shrext_cmds=$lt_shrext_cmds 20596 20597# The commands to extract the exported symbol list from a shared archive. 20598extract_expsyms_cmds=$lt_extract_expsyms_cmds 20599 20600# Variables whose values should be saved in libtool wrapper scripts and 20601# restored at link time. 20602variables_saved_for_relink=$lt_variables_saved_for_relink 20603 20604# Do we need the "lib" prefix for modules? 20605need_lib_prefix=$need_lib_prefix 20606 20607# Do we need a version for libraries? 20608need_version=$need_version 20609 20610# Library versioning type. 20611version_type=$version_type 20612 20613# Shared library runtime path variable. 20614runpath_var=$runpath_var 20615 20616# Shared library path variable. 20617shlibpath_var=$shlibpath_var 20618 20619# Is shlibpath searched before the hard-coded library search path? 20620shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20621 20622# Format of library name prefix. 20623libname_spec=$lt_libname_spec 20624 20625# List of archive names. First name is the real one, the rest are links. 20626# The last name is the one that the linker finds with -lNAME 20627library_names_spec=$lt_library_names_spec 20628 20629# The coded name of the library, if different from the real name. 20630soname_spec=$lt_soname_spec 20631 20632# Permission mode override for installation of shared libraries. 20633install_override_mode=$lt_install_override_mode 20634 20635# Command to use after installation of a shared archive. 20636postinstall_cmds=$lt_postinstall_cmds 20637 20638# Command to use after uninstallation of a shared archive. 20639postuninstall_cmds=$lt_postuninstall_cmds 20640 20641# Commands used to finish a libtool library installation in a directory. 20642finish_cmds=$lt_finish_cmds 20643 20644# As "finish_cmds", except a single script fragment to be evaled but 20645# not shown. 20646finish_eval=$lt_finish_eval 20647 20648# Whether we should hardcode library paths into libraries. 20649hardcode_into_libs=$hardcode_into_libs 20650 20651# Compile-time system search path for libraries. 20652sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20653 20654# Detected run-time system search path for libraries. 20655sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 20656 20657# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 20658configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 20659 20660# Whether dlopen is supported. 20661dlopen_support=$enable_dlopen 20662 20663# Whether dlopen of programs is supported. 20664dlopen_self=$enable_dlopen_self 20665 20666# Whether dlopen of statically linked programs is supported. 20667dlopen_self_static=$enable_dlopen_self_static 20668 20669# Commands to strip libraries. 20670old_striplib=$lt_old_striplib 20671striplib=$lt_striplib 20672 20673 20674# The linker used to build libraries. 20675LD=$lt_LD 20676 20677# How to create reloadable object files. 20678reload_flag=$lt_reload_flag 20679reload_cmds=$lt_reload_cmds 20680 20681# Commands used to build an old-style archive. 20682old_archive_cmds=$lt_old_archive_cmds 20683 20684# A language specific compiler. 20685CC=$lt_compiler 20686 20687# Is the compiler the GNU compiler? 20688with_gcc=$GCC 20689 20690# Compiler flag to turn off builtin functions. 20691no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20692 20693# Additional compiler flags for building library objects. 20694pic_flag=$lt_lt_prog_compiler_pic 20695 20696# How to pass a linker flag through the compiler. 20697wl=$lt_lt_prog_compiler_wl 20698 20699# Compiler flag to prevent dynamic linking. 20700link_static_flag=$lt_lt_prog_compiler_static 20701 20702# Does compiler simultaneously support -c and -o options? 20703compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20704 20705# Whether or not to add -lc for building shared libraries. 20706build_libtool_need_lc=$archive_cmds_need_lc 20707 20708# Whether or not to disallow shared libs when runtime libs are static. 20709allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20710 20711# Compiler flag to allow reflexive dlopens. 20712export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20713 20714# Compiler flag to generate shared objects directly from archives. 20715whole_archive_flag_spec=$lt_whole_archive_flag_spec 20716 20717# Whether the compiler copes with passing no objects directly. 20718compiler_needs_object=$lt_compiler_needs_object 20719 20720# Create an old-style archive from a shared archive. 20721old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20722 20723# Create a temporary old-style archive to link instead of a shared archive. 20724old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20725 20726# Commands used to build a shared archive. 20727archive_cmds=$lt_archive_cmds 20728archive_expsym_cmds=$lt_archive_expsym_cmds 20729 20730# Commands used to build a loadable module if different from building 20731# a shared archive. 20732module_cmds=$lt_module_cmds 20733module_expsym_cmds=$lt_module_expsym_cmds 20734 20735# Whether we are building with GNU ld or not. 20736with_gnu_ld=$lt_with_gnu_ld 20737 20738# Flag that allows shared libraries with undefined symbols to be built. 20739allow_undefined_flag=$lt_allow_undefined_flag 20740 20741# Flag that enforces no undefined symbols. 20742no_undefined_flag=$lt_no_undefined_flag 20743 20744# Flag to hardcode \$libdir into a binary during linking. 20745# This must work even if \$libdir does not exist 20746hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20747 20748# Whether we need a single "-rpath" flag with a separated argument. 20749hardcode_libdir_separator=$lt_hardcode_libdir_separator 20750 20751# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20752# DIR into the resulting binary. 20753hardcode_direct=$hardcode_direct 20754 20755# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20756# DIR into the resulting binary and the resulting library dependency is 20757# "absolute",i.e impossible to change by setting \$shlibpath_var if the 20758# library is relocated. 20759hardcode_direct_absolute=$hardcode_direct_absolute 20760 20761# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20762# into the resulting binary. 20763hardcode_minus_L=$hardcode_minus_L 20764 20765# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20766# into the resulting binary. 20767hardcode_shlibpath_var=$hardcode_shlibpath_var 20768 20769# Set to "yes" if building a shared library automatically hardcodes DIR 20770# into the library and all subsequent libraries and executables linked 20771# against it. 20772hardcode_automatic=$hardcode_automatic 20773 20774# Set to yes if linker adds runtime paths of dependent libraries 20775# to runtime path list. 20776inherit_rpath=$inherit_rpath 20777 20778# Whether libtool must link a program against all its dependency libraries. 20779link_all_deplibs=$link_all_deplibs 20780 20781# Set to "yes" if exported symbols are required. 20782always_export_symbols=$always_export_symbols 20783 20784# The commands to list exported symbols. 20785export_symbols_cmds=$lt_export_symbols_cmds 20786 20787# Symbols that should not be listed in the preloaded symbols. 20788exclude_expsyms=$lt_exclude_expsyms 20789 20790# Symbols that must always be exported. 20791include_expsyms=$lt_include_expsyms 20792 20793# Commands necessary for linking programs (against libraries) with templates. 20794prelink_cmds=$lt_prelink_cmds 20795 20796# Commands necessary for finishing linking programs. 20797postlink_cmds=$lt_postlink_cmds 20798 20799# Specify filename containing input files. 20800file_list_spec=$lt_file_list_spec 20801 20802# How to hardcode a shared library path into an executable. 20803hardcode_action=$hardcode_action 20804 20805# ### END LIBTOOL CONFIG 20806 20807_LT_EOF 20808 20809 cat <<'_LT_EOF' >> "$cfgfile" 20810 20811# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 20812 20813# func_munge_path_list VARIABLE PATH 20814# ----------------------------------- 20815# VARIABLE is name of variable containing _space_ separated list of 20816# directories to be munged by the contents of PATH, which is string 20817# having a format: 20818# "DIR[:DIR]:" 20819# string "DIR[ DIR]" will be prepended to VARIABLE 20820# ":DIR[:DIR]" 20821# string "DIR[ DIR]" will be appended to VARIABLE 20822# "DIRP[:DIRP]::[DIRA:]DIRA" 20823# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 20824# "DIRA[ DIRA]" will be appended to VARIABLE 20825# "DIR[:DIR]" 20826# VARIABLE will be replaced by "DIR[ DIR]" 20827func_munge_path_list () 20828{ 20829 case x$2 in 20830 x) 20831 ;; 20832 *:) 20833 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 20834 ;; 20835 x:*) 20836 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 20837 ;; 20838 *::*) 20839 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 20840 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 20841 ;; 20842 *) 20843 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 20844 ;; 20845 esac 20846} 20847 20848 20849# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 20850func_cc_basename () 20851{ 20852 for cc_temp in $*""; do 20853 case $cc_temp in 20854 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 20855 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 20856 \-*) ;; 20857 *) break;; 20858 esac 20859 done 20860 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 20861} 20862 20863 20864# ### END FUNCTIONS SHARED WITH CONFIGURE 20865 20866_LT_EOF 20867 20868 case $host_os in 20869 aix3*) 20870 cat <<\_LT_EOF >> "$cfgfile" 20871# AIX sometimes has problems with the GCC collect2 program. For some 20872# reason, if we set the COLLECT_NAMES environment variable, the problems 20873# vanish in a puff of smoke. 20874if test set != "${COLLECT_NAMES+set}"; then 20875 COLLECT_NAMES= 20876 export COLLECT_NAMES 20877fi 20878_LT_EOF 20879 ;; 20880 esac 20881 20882 20883ltmain=$ac_aux_dir/ltmain.sh 20884 20885 20886 # We use sed instead of cat because bash on DJGPP gets confused if 20887 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20888 # text mode, it properly converts lines to CR/LF. This bash problem 20889 # is reportedly fixed, but why not run on old versions too? 20890 sed '$q' "$ltmain" >> "$cfgfile" \ 20891 || (rm -f "$cfgfile"; exit 1) 20892 20893 mv -f "$cfgfile" "$ofile" || 20894 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20895 chmod +x "$ofile" 20896 20897 ;; 20898 20899 esac 20900done # for ac_tag 20901 20902 20903as_fn_exit 0 20904_ACEOF 20905ac_clean_files=$ac_clean_files_save 20906 20907test $ac_write_fail = 0 || 20908 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20909 20910 20911# configure is writing to config.log, and then calls config.status. 20912# config.status does its own redirection, appending to config.log. 20913# Unfortunately, on DOS this fails, as config.log is still kept open 20914# by configure, so config.status won't be able to write to it; its 20915# output is simply discarded. So we exec the FD to /dev/null, 20916# effectively closing config.log, so it can be properly (re)opened and 20917# appended to by config.status. When coming back to configure, we 20918# need to make the FD available again. 20919if test "$no_create" != yes; then 20920 ac_cs_success=: 20921 ac_config_status_args= 20922 test "$silent" = yes && 20923 ac_config_status_args="$ac_config_status_args --quiet" 20924 exec 5>/dev/null 20925 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20926 exec 5>>config.log 20927 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20928 # would make configure fail if this is the last instruction. 20929 $ac_cs_success || as_fn_exit 1 20930fi 20931if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20933$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20934fi 20935 20936