configure revision 1c235774
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libXpm 3.5.15. 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.15' 595PACKAGE_STRING='libXpm 3.5.15' 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 640HAVE_GLIB_FALSE 641HAVE_GLIB_TRUE 642GLIB_LIBS 643GLIB_CFLAGS 644ENABLE_UNIT_TESTS_FALSE 645ENABLE_UNIT_TESTS_TRUE 646XORG_MALLOC_DEBUG_ENV 647XPM_PATH_GZIP 648XPM_PATH_UNCOMPRESS 649XPM_PATH_COMPRESS 650COMPRESSED_PIXMAPS_FALSE 651COMPRESSED_PIXMAPS_TRUE 652USE_GETTEXT_FALSE 653USE_GETTEXT_TRUE 654LOCALEDIR 655BUILD_SXPM_FALSE 656BUILD_SXPM_TRUE 657SXPM_LIBS 658SXPM_CFLAGS 659XPM_LIBS 660XPM_CFLAGS 661MAN_SUBSTS 662XORG_MAN_PAGE 663ADMIN_MAN_DIR 664DRIVER_MAN_DIR 665MISC_MAN_DIR 666FILE_MAN_DIR 667LIB_MAN_DIR 668APP_MAN_DIR 669ADMIN_MAN_SUFFIX 670DRIVER_MAN_SUFFIX 671MISC_MAN_SUFFIX 672FILE_MAN_SUFFIX 673LIB_MAN_SUFFIX 674APP_MAN_SUFFIX 675INSTALL_CMD 676PKG_CONFIG_LIBDIR 677PKG_CONFIG_PATH 678PKG_CONFIG 679CHANGELOG_CMD 680STRICT_CFLAGS 681CWARNFLAGS 682BASE_CFLAGS 683CPP 684LT_SYS_LIBRARY_PATH 685OTOOL64 686OTOOL 687LIPO 688NMEDIT 689DSYMUTIL 690MANIFEST_TOOL 691RANLIB 692ac_ct_AR 693AR 694DLLTOOL 695OBJDUMP 696LN_S 697NM 698ac_ct_DUMPBIN 699DUMPBIN 700LD 701FGREP 702EGREP 703GREP 704SED 705am__fastdepCC_FALSE 706am__fastdepCC_TRUE 707CCDEPMODE 708am__nodep 709AMDEPBACKSLASH 710AMDEP_FALSE 711AMDEP_TRUE 712am__quote 713am__include 714DEPDIR 715OBJEXT 716EXEEXT 717ac_ct_CC 718CPPFLAGS 719LDFLAGS 720CFLAGS 721CC 722host_os 723host_vendor 724host_cpu 725host 726build_os 727build_vendor 728build_cpu 729build 730LIBTOOL 731AM_BACKSLASH 732AM_DEFAULT_VERBOSITY 733AM_DEFAULT_V 734AM_V 735am__untar 736am__tar 737AMTAR 738am__leading_dot 739SET_MAKE 740AWK 741mkdir_p 742MKDIR_P 743INSTALL_STRIP_PROGRAM 744STRIP 745install_sh 746MAKEINFO 747AUTOHEADER 748AUTOMAKE 749AUTOCONF 750ACLOCAL 751VERSION 752PACKAGE 753CYGPATH_W 754am__isrc 755INSTALL_DATA 756INSTALL_SCRIPT 757INSTALL_PROGRAM 758target_alias 759host_alias 760build_alias 761LIBS 762ECHO_T 763ECHO_N 764ECHO_C 765DEFS 766mandir 767localedir 768libdir 769psdir 770pdfdir 771dvidir 772htmldir 773infodir 774docdir 775oldincludedir 776includedir 777localstatedir 778sharedstatedir 779sysconfdir 780datadir 781datarootdir 782libexecdir 783sbindir 784bindir 785program_transform_name 786prefix 787exec_prefix 788PACKAGE_URL 789PACKAGE_BUGREPORT 790PACKAGE_STRING 791PACKAGE_VERSION 792PACKAGE_TARNAME 793PACKAGE_NAME 794PATH_SEPARATOR 795SHELL' 796ac_subst_files='' 797ac_user_opts=' 798enable_option_checking 799enable_silent_rules 800enable_shared 801enable_static 802with_pic 803enable_fast_install 804with_aix_soname 805enable_dependency_tracking 806with_gnu_ld 807with_sysroot 808enable_libtool_lock 809enable_selective_werror 810enable_strict_compilation 811with_localedir 812enable_open_zfile 813enable_stat_zfile 814enable_unit_tests 815with_glib 816' 817 ac_precious_vars='build_alias 818host_alias 819target_alias 820CC 821CFLAGS 822LDFLAGS 823LIBS 824CPPFLAGS 825LT_SYS_LIBRARY_PATH 826CPP 827PKG_CONFIG 828PKG_CONFIG_PATH 829PKG_CONFIG_LIBDIR 830XPM_CFLAGS 831XPM_LIBS 832SXPM_CFLAGS 833SXPM_LIBS 834XORG_MALLOC_DEBUG_ENV 835GLIB_CFLAGS 836GLIB_LIBS' 837 838 839# Initialize some variables set by options. 840ac_init_help= 841ac_init_version=false 842ac_unrecognized_opts= 843ac_unrecognized_sep= 844# The variables have the same names as the options, with 845# dashes changed to underlines. 846cache_file=/dev/null 847exec_prefix=NONE 848no_create= 849no_recursion= 850prefix=NONE 851program_prefix=NONE 852program_suffix=NONE 853program_transform_name=s,x,x, 854silent= 855site= 856srcdir= 857verbose= 858x_includes=NONE 859x_libraries=NONE 860 861# Installation directory options. 862# These are left unexpanded so users can "make install exec_prefix=/foo" 863# and all the variables that are supposed to be based on exec_prefix 864# by default will actually change. 865# Use braces instead of parens because sh, perl, etc. also accept them. 866# (The list follows the same order as the GNU Coding Standards.) 867bindir='${exec_prefix}/bin' 868sbindir='${exec_prefix}/sbin' 869libexecdir='${exec_prefix}/libexec' 870datarootdir='${prefix}/share' 871datadir='${datarootdir}' 872sysconfdir='${prefix}/etc' 873sharedstatedir='${prefix}/com' 874localstatedir='${prefix}/var' 875includedir='${prefix}/include' 876oldincludedir='/usr/include' 877docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 878infodir='${datarootdir}/info' 879htmldir='${docdir}' 880dvidir='${docdir}' 881pdfdir='${docdir}' 882psdir='${docdir}' 883libdir='${exec_prefix}/lib' 884localedir='${datarootdir}/locale' 885mandir='${datarootdir}/man' 886 887ac_prev= 888ac_dashdash= 889for ac_option 890do 891 # If the previous option needs an argument, assign it. 892 if test -n "$ac_prev"; then 893 eval $ac_prev=\$ac_option 894 ac_prev= 895 continue 896 fi 897 898 case $ac_option in 899 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 900 *=) ac_optarg= ;; 901 *) ac_optarg=yes ;; 902 esac 903 904 # Accept the important Cygnus configure options, so we can diagnose typos. 905 906 case $ac_dashdash$ac_option in 907 --) 908 ac_dashdash=yes ;; 909 910 -bindir | --bindir | --bindi | --bind | --bin | --bi) 911 ac_prev=bindir ;; 912 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 913 bindir=$ac_optarg ;; 914 915 -build | --build | --buil | --bui | --bu) 916 ac_prev=build_alias ;; 917 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 918 build_alias=$ac_optarg ;; 919 920 -cache-file | --cache-file | --cache-fil | --cache-fi \ 921 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 922 ac_prev=cache_file ;; 923 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 924 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 925 cache_file=$ac_optarg ;; 926 927 --config-cache | -C) 928 cache_file=config.cache ;; 929 930 -datadir | --datadir | --datadi | --datad) 931 ac_prev=datadir ;; 932 -datadir=* | --datadir=* | --datadi=* | --datad=*) 933 datadir=$ac_optarg ;; 934 935 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 936 | --dataroo | --dataro | --datar) 937 ac_prev=datarootdir ;; 938 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 939 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 940 datarootdir=$ac_optarg ;; 941 942 -disable-* | --disable-*) 943 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 944 # Reject names that are not valid shell variable names. 945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 946 as_fn_error $? "invalid feature name: $ac_useropt" 947 ac_useropt_orig=$ac_useropt 948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 949 case $ac_user_opts in 950 *" 951"enable_$ac_useropt" 952"*) ;; 953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 954 ac_unrecognized_sep=', ';; 955 esac 956 eval enable_$ac_useropt=no ;; 957 958 -docdir | --docdir | --docdi | --doc | --do) 959 ac_prev=docdir ;; 960 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 961 docdir=$ac_optarg ;; 962 963 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 964 ac_prev=dvidir ;; 965 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 966 dvidir=$ac_optarg ;; 967 968 -enable-* | --enable-*) 969 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 970 # Reject names that are not valid shell variable names. 971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 972 as_fn_error $? "invalid feature name: $ac_useropt" 973 ac_useropt_orig=$ac_useropt 974 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 975 case $ac_user_opts in 976 *" 977"enable_$ac_useropt" 978"*) ;; 979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 980 ac_unrecognized_sep=', ';; 981 esac 982 eval enable_$ac_useropt=\$ac_optarg ;; 983 984 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 985 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 986 | --exec | --exe | --ex) 987 ac_prev=exec_prefix ;; 988 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 989 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 990 | --exec=* | --exe=* | --ex=*) 991 exec_prefix=$ac_optarg ;; 992 993 -gas | --gas | --ga | --g) 994 # Obsolete; use --with-gas. 995 with_gas=yes ;; 996 997 -help | --help | --hel | --he | -h) 998 ac_init_help=long ;; 999 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1000 ac_init_help=recursive ;; 1001 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1002 ac_init_help=short ;; 1003 1004 -host | --host | --hos | --ho) 1005 ac_prev=host_alias ;; 1006 -host=* | --host=* | --hos=* | --ho=*) 1007 host_alias=$ac_optarg ;; 1008 1009 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1010 ac_prev=htmldir ;; 1011 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1012 | --ht=*) 1013 htmldir=$ac_optarg ;; 1014 1015 -includedir | --includedir | --includedi | --included | --include \ 1016 | --includ | --inclu | --incl | --inc) 1017 ac_prev=includedir ;; 1018 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1019 | --includ=* | --inclu=* | --incl=* | --inc=*) 1020 includedir=$ac_optarg ;; 1021 1022 -infodir | --infodir | --infodi | --infod | --info | --inf) 1023 ac_prev=infodir ;; 1024 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1025 infodir=$ac_optarg ;; 1026 1027 -libdir | --libdir | --libdi | --libd) 1028 ac_prev=libdir ;; 1029 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1030 libdir=$ac_optarg ;; 1031 1032 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1033 | --libexe | --libex | --libe) 1034 ac_prev=libexecdir ;; 1035 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1036 | --libexe=* | --libex=* | --libe=*) 1037 libexecdir=$ac_optarg ;; 1038 1039 -localedir | --localedir | --localedi | --localed | --locale) 1040 ac_prev=localedir ;; 1041 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1042 localedir=$ac_optarg ;; 1043 1044 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1045 | --localstate | --localstat | --localsta | --localst | --locals) 1046 ac_prev=localstatedir ;; 1047 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1048 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1049 localstatedir=$ac_optarg ;; 1050 1051 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1052 ac_prev=mandir ;; 1053 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1054 mandir=$ac_optarg ;; 1055 1056 -nfp | --nfp | --nf) 1057 # Obsolete; use --without-fp. 1058 with_fp=no ;; 1059 1060 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1061 | --no-cr | --no-c | -n) 1062 no_create=yes ;; 1063 1064 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1065 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1066 no_recursion=yes ;; 1067 1068 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1069 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1070 | --oldin | --oldi | --old | --ol | --o) 1071 ac_prev=oldincludedir ;; 1072 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1073 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1074 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1075 oldincludedir=$ac_optarg ;; 1076 1077 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1078 ac_prev=prefix ;; 1079 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1080 prefix=$ac_optarg ;; 1081 1082 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1083 | --program-pre | --program-pr | --program-p) 1084 ac_prev=program_prefix ;; 1085 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1086 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1087 program_prefix=$ac_optarg ;; 1088 1089 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1090 | --program-suf | --program-su | --program-s) 1091 ac_prev=program_suffix ;; 1092 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1093 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1094 program_suffix=$ac_optarg ;; 1095 1096 -program-transform-name | --program-transform-name \ 1097 | --program-transform-nam | --program-transform-na \ 1098 | --program-transform-n | --program-transform- \ 1099 | --program-transform | --program-transfor \ 1100 | --program-transfo | --program-transf \ 1101 | --program-trans | --program-tran \ 1102 | --progr-tra | --program-tr | --program-t) 1103 ac_prev=program_transform_name ;; 1104 -program-transform-name=* | --program-transform-name=* \ 1105 | --program-transform-nam=* | --program-transform-na=* \ 1106 | --program-transform-n=* | --program-transform-=* \ 1107 | --program-transform=* | --program-transfor=* \ 1108 | --program-transfo=* | --program-transf=* \ 1109 | --program-trans=* | --program-tran=* \ 1110 | --progr-tra=* | --program-tr=* | --program-t=*) 1111 program_transform_name=$ac_optarg ;; 1112 1113 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1114 ac_prev=pdfdir ;; 1115 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1116 pdfdir=$ac_optarg ;; 1117 1118 -psdir | --psdir | --psdi | --psd | --ps) 1119 ac_prev=psdir ;; 1120 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1121 psdir=$ac_optarg ;; 1122 1123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1124 | -silent | --silent | --silen | --sile | --sil) 1125 silent=yes ;; 1126 1127 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1128 ac_prev=sbindir ;; 1129 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1130 | --sbi=* | --sb=*) 1131 sbindir=$ac_optarg ;; 1132 1133 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1134 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1135 | --sharedst | --shareds | --shared | --share | --shar \ 1136 | --sha | --sh) 1137 ac_prev=sharedstatedir ;; 1138 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1139 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1140 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1141 | --sha=* | --sh=*) 1142 sharedstatedir=$ac_optarg ;; 1143 1144 -site | --site | --sit) 1145 ac_prev=site ;; 1146 -site=* | --site=* | --sit=*) 1147 site=$ac_optarg ;; 1148 1149 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1150 ac_prev=srcdir ;; 1151 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1152 srcdir=$ac_optarg ;; 1153 1154 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1155 | --syscon | --sysco | --sysc | --sys | --sy) 1156 ac_prev=sysconfdir ;; 1157 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1158 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1159 sysconfdir=$ac_optarg ;; 1160 1161 -target | --target | --targe | --targ | --tar | --ta | --t) 1162 ac_prev=target_alias ;; 1163 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1164 target_alias=$ac_optarg ;; 1165 1166 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1167 verbose=yes ;; 1168 1169 -version | --version | --versio | --versi | --vers | -V) 1170 ac_init_version=: ;; 1171 1172 -with-* | --with-*) 1173 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1174 # Reject names that are not valid shell variable names. 1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1176 as_fn_error $? "invalid package name: $ac_useropt" 1177 ac_useropt_orig=$ac_useropt 1178 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1179 case $ac_user_opts in 1180 *" 1181"with_$ac_useropt" 1182"*) ;; 1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1184 ac_unrecognized_sep=', ';; 1185 esac 1186 eval with_$ac_useropt=\$ac_optarg ;; 1187 1188 -without-* | --without-*) 1189 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1190 # Reject names that are not valid shell variable names. 1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1192 as_fn_error $? "invalid package name: $ac_useropt" 1193 ac_useropt_orig=$ac_useropt 1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1195 case $ac_user_opts in 1196 *" 1197"with_$ac_useropt" 1198"*) ;; 1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1200 ac_unrecognized_sep=', ';; 1201 esac 1202 eval with_$ac_useropt=no ;; 1203 1204 --x) 1205 # Obsolete; use --with-x. 1206 with_x=yes ;; 1207 1208 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1209 | --x-incl | --x-inc | --x-in | --x-i) 1210 ac_prev=x_includes ;; 1211 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1212 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1213 x_includes=$ac_optarg ;; 1214 1215 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1216 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1217 ac_prev=x_libraries ;; 1218 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1219 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1220 x_libraries=$ac_optarg ;; 1221 1222 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1223Try \`$0 --help' for more information" 1224 ;; 1225 1226 *=*) 1227 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1228 # Reject names that are not valid shell variable names. 1229 case $ac_envvar in #( 1230 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1231 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1232 esac 1233 eval $ac_envvar=\$ac_optarg 1234 export $ac_envvar ;; 1235 1236 *) 1237 # FIXME: should be removed in autoconf 3.0. 1238 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1239 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1240 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1241 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1242 ;; 1243 1244 esac 1245done 1246 1247if test -n "$ac_prev"; then 1248 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1249 as_fn_error $? "missing argument to $ac_option" 1250fi 1251 1252if test -n "$ac_unrecognized_opts"; then 1253 case $enable_option_checking in 1254 no) ;; 1255 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1256 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1257 esac 1258fi 1259 1260# Check all directory arguments for consistency. 1261for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1262 datadir sysconfdir sharedstatedir localstatedir includedir \ 1263 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1264 libdir localedir mandir 1265do 1266 eval ac_val=\$$ac_var 1267 # Remove trailing slashes. 1268 case $ac_val in 1269 */ ) 1270 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1271 eval $ac_var=\$ac_val;; 1272 esac 1273 # Be sure to have absolute directory names. 1274 case $ac_val in 1275 [\\/$]* | ?:[\\/]* ) continue;; 1276 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1277 esac 1278 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1279done 1280 1281# There might be people who depend on the old broken behavior: `$host' 1282# used to hold the argument of --host etc. 1283# FIXME: To remove some day. 1284build=$build_alias 1285host=$host_alias 1286target=$target_alias 1287 1288# FIXME: To remove some day. 1289if test "x$host_alias" != x; then 1290 if test "x$build_alias" = x; then 1291 cross_compiling=maybe 1292 elif test "x$build_alias" != "x$host_alias"; then 1293 cross_compiling=yes 1294 fi 1295fi 1296 1297ac_tool_prefix= 1298test -n "$host_alias" && ac_tool_prefix=$host_alias- 1299 1300test "$silent" = yes && exec 6>/dev/null 1301 1302 1303ac_pwd=`pwd` && test -n "$ac_pwd" && 1304ac_ls_di=`ls -di .` && 1305ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1306 as_fn_error $? "working directory cannot be determined" 1307test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1308 as_fn_error $? "pwd does not report name of working directory" 1309 1310 1311# Find the source files, if location was not specified. 1312if test -z "$srcdir"; then 1313 ac_srcdir_defaulted=yes 1314 # Try the directory containing this script, then the parent directory. 1315 ac_confdir=`$as_dirname -- "$as_myself" || 1316$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1317 X"$as_myself" : 'X\(//\)[^/]' \| \ 1318 X"$as_myself" : 'X\(//\)$' \| \ 1319 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1320$as_echo X"$as_myself" | 1321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1322 s//\1/ 1323 q 1324 } 1325 /^X\(\/\/\)[^/].*/{ 1326 s//\1/ 1327 q 1328 } 1329 /^X\(\/\/\)$/{ 1330 s//\1/ 1331 q 1332 } 1333 /^X\(\/\).*/{ 1334 s//\1/ 1335 q 1336 } 1337 s/.*/./; q'` 1338 srcdir=$ac_confdir 1339 if test ! -r "$srcdir/$ac_unique_file"; then 1340 srcdir=.. 1341 fi 1342else 1343 ac_srcdir_defaulted=no 1344fi 1345if test ! -r "$srcdir/$ac_unique_file"; then 1346 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1347 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1348fi 1349ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1350ac_abs_confdir=`( 1351 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1352 pwd)` 1353# When building in place, set srcdir=. 1354if test "$ac_abs_confdir" = "$ac_pwd"; then 1355 srcdir=. 1356fi 1357# Remove unnecessary trailing slashes from srcdir. 1358# Double slashes in file names in object file debugging info 1359# mess up M-x gdb in Emacs. 1360case $srcdir in 1361*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1362esac 1363for ac_var in $ac_precious_vars; do 1364 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1365 eval ac_env_${ac_var}_value=\$${ac_var} 1366 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1367 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1368done 1369 1370# 1371# Report the --help message. 1372# 1373if test "$ac_init_help" = "long"; then 1374 # Omit some internal or obsolete options to make the list less imposing. 1375 # This message is too long to be a string in the A/UX 3.1 sh. 1376 cat <<_ACEOF 1377\`configure' configures libXpm 3.5.15 to adapt to many kinds of systems. 1378 1379Usage: $0 [OPTION]... [VAR=VALUE]... 1380 1381To assign environment variables (e.g., CC, CFLAGS...), specify them as 1382VAR=VALUE. See below for descriptions of some of the useful variables. 1383 1384Defaults for the options are specified in brackets. 1385 1386Configuration: 1387 -h, --help display this help and exit 1388 --help=short display options specific to this package 1389 --help=recursive display the short help of all the included packages 1390 -V, --version display version information and exit 1391 -q, --quiet, --silent do not print \`checking ...' messages 1392 --cache-file=FILE cache test results in FILE [disabled] 1393 -C, --config-cache alias for \`--cache-file=config.cache' 1394 -n, --no-create do not create output files 1395 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1396 1397Installation directories: 1398 --prefix=PREFIX install architecture-independent files in PREFIX 1399 [$ac_default_prefix] 1400 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1401 [PREFIX] 1402 1403By default, \`make install' will install all the files in 1404\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1405an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1406for instance \`--prefix=\$HOME'. 1407 1408For better control, use the options below. 1409 1410Fine tuning of the installation directories: 1411 --bindir=DIR user executables [EPREFIX/bin] 1412 --sbindir=DIR system admin executables [EPREFIX/sbin] 1413 --libexecdir=DIR program executables [EPREFIX/libexec] 1414 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1415 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1416 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1417 --libdir=DIR object code libraries [EPREFIX/lib] 1418 --includedir=DIR C header files [PREFIX/include] 1419 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1420 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1421 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1422 --infodir=DIR info documentation [DATAROOTDIR/info] 1423 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1424 --mandir=DIR man documentation [DATAROOTDIR/man] 1425 --docdir=DIR documentation root [DATAROOTDIR/doc/libXpm] 1426 --htmldir=DIR html documentation [DOCDIR] 1427 --dvidir=DIR dvi documentation [DOCDIR] 1428 --pdfdir=DIR pdf documentation [DOCDIR] 1429 --psdir=DIR ps documentation [DOCDIR] 1430_ACEOF 1431 1432 cat <<\_ACEOF 1433 1434Program names: 1435 --program-prefix=PREFIX prepend PREFIX to installed program names 1436 --program-suffix=SUFFIX append SUFFIX to installed program names 1437 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1438 1439System types: 1440 --build=BUILD configure for building on BUILD [guessed] 1441 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1442_ACEOF 1443fi 1444 1445if test -n "$ac_init_help"; then 1446 case $ac_init_help in 1447 short | recursive ) echo "Configuration of libXpm 3.5.15:";; 1448 esac 1449 cat <<\_ACEOF 1450 1451Optional Features: 1452 --disable-option-checking ignore unrecognized --enable/--with options 1453 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1454 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1455 --enable-silent-rules less verbose build output (undo: "make V=1") 1456 --disable-silent-rules verbose build output (undo: "make V=0") 1457 --enable-shared[=PKGS] build shared libraries [default=yes] 1458 --enable-static[=PKGS] build static libraries [default=yes] 1459 --enable-fast-install[=PKGS] 1460 optimize for fast installation [default=yes] 1461 --enable-dependency-tracking 1462 do not reject slow dependency extractors 1463 --disable-dependency-tracking 1464 speeds up one-time build 1465 --disable-libtool-lock avoid locking (might break parallel builds) 1466 --disable-selective-werror 1467 Turn off selective compiler errors. (default: 1468 enabled) 1469 --enable-strict-compilation 1470 Enable all warnings from compiler and make them 1471 errors (default: disabled) 1472 --enable-open-zfile Search for files with .Z & .gz extensions 1473 automatically [default=auto] 1474 --enable-stat-zfile Search for files with .Z & .gz extensions 1475 automatically [default=auto] 1476 --enable-unit-tests Enable building unit test cases (default: auto) 1477 1478Optional Packages: 1479 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1480 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1481 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1482 both] 1483 --with-aix-soname=aix|svr4|both 1484 shared library versioning (aka "SONAME") variant to 1485 provide on AIX, [default=aix]. 1486 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1487 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1488 compiler's sysroot if not specified). 1489 --with-localedir=<path> Path to install message files in (default: 1490 datadir/locale) 1491 --with-glib Use GLib library for unit testing (default: auto) 1492 1493Some influential environment variables: 1494 CC C compiler command 1495 CFLAGS C compiler flags 1496 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1497 nonstandard directory <lib dir> 1498 LIBS libraries to pass to the linker, e.g. -l<library> 1499 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1500 you have headers in a nonstandard directory <include dir> 1501 LT_SYS_LIBRARY_PATH 1502 User-defined run-time library search path. 1503 CPP C preprocessor 1504 PKG_CONFIG path to pkg-config utility 1505 PKG_CONFIG_PATH 1506 directories to add to pkg-config's search path 1507 PKG_CONFIG_LIBDIR 1508 path overriding pkg-config's built-in search path 1509 XPM_CFLAGS C compiler flags for XPM, overriding pkg-config 1510 XPM_LIBS linker flags for XPM, overriding pkg-config 1511 SXPM_CFLAGS C compiler flags for SXPM, overriding pkg-config 1512 SXPM_LIBS linker flags for SXPM, overriding pkg-config 1513 XORG_MALLOC_DEBUG_ENV 1514 Environment variables to enable memory checking in tests 1515 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config 1516 GLIB_LIBS linker flags for GLIB, overriding pkg-config 1517 1518Use these variables to override the choices made by `configure' or to help 1519it to find libraries and programs with nonstandard names/locations. 1520 1521Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxpm/-/issues>. 1522_ACEOF 1523ac_status=$? 1524fi 1525 1526if test "$ac_init_help" = "recursive"; then 1527 # If there are subdirs, report their specific --help. 1528 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1529 test -d "$ac_dir" || 1530 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1531 continue 1532 ac_builddir=. 1533 1534case "$ac_dir" in 1535.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1536*) 1537 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1538 # A ".." for each directory in $ac_dir_suffix. 1539 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1540 case $ac_top_builddir_sub in 1541 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1542 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1543 esac ;; 1544esac 1545ac_abs_top_builddir=$ac_pwd 1546ac_abs_builddir=$ac_pwd$ac_dir_suffix 1547# for backward compatibility: 1548ac_top_builddir=$ac_top_build_prefix 1549 1550case $srcdir in 1551 .) # We are building in place. 1552 ac_srcdir=. 1553 ac_top_srcdir=$ac_top_builddir_sub 1554 ac_abs_top_srcdir=$ac_pwd ;; 1555 [\\/]* | ?:[\\/]* ) # Absolute name. 1556 ac_srcdir=$srcdir$ac_dir_suffix; 1557 ac_top_srcdir=$srcdir 1558 ac_abs_top_srcdir=$srcdir ;; 1559 *) # Relative name. 1560 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1561 ac_top_srcdir=$ac_top_build_prefix$srcdir 1562 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1563esac 1564ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1565 1566 cd "$ac_dir" || { ac_status=$?; continue; } 1567 # Check for guested configure. 1568 if test -f "$ac_srcdir/configure.gnu"; then 1569 echo && 1570 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1571 elif test -f "$ac_srcdir/configure"; then 1572 echo && 1573 $SHELL "$ac_srcdir/configure" --help=recursive 1574 else 1575 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1576 fi || ac_status=$? 1577 cd "$ac_pwd" || { ac_status=$?; break; } 1578 done 1579fi 1580 1581test -n "$ac_init_help" && exit $ac_status 1582if $ac_init_version; then 1583 cat <<\_ACEOF 1584libXpm configure 3.5.15 1585generated by GNU Autoconf 2.69 1586 1587Copyright (C) 2012 Free Software Foundation, Inc. 1588This configure script is free software; the Free Software Foundation 1589gives unlimited permission to copy, distribute and modify it. 1590_ACEOF 1591 exit 1592fi 1593 1594## ------------------------ ## 1595## Autoconf initialization. ## 1596## ------------------------ ## 1597 1598# ac_fn_c_try_compile LINENO 1599# -------------------------- 1600# Try to compile conftest.$ac_ext, and return whether this succeeded. 1601ac_fn_c_try_compile () 1602{ 1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1604 rm -f conftest.$ac_objext 1605 if { { ac_try="$ac_compile" 1606case "(($ac_try" in 1607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1608 *) ac_try_echo=$ac_try;; 1609esac 1610eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1611$as_echo "$ac_try_echo"; } >&5 1612 (eval "$ac_compile") 2>conftest.err 1613 ac_status=$? 1614 if test -s conftest.err; then 1615 grep -v '^ *+' conftest.err >conftest.er1 1616 cat conftest.er1 >&5 1617 mv -f conftest.er1 conftest.err 1618 fi 1619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1620 test $ac_status = 0; } && { 1621 test -z "$ac_c_werror_flag" || 1622 test ! -s conftest.err 1623 } && test -s conftest.$ac_objext; then : 1624 ac_retval=0 1625else 1626 $as_echo "$as_me: failed program was:" >&5 1627sed 's/^/| /' conftest.$ac_ext >&5 1628 1629 ac_retval=1 1630fi 1631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1632 as_fn_set_status $ac_retval 1633 1634} # ac_fn_c_try_compile 1635 1636# ac_fn_c_try_link LINENO 1637# ----------------------- 1638# Try to link conftest.$ac_ext, and return whether this succeeded. 1639ac_fn_c_try_link () 1640{ 1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1642 rm -f conftest.$ac_objext conftest$ac_exeext 1643 if { { ac_try="$ac_link" 1644case "(($ac_try" in 1645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1646 *) ac_try_echo=$ac_try;; 1647esac 1648eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1649$as_echo "$ac_try_echo"; } >&5 1650 (eval "$ac_link") 2>conftest.err 1651 ac_status=$? 1652 if test -s conftest.err; then 1653 grep -v '^ *+' conftest.err >conftest.er1 1654 cat conftest.er1 >&5 1655 mv -f conftest.er1 conftest.err 1656 fi 1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1658 test $ac_status = 0; } && { 1659 test -z "$ac_c_werror_flag" || 1660 test ! -s conftest.err 1661 } && test -s conftest$ac_exeext && { 1662 test "$cross_compiling" = yes || 1663 test -x conftest$ac_exeext 1664 }; then : 1665 ac_retval=0 1666else 1667 $as_echo "$as_me: failed program was:" >&5 1668sed 's/^/| /' conftest.$ac_ext >&5 1669 1670 ac_retval=1 1671fi 1672 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1673 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1674 # interfere with the next link command; also delete a directory that is 1675 # left behind by Apple's compiler. We do this before executing the actions. 1676 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1677 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1678 as_fn_set_status $ac_retval 1679 1680} # ac_fn_c_try_link 1681 1682# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1683# ------------------------------------------------------- 1684# Tests whether HEADER exists and can be compiled using the include files in 1685# INCLUDES, setting the cache variable VAR accordingly. 1686ac_fn_c_check_header_compile () 1687{ 1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1690$as_echo_n "checking for $2... " >&6; } 1691if eval \${$3+:} false; then : 1692 $as_echo_n "(cached) " >&6 1693else 1694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1695/* end confdefs.h. */ 1696$4 1697#include <$2> 1698_ACEOF 1699if ac_fn_c_try_compile "$LINENO"; then : 1700 eval "$3=yes" 1701else 1702 eval "$3=no" 1703fi 1704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1705fi 1706eval ac_res=\$$3 1707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1708$as_echo "$ac_res" >&6; } 1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1710 1711} # ac_fn_c_check_header_compile 1712 1713# ac_fn_c_try_cpp LINENO 1714# ---------------------- 1715# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1716ac_fn_c_try_cpp () 1717{ 1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1719 if { { ac_try="$ac_cpp conftest.$ac_ext" 1720case "(($ac_try" in 1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1722 *) ac_try_echo=$ac_try;; 1723esac 1724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1725$as_echo "$ac_try_echo"; } >&5 1726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1727 ac_status=$? 1728 if test -s conftest.err; then 1729 grep -v '^ *+' conftest.err >conftest.er1 1730 cat conftest.er1 >&5 1731 mv -f conftest.er1 conftest.err 1732 fi 1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1734 test $ac_status = 0; } > conftest.i && { 1735 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1736 test ! -s conftest.err 1737 }; then : 1738 ac_retval=0 1739else 1740 $as_echo "$as_me: failed program was:" >&5 1741sed 's/^/| /' conftest.$ac_ext >&5 1742 1743 ac_retval=1 1744fi 1745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1746 as_fn_set_status $ac_retval 1747 1748} # ac_fn_c_try_cpp 1749 1750# ac_fn_c_try_run LINENO 1751# ---------------------- 1752# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1753# that executables *can* be run. 1754ac_fn_c_try_run () 1755{ 1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1757 if { { ac_try="$ac_link" 1758case "(($ac_try" in 1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1760 *) ac_try_echo=$ac_try;; 1761esac 1762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1763$as_echo "$ac_try_echo"; } >&5 1764 (eval "$ac_link") 2>&5 1765 ac_status=$? 1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1767 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1768 { { case "(($ac_try" in 1769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1770 *) ac_try_echo=$ac_try;; 1771esac 1772eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1773$as_echo "$ac_try_echo"; } >&5 1774 (eval "$ac_try") 2>&5 1775 ac_status=$? 1776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1777 test $ac_status = 0; }; }; then : 1778 ac_retval=0 1779else 1780 $as_echo "$as_me: program exited with status $ac_status" >&5 1781 $as_echo "$as_me: failed program was:" >&5 1782sed 's/^/| /' conftest.$ac_ext >&5 1783 1784 ac_retval=$ac_status 1785fi 1786 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1788 as_fn_set_status $ac_retval 1789 1790} # ac_fn_c_try_run 1791 1792# ac_fn_c_check_func LINENO FUNC VAR 1793# ---------------------------------- 1794# Tests whether FUNC exists, setting the cache variable VAR accordingly 1795ac_fn_c_check_func () 1796{ 1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1799$as_echo_n "checking for $2... " >&6; } 1800if eval \${$3+:} false; then : 1801 $as_echo_n "(cached) " >&6 1802else 1803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1804/* end confdefs.h. */ 1805/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1806 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1807#define $2 innocuous_$2 1808 1809/* System header to define __stub macros and hopefully few prototypes, 1810 which can conflict with char $2 (); below. 1811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1812 <limits.h> exists even on freestanding compilers. */ 1813 1814#ifdef __STDC__ 1815# include <limits.h> 1816#else 1817# include <assert.h> 1818#endif 1819 1820#undef $2 1821 1822/* Override any GCC internal prototype to avoid an error. 1823 Use char because int might match the return type of a GCC 1824 builtin and then its argument prototype would still apply. */ 1825#ifdef __cplusplus 1826extern "C" 1827#endif 1828char $2 (); 1829/* The GNU C library defines this for functions which it implements 1830 to always fail with ENOSYS. Some functions are actually named 1831 something starting with __ and the normal name is an alias. */ 1832#if defined __stub_$2 || defined __stub___$2 1833choke me 1834#endif 1835 1836int 1837main () 1838{ 1839return $2 (); 1840 ; 1841 return 0; 1842} 1843_ACEOF 1844if ac_fn_c_try_link "$LINENO"; then : 1845 eval "$3=yes" 1846else 1847 eval "$3=no" 1848fi 1849rm -f core conftest.err conftest.$ac_objext \ 1850 conftest$ac_exeext conftest.$ac_ext 1851fi 1852eval ac_res=\$$3 1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1854$as_echo "$ac_res" >&6; } 1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1856 1857} # ac_fn_c_check_func 1858 1859# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1860# --------------------------------------------- 1861# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1862# accordingly. 1863ac_fn_c_check_decl () 1864{ 1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1866 as_decl_name=`echo $2|sed 's/ *(.*//'` 1867 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1869$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1870if eval \${$3+:} false; then : 1871 $as_echo_n "(cached) " >&6 1872else 1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1874/* end confdefs.h. */ 1875$4 1876int 1877main () 1878{ 1879#ifndef $as_decl_name 1880#ifdef __cplusplus 1881 (void) $as_decl_use; 1882#else 1883 (void) $as_decl_name; 1884#endif 1885#endif 1886 1887 ; 1888 return 0; 1889} 1890_ACEOF 1891if ac_fn_c_try_compile "$LINENO"; then : 1892 eval "$3=yes" 1893else 1894 eval "$3=no" 1895fi 1896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1897fi 1898eval ac_res=\$$3 1899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1900$as_echo "$ac_res" >&6; } 1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1902 1903} # ac_fn_c_check_decl 1904cat >config.log <<_ACEOF 1905This file contains any messages produced by compilers while 1906running configure, to aid debugging if configure makes a mistake. 1907 1908It was created by libXpm $as_me 3.5.15, which was 1909generated by GNU Autoconf 2.69. Invocation command line was 1910 1911 $ $0 $@ 1912 1913_ACEOF 1914exec 5>>config.log 1915{ 1916cat <<_ASUNAME 1917## --------- ## 1918## Platform. ## 1919## --------- ## 1920 1921hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1922uname -m = `(uname -m) 2>/dev/null || echo unknown` 1923uname -r = `(uname -r) 2>/dev/null || echo unknown` 1924uname -s = `(uname -s) 2>/dev/null || echo unknown` 1925uname -v = `(uname -v) 2>/dev/null || echo unknown` 1926 1927/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1928/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1929 1930/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1931/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1932/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1933/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1934/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1935/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1936/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1937 1938_ASUNAME 1939 1940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1941for as_dir in $PATH 1942do 1943 IFS=$as_save_IFS 1944 test -z "$as_dir" && as_dir=. 1945 $as_echo "PATH: $as_dir" 1946 done 1947IFS=$as_save_IFS 1948 1949} >&5 1950 1951cat >&5 <<_ACEOF 1952 1953 1954## ----------- ## 1955## Core tests. ## 1956## ----------- ## 1957 1958_ACEOF 1959 1960 1961# Keep a trace of the command line. 1962# Strip out --no-create and --no-recursion so they do not pile up. 1963# Strip out --silent because we don't want to record it for future runs. 1964# Also quote any args containing shell meta-characters. 1965# Make two passes to allow for proper duplicate-argument suppression. 1966ac_configure_args= 1967ac_configure_args0= 1968ac_configure_args1= 1969ac_must_keep_next=false 1970for ac_pass in 1 2 1971do 1972 for ac_arg 1973 do 1974 case $ac_arg in 1975 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1976 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1977 | -silent | --silent | --silen | --sile | --sil) 1978 continue ;; 1979 *\'*) 1980 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1981 esac 1982 case $ac_pass in 1983 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1984 2) 1985 as_fn_append ac_configure_args1 " '$ac_arg'" 1986 if test $ac_must_keep_next = true; then 1987 ac_must_keep_next=false # Got value, back to normal. 1988 else 1989 case $ac_arg in 1990 *=* | --config-cache | -C | -disable-* | --disable-* \ 1991 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1992 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1993 | -with-* | --with-* | -without-* | --without-* | --x) 1994 case "$ac_configure_args0 " in 1995 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1996 esac 1997 ;; 1998 -* ) ac_must_keep_next=true ;; 1999 esac 2000 fi 2001 as_fn_append ac_configure_args " '$ac_arg'" 2002 ;; 2003 esac 2004 done 2005done 2006{ ac_configure_args0=; unset ac_configure_args0;} 2007{ ac_configure_args1=; unset ac_configure_args1;} 2008 2009# When interrupted or exit'd, cleanup temporary files, and complete 2010# config.log. We remove comments because anyway the quotes in there 2011# would cause problems or look ugly. 2012# WARNING: Use '\'' to represent an apostrophe within the trap. 2013# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2014trap 'exit_status=$? 2015 # Save into config.log some information that might help in debugging. 2016 { 2017 echo 2018 2019 $as_echo "## ---------------- ## 2020## Cache variables. ## 2021## ---------------- ##" 2022 echo 2023 # The following way of writing the cache mishandles newlines in values, 2024( 2025 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2026 eval ac_val=\$$ac_var 2027 case $ac_val in #( 2028 *${as_nl}*) 2029 case $ac_var in #( 2030 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2031$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2032 esac 2033 case $ac_var in #( 2034 _ | IFS | as_nl) ;; #( 2035 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2036 *) { eval $ac_var=; unset $ac_var;} ;; 2037 esac ;; 2038 esac 2039 done 2040 (set) 2>&1 | 2041 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2042 *${as_nl}ac_space=\ *) 2043 sed -n \ 2044 "s/'\''/'\''\\\\'\'''\''/g; 2045 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2046 ;; #( 2047 *) 2048 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2049 ;; 2050 esac | 2051 sort 2052) 2053 echo 2054 2055 $as_echo "## ----------------- ## 2056## Output variables. ## 2057## ----------------- ##" 2058 echo 2059 for ac_var in $ac_subst_vars 2060 do 2061 eval ac_val=\$$ac_var 2062 case $ac_val in 2063 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2064 esac 2065 $as_echo "$ac_var='\''$ac_val'\''" 2066 done | sort 2067 echo 2068 2069 if test -n "$ac_subst_files"; then 2070 $as_echo "## ------------------- ## 2071## File substitutions. ## 2072## ------------------- ##" 2073 echo 2074 for ac_var in $ac_subst_files 2075 do 2076 eval ac_val=\$$ac_var 2077 case $ac_val in 2078 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2079 esac 2080 $as_echo "$ac_var='\''$ac_val'\''" 2081 done | sort 2082 echo 2083 fi 2084 2085 if test -s confdefs.h; then 2086 $as_echo "## ----------- ## 2087## confdefs.h. ## 2088## ----------- ##" 2089 echo 2090 cat confdefs.h 2091 echo 2092 fi 2093 test "$ac_signal" != 0 && 2094 $as_echo "$as_me: caught signal $ac_signal" 2095 $as_echo "$as_me: exit $exit_status" 2096 } >&5 2097 rm -f core *.core core.conftest.* && 2098 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2099 exit $exit_status 2100' 0 2101for ac_signal in 1 2 13 15; do 2102 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2103done 2104ac_signal=0 2105 2106# confdefs.h avoids OS command line length limits that DEFS can exceed. 2107rm -f -r conftest* confdefs.h 2108 2109$as_echo "/* confdefs.h */" > confdefs.h 2110 2111# Predefined preprocessor variables. 2112 2113cat >>confdefs.h <<_ACEOF 2114#define PACKAGE_NAME "$PACKAGE_NAME" 2115_ACEOF 2116 2117cat >>confdefs.h <<_ACEOF 2118#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2119_ACEOF 2120 2121cat >>confdefs.h <<_ACEOF 2122#define PACKAGE_VERSION "$PACKAGE_VERSION" 2123_ACEOF 2124 2125cat >>confdefs.h <<_ACEOF 2126#define PACKAGE_STRING "$PACKAGE_STRING" 2127_ACEOF 2128 2129cat >>confdefs.h <<_ACEOF 2130#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2131_ACEOF 2132 2133cat >>confdefs.h <<_ACEOF 2134#define PACKAGE_URL "$PACKAGE_URL" 2135_ACEOF 2136 2137 2138# Let the site file select an alternate cache file if it wants to. 2139# Prefer an explicitly selected file to automatically selected ones. 2140ac_site_file1=NONE 2141ac_site_file2=NONE 2142if test -n "$CONFIG_SITE"; then 2143 # We do not want a PATH search for config.site. 2144 case $CONFIG_SITE in #(( 2145 -*) ac_site_file1=./$CONFIG_SITE;; 2146 */*) ac_site_file1=$CONFIG_SITE;; 2147 *) ac_site_file1=./$CONFIG_SITE;; 2148 esac 2149elif test "x$prefix" != xNONE; then 2150 ac_site_file1=$prefix/share/config.site 2151 ac_site_file2=$prefix/etc/config.site 2152else 2153 ac_site_file1=$ac_default_prefix/share/config.site 2154 ac_site_file2=$ac_default_prefix/etc/config.site 2155fi 2156for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2157do 2158 test "x$ac_site_file" = xNONE && continue 2159 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2160 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2161$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2162 sed 's/^/| /' "$ac_site_file" >&5 2163 . "$ac_site_file" \ 2164 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2165$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2166as_fn_error $? "failed to load site script $ac_site_file 2167See \`config.log' for more details" "$LINENO" 5; } 2168 fi 2169done 2170 2171if test -r "$cache_file"; then 2172 # Some versions of bash will fail to source /dev/null (special files 2173 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2174 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2175 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2176$as_echo "$as_me: loading cache $cache_file" >&6;} 2177 case $cache_file in 2178 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2179 *) . "./$cache_file";; 2180 esac 2181 fi 2182else 2183 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2184$as_echo "$as_me: creating cache $cache_file" >&6;} 2185 >$cache_file 2186fi 2187 2188# Check that the precious variables saved in the cache have kept the same 2189# value. 2190ac_cache_corrupted=false 2191for ac_var in $ac_precious_vars; do 2192 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2193 eval ac_new_set=\$ac_env_${ac_var}_set 2194 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2195 eval ac_new_val=\$ac_env_${ac_var}_value 2196 case $ac_old_set,$ac_new_set in 2197 set,) 2198 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2199$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2200 ac_cache_corrupted=: ;; 2201 ,set) 2202 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2203$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2204 ac_cache_corrupted=: ;; 2205 ,);; 2206 *) 2207 if test "x$ac_old_val" != "x$ac_new_val"; then 2208 # differences in whitespace do not lead to failure. 2209 ac_old_val_w=`echo x $ac_old_val` 2210 ac_new_val_w=`echo x $ac_new_val` 2211 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2212 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2213$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2214 ac_cache_corrupted=: 2215 else 2216 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2217$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2218 eval $ac_var=\$ac_old_val 2219 fi 2220 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2221$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2222 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2223$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2224 fi;; 2225 esac 2226 # Pass precious variables to config.status. 2227 if test "$ac_new_set" = set; then 2228 case $ac_new_val in 2229 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2230 *) ac_arg=$ac_var=$ac_new_val ;; 2231 esac 2232 case " $ac_configure_args " in 2233 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2234 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2235 esac 2236 fi 2237done 2238if $ac_cache_corrupted; then 2239 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2240$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2241 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2242$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2243 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2244fi 2245## -------------------- ## 2246## Main body of script. ## 2247## -------------------- ## 2248 2249ac_ext=c 2250ac_cpp='$CPP $CPPFLAGS' 2251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2253ac_compiler_gnu=$ac_cv_c_compiler_gnu 2254 2255 2256 2257ac_config_headers="$ac_config_headers config.h" 2258 2259 2260 2261# Initialize Automake 2262am__api_version='1.15' 2263 2264ac_aux_dir= 2265for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2266 if test -f "$ac_dir/install-sh"; then 2267 ac_aux_dir=$ac_dir 2268 ac_install_sh="$ac_aux_dir/install-sh -c" 2269 break 2270 elif test -f "$ac_dir/install.sh"; then 2271 ac_aux_dir=$ac_dir 2272 ac_install_sh="$ac_aux_dir/install.sh -c" 2273 break 2274 elif test -f "$ac_dir/shtool"; then 2275 ac_aux_dir=$ac_dir 2276 ac_install_sh="$ac_aux_dir/shtool install -c" 2277 break 2278 fi 2279done 2280if test -z "$ac_aux_dir"; then 2281 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2282fi 2283 2284# These three variables are undocumented and unsupported, 2285# and are intended to be withdrawn in a future Autoconf release. 2286# They can cause serious problems if a builder's source tree is in a directory 2287# whose full name contains unusual characters. 2288ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2289ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2290ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2291 2292 2293# Find a good install program. We prefer a C program (faster), 2294# so one script is as good as another. But avoid the broken or 2295# incompatible versions: 2296# SysV /etc/install, /usr/sbin/install 2297# SunOS /usr/etc/install 2298# IRIX /sbin/install 2299# AIX /bin/install 2300# AmigaOS /C/install, which installs bootblocks on floppy discs 2301# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2302# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2303# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2304# OS/2's system install, which has a completely different semantic 2305# ./install, which can be erroneously created by make from ./install.sh. 2306# Reject install programs that cannot install multiple files. 2307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2308$as_echo_n "checking for a BSD-compatible install... " >&6; } 2309if test -z "$INSTALL"; then 2310if ${ac_cv_path_install+:} false; then : 2311 $as_echo_n "(cached) " >&6 2312else 2313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2314for as_dir in $PATH 2315do 2316 IFS=$as_save_IFS 2317 test -z "$as_dir" && as_dir=. 2318 # Account for people who put trailing slashes in PATH elements. 2319case $as_dir/ in #(( 2320 ./ | .// | /[cC]/* | \ 2321 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2322 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2323 /usr/ucb/* ) ;; 2324 *) 2325 # OSF1 and SCO ODT 3.0 have their own names for install. 2326 # Don't use installbsd from OSF since it installs stuff as root 2327 # by default. 2328 for ac_prog in ginstall scoinst install; do 2329 for ac_exec_ext in '' $ac_executable_extensions; do 2330 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2331 if test $ac_prog = install && 2332 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2333 # AIX install. It has an incompatible calling convention. 2334 : 2335 elif test $ac_prog = install && 2336 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2337 # program-specific install script used by HP pwplus--don't use. 2338 : 2339 else 2340 rm -rf conftest.one conftest.two conftest.dir 2341 echo one > conftest.one 2342 echo two > conftest.two 2343 mkdir conftest.dir 2344 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2345 test -s conftest.one && test -s conftest.two && 2346 test -s conftest.dir/conftest.one && 2347 test -s conftest.dir/conftest.two 2348 then 2349 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2350 break 3 2351 fi 2352 fi 2353 fi 2354 done 2355 done 2356 ;; 2357esac 2358 2359 done 2360IFS=$as_save_IFS 2361 2362rm -rf conftest.one conftest.two conftest.dir 2363 2364fi 2365 if test "${ac_cv_path_install+set}" = set; then 2366 INSTALL=$ac_cv_path_install 2367 else 2368 # As a last resort, use the slow shell script. Don't cache a 2369 # value for INSTALL within a source directory, because that will 2370 # break other packages using the cache if that directory is 2371 # removed, or if the value is a relative name. 2372 INSTALL=$ac_install_sh 2373 fi 2374fi 2375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2376$as_echo "$INSTALL" >&6; } 2377 2378# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2379# It thinks the first close brace ends the variable substitution. 2380test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2381 2382test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2383 2384test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2385 2386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2387$as_echo_n "checking whether build environment is sane... " >&6; } 2388# Reject unsafe characters in $srcdir or the absolute working directory 2389# name. Accept space and tab only in the latter. 2390am_lf=' 2391' 2392case `pwd` in 2393 *[\\\"\#\$\&\'\`$am_lf]*) 2394 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2395esac 2396case $srcdir in 2397 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2398 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2399esac 2400 2401# Do 'set' in a subshell so we don't clobber the current shell's 2402# arguments. Must try -L first in case configure is actually a 2403# symlink; some systems play weird games with the mod time of symlinks 2404# (eg FreeBSD returns the mod time of the symlink's containing 2405# directory). 2406if ( 2407 am_has_slept=no 2408 for am_try in 1 2; do 2409 echo "timestamp, slept: $am_has_slept" > conftest.file 2410 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2411 if test "$*" = "X"; then 2412 # -L didn't work. 2413 set X `ls -t "$srcdir/configure" conftest.file` 2414 fi 2415 if test "$*" != "X $srcdir/configure conftest.file" \ 2416 && test "$*" != "X conftest.file $srcdir/configure"; then 2417 2418 # If neither matched, then we have a broken ls. This can happen 2419 # if, for instance, CONFIG_SHELL is bash and it inherits a 2420 # broken ls alias from the environment. This has actually 2421 # happened. Such a system could not be considered "sane". 2422 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2423 alias in your environment" "$LINENO" 5 2424 fi 2425 if test "$2" = conftest.file || test $am_try -eq 2; then 2426 break 2427 fi 2428 # Just in case. 2429 sleep 1 2430 am_has_slept=yes 2431 done 2432 test "$2" = conftest.file 2433 ) 2434then 2435 # Ok. 2436 : 2437else 2438 as_fn_error $? "newly created file is older than distributed files! 2439Check your system clock" "$LINENO" 5 2440fi 2441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2442$as_echo "yes" >&6; } 2443# If we didn't sleep, we still need to ensure time stamps of config.status and 2444# generated files are strictly newer. 2445am_sleep_pid= 2446if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2447 ( sleep 1 ) & 2448 am_sleep_pid=$! 2449fi 2450 2451rm -f conftest.file 2452 2453test "$program_prefix" != NONE && 2454 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2455# Use a double $ so make ignores it. 2456test "$program_suffix" != NONE && 2457 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2458# Double any \ or $. 2459# By default was `s,x,x', remove it if useless. 2460ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2461program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2462 2463# Expand $ac_aux_dir to an absolute path. 2464am_aux_dir=`cd "$ac_aux_dir" && pwd` 2465 2466if test x"${MISSING+set}" != xset; then 2467 case $am_aux_dir in 2468 *\ * | *\ *) 2469 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2470 *) 2471 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2472 esac 2473fi 2474# Use eval to expand $SHELL 2475if eval "$MISSING --is-lightweight"; then 2476 am_missing_run="$MISSING " 2477else 2478 am_missing_run= 2479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2480$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2481fi 2482 2483if test x"${install_sh+set}" != xset; then 2484 case $am_aux_dir in 2485 *\ * | *\ *) 2486 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2487 *) 2488 install_sh="\${SHELL} $am_aux_dir/install-sh" 2489 esac 2490fi 2491 2492# Installed binaries are usually stripped using 'strip' when the user 2493# run "make install-strip". However 'strip' might not be the right 2494# tool to use in cross-compilation environments, therefore Automake 2495# will honor the 'STRIP' environment variable to overrule this program. 2496if test "$cross_compiling" != no; then 2497 if test -n "$ac_tool_prefix"; then 2498 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2499set dummy ${ac_tool_prefix}strip; ac_word=$2 2500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2501$as_echo_n "checking for $ac_word... " >&6; } 2502if ${ac_cv_prog_STRIP+:} false; then : 2503 $as_echo_n "(cached) " >&6 2504else 2505 if test -n "$STRIP"; then 2506 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2507else 2508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2509for as_dir in $PATH 2510do 2511 IFS=$as_save_IFS 2512 test -z "$as_dir" && as_dir=. 2513 for ac_exec_ext in '' $ac_executable_extensions; do 2514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2515 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2517 break 2 2518 fi 2519done 2520 done 2521IFS=$as_save_IFS 2522 2523fi 2524fi 2525STRIP=$ac_cv_prog_STRIP 2526if test -n "$STRIP"; then 2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2528$as_echo "$STRIP" >&6; } 2529else 2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2531$as_echo "no" >&6; } 2532fi 2533 2534 2535fi 2536if test -z "$ac_cv_prog_STRIP"; then 2537 ac_ct_STRIP=$STRIP 2538 # Extract the first word of "strip", so it can be a program name with args. 2539set dummy strip; ac_word=$2 2540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2541$as_echo_n "checking for $ac_word... " >&6; } 2542if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2543 $as_echo_n "(cached) " >&6 2544else 2545 if test -n "$ac_ct_STRIP"; then 2546 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2547else 2548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2549for as_dir in $PATH 2550do 2551 IFS=$as_save_IFS 2552 test -z "$as_dir" && as_dir=. 2553 for ac_exec_ext in '' $ac_executable_extensions; do 2554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2555 ac_cv_prog_ac_ct_STRIP="strip" 2556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2557 break 2 2558 fi 2559done 2560 done 2561IFS=$as_save_IFS 2562 2563fi 2564fi 2565ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2566if test -n "$ac_ct_STRIP"; then 2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2568$as_echo "$ac_ct_STRIP" >&6; } 2569else 2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2571$as_echo "no" >&6; } 2572fi 2573 2574 if test "x$ac_ct_STRIP" = x; then 2575 STRIP=":" 2576 else 2577 case $cross_compiling:$ac_tool_warned in 2578yes:) 2579{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2580$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2581ac_tool_warned=yes ;; 2582esac 2583 STRIP=$ac_ct_STRIP 2584 fi 2585else 2586 STRIP="$ac_cv_prog_STRIP" 2587fi 2588 2589fi 2590INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2591 2592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2593$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2594if test -z "$MKDIR_P"; then 2595 if ${ac_cv_path_mkdir+:} false; then : 2596 $as_echo_n "(cached) " >&6 2597else 2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2599for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2600do 2601 IFS=$as_save_IFS 2602 test -z "$as_dir" && as_dir=. 2603 for ac_prog in mkdir gmkdir; do 2604 for ac_exec_ext in '' $ac_executable_extensions; do 2605 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2606 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2607 'mkdir (GNU coreutils) '* | \ 2608 'mkdir (coreutils) '* | \ 2609 'mkdir (fileutils) '4.1*) 2610 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2611 break 3;; 2612 esac 2613 done 2614 done 2615 done 2616IFS=$as_save_IFS 2617 2618fi 2619 2620 test -d ./--version && rmdir ./--version 2621 if test "${ac_cv_path_mkdir+set}" = set; then 2622 MKDIR_P="$ac_cv_path_mkdir -p" 2623 else 2624 # As a last resort, use the slow shell script. Don't cache a 2625 # value for MKDIR_P within a source directory, because that will 2626 # break other packages using the cache if that directory is 2627 # removed, or if the value is a relative name. 2628 MKDIR_P="$ac_install_sh -d" 2629 fi 2630fi 2631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2632$as_echo "$MKDIR_P" >&6; } 2633 2634for ac_prog in gawk mawk nawk awk 2635do 2636 # Extract the first word of "$ac_prog", so it can be a program name with args. 2637set dummy $ac_prog; ac_word=$2 2638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2639$as_echo_n "checking for $ac_word... " >&6; } 2640if ${ac_cv_prog_AWK+:} false; then : 2641 $as_echo_n "(cached) " >&6 2642else 2643 if test -n "$AWK"; then 2644 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2645else 2646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2647for as_dir in $PATH 2648do 2649 IFS=$as_save_IFS 2650 test -z "$as_dir" && as_dir=. 2651 for ac_exec_ext in '' $ac_executable_extensions; do 2652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2653 ac_cv_prog_AWK="$ac_prog" 2654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2655 break 2 2656 fi 2657done 2658 done 2659IFS=$as_save_IFS 2660 2661fi 2662fi 2663AWK=$ac_cv_prog_AWK 2664if test -n "$AWK"; then 2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2666$as_echo "$AWK" >&6; } 2667else 2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2669$as_echo "no" >&6; } 2670fi 2671 2672 2673 test -n "$AWK" && break 2674done 2675 2676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2677$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2678set x ${MAKE-make} 2679ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2680if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2681 $as_echo_n "(cached) " >&6 2682else 2683 cat >conftest.make <<\_ACEOF 2684SHELL = /bin/sh 2685all: 2686 @echo '@@@%%%=$(MAKE)=@@@%%%' 2687_ACEOF 2688# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2689case `${MAKE-make} -f conftest.make 2>/dev/null` in 2690 *@@@%%%=?*=@@@%%%*) 2691 eval ac_cv_prog_make_${ac_make}_set=yes;; 2692 *) 2693 eval ac_cv_prog_make_${ac_make}_set=no;; 2694esac 2695rm -f conftest.make 2696fi 2697if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2699$as_echo "yes" >&6; } 2700 SET_MAKE= 2701else 2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2703$as_echo "no" >&6; } 2704 SET_MAKE="MAKE=${MAKE-make}" 2705fi 2706 2707rm -rf .tst 2>/dev/null 2708mkdir .tst 2>/dev/null 2709if test -d .tst; then 2710 am__leading_dot=. 2711else 2712 am__leading_dot=_ 2713fi 2714rmdir .tst 2>/dev/null 2715 2716# Check whether --enable-silent-rules was given. 2717if test "${enable_silent_rules+set}" = set; then : 2718 enableval=$enable_silent_rules; 2719fi 2720 2721case $enable_silent_rules in # ((( 2722 yes) AM_DEFAULT_VERBOSITY=0;; 2723 no) AM_DEFAULT_VERBOSITY=1;; 2724 *) AM_DEFAULT_VERBOSITY=1;; 2725esac 2726am_make=${MAKE-make} 2727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2728$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2729if ${am_cv_make_support_nested_variables+:} false; then : 2730 $as_echo_n "(cached) " >&6 2731else 2732 if $as_echo 'TRUE=$(BAR$(V)) 2733BAR0=false 2734BAR1=true 2735V=1 2736am__doit: 2737 @$(TRUE) 2738.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2739 am_cv_make_support_nested_variables=yes 2740else 2741 am_cv_make_support_nested_variables=no 2742fi 2743fi 2744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2745$as_echo "$am_cv_make_support_nested_variables" >&6; } 2746if test $am_cv_make_support_nested_variables = yes; then 2747 AM_V='$(V)' 2748 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2749else 2750 AM_V=$AM_DEFAULT_VERBOSITY 2751 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2752fi 2753AM_BACKSLASH='\' 2754 2755if test "`cd $srcdir && pwd`" != "`pwd`"; then 2756 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2757 # is not polluted with repeated "-I." 2758 am__isrc=' -I$(srcdir)' 2759 # test to see if srcdir already configured 2760 if test -f $srcdir/config.status; then 2761 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2762 fi 2763fi 2764 2765# test whether we have cygpath 2766if test -z "$CYGPATH_W"; then 2767 if (cygpath --version) >/dev/null 2>/dev/null; then 2768 CYGPATH_W='cygpath -w' 2769 else 2770 CYGPATH_W=echo 2771 fi 2772fi 2773 2774 2775# Define the identity of the package. 2776 PACKAGE='libXpm' 2777 VERSION='3.5.15' 2778 2779 2780cat >>confdefs.h <<_ACEOF 2781#define PACKAGE "$PACKAGE" 2782_ACEOF 2783 2784 2785cat >>confdefs.h <<_ACEOF 2786#define VERSION "$VERSION" 2787_ACEOF 2788 2789# Some tools Automake needs. 2790 2791ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2792 2793 2794AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2795 2796 2797AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2798 2799 2800AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2801 2802 2803MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2804 2805# For better backward compatibility. To be removed once Automake 1.9.x 2806# dies out for good. For more background, see: 2807# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2808# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2809mkdir_p='$(MKDIR_P)' 2810 2811# We need awk for the "check" target (and possibly the TAP driver). The 2812# system "awk" is bad on some platforms. 2813# Always define AMTAR for backward compatibility. Yes, it's still used 2814# in the wild :-( We should find a proper way to deprecate it ... 2815AMTAR='$${TAR-tar}' 2816 2817 2818# We'll loop over all known methods to create a tar archive until one works. 2819_am_tools='gnutar pax cpio none' 2820 2821am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2822 2823 2824 2825 2826 2827 2828# POSIX will say in a future version that running "rm -f" with no argument 2829# is OK; and we want to be able to make that assumption in our Makefile 2830# recipes. So use an aggressive probe to check that the usage we want is 2831# actually supported "in the wild" to an acceptable degree. 2832# See automake bug#10828. 2833# To make any issue more visible, cause the running configure to be aborted 2834# by default if the 'rm' program in use doesn't match our expectations; the 2835# user can still override this though. 2836if rm -f && rm -fr && rm -rf; then : OK; else 2837 cat >&2 <<'END' 2838Oops! 2839 2840Your 'rm' program seems unable to run without file operands specified 2841on the command line, even when the '-f' option is present. This is contrary 2842to the behaviour of most rm programs out there, and not conforming with 2843the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2844 2845Please tell bug-automake@gnu.org about your system, including the value 2846of your $PATH and any error possibly output before this message. This 2847can help us improve future automake versions. 2848 2849END 2850 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2851 echo 'Configuration will proceed anyway, since you have set the' >&2 2852 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2853 echo >&2 2854 else 2855 cat >&2 <<'END' 2856Aborting the configuration process, to ensure you take notice of the issue. 2857 2858You can download and install GNU coreutils to get an 'rm' implementation 2859that behaves properly: <http://www.gnu.org/software/coreutils/>. 2860 2861If you want to complete the configuration process using your problematic 2862'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2863to "yes", and re-run configure. 2864 2865END 2866 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2867 fi 2868fi 2869 2870 2871# Initialize libtool 2872case `pwd` in 2873 *\ * | *\ *) 2874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2875$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2876esac 2877 2878 2879 2880macro_version='2.4.6' 2881macro_revision='2.4.6' 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895ltmain=$ac_aux_dir/ltmain.sh 2896 2897# Make sure we can run config.sub. 2898$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2899 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2900 2901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2902$as_echo_n "checking build system type... " >&6; } 2903if ${ac_cv_build+:} false; then : 2904 $as_echo_n "(cached) " >&6 2905else 2906 ac_build_alias=$build_alias 2907test "x$ac_build_alias" = x && 2908 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2909test "x$ac_build_alias" = x && 2910 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2911ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2912 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2913 2914fi 2915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2916$as_echo "$ac_cv_build" >&6; } 2917case $ac_cv_build in 2918*-*-*) ;; 2919*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2920esac 2921build=$ac_cv_build 2922ac_save_IFS=$IFS; IFS='-' 2923set x $ac_cv_build 2924shift 2925build_cpu=$1 2926build_vendor=$2 2927shift; shift 2928# Remember, the first character of IFS is used to create $*, 2929# except with old shells: 2930build_os=$* 2931IFS=$ac_save_IFS 2932case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2933 2934 2935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2936$as_echo_n "checking host system type... " >&6; } 2937if ${ac_cv_host+:} false; then : 2938 $as_echo_n "(cached) " >&6 2939else 2940 if test "x$host_alias" = x; then 2941 ac_cv_host=$ac_cv_build 2942else 2943 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2944 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2945fi 2946 2947fi 2948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2949$as_echo "$ac_cv_host" >&6; } 2950case $ac_cv_host in 2951*-*-*) ;; 2952*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2953esac 2954host=$ac_cv_host 2955ac_save_IFS=$IFS; IFS='-' 2956set x $ac_cv_host 2957shift 2958host_cpu=$1 2959host_vendor=$2 2960shift; shift 2961# Remember, the first character of IFS is used to create $*, 2962# except with old shells: 2963host_os=$* 2964IFS=$ac_save_IFS 2965case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2966 2967 2968# Backslashify metacharacters that are still active within 2969# double-quoted strings. 2970sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 2971 2972# Same as above, but do not quote variable references. 2973double_quote_subst='s/\(["`\\]\)/\\\1/g' 2974 2975# Sed substitution to delay expansion of an escaped shell variable in a 2976# double_quote_subst'ed string. 2977delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2978 2979# Sed substitution to delay expansion of an escaped single quote. 2980delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2981 2982# Sed substitution to avoid accidental globbing in evaled expressions 2983no_glob_subst='s/\*/\\\*/g' 2984 2985ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2986ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 2987ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 2988 2989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 2990$as_echo_n "checking how to print strings... " >&6; } 2991# Test print first, because it will be a builtin if present. 2992if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 2993 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 2994 ECHO='print -r --' 2995elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 2996 ECHO='printf %s\n' 2997else 2998 # Use this function as a fallback that always works. 2999 func_fallback_echo () 3000 { 3001 eval 'cat <<_LTECHO_EOF 3002$1 3003_LTECHO_EOF' 3004 } 3005 ECHO='func_fallback_echo' 3006fi 3007 3008# func_echo_all arg... 3009# Invoke $ECHO with all args, space-separated. 3010func_echo_all () 3011{ 3012 $ECHO "" 3013} 3014 3015case $ECHO in 3016 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3017$as_echo "printf" >&6; } ;; 3018 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3019$as_echo "print -r" >&6; } ;; 3020 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3021$as_echo "cat" >&6; } ;; 3022esac 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037DEPDIR="${am__leading_dot}deps" 3038 3039ac_config_commands="$ac_config_commands depfiles" 3040 3041 3042am_make=${MAKE-make} 3043cat > confinc << 'END' 3044am__doit: 3045 @echo this is the am__doit target 3046.PHONY: am__doit 3047END 3048# If we don't find an include directive, just comment out the code. 3049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3050$as_echo_n "checking for style of include used by $am_make... " >&6; } 3051am__include="#" 3052am__quote= 3053_am_result=none 3054# First try GNU make style include. 3055echo "include confinc" > confmf 3056# Ignore all kinds of additional output from 'make'. 3057case `$am_make -s -f confmf 2> /dev/null` in #( 3058*the\ am__doit\ target*) 3059 am__include=include 3060 am__quote= 3061 _am_result=GNU 3062 ;; 3063esac 3064# Now try BSD make style include. 3065if test "$am__include" = "#"; then 3066 echo '.include "confinc"' > confmf 3067 case `$am_make -s -f confmf 2> /dev/null` in #( 3068 *the\ am__doit\ target*) 3069 am__include=.include 3070 am__quote="\"" 3071 _am_result=BSD 3072 ;; 3073 esac 3074fi 3075 3076 3077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3078$as_echo "$_am_result" >&6; } 3079rm -f confinc confmf 3080 3081# Check whether --enable-dependency-tracking was given. 3082if test "${enable_dependency_tracking+set}" = set; then : 3083 enableval=$enable_dependency_tracking; 3084fi 3085 3086if test "x$enable_dependency_tracking" != xno; then 3087 am_depcomp="$ac_aux_dir/depcomp" 3088 AMDEPBACKSLASH='\' 3089 am__nodep='_no' 3090fi 3091 if test "x$enable_dependency_tracking" != xno; then 3092 AMDEP_TRUE= 3093 AMDEP_FALSE='#' 3094else 3095 AMDEP_TRUE='#' 3096 AMDEP_FALSE= 3097fi 3098 3099 3100ac_ext=c 3101ac_cpp='$CPP $CPPFLAGS' 3102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3104ac_compiler_gnu=$ac_cv_c_compiler_gnu 3105if test -n "$ac_tool_prefix"; then 3106 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3107set dummy ${ac_tool_prefix}gcc; ac_word=$2 3108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3109$as_echo_n "checking for $ac_word... " >&6; } 3110if ${ac_cv_prog_CC+:} false; then : 3111 $as_echo_n "(cached) " >&6 3112else 3113 if test -n "$CC"; then 3114 ac_cv_prog_CC="$CC" # Let the user override the test. 3115else 3116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3117for as_dir in $PATH 3118do 3119 IFS=$as_save_IFS 3120 test -z "$as_dir" && as_dir=. 3121 for ac_exec_ext in '' $ac_executable_extensions; do 3122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3123 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3125 break 2 3126 fi 3127done 3128 done 3129IFS=$as_save_IFS 3130 3131fi 3132fi 3133CC=$ac_cv_prog_CC 3134if test -n "$CC"; then 3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3136$as_echo "$CC" >&6; } 3137else 3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3139$as_echo "no" >&6; } 3140fi 3141 3142 3143fi 3144if test -z "$ac_cv_prog_CC"; then 3145 ac_ct_CC=$CC 3146 # Extract the first word of "gcc", so it can be a program name with args. 3147set dummy gcc; ac_word=$2 3148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3149$as_echo_n "checking for $ac_word... " >&6; } 3150if ${ac_cv_prog_ac_ct_CC+:} false; then : 3151 $as_echo_n "(cached) " >&6 3152else 3153 if test -n "$ac_ct_CC"; then 3154 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3155else 3156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3157for as_dir in $PATH 3158do 3159 IFS=$as_save_IFS 3160 test -z "$as_dir" && as_dir=. 3161 for ac_exec_ext in '' $ac_executable_extensions; do 3162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3163 ac_cv_prog_ac_ct_CC="gcc" 3164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3165 break 2 3166 fi 3167done 3168 done 3169IFS=$as_save_IFS 3170 3171fi 3172fi 3173ac_ct_CC=$ac_cv_prog_ac_ct_CC 3174if test -n "$ac_ct_CC"; then 3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3176$as_echo "$ac_ct_CC" >&6; } 3177else 3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3179$as_echo "no" >&6; } 3180fi 3181 3182 if test "x$ac_ct_CC" = x; then 3183 CC="" 3184 else 3185 case $cross_compiling:$ac_tool_warned in 3186yes:) 3187{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3188$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3189ac_tool_warned=yes ;; 3190esac 3191 CC=$ac_ct_CC 3192 fi 3193else 3194 CC="$ac_cv_prog_CC" 3195fi 3196 3197if test -z "$CC"; then 3198 if test -n "$ac_tool_prefix"; then 3199 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3200set dummy ${ac_tool_prefix}cc; ac_word=$2 3201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3202$as_echo_n "checking for $ac_word... " >&6; } 3203if ${ac_cv_prog_CC+:} false; then : 3204 $as_echo_n "(cached) " >&6 3205else 3206 if test -n "$CC"; then 3207 ac_cv_prog_CC="$CC" # Let the user override the test. 3208else 3209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3210for as_dir in $PATH 3211do 3212 IFS=$as_save_IFS 3213 test -z "$as_dir" && as_dir=. 3214 for ac_exec_ext in '' $ac_executable_extensions; do 3215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3216 ac_cv_prog_CC="${ac_tool_prefix}cc" 3217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3218 break 2 3219 fi 3220done 3221 done 3222IFS=$as_save_IFS 3223 3224fi 3225fi 3226CC=$ac_cv_prog_CC 3227if test -n "$CC"; then 3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3229$as_echo "$CC" >&6; } 3230else 3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3232$as_echo "no" >&6; } 3233fi 3234 3235 3236 fi 3237fi 3238if test -z "$CC"; then 3239 # Extract the first word of "cc", so it can be a program name with args. 3240set dummy cc; ac_word=$2 3241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3242$as_echo_n "checking for $ac_word... " >&6; } 3243if ${ac_cv_prog_CC+:} false; then : 3244 $as_echo_n "(cached) " >&6 3245else 3246 if test -n "$CC"; then 3247 ac_cv_prog_CC="$CC" # Let the user override the test. 3248else 3249 ac_prog_rejected=no 3250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3251for as_dir in $PATH 3252do 3253 IFS=$as_save_IFS 3254 test -z "$as_dir" && as_dir=. 3255 for ac_exec_ext in '' $ac_executable_extensions; do 3256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3257 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3258 ac_prog_rejected=yes 3259 continue 3260 fi 3261 ac_cv_prog_CC="cc" 3262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3263 break 2 3264 fi 3265done 3266 done 3267IFS=$as_save_IFS 3268 3269if test $ac_prog_rejected = yes; then 3270 # We found a bogon in the path, so make sure we never use it. 3271 set dummy $ac_cv_prog_CC 3272 shift 3273 if test $# != 0; then 3274 # We chose a different compiler from the bogus one. 3275 # However, it has the same basename, so the bogon will be chosen 3276 # first if we set CC to just the basename; use the full file name. 3277 shift 3278 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3279 fi 3280fi 3281fi 3282fi 3283CC=$ac_cv_prog_CC 3284if test -n "$CC"; then 3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3286$as_echo "$CC" >&6; } 3287else 3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3289$as_echo "no" >&6; } 3290fi 3291 3292 3293fi 3294if test -z "$CC"; then 3295 if test -n "$ac_tool_prefix"; then 3296 for ac_prog in cl.exe 3297 do 3298 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3299set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3301$as_echo_n "checking for $ac_word... " >&6; } 3302if ${ac_cv_prog_CC+:} false; then : 3303 $as_echo_n "(cached) " >&6 3304else 3305 if test -n "$CC"; then 3306 ac_cv_prog_CC="$CC" # Let the user override the test. 3307else 3308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3309for as_dir in $PATH 3310do 3311 IFS=$as_save_IFS 3312 test -z "$as_dir" && as_dir=. 3313 for ac_exec_ext in '' $ac_executable_extensions; do 3314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3315 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3317 break 2 3318 fi 3319done 3320 done 3321IFS=$as_save_IFS 3322 3323fi 3324fi 3325CC=$ac_cv_prog_CC 3326if test -n "$CC"; then 3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3328$as_echo "$CC" >&6; } 3329else 3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3331$as_echo "no" >&6; } 3332fi 3333 3334 3335 test -n "$CC" && break 3336 done 3337fi 3338if test -z "$CC"; then 3339 ac_ct_CC=$CC 3340 for ac_prog in cl.exe 3341do 3342 # Extract the first word of "$ac_prog", so it can be a program name with args. 3343set dummy $ac_prog; ac_word=$2 3344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3345$as_echo_n "checking for $ac_word... " >&6; } 3346if ${ac_cv_prog_ac_ct_CC+:} false; then : 3347 $as_echo_n "(cached) " >&6 3348else 3349 if test -n "$ac_ct_CC"; then 3350 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3351else 3352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3353for as_dir in $PATH 3354do 3355 IFS=$as_save_IFS 3356 test -z "$as_dir" && as_dir=. 3357 for ac_exec_ext in '' $ac_executable_extensions; do 3358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3359 ac_cv_prog_ac_ct_CC="$ac_prog" 3360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3361 break 2 3362 fi 3363done 3364 done 3365IFS=$as_save_IFS 3366 3367fi 3368fi 3369ac_ct_CC=$ac_cv_prog_ac_ct_CC 3370if test -n "$ac_ct_CC"; then 3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3372$as_echo "$ac_ct_CC" >&6; } 3373else 3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3375$as_echo "no" >&6; } 3376fi 3377 3378 3379 test -n "$ac_ct_CC" && break 3380done 3381 3382 if test "x$ac_ct_CC" = x; then 3383 CC="" 3384 else 3385 case $cross_compiling:$ac_tool_warned in 3386yes:) 3387{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3388$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3389ac_tool_warned=yes ;; 3390esac 3391 CC=$ac_ct_CC 3392 fi 3393fi 3394 3395fi 3396 3397 3398test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3399$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3400as_fn_error $? "no acceptable C compiler found in \$PATH 3401See \`config.log' for more details" "$LINENO" 5; } 3402 3403# Provide some information about the compiler. 3404$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3405set X $ac_compile 3406ac_compiler=$2 3407for ac_option in --version -v -V -qversion; do 3408 { { ac_try="$ac_compiler $ac_option >&5" 3409case "(($ac_try" in 3410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3411 *) ac_try_echo=$ac_try;; 3412esac 3413eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3414$as_echo "$ac_try_echo"; } >&5 3415 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3416 ac_status=$? 3417 if test -s conftest.err; then 3418 sed '10a\ 3419... rest of stderr output deleted ... 3420 10q' conftest.err >conftest.er1 3421 cat conftest.er1 >&5 3422 fi 3423 rm -f conftest.er1 conftest.err 3424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3425 test $ac_status = 0; } 3426done 3427 3428cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3429/* end confdefs.h. */ 3430 3431int 3432main () 3433{ 3434 3435 ; 3436 return 0; 3437} 3438_ACEOF 3439ac_clean_files_save=$ac_clean_files 3440ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3441# Try to create an executable without -o first, disregard a.out. 3442# It will help us diagnose broken compilers, and finding out an intuition 3443# of exeext. 3444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3445$as_echo_n "checking whether the C compiler works... " >&6; } 3446ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3447 3448# The possible output files: 3449ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3450 3451ac_rmfiles= 3452for ac_file in $ac_files 3453do 3454 case $ac_file in 3455 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3456 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3457 esac 3458done 3459rm -f $ac_rmfiles 3460 3461if { { ac_try="$ac_link_default" 3462case "(($ac_try" in 3463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3464 *) ac_try_echo=$ac_try;; 3465esac 3466eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3467$as_echo "$ac_try_echo"; } >&5 3468 (eval "$ac_link_default") 2>&5 3469 ac_status=$? 3470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3471 test $ac_status = 0; }; then : 3472 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3473# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3474# in a Makefile. We should not override ac_cv_exeext if it was cached, 3475# so that the user can short-circuit this test for compilers unknown to 3476# Autoconf. 3477for ac_file in $ac_files '' 3478do 3479 test -f "$ac_file" || continue 3480 case $ac_file in 3481 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3482 ;; 3483 [ab].out ) 3484 # We found the default executable, but exeext='' is most 3485 # certainly right. 3486 break;; 3487 *.* ) 3488 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3489 then :; else 3490 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3491 fi 3492 # We set ac_cv_exeext here because the later test for it is not 3493 # safe: cross compilers may not add the suffix if given an `-o' 3494 # argument, so we may need to know it at that point already. 3495 # Even if this section looks crufty: it has the advantage of 3496 # actually working. 3497 break;; 3498 * ) 3499 break;; 3500 esac 3501done 3502test "$ac_cv_exeext" = no && ac_cv_exeext= 3503 3504else 3505 ac_file='' 3506fi 3507if test -z "$ac_file"; then : 3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3509$as_echo "no" >&6; } 3510$as_echo "$as_me: failed program was:" >&5 3511sed 's/^/| /' conftest.$ac_ext >&5 3512 3513{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3514$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3515as_fn_error 77 "C compiler cannot create executables 3516See \`config.log' for more details" "$LINENO" 5; } 3517else 3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3519$as_echo "yes" >&6; } 3520fi 3521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3522$as_echo_n "checking for C compiler default output file name... " >&6; } 3523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3524$as_echo "$ac_file" >&6; } 3525ac_exeext=$ac_cv_exeext 3526 3527rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3528ac_clean_files=$ac_clean_files_save 3529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3530$as_echo_n "checking for suffix of executables... " >&6; } 3531if { { ac_try="$ac_link" 3532case "(($ac_try" in 3533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3534 *) ac_try_echo=$ac_try;; 3535esac 3536eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3537$as_echo "$ac_try_echo"; } >&5 3538 (eval "$ac_link") 2>&5 3539 ac_status=$? 3540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3541 test $ac_status = 0; }; then : 3542 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3543# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3544# work properly (i.e., refer to `conftest.exe'), while it won't with 3545# `rm'. 3546for ac_file in conftest.exe conftest conftest.*; do 3547 test -f "$ac_file" || continue 3548 case $ac_file in 3549 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3550 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3551 break;; 3552 * ) break;; 3553 esac 3554done 3555else 3556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3557$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3558as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3559See \`config.log' for more details" "$LINENO" 5; } 3560fi 3561rm -f conftest conftest$ac_cv_exeext 3562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3563$as_echo "$ac_cv_exeext" >&6; } 3564 3565rm -f conftest.$ac_ext 3566EXEEXT=$ac_cv_exeext 3567ac_exeext=$EXEEXT 3568cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3569/* end confdefs.h. */ 3570#include <stdio.h> 3571int 3572main () 3573{ 3574FILE *f = fopen ("conftest.out", "w"); 3575 return ferror (f) || fclose (f) != 0; 3576 3577 ; 3578 return 0; 3579} 3580_ACEOF 3581ac_clean_files="$ac_clean_files conftest.out" 3582# Check that the compiler produces executables we can run. If not, either 3583# the compiler is broken, or we cross compile. 3584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3585$as_echo_n "checking whether we are cross compiling... " >&6; } 3586if test "$cross_compiling" != yes; then 3587 { { ac_try="$ac_link" 3588case "(($ac_try" in 3589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3590 *) ac_try_echo=$ac_try;; 3591esac 3592eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3593$as_echo "$ac_try_echo"; } >&5 3594 (eval "$ac_link") 2>&5 3595 ac_status=$? 3596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3597 test $ac_status = 0; } 3598 if { ac_try='./conftest$ac_cv_exeext' 3599 { { case "(($ac_try" in 3600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3601 *) ac_try_echo=$ac_try;; 3602esac 3603eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3604$as_echo "$ac_try_echo"; } >&5 3605 (eval "$ac_try") 2>&5 3606 ac_status=$? 3607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3608 test $ac_status = 0; }; }; then 3609 cross_compiling=no 3610 else 3611 if test "$cross_compiling" = maybe; then 3612 cross_compiling=yes 3613 else 3614 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3615$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3616as_fn_error $? "cannot run C compiled programs. 3617If you meant to cross compile, use \`--host'. 3618See \`config.log' for more details" "$LINENO" 5; } 3619 fi 3620 fi 3621fi 3622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3623$as_echo "$cross_compiling" >&6; } 3624 3625rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3626ac_clean_files=$ac_clean_files_save 3627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3628$as_echo_n "checking for suffix of object files... " >&6; } 3629if ${ac_cv_objext+:} false; then : 3630 $as_echo_n "(cached) " >&6 3631else 3632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3633/* end confdefs.h. */ 3634 3635int 3636main () 3637{ 3638 3639 ; 3640 return 0; 3641} 3642_ACEOF 3643rm -f conftest.o conftest.obj 3644if { { ac_try="$ac_compile" 3645case "(($ac_try" in 3646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3647 *) ac_try_echo=$ac_try;; 3648esac 3649eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3650$as_echo "$ac_try_echo"; } >&5 3651 (eval "$ac_compile") 2>&5 3652 ac_status=$? 3653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3654 test $ac_status = 0; }; then : 3655 for ac_file in conftest.o conftest.obj conftest.*; do 3656 test -f "$ac_file" || continue; 3657 case $ac_file in 3658 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3659 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3660 break;; 3661 esac 3662done 3663else 3664 $as_echo "$as_me: failed program was:" >&5 3665sed 's/^/| /' conftest.$ac_ext >&5 3666 3667{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3668$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3669as_fn_error $? "cannot compute suffix of object files: cannot compile 3670See \`config.log' for more details" "$LINENO" 5; } 3671fi 3672rm -f conftest.$ac_cv_objext conftest.$ac_ext 3673fi 3674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3675$as_echo "$ac_cv_objext" >&6; } 3676OBJEXT=$ac_cv_objext 3677ac_objext=$OBJEXT 3678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3679$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3680if ${ac_cv_c_compiler_gnu+:} false; then : 3681 $as_echo_n "(cached) " >&6 3682else 3683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3684/* end confdefs.h. */ 3685 3686int 3687main () 3688{ 3689#ifndef __GNUC__ 3690 choke me 3691#endif 3692 3693 ; 3694 return 0; 3695} 3696_ACEOF 3697if ac_fn_c_try_compile "$LINENO"; then : 3698 ac_compiler_gnu=yes 3699else 3700 ac_compiler_gnu=no 3701fi 3702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3703ac_cv_c_compiler_gnu=$ac_compiler_gnu 3704 3705fi 3706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3707$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3708if test $ac_compiler_gnu = yes; then 3709 GCC=yes 3710else 3711 GCC= 3712fi 3713ac_test_CFLAGS=${CFLAGS+set} 3714ac_save_CFLAGS=$CFLAGS 3715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3716$as_echo_n "checking whether $CC accepts -g... " >&6; } 3717if ${ac_cv_prog_cc_g+:} false; then : 3718 $as_echo_n "(cached) " >&6 3719else 3720 ac_save_c_werror_flag=$ac_c_werror_flag 3721 ac_c_werror_flag=yes 3722 ac_cv_prog_cc_g=no 3723 CFLAGS="-g" 3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3725/* end confdefs.h. */ 3726 3727int 3728main () 3729{ 3730 3731 ; 3732 return 0; 3733} 3734_ACEOF 3735if ac_fn_c_try_compile "$LINENO"; then : 3736 ac_cv_prog_cc_g=yes 3737else 3738 CFLAGS="" 3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3740/* end confdefs.h. */ 3741 3742int 3743main () 3744{ 3745 3746 ; 3747 return 0; 3748} 3749_ACEOF 3750if ac_fn_c_try_compile "$LINENO"; then : 3751 3752else 3753 ac_c_werror_flag=$ac_save_c_werror_flag 3754 CFLAGS="-g" 3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3756/* end confdefs.h. */ 3757 3758int 3759main () 3760{ 3761 3762 ; 3763 return 0; 3764} 3765_ACEOF 3766if ac_fn_c_try_compile "$LINENO"; then : 3767 ac_cv_prog_cc_g=yes 3768fi 3769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3770fi 3771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3772fi 3773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3774 ac_c_werror_flag=$ac_save_c_werror_flag 3775fi 3776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3777$as_echo "$ac_cv_prog_cc_g" >&6; } 3778if test "$ac_test_CFLAGS" = set; then 3779 CFLAGS=$ac_save_CFLAGS 3780elif test $ac_cv_prog_cc_g = yes; then 3781 if test "$GCC" = yes; then 3782 CFLAGS="-g -O2" 3783 else 3784 CFLAGS="-g" 3785 fi 3786else 3787 if test "$GCC" = yes; then 3788 CFLAGS="-O2" 3789 else 3790 CFLAGS= 3791 fi 3792fi 3793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3794$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3795if ${ac_cv_prog_cc_c89+:} false; then : 3796 $as_echo_n "(cached) " >&6 3797else 3798 ac_cv_prog_cc_c89=no 3799ac_save_CC=$CC 3800cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3801/* end confdefs.h. */ 3802#include <stdarg.h> 3803#include <stdio.h> 3804struct stat; 3805/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3806struct buf { int x; }; 3807FILE * (*rcsopen) (struct buf *, struct stat *, int); 3808static char *e (p, i) 3809 char **p; 3810 int i; 3811{ 3812 return p[i]; 3813} 3814static char *f (char * (*g) (char **, int), char **p, ...) 3815{ 3816 char *s; 3817 va_list v; 3818 va_start (v,p); 3819 s = g (p, va_arg (v,int)); 3820 va_end (v); 3821 return s; 3822} 3823 3824/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3825 function prototypes and stuff, but not '\xHH' hex character constants. 3826 These don't provoke an error unfortunately, instead are silently treated 3827 as 'x'. The following induces an error, until -std is added to get 3828 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3829 array size at least. It's necessary to write '\x00'==0 to get something 3830 that's true only with -std. */ 3831int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3832 3833/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3834 inside strings and character constants. */ 3835#define FOO(x) 'x' 3836int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3837 3838int test (int i, double x); 3839struct s1 {int (*f) (int a);}; 3840struct s2 {int (*f) (double a);}; 3841int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3842int argc; 3843char **argv; 3844int 3845main () 3846{ 3847return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3848 ; 3849 return 0; 3850} 3851_ACEOF 3852for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3853 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3854do 3855 CC="$ac_save_CC $ac_arg" 3856 if ac_fn_c_try_compile "$LINENO"; then : 3857 ac_cv_prog_cc_c89=$ac_arg 3858fi 3859rm -f core conftest.err conftest.$ac_objext 3860 test "x$ac_cv_prog_cc_c89" != "xno" && break 3861done 3862rm -f conftest.$ac_ext 3863CC=$ac_save_CC 3864 3865fi 3866# AC_CACHE_VAL 3867case "x$ac_cv_prog_cc_c89" in 3868 x) 3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3870$as_echo "none needed" >&6; } ;; 3871 xno) 3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3873$as_echo "unsupported" >&6; } ;; 3874 *) 3875 CC="$CC $ac_cv_prog_cc_c89" 3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3877$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3878esac 3879if test "x$ac_cv_prog_cc_c89" != xno; then : 3880 3881fi 3882 3883ac_ext=c 3884ac_cpp='$CPP $CPPFLAGS' 3885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3887ac_compiler_gnu=$ac_cv_c_compiler_gnu 3888 3889ac_ext=c 3890ac_cpp='$CPP $CPPFLAGS' 3891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3893ac_compiler_gnu=$ac_cv_c_compiler_gnu 3894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3895$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3896if ${am_cv_prog_cc_c_o+:} false; then : 3897 $as_echo_n "(cached) " >&6 3898else 3899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3900/* end confdefs.h. */ 3901 3902int 3903main () 3904{ 3905 3906 ; 3907 return 0; 3908} 3909_ACEOF 3910 # Make sure it works both with $CC and with simple cc. 3911 # Following AC_PROG_CC_C_O, we do the test twice because some 3912 # compilers refuse to overwrite an existing .o file with -o, 3913 # though they will create one. 3914 am_cv_prog_cc_c_o=yes 3915 for am_i in 1 2; do 3916 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3917 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3918 ac_status=$? 3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3920 (exit $ac_status); } \ 3921 && test -f conftest2.$ac_objext; then 3922 : OK 3923 else 3924 am_cv_prog_cc_c_o=no 3925 break 3926 fi 3927 done 3928 rm -f core conftest* 3929 unset am_i 3930fi 3931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3932$as_echo "$am_cv_prog_cc_c_o" >&6; } 3933if test "$am_cv_prog_cc_c_o" != yes; then 3934 # Losing compiler, so override with the script. 3935 # FIXME: It is wrong to rewrite CC. 3936 # But if we don't then we get into trouble of one sort or another. 3937 # A longer-term fix would be to have automake use am__CC in this case, 3938 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3939 CC="$am_aux_dir/compile $CC" 3940fi 3941ac_ext=c 3942ac_cpp='$CPP $CPPFLAGS' 3943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3945ac_compiler_gnu=$ac_cv_c_compiler_gnu 3946 3947 3948depcc="$CC" am_compiler_list= 3949 3950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3951$as_echo_n "checking dependency style of $depcc... " >&6; } 3952if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3953 $as_echo_n "(cached) " >&6 3954else 3955 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3956 # We make a subdir and do the tests there. Otherwise we can end up 3957 # making bogus files that we don't know about and never remove. For 3958 # instance it was reported that on HP-UX the gcc test will end up 3959 # making a dummy file named 'D' -- because '-MD' means "put the output 3960 # in D". 3961 rm -rf conftest.dir 3962 mkdir conftest.dir 3963 # Copy depcomp to subdir because otherwise we won't find it if we're 3964 # using a relative directory. 3965 cp "$am_depcomp" conftest.dir 3966 cd conftest.dir 3967 # We will build objects and dependencies in a subdirectory because 3968 # it helps to detect inapplicable dependency modes. For instance 3969 # both Tru64's cc and ICC support -MD to output dependencies as a 3970 # side effect of compilation, but ICC will put the dependencies in 3971 # the current directory while Tru64 will put them in the object 3972 # directory. 3973 mkdir sub 3974 3975 am_cv_CC_dependencies_compiler_type=none 3976 if test "$am_compiler_list" = ""; then 3977 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3978 fi 3979 am__universal=false 3980 case " $depcc " in #( 3981 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3982 esac 3983 3984 for depmode in $am_compiler_list; do 3985 # Setup a source with many dependencies, because some compilers 3986 # like to wrap large dependency lists on column 80 (with \), and 3987 # we should not choose a depcomp mode which is confused by this. 3988 # 3989 # We need to recreate these files for each test, as the compiler may 3990 # overwrite some of them when testing with obscure command lines. 3991 # This happens at least with the AIX C compiler. 3992 : > sub/conftest.c 3993 for i in 1 2 3 4 5 6; do 3994 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3995 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3996 # Solaris 10 /bin/sh. 3997 echo '/* dummy */' > sub/conftst$i.h 3998 done 3999 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4000 4001 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4002 # mode. It turns out that the SunPro C++ compiler does not properly 4003 # handle '-M -o', and we need to detect this. Also, some Intel 4004 # versions had trouble with output in subdirs. 4005 am__obj=sub/conftest.${OBJEXT-o} 4006 am__minus_obj="-o $am__obj" 4007 case $depmode in 4008 gcc) 4009 # This depmode causes a compiler race in universal mode. 4010 test "$am__universal" = false || continue 4011 ;; 4012 nosideeffect) 4013 # After this tag, mechanisms are not by side-effect, so they'll 4014 # only be used when explicitly requested. 4015 if test "x$enable_dependency_tracking" = xyes; then 4016 continue 4017 else 4018 break 4019 fi 4020 ;; 4021 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4022 # This compiler won't grok '-c -o', but also, the minuso test has 4023 # not run yet. These depmodes are late enough in the game, and 4024 # so weak that their functioning should not be impacted. 4025 am__obj=conftest.${OBJEXT-o} 4026 am__minus_obj= 4027 ;; 4028 none) break ;; 4029 esac 4030 if depmode=$depmode \ 4031 source=sub/conftest.c object=$am__obj \ 4032 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4033 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4034 >/dev/null 2>conftest.err && 4035 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4036 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4037 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4038 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4039 # icc doesn't choke on unknown options, it will just issue warnings 4040 # or remarks (even with -Werror). So we grep stderr for any message 4041 # that says an option was ignored or not supported. 4042 # When given -MP, icc 7.0 and 7.1 complain thusly: 4043 # icc: Command line warning: ignoring option '-M'; no argument required 4044 # The diagnosis changed in icc 8.0: 4045 # icc: Command line remark: option '-MP' not supported 4046 if (grep 'ignoring option' conftest.err || 4047 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4048 am_cv_CC_dependencies_compiler_type=$depmode 4049 break 4050 fi 4051 fi 4052 done 4053 4054 cd .. 4055 rm -rf conftest.dir 4056else 4057 am_cv_CC_dependencies_compiler_type=none 4058fi 4059 4060fi 4061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4062$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4063CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4064 4065 if 4066 test "x$enable_dependency_tracking" != xno \ 4067 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4068 am__fastdepCC_TRUE= 4069 am__fastdepCC_FALSE='#' 4070else 4071 am__fastdepCC_TRUE='#' 4072 am__fastdepCC_FALSE= 4073fi 4074 4075 4076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4077$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4078if ${ac_cv_path_SED+:} false; then : 4079 $as_echo_n "(cached) " >&6 4080else 4081 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4082 for ac_i in 1 2 3 4 5 6 7; do 4083 ac_script="$ac_script$as_nl$ac_script" 4084 done 4085 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4086 { ac_script=; unset ac_script;} 4087 if test -z "$SED"; then 4088 ac_path_SED_found=false 4089 # Loop through the user's path and test for each of PROGNAME-LIST 4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4091for as_dir in $PATH 4092do 4093 IFS=$as_save_IFS 4094 test -z "$as_dir" && as_dir=. 4095 for ac_prog in sed gsed; do 4096 for ac_exec_ext in '' $ac_executable_extensions; do 4097 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4098 as_fn_executable_p "$ac_path_SED" || continue 4099# Check for GNU ac_path_SED and select it if it is found. 4100 # Check for GNU $ac_path_SED 4101case `"$ac_path_SED" --version 2>&1` in 4102*GNU*) 4103 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4104*) 4105 ac_count=0 4106 $as_echo_n 0123456789 >"conftest.in" 4107 while : 4108 do 4109 cat "conftest.in" "conftest.in" >"conftest.tmp" 4110 mv "conftest.tmp" "conftest.in" 4111 cp "conftest.in" "conftest.nl" 4112 $as_echo '' >> "conftest.nl" 4113 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4114 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4115 as_fn_arith $ac_count + 1 && ac_count=$as_val 4116 if test $ac_count -gt ${ac_path_SED_max-0}; then 4117 # Best one so far, save it but keep looking for a better one 4118 ac_cv_path_SED="$ac_path_SED" 4119 ac_path_SED_max=$ac_count 4120 fi 4121 # 10*(2^10) chars as input seems more than enough 4122 test $ac_count -gt 10 && break 4123 done 4124 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4125esac 4126 4127 $ac_path_SED_found && break 3 4128 done 4129 done 4130 done 4131IFS=$as_save_IFS 4132 if test -z "$ac_cv_path_SED"; then 4133 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4134 fi 4135else 4136 ac_cv_path_SED=$SED 4137fi 4138 4139fi 4140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4141$as_echo "$ac_cv_path_SED" >&6; } 4142 SED="$ac_cv_path_SED" 4143 rm -f conftest.sed 4144 4145test -z "$SED" && SED=sed 4146Xsed="$SED -e 1s/^X//" 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4159$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4160if ${ac_cv_path_GREP+:} false; then : 4161 $as_echo_n "(cached) " >&6 4162else 4163 if test -z "$GREP"; then 4164 ac_path_GREP_found=false 4165 # Loop through the user's path and test for each of PROGNAME-LIST 4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4167for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4168do 4169 IFS=$as_save_IFS 4170 test -z "$as_dir" && as_dir=. 4171 for ac_prog in grep ggrep; do 4172 for ac_exec_ext in '' $ac_executable_extensions; do 4173 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4174 as_fn_executable_p "$ac_path_GREP" || continue 4175# Check for GNU ac_path_GREP and select it if it is found. 4176 # Check for GNU $ac_path_GREP 4177case `"$ac_path_GREP" --version 2>&1` in 4178*GNU*) 4179 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4180*) 4181 ac_count=0 4182 $as_echo_n 0123456789 >"conftest.in" 4183 while : 4184 do 4185 cat "conftest.in" "conftest.in" >"conftest.tmp" 4186 mv "conftest.tmp" "conftest.in" 4187 cp "conftest.in" "conftest.nl" 4188 $as_echo 'GREP' >> "conftest.nl" 4189 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4190 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4191 as_fn_arith $ac_count + 1 && ac_count=$as_val 4192 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4193 # Best one so far, save it but keep looking for a better one 4194 ac_cv_path_GREP="$ac_path_GREP" 4195 ac_path_GREP_max=$ac_count 4196 fi 4197 # 10*(2^10) chars as input seems more than enough 4198 test $ac_count -gt 10 && break 4199 done 4200 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4201esac 4202 4203 $ac_path_GREP_found && break 3 4204 done 4205 done 4206 done 4207IFS=$as_save_IFS 4208 if test -z "$ac_cv_path_GREP"; then 4209 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4210 fi 4211else 4212 ac_cv_path_GREP=$GREP 4213fi 4214 4215fi 4216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4217$as_echo "$ac_cv_path_GREP" >&6; } 4218 GREP="$ac_cv_path_GREP" 4219 4220 4221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4222$as_echo_n "checking for egrep... " >&6; } 4223if ${ac_cv_path_EGREP+:} false; then : 4224 $as_echo_n "(cached) " >&6 4225else 4226 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4227 then ac_cv_path_EGREP="$GREP -E" 4228 else 4229 if test -z "$EGREP"; then 4230 ac_path_EGREP_found=false 4231 # Loop through the user's path and test for each of PROGNAME-LIST 4232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4233for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4234do 4235 IFS=$as_save_IFS 4236 test -z "$as_dir" && as_dir=. 4237 for ac_prog in egrep; do 4238 for ac_exec_ext in '' $ac_executable_extensions; do 4239 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4240 as_fn_executable_p "$ac_path_EGREP" || continue 4241# Check for GNU ac_path_EGREP and select it if it is found. 4242 # Check for GNU $ac_path_EGREP 4243case `"$ac_path_EGREP" --version 2>&1` in 4244*GNU*) 4245 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4246*) 4247 ac_count=0 4248 $as_echo_n 0123456789 >"conftest.in" 4249 while : 4250 do 4251 cat "conftest.in" "conftest.in" >"conftest.tmp" 4252 mv "conftest.tmp" "conftest.in" 4253 cp "conftest.in" "conftest.nl" 4254 $as_echo 'EGREP' >> "conftest.nl" 4255 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4256 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4257 as_fn_arith $ac_count + 1 && ac_count=$as_val 4258 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4259 # Best one so far, save it but keep looking for a better one 4260 ac_cv_path_EGREP="$ac_path_EGREP" 4261 ac_path_EGREP_max=$ac_count 4262 fi 4263 # 10*(2^10) chars as input seems more than enough 4264 test $ac_count -gt 10 && break 4265 done 4266 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4267esac 4268 4269 $ac_path_EGREP_found && break 3 4270 done 4271 done 4272 done 4273IFS=$as_save_IFS 4274 if test -z "$ac_cv_path_EGREP"; then 4275 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4276 fi 4277else 4278 ac_cv_path_EGREP=$EGREP 4279fi 4280 4281 fi 4282fi 4283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4284$as_echo "$ac_cv_path_EGREP" >&6; } 4285 EGREP="$ac_cv_path_EGREP" 4286 4287 4288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4289$as_echo_n "checking for fgrep... " >&6; } 4290if ${ac_cv_path_FGREP+:} false; then : 4291 $as_echo_n "(cached) " >&6 4292else 4293 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4294 then ac_cv_path_FGREP="$GREP -F" 4295 else 4296 if test -z "$FGREP"; then 4297 ac_path_FGREP_found=false 4298 # Loop through the user's path and test for each of PROGNAME-LIST 4299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4300for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4301do 4302 IFS=$as_save_IFS 4303 test -z "$as_dir" && as_dir=. 4304 for ac_prog in fgrep; do 4305 for ac_exec_ext in '' $ac_executable_extensions; do 4306 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4307 as_fn_executable_p "$ac_path_FGREP" || continue 4308# Check for GNU ac_path_FGREP and select it if it is found. 4309 # Check for GNU $ac_path_FGREP 4310case `"$ac_path_FGREP" --version 2>&1` in 4311*GNU*) 4312 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4313*) 4314 ac_count=0 4315 $as_echo_n 0123456789 >"conftest.in" 4316 while : 4317 do 4318 cat "conftest.in" "conftest.in" >"conftest.tmp" 4319 mv "conftest.tmp" "conftest.in" 4320 cp "conftest.in" "conftest.nl" 4321 $as_echo 'FGREP' >> "conftest.nl" 4322 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4323 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4324 as_fn_arith $ac_count + 1 && ac_count=$as_val 4325 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4326 # Best one so far, save it but keep looking for a better one 4327 ac_cv_path_FGREP="$ac_path_FGREP" 4328 ac_path_FGREP_max=$ac_count 4329 fi 4330 # 10*(2^10) chars as input seems more than enough 4331 test $ac_count -gt 10 && break 4332 done 4333 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4334esac 4335 4336 $ac_path_FGREP_found && break 3 4337 done 4338 done 4339 done 4340IFS=$as_save_IFS 4341 if test -z "$ac_cv_path_FGREP"; then 4342 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4343 fi 4344else 4345 ac_cv_path_FGREP=$FGREP 4346fi 4347 4348 fi 4349fi 4350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4351$as_echo "$ac_cv_path_FGREP" >&6; } 4352 FGREP="$ac_cv_path_FGREP" 4353 4354 4355test -z "$GREP" && GREP=grep 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375# Check whether --with-gnu-ld was given. 4376if test "${with_gnu_ld+set}" = set; then : 4377 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4378else 4379 with_gnu_ld=no 4380fi 4381 4382ac_prog=ld 4383if test yes = "$GCC"; then 4384 # Check if gcc -print-prog-name=ld gives a path. 4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4386$as_echo_n "checking for ld used by $CC... " >&6; } 4387 case $host in 4388 *-*-mingw*) 4389 # gcc leaves a trailing carriage return, which upsets mingw 4390 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4391 *) 4392 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4393 esac 4394 case $ac_prog in 4395 # Accept absolute paths. 4396 [\\/]* | ?:[\\/]*) 4397 re_direlt='/[^/][^/]*/\.\./' 4398 # Canonicalize the pathname of ld 4399 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4400 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4401 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4402 done 4403 test -z "$LD" && LD=$ac_prog 4404 ;; 4405 "") 4406 # If it fails, then pretend we aren't using GCC. 4407 ac_prog=ld 4408 ;; 4409 *) 4410 # If it is relative, then search for the first ld in PATH. 4411 with_gnu_ld=unknown 4412 ;; 4413 esac 4414elif test yes = "$with_gnu_ld"; then 4415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4416$as_echo_n "checking for GNU ld... " >&6; } 4417else 4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4419$as_echo_n "checking for non-GNU ld... " >&6; } 4420fi 4421if ${lt_cv_path_LD+:} false; then : 4422 $as_echo_n "(cached) " >&6 4423else 4424 if test -z "$LD"; then 4425 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4426 for ac_dir in $PATH; do 4427 IFS=$lt_save_ifs 4428 test -z "$ac_dir" && ac_dir=. 4429 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4430 lt_cv_path_LD=$ac_dir/$ac_prog 4431 # Check to see if the program is GNU ld. I'd rather use --version, 4432 # but apparently some variants of GNU ld only accept -v. 4433 # Break only if it was the GNU/non-GNU ld that we prefer. 4434 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4435 *GNU* | *'with BFD'*) 4436 test no != "$with_gnu_ld" && break 4437 ;; 4438 *) 4439 test yes != "$with_gnu_ld" && break 4440 ;; 4441 esac 4442 fi 4443 done 4444 IFS=$lt_save_ifs 4445else 4446 lt_cv_path_LD=$LD # Let the user override the test with a path. 4447fi 4448fi 4449 4450LD=$lt_cv_path_LD 4451if test -n "$LD"; then 4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4453$as_echo "$LD" >&6; } 4454else 4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4456$as_echo "no" >&6; } 4457fi 4458test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4460$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4461if ${lt_cv_prog_gnu_ld+:} false; then : 4462 $as_echo_n "(cached) " >&6 4463else 4464 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4465case `$LD -v 2>&1 </dev/null` in 4466*GNU* | *'with BFD'*) 4467 lt_cv_prog_gnu_ld=yes 4468 ;; 4469*) 4470 lt_cv_prog_gnu_ld=no 4471 ;; 4472esac 4473fi 4474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4475$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4476with_gnu_ld=$lt_cv_prog_gnu_ld 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4487$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4488if ${lt_cv_path_NM+:} false; then : 4489 $as_echo_n "(cached) " >&6 4490else 4491 if test -n "$NM"; then 4492 # Let the user override the test. 4493 lt_cv_path_NM=$NM 4494else 4495 lt_nm_to_check=${ac_tool_prefix}nm 4496 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4497 lt_nm_to_check="$lt_nm_to_check nm" 4498 fi 4499 for lt_tmp_nm in $lt_nm_to_check; do 4500 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4501 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4502 IFS=$lt_save_ifs 4503 test -z "$ac_dir" && ac_dir=. 4504 tmp_nm=$ac_dir/$lt_tmp_nm 4505 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4506 # Check to see if the nm accepts a BSD-compat flag. 4507 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4508 # nm: unknown option "B" ignored 4509 # Tru64's nm complains that /dev/null is an invalid object file 4510 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4511 case $build_os in 4512 mingw*) lt_bad_file=conftest.nm/nofile ;; 4513 *) lt_bad_file=/dev/null ;; 4514 esac 4515 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4516 *$lt_bad_file* | *'Invalid file or object type'*) 4517 lt_cv_path_NM="$tmp_nm -B" 4518 break 2 4519 ;; 4520 *) 4521 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4522 */dev/null*) 4523 lt_cv_path_NM="$tmp_nm -p" 4524 break 2 4525 ;; 4526 *) 4527 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4528 continue # so that we can try to find one that supports BSD flags 4529 ;; 4530 esac 4531 ;; 4532 esac 4533 fi 4534 done 4535 IFS=$lt_save_ifs 4536 done 4537 : ${lt_cv_path_NM=no} 4538fi 4539fi 4540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4541$as_echo "$lt_cv_path_NM" >&6; } 4542if test no != "$lt_cv_path_NM"; then 4543 NM=$lt_cv_path_NM 4544else 4545 # Didn't find any BSD compatible name lister, look for dumpbin. 4546 if test -n "$DUMPBIN"; then : 4547 # Let the user override the test. 4548 else 4549 if test -n "$ac_tool_prefix"; then 4550 for ac_prog in dumpbin "link -dump" 4551 do 4552 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4553set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4555$as_echo_n "checking for $ac_word... " >&6; } 4556if ${ac_cv_prog_DUMPBIN+:} false; then : 4557 $as_echo_n "(cached) " >&6 4558else 4559 if test -n "$DUMPBIN"; then 4560 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4561else 4562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4563for as_dir in $PATH 4564do 4565 IFS=$as_save_IFS 4566 test -z "$as_dir" && as_dir=. 4567 for ac_exec_ext in '' $ac_executable_extensions; do 4568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4569 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4571 break 2 4572 fi 4573done 4574 done 4575IFS=$as_save_IFS 4576 4577fi 4578fi 4579DUMPBIN=$ac_cv_prog_DUMPBIN 4580if test -n "$DUMPBIN"; then 4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4582$as_echo "$DUMPBIN" >&6; } 4583else 4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4585$as_echo "no" >&6; } 4586fi 4587 4588 4589 test -n "$DUMPBIN" && break 4590 done 4591fi 4592if test -z "$DUMPBIN"; then 4593 ac_ct_DUMPBIN=$DUMPBIN 4594 for ac_prog in dumpbin "link -dump" 4595do 4596 # Extract the first word of "$ac_prog", so it can be a program name with args. 4597set dummy $ac_prog; ac_word=$2 4598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4599$as_echo_n "checking for $ac_word... " >&6; } 4600if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4601 $as_echo_n "(cached) " >&6 4602else 4603 if test -n "$ac_ct_DUMPBIN"; then 4604 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4605else 4606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4607for as_dir in $PATH 4608do 4609 IFS=$as_save_IFS 4610 test -z "$as_dir" && as_dir=. 4611 for ac_exec_ext in '' $ac_executable_extensions; do 4612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4613 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4615 break 2 4616 fi 4617done 4618 done 4619IFS=$as_save_IFS 4620 4621fi 4622fi 4623ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4624if test -n "$ac_ct_DUMPBIN"; then 4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4626$as_echo "$ac_ct_DUMPBIN" >&6; } 4627else 4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4629$as_echo "no" >&6; } 4630fi 4631 4632 4633 test -n "$ac_ct_DUMPBIN" && break 4634done 4635 4636 if test "x$ac_ct_DUMPBIN" = x; then 4637 DUMPBIN=":" 4638 else 4639 case $cross_compiling:$ac_tool_warned in 4640yes:) 4641{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4642$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4643ac_tool_warned=yes ;; 4644esac 4645 DUMPBIN=$ac_ct_DUMPBIN 4646 fi 4647fi 4648 4649 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4650 *COFF*) 4651 DUMPBIN="$DUMPBIN -symbols -headers" 4652 ;; 4653 *) 4654 DUMPBIN=: 4655 ;; 4656 esac 4657 fi 4658 4659 if test : != "$DUMPBIN"; then 4660 NM=$DUMPBIN 4661 fi 4662fi 4663test -z "$NM" && NM=nm 4664 4665 4666 4667 4668 4669 4670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4671$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4672if ${lt_cv_nm_interface+:} false; then : 4673 $as_echo_n "(cached) " >&6 4674else 4675 lt_cv_nm_interface="BSD nm" 4676 echo "int some_variable = 0;" > conftest.$ac_ext 4677 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4678 (eval "$ac_compile" 2>conftest.err) 4679 cat conftest.err >&5 4680 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4681 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4682 cat conftest.err >&5 4683 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4684 cat conftest.out >&5 4685 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4686 lt_cv_nm_interface="MS dumpbin" 4687 fi 4688 rm -f conftest* 4689fi 4690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4691$as_echo "$lt_cv_nm_interface" >&6; } 4692 4693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4694$as_echo_n "checking whether ln -s works... " >&6; } 4695LN_S=$as_ln_s 4696if test "$LN_S" = "ln -s"; then 4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4698$as_echo "yes" >&6; } 4699else 4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4701$as_echo "no, using $LN_S" >&6; } 4702fi 4703 4704# find the maximum length of command line arguments 4705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4706$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4707if ${lt_cv_sys_max_cmd_len+:} false; then : 4708 $as_echo_n "(cached) " >&6 4709else 4710 i=0 4711 teststring=ABCD 4712 4713 case $build_os in 4714 msdosdjgpp*) 4715 # On DJGPP, this test can blow up pretty badly due to problems in libc 4716 # (any single argument exceeding 2000 bytes causes a buffer overrun 4717 # during glob expansion). Even if it were fixed, the result of this 4718 # check would be larger than it should be. 4719 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4720 ;; 4721 4722 gnu*) 4723 # Under GNU Hurd, this test is not required because there is 4724 # no limit to the length of command line arguments. 4725 # Libtool will interpret -1 as no limit whatsoever 4726 lt_cv_sys_max_cmd_len=-1; 4727 ;; 4728 4729 cygwin* | mingw* | cegcc*) 4730 # On Win9x/ME, this test blows up -- it succeeds, but takes 4731 # about 5 minutes as the teststring grows exponentially. 4732 # Worse, since 9x/ME are not pre-emptively multitasking, 4733 # you end up with a "frozen" computer, even though with patience 4734 # the test eventually succeeds (with a max line length of 256k). 4735 # Instead, let's just punt: use the minimum linelength reported by 4736 # all of the supported platforms: 8192 (on NT/2K/XP). 4737 lt_cv_sys_max_cmd_len=8192; 4738 ;; 4739 4740 mint*) 4741 # On MiNT this can take a long time and run out of memory. 4742 lt_cv_sys_max_cmd_len=8192; 4743 ;; 4744 4745 amigaos*) 4746 # On AmigaOS with pdksh, this test takes hours, literally. 4747 # So we just punt and use a minimum line length of 8192. 4748 lt_cv_sys_max_cmd_len=8192; 4749 ;; 4750 4751 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 4752 # This has been around since 386BSD, at least. Likely further. 4753 if test -x /sbin/sysctl; then 4754 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4755 elif test -x /usr/sbin/sysctl; then 4756 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4757 else 4758 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4759 fi 4760 # And add a safety zone 4761 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4762 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4763 ;; 4764 4765 interix*) 4766 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4767 lt_cv_sys_max_cmd_len=196608 4768 ;; 4769 4770 os2*) 4771 # The test takes a long time on OS/2. 4772 lt_cv_sys_max_cmd_len=8192 4773 ;; 4774 4775 osf*) 4776 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4777 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4778 # nice to cause kernel panics so lets avoid the loop below. 4779 # First set a reasonable default. 4780 lt_cv_sys_max_cmd_len=16384 4781 # 4782 if test -x /sbin/sysconfig; then 4783 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4784 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4785 esac 4786 fi 4787 ;; 4788 sco3.2v5*) 4789 lt_cv_sys_max_cmd_len=102400 4790 ;; 4791 sysv5* | sco5v6* | sysv4.2uw2*) 4792 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4793 if test -n "$kargmax"; then 4794 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4795 else 4796 lt_cv_sys_max_cmd_len=32768 4797 fi 4798 ;; 4799 *) 4800 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4801 if test -n "$lt_cv_sys_max_cmd_len" && \ 4802 test undefined != "$lt_cv_sys_max_cmd_len"; then 4803 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4804 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4805 else 4806 # Make teststring a little bigger before we do anything with it. 4807 # a 1K string should be a reasonable start. 4808 for i in 1 2 3 4 5 6 7 8; do 4809 teststring=$teststring$teststring 4810 done 4811 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4812 # If test is not a shell built-in, we'll probably end up computing a 4813 # maximum length that is only half of the actual maximum length, but 4814 # we can't tell. 4815 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 4816 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4817 test 17 != "$i" # 1/2 MB should be enough 4818 do 4819 i=`expr $i + 1` 4820 teststring=$teststring$teststring 4821 done 4822 # Only check the string length outside the loop. 4823 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4824 teststring= 4825 # Add a significant safety factor because C++ compilers can tack on 4826 # massive amounts of additional arguments before passing them to the 4827 # linker. It appears as though 1/2 is a usable value. 4828 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4829 fi 4830 ;; 4831 esac 4832 4833fi 4834 4835if test -n "$lt_cv_sys_max_cmd_len"; then 4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4837$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4838else 4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4840$as_echo "none" >&6; } 4841fi 4842max_cmd_len=$lt_cv_sys_max_cmd_len 4843 4844 4845 4846 4847 4848 4849: ${CP="cp -f"} 4850: ${MV="mv -f"} 4851: ${RM="rm -f"} 4852 4853if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4854 lt_unset=unset 4855else 4856 lt_unset=false 4857fi 4858 4859 4860 4861 4862 4863# test EBCDIC or ASCII 4864case `echo X|tr X '\101'` in 4865 A) # ASCII based system 4866 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4867 lt_SP2NL='tr \040 \012' 4868 lt_NL2SP='tr \015\012 \040\040' 4869 ;; 4870 *) # EBCDIC based system 4871 lt_SP2NL='tr \100 \n' 4872 lt_NL2SP='tr \r\n \100\100' 4873 ;; 4874esac 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4885$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4886if ${lt_cv_to_host_file_cmd+:} false; then : 4887 $as_echo_n "(cached) " >&6 4888else 4889 case $host in 4890 *-*-mingw* ) 4891 case $build in 4892 *-*-mingw* ) # actually msys 4893 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4894 ;; 4895 *-*-cygwin* ) 4896 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4897 ;; 4898 * ) # otherwise, assume *nix 4899 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4900 ;; 4901 esac 4902 ;; 4903 *-*-cygwin* ) 4904 case $build in 4905 *-*-mingw* ) # actually msys 4906 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4907 ;; 4908 *-*-cygwin* ) 4909 lt_cv_to_host_file_cmd=func_convert_file_noop 4910 ;; 4911 * ) # otherwise, assume *nix 4912 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4913 ;; 4914 esac 4915 ;; 4916 * ) # unhandled hosts (and "normal" native builds) 4917 lt_cv_to_host_file_cmd=func_convert_file_noop 4918 ;; 4919esac 4920 4921fi 4922 4923to_host_file_cmd=$lt_cv_to_host_file_cmd 4924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4925$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4926 4927 4928 4929 4930 4931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4932$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4933if ${lt_cv_to_tool_file_cmd+:} false; then : 4934 $as_echo_n "(cached) " >&6 4935else 4936 #assume ordinary cross tools, or native build. 4937lt_cv_to_tool_file_cmd=func_convert_file_noop 4938case $host in 4939 *-*-mingw* ) 4940 case $build in 4941 *-*-mingw* ) # actually msys 4942 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4943 ;; 4944 esac 4945 ;; 4946esac 4947 4948fi 4949 4950to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4952$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4953 4954 4955 4956 4957 4958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4959$as_echo_n "checking for $LD option to reload object files... " >&6; } 4960if ${lt_cv_ld_reload_flag+:} false; then : 4961 $as_echo_n "(cached) " >&6 4962else 4963 lt_cv_ld_reload_flag='-r' 4964fi 4965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4966$as_echo "$lt_cv_ld_reload_flag" >&6; } 4967reload_flag=$lt_cv_ld_reload_flag 4968case $reload_flag in 4969"" | " "*) ;; 4970*) reload_flag=" $reload_flag" ;; 4971esac 4972reload_cmds='$LD$reload_flag -o $output$reload_objs' 4973case $host_os in 4974 cygwin* | mingw* | pw32* | cegcc*) 4975 if test yes != "$GCC"; then 4976 reload_cmds=false 4977 fi 4978 ;; 4979 darwin*) 4980 if test yes = "$GCC"; then 4981 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 4982 else 4983 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4984 fi 4985 ;; 4986esac 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996if test -n "$ac_tool_prefix"; then 4997 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4998set dummy ${ac_tool_prefix}objdump; ac_word=$2 4999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5000$as_echo_n "checking for $ac_word... " >&6; } 5001if ${ac_cv_prog_OBJDUMP+:} false; then : 5002 $as_echo_n "(cached) " >&6 5003else 5004 if test -n "$OBJDUMP"; then 5005 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5006else 5007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5008for as_dir in $PATH 5009do 5010 IFS=$as_save_IFS 5011 test -z "$as_dir" && as_dir=. 5012 for ac_exec_ext in '' $ac_executable_extensions; do 5013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5014 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5016 break 2 5017 fi 5018done 5019 done 5020IFS=$as_save_IFS 5021 5022fi 5023fi 5024OBJDUMP=$ac_cv_prog_OBJDUMP 5025if test -n "$OBJDUMP"; then 5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5027$as_echo "$OBJDUMP" >&6; } 5028else 5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5030$as_echo "no" >&6; } 5031fi 5032 5033 5034fi 5035if test -z "$ac_cv_prog_OBJDUMP"; then 5036 ac_ct_OBJDUMP=$OBJDUMP 5037 # Extract the first word of "objdump", so it can be a program name with args. 5038set dummy objdump; ac_word=$2 5039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5040$as_echo_n "checking for $ac_word... " >&6; } 5041if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5042 $as_echo_n "(cached) " >&6 5043else 5044 if test -n "$ac_ct_OBJDUMP"; then 5045 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5046else 5047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5048for as_dir in $PATH 5049do 5050 IFS=$as_save_IFS 5051 test -z "$as_dir" && as_dir=. 5052 for ac_exec_ext in '' $ac_executable_extensions; do 5053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5054 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5056 break 2 5057 fi 5058done 5059 done 5060IFS=$as_save_IFS 5061 5062fi 5063fi 5064ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5065if test -n "$ac_ct_OBJDUMP"; then 5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5067$as_echo "$ac_ct_OBJDUMP" >&6; } 5068else 5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5070$as_echo "no" >&6; } 5071fi 5072 5073 if test "x$ac_ct_OBJDUMP" = x; then 5074 OBJDUMP="false" 5075 else 5076 case $cross_compiling:$ac_tool_warned in 5077yes:) 5078{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5079$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5080ac_tool_warned=yes ;; 5081esac 5082 OBJDUMP=$ac_ct_OBJDUMP 5083 fi 5084else 5085 OBJDUMP="$ac_cv_prog_OBJDUMP" 5086fi 5087 5088test -z "$OBJDUMP" && OBJDUMP=objdump 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5099$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5100if ${lt_cv_deplibs_check_method+:} false; then : 5101 $as_echo_n "(cached) " >&6 5102else 5103 lt_cv_file_magic_cmd='$MAGIC_CMD' 5104lt_cv_file_magic_test_file= 5105lt_cv_deplibs_check_method='unknown' 5106# Need to set the preceding variable on all platforms that support 5107# interlibrary dependencies. 5108# 'none' -- dependencies not supported. 5109# 'unknown' -- same as none, but documents that we really don't know. 5110# 'pass_all' -- all dependencies passed with no checks. 5111# 'test_compile' -- check by making test program. 5112# 'file_magic [[regex]]' -- check by looking for files in library path 5113# that responds to the $file_magic_cmd with a given extended regex. 5114# If you have 'file' or equivalent on your system and you're not sure 5115# whether 'pass_all' will *always* work, you probably want this one. 5116 5117case $host_os in 5118aix[4-9]*) 5119 lt_cv_deplibs_check_method=pass_all 5120 ;; 5121 5122beos*) 5123 lt_cv_deplibs_check_method=pass_all 5124 ;; 5125 5126bsdi[45]*) 5127 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5128 lt_cv_file_magic_cmd='/usr/bin/file -L' 5129 lt_cv_file_magic_test_file=/shlib/libc.so 5130 ;; 5131 5132cygwin*) 5133 # func_win32_libid is a shell function defined in ltmain.sh 5134 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5135 lt_cv_file_magic_cmd='func_win32_libid' 5136 ;; 5137 5138mingw* | pw32*) 5139 # Base MSYS/MinGW do not provide the 'file' command needed by 5140 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5141 # unless we find 'file', for example because we are cross-compiling. 5142 if ( file / ) >/dev/null 2>&1; then 5143 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5144 lt_cv_file_magic_cmd='func_win32_libid' 5145 else 5146 # Keep this pattern in sync with the one in func_win32_libid. 5147 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5148 lt_cv_file_magic_cmd='$OBJDUMP -f' 5149 fi 5150 ;; 5151 5152cegcc*) 5153 # use the weaker test based on 'objdump'. See mingw*. 5154 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5155 lt_cv_file_magic_cmd='$OBJDUMP -f' 5156 ;; 5157 5158darwin* | rhapsody*) 5159 lt_cv_deplibs_check_method=pass_all 5160 ;; 5161 5162freebsd* | dragonfly*) 5163 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5164 case $host_cpu in 5165 i*86 ) 5166 # Not sure whether the presence of OpenBSD here was a mistake. 5167 # Let's accept both of them until this is cleared up. 5168 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5169 lt_cv_file_magic_cmd=/usr/bin/file 5170 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5171 ;; 5172 esac 5173 else 5174 lt_cv_deplibs_check_method=pass_all 5175 fi 5176 ;; 5177 5178haiku*) 5179 lt_cv_deplibs_check_method=pass_all 5180 ;; 5181 5182hpux10.20* | hpux11*) 5183 lt_cv_file_magic_cmd=/usr/bin/file 5184 case $host_cpu in 5185 ia64*) 5186 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5187 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5188 ;; 5189 hppa*64*) 5190 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]' 5191 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5192 ;; 5193 *) 5194 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5195 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5196 ;; 5197 esac 5198 ;; 5199 5200interix[3-9]*) 5201 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5202 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5203 ;; 5204 5205irix5* | irix6* | nonstopux*) 5206 case $LD in 5207 *-32|*"-32 ") libmagic=32-bit;; 5208 *-n32|*"-n32 ") libmagic=N32;; 5209 *-64|*"-64 ") libmagic=64-bit;; 5210 *) libmagic=never-match;; 5211 esac 5212 lt_cv_deplibs_check_method=pass_all 5213 ;; 5214 5215# This must be glibc/ELF. 5216linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5217 lt_cv_deplibs_check_method=pass_all 5218 ;; 5219 5220netbsd*) 5221 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5222 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5223 else 5224 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5225 fi 5226 ;; 5227 5228newos6*) 5229 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5230 lt_cv_file_magic_cmd=/usr/bin/file 5231 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5232 ;; 5233 5234*nto* | *qnx*) 5235 lt_cv_deplibs_check_method=pass_all 5236 ;; 5237 5238openbsd* | bitrig*) 5239 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5240 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5241 else 5242 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5243 fi 5244 ;; 5245 5246osf3* | osf4* | osf5*) 5247 lt_cv_deplibs_check_method=pass_all 5248 ;; 5249 5250rdos*) 5251 lt_cv_deplibs_check_method=pass_all 5252 ;; 5253 5254solaris*) 5255 lt_cv_deplibs_check_method=pass_all 5256 ;; 5257 5258sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5259 lt_cv_deplibs_check_method=pass_all 5260 ;; 5261 5262sysv4 | sysv4.3*) 5263 case $host_vendor in 5264 motorola) 5265 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]' 5266 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5267 ;; 5268 ncr) 5269 lt_cv_deplibs_check_method=pass_all 5270 ;; 5271 sequent) 5272 lt_cv_file_magic_cmd='/bin/file' 5273 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5274 ;; 5275 sni) 5276 lt_cv_file_magic_cmd='/bin/file' 5277 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5278 lt_cv_file_magic_test_file=/lib/libc.so 5279 ;; 5280 siemens) 5281 lt_cv_deplibs_check_method=pass_all 5282 ;; 5283 pc) 5284 lt_cv_deplibs_check_method=pass_all 5285 ;; 5286 esac 5287 ;; 5288 5289tpf*) 5290 lt_cv_deplibs_check_method=pass_all 5291 ;; 5292os2*) 5293 lt_cv_deplibs_check_method=pass_all 5294 ;; 5295esac 5296 5297fi 5298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5299$as_echo "$lt_cv_deplibs_check_method" >&6; } 5300 5301file_magic_glob= 5302want_nocaseglob=no 5303if test "$build" = "$host"; then 5304 case $host_os in 5305 mingw* | pw32*) 5306 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5307 want_nocaseglob=yes 5308 else 5309 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5310 fi 5311 ;; 5312 esac 5313fi 5314 5315file_magic_cmd=$lt_cv_file_magic_cmd 5316deplibs_check_method=$lt_cv_deplibs_check_method 5317test -z "$deplibs_check_method" && deplibs_check_method=unknown 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340if test -n "$ac_tool_prefix"; then 5341 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5342set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5344$as_echo_n "checking for $ac_word... " >&6; } 5345if ${ac_cv_prog_DLLTOOL+:} false; then : 5346 $as_echo_n "(cached) " >&6 5347else 5348 if test -n "$DLLTOOL"; then 5349 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5350else 5351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5352for as_dir in $PATH 5353do 5354 IFS=$as_save_IFS 5355 test -z "$as_dir" && as_dir=. 5356 for ac_exec_ext in '' $ac_executable_extensions; do 5357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5358 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5360 break 2 5361 fi 5362done 5363 done 5364IFS=$as_save_IFS 5365 5366fi 5367fi 5368DLLTOOL=$ac_cv_prog_DLLTOOL 5369if test -n "$DLLTOOL"; then 5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5371$as_echo "$DLLTOOL" >&6; } 5372else 5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5374$as_echo "no" >&6; } 5375fi 5376 5377 5378fi 5379if test -z "$ac_cv_prog_DLLTOOL"; then 5380 ac_ct_DLLTOOL=$DLLTOOL 5381 # Extract the first word of "dlltool", so it can be a program name with args. 5382set dummy dlltool; ac_word=$2 5383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5384$as_echo_n "checking for $ac_word... " >&6; } 5385if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5386 $as_echo_n "(cached) " >&6 5387else 5388 if test -n "$ac_ct_DLLTOOL"; then 5389 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5390else 5391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5392for as_dir in $PATH 5393do 5394 IFS=$as_save_IFS 5395 test -z "$as_dir" && as_dir=. 5396 for ac_exec_ext in '' $ac_executable_extensions; do 5397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5398 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5400 break 2 5401 fi 5402done 5403 done 5404IFS=$as_save_IFS 5405 5406fi 5407fi 5408ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5409if test -n "$ac_ct_DLLTOOL"; then 5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5411$as_echo "$ac_ct_DLLTOOL" >&6; } 5412else 5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5414$as_echo "no" >&6; } 5415fi 5416 5417 if test "x$ac_ct_DLLTOOL" = x; then 5418 DLLTOOL="false" 5419 else 5420 case $cross_compiling:$ac_tool_warned in 5421yes:) 5422{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5423$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5424ac_tool_warned=yes ;; 5425esac 5426 DLLTOOL=$ac_ct_DLLTOOL 5427 fi 5428else 5429 DLLTOOL="$ac_cv_prog_DLLTOOL" 5430fi 5431 5432test -z "$DLLTOOL" && DLLTOOL=dlltool 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5444$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5445if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5446 $as_echo_n "(cached) " >&6 5447else 5448 lt_cv_sharedlib_from_linklib_cmd='unknown' 5449 5450case $host_os in 5451cygwin* | mingw* | pw32* | cegcc*) 5452 # two different shell functions defined in ltmain.sh; 5453 # decide which one to use based on capabilities of $DLLTOOL 5454 case `$DLLTOOL --help 2>&1` in 5455 *--identify-strict*) 5456 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5457 ;; 5458 *) 5459 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5460 ;; 5461 esac 5462 ;; 5463*) 5464 # fallback: assume linklib IS sharedlib 5465 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5466 ;; 5467esac 5468 5469fi 5470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5471$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5472sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5473test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5474 5475 5476 5477 5478 5479 5480 5481 5482if test -n "$ac_tool_prefix"; then 5483 for ac_prog in ar 5484 do 5485 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5486set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5488$as_echo_n "checking for $ac_word... " >&6; } 5489if ${ac_cv_prog_AR+:} false; then : 5490 $as_echo_n "(cached) " >&6 5491else 5492 if test -n "$AR"; then 5493 ac_cv_prog_AR="$AR" # Let the user override the test. 5494else 5495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5496for as_dir in $PATH 5497do 5498 IFS=$as_save_IFS 5499 test -z "$as_dir" && as_dir=. 5500 for ac_exec_ext in '' $ac_executable_extensions; do 5501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5502 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5504 break 2 5505 fi 5506done 5507 done 5508IFS=$as_save_IFS 5509 5510fi 5511fi 5512AR=$ac_cv_prog_AR 5513if test -n "$AR"; then 5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5515$as_echo "$AR" >&6; } 5516else 5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5518$as_echo "no" >&6; } 5519fi 5520 5521 5522 test -n "$AR" && break 5523 done 5524fi 5525if test -z "$AR"; then 5526 ac_ct_AR=$AR 5527 for ac_prog in ar 5528do 5529 # Extract the first word of "$ac_prog", so it can be a program name with args. 5530set dummy $ac_prog; ac_word=$2 5531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5532$as_echo_n "checking for $ac_word... " >&6; } 5533if ${ac_cv_prog_ac_ct_AR+:} false; then : 5534 $as_echo_n "(cached) " >&6 5535else 5536 if test -n "$ac_ct_AR"; then 5537 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5538else 5539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5540for as_dir in $PATH 5541do 5542 IFS=$as_save_IFS 5543 test -z "$as_dir" && as_dir=. 5544 for ac_exec_ext in '' $ac_executable_extensions; do 5545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5546 ac_cv_prog_ac_ct_AR="$ac_prog" 5547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5548 break 2 5549 fi 5550done 5551 done 5552IFS=$as_save_IFS 5553 5554fi 5555fi 5556ac_ct_AR=$ac_cv_prog_ac_ct_AR 5557if test -n "$ac_ct_AR"; then 5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5559$as_echo "$ac_ct_AR" >&6; } 5560else 5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5562$as_echo "no" >&6; } 5563fi 5564 5565 5566 test -n "$ac_ct_AR" && break 5567done 5568 5569 if test "x$ac_ct_AR" = x; then 5570 AR="false" 5571 else 5572 case $cross_compiling:$ac_tool_warned in 5573yes:) 5574{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5575$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5576ac_tool_warned=yes ;; 5577esac 5578 AR=$ac_ct_AR 5579 fi 5580fi 5581 5582: ${AR=ar} 5583: ${AR_FLAGS=cru} 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5596$as_echo_n "checking for archiver @FILE support... " >&6; } 5597if ${lt_cv_ar_at_file+:} false; then : 5598 $as_echo_n "(cached) " >&6 5599else 5600 lt_cv_ar_at_file=no 5601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5602/* end confdefs.h. */ 5603 5604int 5605main () 5606{ 5607 5608 ; 5609 return 0; 5610} 5611_ACEOF 5612if ac_fn_c_try_compile "$LINENO"; then : 5613 echo conftest.$ac_objext > conftest.lst 5614 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5615 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5616 (eval $lt_ar_try) 2>&5 5617 ac_status=$? 5618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5619 test $ac_status = 0; } 5620 if test 0 -eq "$ac_status"; then 5621 # Ensure the archiver fails upon bogus file names. 5622 rm -f conftest.$ac_objext libconftest.a 5623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5624 (eval $lt_ar_try) 2>&5 5625 ac_status=$? 5626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5627 test $ac_status = 0; } 5628 if test 0 -ne "$ac_status"; then 5629 lt_cv_ar_at_file=@ 5630 fi 5631 fi 5632 rm -f conftest.* libconftest.a 5633 5634fi 5635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5636 5637fi 5638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5639$as_echo "$lt_cv_ar_at_file" >&6; } 5640 5641if test no = "$lt_cv_ar_at_file"; then 5642 archiver_list_spec= 5643else 5644 archiver_list_spec=$lt_cv_ar_at_file 5645fi 5646 5647 5648 5649 5650 5651 5652 5653if test -n "$ac_tool_prefix"; then 5654 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5655set dummy ${ac_tool_prefix}strip; ac_word=$2 5656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5657$as_echo_n "checking for $ac_word... " >&6; } 5658if ${ac_cv_prog_STRIP+:} false; then : 5659 $as_echo_n "(cached) " >&6 5660else 5661 if test -n "$STRIP"; then 5662 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5663else 5664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5665for as_dir in $PATH 5666do 5667 IFS=$as_save_IFS 5668 test -z "$as_dir" && as_dir=. 5669 for ac_exec_ext in '' $ac_executable_extensions; do 5670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5671 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5673 break 2 5674 fi 5675done 5676 done 5677IFS=$as_save_IFS 5678 5679fi 5680fi 5681STRIP=$ac_cv_prog_STRIP 5682if test -n "$STRIP"; then 5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5684$as_echo "$STRIP" >&6; } 5685else 5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5687$as_echo "no" >&6; } 5688fi 5689 5690 5691fi 5692if test -z "$ac_cv_prog_STRIP"; then 5693 ac_ct_STRIP=$STRIP 5694 # Extract the first word of "strip", so it can be a program name with args. 5695set dummy strip; ac_word=$2 5696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5697$as_echo_n "checking for $ac_word... " >&6; } 5698if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5699 $as_echo_n "(cached) " >&6 5700else 5701 if test -n "$ac_ct_STRIP"; then 5702 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5703else 5704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5705for as_dir in $PATH 5706do 5707 IFS=$as_save_IFS 5708 test -z "$as_dir" && as_dir=. 5709 for ac_exec_ext in '' $ac_executable_extensions; do 5710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5711 ac_cv_prog_ac_ct_STRIP="strip" 5712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5713 break 2 5714 fi 5715done 5716 done 5717IFS=$as_save_IFS 5718 5719fi 5720fi 5721ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5722if test -n "$ac_ct_STRIP"; then 5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5724$as_echo "$ac_ct_STRIP" >&6; } 5725else 5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5727$as_echo "no" >&6; } 5728fi 5729 5730 if test "x$ac_ct_STRIP" = x; then 5731 STRIP=":" 5732 else 5733 case $cross_compiling:$ac_tool_warned in 5734yes:) 5735{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5736$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5737ac_tool_warned=yes ;; 5738esac 5739 STRIP=$ac_ct_STRIP 5740 fi 5741else 5742 STRIP="$ac_cv_prog_STRIP" 5743fi 5744 5745test -z "$STRIP" && STRIP=: 5746 5747 5748 5749 5750 5751 5752if test -n "$ac_tool_prefix"; then 5753 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5754set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5756$as_echo_n "checking for $ac_word... " >&6; } 5757if ${ac_cv_prog_RANLIB+:} false; then : 5758 $as_echo_n "(cached) " >&6 5759else 5760 if test -n "$RANLIB"; then 5761 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5762else 5763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5764for as_dir in $PATH 5765do 5766 IFS=$as_save_IFS 5767 test -z "$as_dir" && as_dir=. 5768 for ac_exec_ext in '' $ac_executable_extensions; do 5769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5770 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5772 break 2 5773 fi 5774done 5775 done 5776IFS=$as_save_IFS 5777 5778fi 5779fi 5780RANLIB=$ac_cv_prog_RANLIB 5781if test -n "$RANLIB"; then 5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5783$as_echo "$RANLIB" >&6; } 5784else 5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5786$as_echo "no" >&6; } 5787fi 5788 5789 5790fi 5791if test -z "$ac_cv_prog_RANLIB"; then 5792 ac_ct_RANLIB=$RANLIB 5793 # Extract the first word of "ranlib", so it can be a program name with args. 5794set dummy ranlib; ac_word=$2 5795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5796$as_echo_n "checking for $ac_word... " >&6; } 5797if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5798 $as_echo_n "(cached) " >&6 5799else 5800 if test -n "$ac_ct_RANLIB"; then 5801 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5802else 5803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5804for as_dir in $PATH 5805do 5806 IFS=$as_save_IFS 5807 test -z "$as_dir" && as_dir=. 5808 for ac_exec_ext in '' $ac_executable_extensions; do 5809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5810 ac_cv_prog_ac_ct_RANLIB="ranlib" 5811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5812 break 2 5813 fi 5814done 5815 done 5816IFS=$as_save_IFS 5817 5818fi 5819fi 5820ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5821if test -n "$ac_ct_RANLIB"; then 5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5823$as_echo "$ac_ct_RANLIB" >&6; } 5824else 5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5826$as_echo "no" >&6; } 5827fi 5828 5829 if test "x$ac_ct_RANLIB" = x; then 5830 RANLIB=":" 5831 else 5832 case $cross_compiling:$ac_tool_warned in 5833yes:) 5834{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5835$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5836ac_tool_warned=yes ;; 5837esac 5838 RANLIB=$ac_ct_RANLIB 5839 fi 5840else 5841 RANLIB="$ac_cv_prog_RANLIB" 5842fi 5843 5844test -z "$RANLIB" && RANLIB=: 5845 5846 5847 5848 5849 5850 5851# Determine commands to create old-style static archives. 5852old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5853old_postinstall_cmds='chmod 644 $oldlib' 5854old_postuninstall_cmds= 5855 5856if test -n "$RANLIB"; then 5857 case $host_os in 5858 bitrig* | openbsd*) 5859 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5860 ;; 5861 *) 5862 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5863 ;; 5864 esac 5865 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5866fi 5867 5868case $host_os in 5869 darwin*) 5870 lock_old_archive_extraction=yes ;; 5871 *) 5872 lock_old_archive_extraction=no ;; 5873esac 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913# If no C compiler was specified, use CC. 5914LTCC=${LTCC-"$CC"} 5915 5916# If no C compiler flags were specified, use CFLAGS. 5917LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5918 5919# Allow CC to be a program name with arguments. 5920compiler=$CC 5921 5922 5923# Check for command to grab the raw symbol name followed by C symbol from nm. 5924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5925$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5926if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5927 $as_echo_n "(cached) " >&6 5928else 5929 5930# These are sane defaults that work on at least a few old systems. 5931# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5932 5933# Character class describing NM global symbol codes. 5934symcode='[BCDEGRST]' 5935 5936# Regexp to match symbols that can be accessed directly from C. 5937sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5938 5939# Define system-specific variables. 5940case $host_os in 5941aix*) 5942 symcode='[BCDT]' 5943 ;; 5944cygwin* | mingw* | pw32* | cegcc*) 5945 symcode='[ABCDGISTW]' 5946 ;; 5947hpux*) 5948 if test ia64 = "$host_cpu"; then 5949 symcode='[ABCDEGRST]' 5950 fi 5951 ;; 5952irix* | nonstopux*) 5953 symcode='[BCDEGRST]' 5954 ;; 5955osf*) 5956 symcode='[BCDEGQRST]' 5957 ;; 5958solaris*) 5959 symcode='[BDRT]' 5960 ;; 5961sco3.2v5*) 5962 symcode='[DT]' 5963 ;; 5964sysv4.2uw2*) 5965 symcode='[DT]' 5966 ;; 5967sysv5* | sco5v6* | unixware* | OpenUNIX*) 5968 symcode='[ABDT]' 5969 ;; 5970sysv4) 5971 symcode='[DFNSTU]' 5972 ;; 5973esac 5974 5975# If we're using GNU nm, then use its standard symbol codes. 5976case `$NM -V 2>&1` in 5977*GNU* | *'with BFD'*) 5978 symcode='[ABCDGIRSTW]' ;; 5979esac 5980 5981if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5982 # Gets list of data symbols to import. 5983 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 5984 # Adjust the below global symbol transforms to fixup imported variables. 5985 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 5986 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 5987 lt_c_name_lib_hook="\ 5988 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 5989 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 5990else 5991 # Disable hooks by default. 5992 lt_cv_sys_global_symbol_to_import= 5993 lt_cdecl_hook= 5994 lt_c_name_hook= 5995 lt_c_name_lib_hook= 5996fi 5997 5998# Transform an extracted symbol line into a proper C declaration. 5999# Some systems (esp. on ia64) link data and code symbols differently, 6000# so use this general approach. 6001lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6002$lt_cdecl_hook\ 6003" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6004" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6005 6006# Transform an extracted symbol line into symbol name and symbol address 6007lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6008$lt_c_name_hook\ 6009" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6010" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6011 6012# Transform an extracted symbol line into symbol name with lib prefix and 6013# symbol address. 6014lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6015$lt_c_name_lib_hook\ 6016" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6017" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6018" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6019 6020# Handle CRLF in mingw tool chain 6021opt_cr= 6022case $build_os in 6023mingw*) 6024 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6025 ;; 6026esac 6027 6028# Try without a prefix underscore, then with it. 6029for ac_symprfx in "" "_"; do 6030 6031 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6032 symxfrm="\\1 $ac_symprfx\\2 \\2" 6033 6034 # Write the raw and C identifiers. 6035 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6036 # Fake it for dumpbin and say T for any non-static function, 6037 # D for any global variable and I for any imported variable. 6038 # Also find C++ and __fastcall symbols from MSVC++, 6039 # which start with @ or ?. 6040 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6041" {last_section=section; section=\$ 3};"\ 6042" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6043" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6044" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6045" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6046" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6047" \$ 0!~/External *\|/{next};"\ 6048" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6049" {if(hide[section]) next};"\ 6050" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6051" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6052" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6053" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6054" ' prfx=^$ac_symprfx" 6055 else 6056 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6057 fi 6058 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6059 6060 # Check to see that the pipe works correctly. 6061 pipe_works=no 6062 6063 rm -f conftest* 6064 cat > conftest.$ac_ext <<_LT_EOF 6065#ifdef __cplusplus 6066extern "C" { 6067#endif 6068char nm_test_var; 6069void nm_test_func(void); 6070void nm_test_func(void){} 6071#ifdef __cplusplus 6072} 6073#endif 6074int main(){nm_test_var='a';nm_test_func();return(0);} 6075_LT_EOF 6076 6077 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6078 (eval $ac_compile) 2>&5 6079 ac_status=$? 6080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6081 test $ac_status = 0; }; then 6082 # Now try to grab the symbols. 6083 nlist=conftest.nm 6084 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6085 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6086 ac_status=$? 6087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6088 test $ac_status = 0; } && test -s "$nlist"; then 6089 # Try sorting and uniquifying the output. 6090 if sort "$nlist" | uniq > "$nlist"T; then 6091 mv -f "$nlist"T "$nlist" 6092 else 6093 rm -f "$nlist"T 6094 fi 6095 6096 # Make sure that we snagged all the symbols we need. 6097 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6098 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6099 cat <<_LT_EOF > conftest.$ac_ext 6100/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6101#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6102/* DATA imports from DLLs on WIN32 can't be const, because runtime 6103 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6104# define LT_DLSYM_CONST 6105#elif defined __osf__ 6106/* This system does not cope well with relocations in const data. */ 6107# define LT_DLSYM_CONST 6108#else 6109# define LT_DLSYM_CONST const 6110#endif 6111 6112#ifdef __cplusplus 6113extern "C" { 6114#endif 6115 6116_LT_EOF 6117 # Now generate the symbol file. 6118 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6119 6120 cat <<_LT_EOF >> conftest.$ac_ext 6121 6122/* The mapping between symbol names and symbols. */ 6123LT_DLSYM_CONST struct { 6124 const char *name; 6125 void *address; 6126} 6127lt__PROGRAM__LTX_preloaded_symbols[] = 6128{ 6129 { "@PROGRAM@", (void *) 0 }, 6130_LT_EOF 6131 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6132 cat <<\_LT_EOF >> conftest.$ac_ext 6133 {0, (void *) 0} 6134}; 6135 6136/* This works around a problem in FreeBSD linker */ 6137#ifdef FREEBSD_WORKAROUND 6138static const void *lt_preloaded_setup() { 6139 return lt__PROGRAM__LTX_preloaded_symbols; 6140} 6141#endif 6142 6143#ifdef __cplusplus 6144} 6145#endif 6146_LT_EOF 6147 # Now try linking the two files. 6148 mv conftest.$ac_objext conftstm.$ac_objext 6149 lt_globsym_save_LIBS=$LIBS 6150 lt_globsym_save_CFLAGS=$CFLAGS 6151 LIBS=conftstm.$ac_objext 6152 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6154 (eval $ac_link) 2>&5 6155 ac_status=$? 6156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6157 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6158 pipe_works=yes 6159 fi 6160 LIBS=$lt_globsym_save_LIBS 6161 CFLAGS=$lt_globsym_save_CFLAGS 6162 else 6163 echo "cannot find nm_test_func in $nlist" >&5 6164 fi 6165 else 6166 echo "cannot find nm_test_var in $nlist" >&5 6167 fi 6168 else 6169 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6170 fi 6171 else 6172 echo "$progname: failed program was:" >&5 6173 cat conftest.$ac_ext >&5 6174 fi 6175 rm -rf conftest* conftst* 6176 6177 # Do not use the global_symbol_pipe unless it works. 6178 if test yes = "$pipe_works"; then 6179 break 6180 else 6181 lt_cv_sys_global_symbol_pipe= 6182 fi 6183done 6184 6185fi 6186 6187if test -z "$lt_cv_sys_global_symbol_pipe"; then 6188 lt_cv_sys_global_symbol_to_cdecl= 6189fi 6190if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6192$as_echo "failed" >&6; } 6193else 6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6195$as_echo "ok" >&6; } 6196fi 6197 6198# Response file support. 6199if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6200 nm_file_list_spec='@' 6201elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6202 nm_file_list_spec='@' 6203fi 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6242$as_echo_n "checking for sysroot... " >&6; } 6243 6244# Check whether --with-sysroot was given. 6245if test "${with_sysroot+set}" = set; then : 6246 withval=$with_sysroot; 6247else 6248 with_sysroot=no 6249fi 6250 6251 6252lt_sysroot= 6253case $with_sysroot in #( 6254 yes) 6255 if test yes = "$GCC"; then 6256 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6257 fi 6258 ;; #( 6259 /*) 6260 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6261 ;; #( 6262 no|'') 6263 ;; #( 6264 *) 6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6266$as_echo "$with_sysroot" >&6; } 6267 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6268 ;; 6269esac 6270 6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6272$as_echo "${lt_sysroot:-no}" >&6; } 6273 6274 6275 6276 6277 6278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6279$as_echo_n "checking for a working dd... " >&6; } 6280if ${ac_cv_path_lt_DD+:} false; then : 6281 $as_echo_n "(cached) " >&6 6282else 6283 printf 0123456789abcdef0123456789abcdef >conftest.i 6284cat conftest.i conftest.i >conftest2.i 6285: ${lt_DD:=$DD} 6286if test -z "$lt_DD"; then 6287 ac_path_lt_DD_found=false 6288 # Loop through the user's path and test for each of PROGNAME-LIST 6289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6290for as_dir in $PATH 6291do 6292 IFS=$as_save_IFS 6293 test -z "$as_dir" && as_dir=. 6294 for ac_prog in dd; do 6295 for ac_exec_ext in '' $ac_executable_extensions; do 6296 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6297 as_fn_executable_p "$ac_path_lt_DD" || continue 6298if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6299 cmp -s conftest.i conftest.out \ 6300 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6301fi 6302 $ac_path_lt_DD_found && break 3 6303 done 6304 done 6305 done 6306IFS=$as_save_IFS 6307 if test -z "$ac_cv_path_lt_DD"; then 6308 : 6309 fi 6310else 6311 ac_cv_path_lt_DD=$lt_DD 6312fi 6313 6314rm -f conftest.i conftest2.i conftest.out 6315fi 6316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6317$as_echo "$ac_cv_path_lt_DD" >&6; } 6318 6319 6320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6321$as_echo_n "checking how to truncate binary pipes... " >&6; } 6322if ${lt_cv_truncate_bin+:} false; then : 6323 $as_echo_n "(cached) " >&6 6324else 6325 printf 0123456789abcdef0123456789abcdef >conftest.i 6326cat conftest.i conftest.i >conftest2.i 6327lt_cv_truncate_bin= 6328if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6329 cmp -s conftest.i conftest.out \ 6330 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6331fi 6332rm -f conftest.i conftest2.i conftest.out 6333test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6334fi 6335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6336$as_echo "$lt_cv_truncate_bin" >&6; } 6337 6338 6339 6340 6341 6342 6343 6344# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6345func_cc_basename () 6346{ 6347 for cc_temp in $*""; do 6348 case $cc_temp in 6349 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6350 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6351 \-*) ;; 6352 *) break;; 6353 esac 6354 done 6355 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6356} 6357 6358# Check whether --enable-libtool-lock was given. 6359if test "${enable_libtool_lock+set}" = set; then : 6360 enableval=$enable_libtool_lock; 6361fi 6362 6363test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6364 6365# Some flags need to be propagated to the compiler or linker for good 6366# libtool support. 6367case $host in 6368ia64-*-hpux*) 6369 # Find out what ABI is being produced by ac_compile, and set mode 6370 # options accordingly. 6371 echo 'int i;' > conftest.$ac_ext 6372 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6373 (eval $ac_compile) 2>&5 6374 ac_status=$? 6375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6376 test $ac_status = 0; }; then 6377 case `/usr/bin/file conftest.$ac_objext` in 6378 *ELF-32*) 6379 HPUX_IA64_MODE=32 6380 ;; 6381 *ELF-64*) 6382 HPUX_IA64_MODE=64 6383 ;; 6384 esac 6385 fi 6386 rm -rf conftest* 6387 ;; 6388*-*-irix6*) 6389 # Find out what ABI is being produced by ac_compile, and set linker 6390 # options accordingly. 6391 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6392 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6393 (eval $ac_compile) 2>&5 6394 ac_status=$? 6395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6396 test $ac_status = 0; }; then 6397 if test yes = "$lt_cv_prog_gnu_ld"; then 6398 case `/usr/bin/file conftest.$ac_objext` in 6399 *32-bit*) 6400 LD="${LD-ld} -melf32bsmip" 6401 ;; 6402 *N32*) 6403 LD="${LD-ld} -melf32bmipn32" 6404 ;; 6405 *64-bit*) 6406 LD="${LD-ld} -melf64bmip" 6407 ;; 6408 esac 6409 else 6410 case `/usr/bin/file conftest.$ac_objext` in 6411 *32-bit*) 6412 LD="${LD-ld} -32" 6413 ;; 6414 *N32*) 6415 LD="${LD-ld} -n32" 6416 ;; 6417 *64-bit*) 6418 LD="${LD-ld} -64" 6419 ;; 6420 esac 6421 fi 6422 fi 6423 rm -rf conftest* 6424 ;; 6425 6426mips64*-*linux*) 6427 # Find out what ABI is being produced by ac_compile, and set linker 6428 # options accordingly. 6429 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6430 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6431 (eval $ac_compile) 2>&5 6432 ac_status=$? 6433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6434 test $ac_status = 0; }; then 6435 emul=elf 6436 case `/usr/bin/file conftest.$ac_objext` in 6437 *32-bit*) 6438 emul="${emul}32" 6439 ;; 6440 *64-bit*) 6441 emul="${emul}64" 6442 ;; 6443 esac 6444 case `/usr/bin/file conftest.$ac_objext` in 6445 *MSB*) 6446 emul="${emul}btsmip" 6447 ;; 6448 *LSB*) 6449 emul="${emul}ltsmip" 6450 ;; 6451 esac 6452 case `/usr/bin/file conftest.$ac_objext` in 6453 *N32*) 6454 emul="${emul}n32" 6455 ;; 6456 esac 6457 LD="${LD-ld} -m $emul" 6458 fi 6459 rm -rf conftest* 6460 ;; 6461 6462x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6463s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6464 # Find out what ABI is being produced by ac_compile, and set linker 6465 # options accordingly. Note that the listed cases only cover the 6466 # situations where additional linker options are needed (such as when 6467 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6468 # vice versa); the common cases where no linker options are needed do 6469 # not appear in the list. 6470 echo 'int i;' > conftest.$ac_ext 6471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6472 (eval $ac_compile) 2>&5 6473 ac_status=$? 6474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6475 test $ac_status = 0; }; then 6476 case `/usr/bin/file conftest.o` in 6477 *32-bit*) 6478 case $host in 6479 x86_64-*kfreebsd*-gnu) 6480 LD="${LD-ld} -m elf_i386_fbsd" 6481 ;; 6482 x86_64-*linux*) 6483 case `/usr/bin/file conftest.o` in 6484 *x86-64*) 6485 LD="${LD-ld} -m elf32_x86_64" 6486 ;; 6487 *) 6488 LD="${LD-ld} -m elf_i386" 6489 ;; 6490 esac 6491 ;; 6492 powerpc64le-*linux*) 6493 LD="${LD-ld} -m elf32lppclinux" 6494 ;; 6495 powerpc64-*linux*) 6496 LD="${LD-ld} -m elf32ppclinux" 6497 ;; 6498 s390x-*linux*) 6499 LD="${LD-ld} -m elf_s390" 6500 ;; 6501 sparc64-*linux*) 6502 LD="${LD-ld} -m elf32_sparc" 6503 ;; 6504 esac 6505 ;; 6506 *64-bit*) 6507 case $host in 6508 x86_64-*kfreebsd*-gnu) 6509 LD="${LD-ld} -m elf_x86_64_fbsd" 6510 ;; 6511 x86_64-*linux*) 6512 LD="${LD-ld} -m elf_x86_64" 6513 ;; 6514 powerpcle-*linux*) 6515 LD="${LD-ld} -m elf64lppc" 6516 ;; 6517 powerpc-*linux*) 6518 LD="${LD-ld} -m elf64ppc" 6519 ;; 6520 s390*-*linux*|s390*-*tpf*) 6521 LD="${LD-ld} -m elf64_s390" 6522 ;; 6523 sparc*-*linux*) 6524 LD="${LD-ld} -m elf64_sparc" 6525 ;; 6526 esac 6527 ;; 6528 esac 6529 fi 6530 rm -rf conftest* 6531 ;; 6532 6533*-*-sco3.2v5*) 6534 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6535 SAVE_CFLAGS=$CFLAGS 6536 CFLAGS="$CFLAGS -belf" 6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6538$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6539if ${lt_cv_cc_needs_belf+:} false; then : 6540 $as_echo_n "(cached) " >&6 6541else 6542 ac_ext=c 6543ac_cpp='$CPP $CPPFLAGS' 6544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6546ac_compiler_gnu=$ac_cv_c_compiler_gnu 6547 6548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6549/* end confdefs.h. */ 6550 6551int 6552main () 6553{ 6554 6555 ; 6556 return 0; 6557} 6558_ACEOF 6559if ac_fn_c_try_link "$LINENO"; then : 6560 lt_cv_cc_needs_belf=yes 6561else 6562 lt_cv_cc_needs_belf=no 6563fi 6564rm -f core conftest.err conftest.$ac_objext \ 6565 conftest$ac_exeext conftest.$ac_ext 6566 ac_ext=c 6567ac_cpp='$CPP $CPPFLAGS' 6568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6570ac_compiler_gnu=$ac_cv_c_compiler_gnu 6571 6572fi 6573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6574$as_echo "$lt_cv_cc_needs_belf" >&6; } 6575 if test yes != "$lt_cv_cc_needs_belf"; then 6576 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6577 CFLAGS=$SAVE_CFLAGS 6578 fi 6579 ;; 6580*-*solaris*) 6581 # Find out what ABI is being produced by ac_compile, and set linker 6582 # options accordingly. 6583 echo 'int i;' > conftest.$ac_ext 6584 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6585 (eval $ac_compile) 2>&5 6586 ac_status=$? 6587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6588 test $ac_status = 0; }; then 6589 case `/usr/bin/file conftest.o` in 6590 *64-bit*) 6591 case $lt_cv_prog_gnu_ld in 6592 yes*) 6593 case $host in 6594 i?86-*-solaris*|x86_64-*-solaris*) 6595 LD="${LD-ld} -m elf_x86_64" 6596 ;; 6597 sparc*-*-solaris*) 6598 LD="${LD-ld} -m elf64_sparc" 6599 ;; 6600 esac 6601 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6602 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6603 LD=${LD-ld}_sol2 6604 fi 6605 ;; 6606 *) 6607 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6608 LD="${LD-ld} -64" 6609 fi 6610 ;; 6611 esac 6612 ;; 6613 esac 6614 fi 6615 rm -rf conftest* 6616 ;; 6617esac 6618 6619need_locks=$enable_libtool_lock 6620 6621if test -n "$ac_tool_prefix"; then 6622 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6623set dummy ${ac_tool_prefix}mt; ac_word=$2 6624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6625$as_echo_n "checking for $ac_word... " >&6; } 6626if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6627 $as_echo_n "(cached) " >&6 6628else 6629 if test -n "$MANIFEST_TOOL"; then 6630 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6631else 6632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6633for as_dir in $PATH 6634do 6635 IFS=$as_save_IFS 6636 test -z "$as_dir" && as_dir=. 6637 for ac_exec_ext in '' $ac_executable_extensions; do 6638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6639 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6641 break 2 6642 fi 6643done 6644 done 6645IFS=$as_save_IFS 6646 6647fi 6648fi 6649MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6650if test -n "$MANIFEST_TOOL"; then 6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6652$as_echo "$MANIFEST_TOOL" >&6; } 6653else 6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6655$as_echo "no" >&6; } 6656fi 6657 6658 6659fi 6660if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6661 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6662 # Extract the first word of "mt", so it can be a program name with args. 6663set dummy mt; ac_word=$2 6664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6665$as_echo_n "checking for $ac_word... " >&6; } 6666if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6667 $as_echo_n "(cached) " >&6 6668else 6669 if test -n "$ac_ct_MANIFEST_TOOL"; then 6670 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6671else 6672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6673for as_dir in $PATH 6674do 6675 IFS=$as_save_IFS 6676 test -z "$as_dir" && as_dir=. 6677 for ac_exec_ext in '' $ac_executable_extensions; do 6678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6679 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6681 break 2 6682 fi 6683done 6684 done 6685IFS=$as_save_IFS 6686 6687fi 6688fi 6689ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6690if test -n "$ac_ct_MANIFEST_TOOL"; then 6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6692$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6693else 6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6695$as_echo "no" >&6; } 6696fi 6697 6698 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6699 MANIFEST_TOOL=":" 6700 else 6701 case $cross_compiling:$ac_tool_warned in 6702yes:) 6703{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6704$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6705ac_tool_warned=yes ;; 6706esac 6707 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6708 fi 6709else 6710 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6711fi 6712 6713test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6715$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6716if ${lt_cv_path_mainfest_tool+:} false; then : 6717 $as_echo_n "(cached) " >&6 6718else 6719 lt_cv_path_mainfest_tool=no 6720 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6721 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6722 cat conftest.err >&5 6723 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6724 lt_cv_path_mainfest_tool=yes 6725 fi 6726 rm -f conftest* 6727fi 6728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6729$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6730if test yes != "$lt_cv_path_mainfest_tool"; then 6731 MANIFEST_TOOL=: 6732fi 6733 6734 6735 6736 6737 6738 6739 case $host_os in 6740 rhapsody* | darwin*) 6741 if test -n "$ac_tool_prefix"; then 6742 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6743set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6745$as_echo_n "checking for $ac_word... " >&6; } 6746if ${ac_cv_prog_DSYMUTIL+:} false; then : 6747 $as_echo_n "(cached) " >&6 6748else 6749 if test -n "$DSYMUTIL"; then 6750 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6751else 6752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6753for as_dir in $PATH 6754do 6755 IFS=$as_save_IFS 6756 test -z "$as_dir" && as_dir=. 6757 for ac_exec_ext in '' $ac_executable_extensions; do 6758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6759 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6761 break 2 6762 fi 6763done 6764 done 6765IFS=$as_save_IFS 6766 6767fi 6768fi 6769DSYMUTIL=$ac_cv_prog_DSYMUTIL 6770if test -n "$DSYMUTIL"; then 6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6772$as_echo "$DSYMUTIL" >&6; } 6773else 6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6775$as_echo "no" >&6; } 6776fi 6777 6778 6779fi 6780if test -z "$ac_cv_prog_DSYMUTIL"; then 6781 ac_ct_DSYMUTIL=$DSYMUTIL 6782 # Extract the first word of "dsymutil", so it can be a program name with args. 6783set dummy dsymutil; ac_word=$2 6784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6785$as_echo_n "checking for $ac_word... " >&6; } 6786if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6787 $as_echo_n "(cached) " >&6 6788else 6789 if test -n "$ac_ct_DSYMUTIL"; then 6790 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6791else 6792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6793for as_dir in $PATH 6794do 6795 IFS=$as_save_IFS 6796 test -z "$as_dir" && as_dir=. 6797 for ac_exec_ext in '' $ac_executable_extensions; do 6798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6799 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6801 break 2 6802 fi 6803done 6804 done 6805IFS=$as_save_IFS 6806 6807fi 6808fi 6809ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6810if test -n "$ac_ct_DSYMUTIL"; then 6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6812$as_echo "$ac_ct_DSYMUTIL" >&6; } 6813else 6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6815$as_echo "no" >&6; } 6816fi 6817 6818 if test "x$ac_ct_DSYMUTIL" = x; then 6819 DSYMUTIL=":" 6820 else 6821 case $cross_compiling:$ac_tool_warned in 6822yes:) 6823{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6824$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6825ac_tool_warned=yes ;; 6826esac 6827 DSYMUTIL=$ac_ct_DSYMUTIL 6828 fi 6829else 6830 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6831fi 6832 6833 if test -n "$ac_tool_prefix"; then 6834 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6835set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6837$as_echo_n "checking for $ac_word... " >&6; } 6838if ${ac_cv_prog_NMEDIT+:} false; then : 6839 $as_echo_n "(cached) " >&6 6840else 6841 if test -n "$NMEDIT"; then 6842 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6843else 6844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6845for as_dir in $PATH 6846do 6847 IFS=$as_save_IFS 6848 test -z "$as_dir" && as_dir=. 6849 for ac_exec_ext in '' $ac_executable_extensions; do 6850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6851 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6853 break 2 6854 fi 6855done 6856 done 6857IFS=$as_save_IFS 6858 6859fi 6860fi 6861NMEDIT=$ac_cv_prog_NMEDIT 6862if test -n "$NMEDIT"; then 6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6864$as_echo "$NMEDIT" >&6; } 6865else 6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6867$as_echo "no" >&6; } 6868fi 6869 6870 6871fi 6872if test -z "$ac_cv_prog_NMEDIT"; then 6873 ac_ct_NMEDIT=$NMEDIT 6874 # Extract the first word of "nmedit", so it can be a program name with args. 6875set dummy nmedit; ac_word=$2 6876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6877$as_echo_n "checking for $ac_word... " >&6; } 6878if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6879 $as_echo_n "(cached) " >&6 6880else 6881 if test -n "$ac_ct_NMEDIT"; then 6882 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6883else 6884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6885for as_dir in $PATH 6886do 6887 IFS=$as_save_IFS 6888 test -z "$as_dir" && as_dir=. 6889 for ac_exec_ext in '' $ac_executable_extensions; do 6890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6891 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6893 break 2 6894 fi 6895done 6896 done 6897IFS=$as_save_IFS 6898 6899fi 6900fi 6901ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6902if test -n "$ac_ct_NMEDIT"; then 6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6904$as_echo "$ac_ct_NMEDIT" >&6; } 6905else 6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6907$as_echo "no" >&6; } 6908fi 6909 6910 if test "x$ac_ct_NMEDIT" = x; then 6911 NMEDIT=":" 6912 else 6913 case $cross_compiling:$ac_tool_warned in 6914yes:) 6915{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6916$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6917ac_tool_warned=yes ;; 6918esac 6919 NMEDIT=$ac_ct_NMEDIT 6920 fi 6921else 6922 NMEDIT="$ac_cv_prog_NMEDIT" 6923fi 6924 6925 if test -n "$ac_tool_prefix"; then 6926 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6927set dummy ${ac_tool_prefix}lipo; ac_word=$2 6928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6929$as_echo_n "checking for $ac_word... " >&6; } 6930if ${ac_cv_prog_LIPO+:} false; then : 6931 $as_echo_n "(cached) " >&6 6932else 6933 if test -n "$LIPO"; then 6934 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6935else 6936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6937for as_dir in $PATH 6938do 6939 IFS=$as_save_IFS 6940 test -z "$as_dir" && as_dir=. 6941 for ac_exec_ext in '' $ac_executable_extensions; do 6942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6943 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6945 break 2 6946 fi 6947done 6948 done 6949IFS=$as_save_IFS 6950 6951fi 6952fi 6953LIPO=$ac_cv_prog_LIPO 6954if test -n "$LIPO"; then 6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6956$as_echo "$LIPO" >&6; } 6957else 6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6959$as_echo "no" >&6; } 6960fi 6961 6962 6963fi 6964if test -z "$ac_cv_prog_LIPO"; then 6965 ac_ct_LIPO=$LIPO 6966 # Extract the first word of "lipo", so it can be a program name with args. 6967set dummy lipo; ac_word=$2 6968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6969$as_echo_n "checking for $ac_word... " >&6; } 6970if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6971 $as_echo_n "(cached) " >&6 6972else 6973 if test -n "$ac_ct_LIPO"; then 6974 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6975else 6976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6977for as_dir in $PATH 6978do 6979 IFS=$as_save_IFS 6980 test -z "$as_dir" && as_dir=. 6981 for ac_exec_ext in '' $ac_executable_extensions; do 6982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6983 ac_cv_prog_ac_ct_LIPO="lipo" 6984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6985 break 2 6986 fi 6987done 6988 done 6989IFS=$as_save_IFS 6990 6991fi 6992fi 6993ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6994if test -n "$ac_ct_LIPO"; then 6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6996$as_echo "$ac_ct_LIPO" >&6; } 6997else 6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6999$as_echo "no" >&6; } 7000fi 7001 7002 if test "x$ac_ct_LIPO" = x; then 7003 LIPO=":" 7004 else 7005 case $cross_compiling:$ac_tool_warned in 7006yes:) 7007{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7008$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7009ac_tool_warned=yes ;; 7010esac 7011 LIPO=$ac_ct_LIPO 7012 fi 7013else 7014 LIPO="$ac_cv_prog_LIPO" 7015fi 7016 7017 if test -n "$ac_tool_prefix"; then 7018 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7019set dummy ${ac_tool_prefix}otool; ac_word=$2 7020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7021$as_echo_n "checking for $ac_word... " >&6; } 7022if ${ac_cv_prog_OTOOL+:} false; then : 7023 $as_echo_n "(cached) " >&6 7024else 7025 if test -n "$OTOOL"; then 7026 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7027else 7028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7029for as_dir in $PATH 7030do 7031 IFS=$as_save_IFS 7032 test -z "$as_dir" && as_dir=. 7033 for ac_exec_ext in '' $ac_executable_extensions; do 7034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7035 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7037 break 2 7038 fi 7039done 7040 done 7041IFS=$as_save_IFS 7042 7043fi 7044fi 7045OTOOL=$ac_cv_prog_OTOOL 7046if test -n "$OTOOL"; then 7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7048$as_echo "$OTOOL" >&6; } 7049else 7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7051$as_echo "no" >&6; } 7052fi 7053 7054 7055fi 7056if test -z "$ac_cv_prog_OTOOL"; then 7057 ac_ct_OTOOL=$OTOOL 7058 # Extract the first word of "otool", so it can be a program name with args. 7059set dummy otool; ac_word=$2 7060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7061$as_echo_n "checking for $ac_word... " >&6; } 7062if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7063 $as_echo_n "(cached) " >&6 7064else 7065 if test -n "$ac_ct_OTOOL"; then 7066 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7067else 7068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7069for as_dir in $PATH 7070do 7071 IFS=$as_save_IFS 7072 test -z "$as_dir" && as_dir=. 7073 for ac_exec_ext in '' $ac_executable_extensions; do 7074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7075 ac_cv_prog_ac_ct_OTOOL="otool" 7076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7077 break 2 7078 fi 7079done 7080 done 7081IFS=$as_save_IFS 7082 7083fi 7084fi 7085ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7086if test -n "$ac_ct_OTOOL"; then 7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7088$as_echo "$ac_ct_OTOOL" >&6; } 7089else 7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7091$as_echo "no" >&6; } 7092fi 7093 7094 if test "x$ac_ct_OTOOL" = x; then 7095 OTOOL=":" 7096 else 7097 case $cross_compiling:$ac_tool_warned in 7098yes:) 7099{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7100$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7101ac_tool_warned=yes ;; 7102esac 7103 OTOOL=$ac_ct_OTOOL 7104 fi 7105else 7106 OTOOL="$ac_cv_prog_OTOOL" 7107fi 7108 7109 if test -n "$ac_tool_prefix"; then 7110 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7111set dummy ${ac_tool_prefix}otool64; ac_word=$2 7112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7113$as_echo_n "checking for $ac_word... " >&6; } 7114if ${ac_cv_prog_OTOOL64+:} false; then : 7115 $as_echo_n "(cached) " >&6 7116else 7117 if test -n "$OTOOL64"; then 7118 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7119else 7120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7121for as_dir in $PATH 7122do 7123 IFS=$as_save_IFS 7124 test -z "$as_dir" && as_dir=. 7125 for ac_exec_ext in '' $ac_executable_extensions; do 7126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7127 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7129 break 2 7130 fi 7131done 7132 done 7133IFS=$as_save_IFS 7134 7135fi 7136fi 7137OTOOL64=$ac_cv_prog_OTOOL64 7138if test -n "$OTOOL64"; then 7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7140$as_echo "$OTOOL64" >&6; } 7141else 7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7143$as_echo "no" >&6; } 7144fi 7145 7146 7147fi 7148if test -z "$ac_cv_prog_OTOOL64"; then 7149 ac_ct_OTOOL64=$OTOOL64 7150 # Extract the first word of "otool64", so it can be a program name with args. 7151set dummy otool64; ac_word=$2 7152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7153$as_echo_n "checking for $ac_word... " >&6; } 7154if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7155 $as_echo_n "(cached) " >&6 7156else 7157 if test -n "$ac_ct_OTOOL64"; then 7158 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7159else 7160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7161for as_dir in $PATH 7162do 7163 IFS=$as_save_IFS 7164 test -z "$as_dir" && as_dir=. 7165 for ac_exec_ext in '' $ac_executable_extensions; do 7166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7167 ac_cv_prog_ac_ct_OTOOL64="otool64" 7168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7169 break 2 7170 fi 7171done 7172 done 7173IFS=$as_save_IFS 7174 7175fi 7176fi 7177ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7178if test -n "$ac_ct_OTOOL64"; then 7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7180$as_echo "$ac_ct_OTOOL64" >&6; } 7181else 7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7183$as_echo "no" >&6; } 7184fi 7185 7186 if test "x$ac_ct_OTOOL64" = x; then 7187 OTOOL64=":" 7188 else 7189 case $cross_compiling:$ac_tool_warned in 7190yes:) 7191{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7192$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7193ac_tool_warned=yes ;; 7194esac 7195 OTOOL64=$ac_ct_OTOOL64 7196 fi 7197else 7198 OTOOL64="$ac_cv_prog_OTOOL64" 7199fi 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7228$as_echo_n "checking for -single_module linker flag... " >&6; } 7229if ${lt_cv_apple_cc_single_mod+:} false; then : 7230 $as_echo_n "(cached) " >&6 7231else 7232 lt_cv_apple_cc_single_mod=no 7233 if test -z "$LT_MULTI_MODULE"; then 7234 # By default we will add the -single_module flag. You can override 7235 # by either setting the environment variable LT_MULTI_MODULE 7236 # non-empty at configure time, or by adding -multi_module to the 7237 # link flags. 7238 rm -rf libconftest.dylib* 7239 echo "int foo(void){return 1;}" > conftest.c 7240 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7241-dynamiclib -Wl,-single_module conftest.c" >&5 7242 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7243 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7244 _lt_result=$? 7245 # If there is a non-empty error log, and "single_module" 7246 # appears in it, assume the flag caused a linker warning 7247 if test -s conftest.err && $GREP single_module conftest.err; then 7248 cat conftest.err >&5 7249 # Otherwise, if the output was created with a 0 exit code from 7250 # the compiler, it worked. 7251 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7252 lt_cv_apple_cc_single_mod=yes 7253 else 7254 cat conftest.err >&5 7255 fi 7256 rm -rf libconftest.dylib* 7257 rm -f conftest.* 7258 fi 7259fi 7260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7261$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7262 7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7264$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7265if ${lt_cv_ld_exported_symbols_list+:} false; then : 7266 $as_echo_n "(cached) " >&6 7267else 7268 lt_cv_ld_exported_symbols_list=no 7269 save_LDFLAGS=$LDFLAGS 7270 echo "_main" > conftest.sym 7271 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7273/* end confdefs.h. */ 7274 7275int 7276main () 7277{ 7278 7279 ; 7280 return 0; 7281} 7282_ACEOF 7283if ac_fn_c_try_link "$LINENO"; then : 7284 lt_cv_ld_exported_symbols_list=yes 7285else 7286 lt_cv_ld_exported_symbols_list=no 7287fi 7288rm -f core conftest.err conftest.$ac_objext \ 7289 conftest$ac_exeext conftest.$ac_ext 7290 LDFLAGS=$save_LDFLAGS 7291 7292fi 7293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7294$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7295 7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7297$as_echo_n "checking for -force_load linker flag... " >&6; } 7298if ${lt_cv_ld_force_load+:} false; then : 7299 $as_echo_n "(cached) " >&6 7300else 7301 lt_cv_ld_force_load=no 7302 cat > conftest.c << _LT_EOF 7303int forced_loaded() { return 2;} 7304_LT_EOF 7305 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7306 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7307 echo "$AR cru libconftest.a conftest.o" >&5 7308 $AR cru libconftest.a conftest.o 2>&5 7309 echo "$RANLIB libconftest.a" >&5 7310 $RANLIB libconftest.a 2>&5 7311 cat > conftest.c << _LT_EOF 7312int main() { return 0;} 7313_LT_EOF 7314 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7315 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7316 _lt_result=$? 7317 if test -s conftest.err && $GREP force_load conftest.err; then 7318 cat conftest.err >&5 7319 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7320 lt_cv_ld_force_load=yes 7321 else 7322 cat conftest.err >&5 7323 fi 7324 rm -f conftest.err libconftest.a conftest conftest.c 7325 rm -rf conftest.dSYM 7326 7327fi 7328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7329$as_echo "$lt_cv_ld_force_load" >&6; } 7330 case $host_os in 7331 rhapsody* | darwin1.[012]) 7332 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7333 darwin1.*) 7334 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7335 darwin*) # darwin 5.x on 7336 # if running on 10.5 or later, the deployment target defaults 7337 # to the OS version, if on x86, and 10.4, the deployment 7338 # target defaults to 10.4. Don't you love it? 7339 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7340 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7341 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7342 10.[012][,.]*) 7343 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7344 10.*) 7345 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7346 esac 7347 ;; 7348 esac 7349 if test yes = "$lt_cv_apple_cc_single_mod"; then 7350 _lt_dar_single_mod='$single_module' 7351 fi 7352 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7353 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7354 else 7355 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7356 fi 7357 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7358 _lt_dsymutil='~$DSYMUTIL $lib || :' 7359 else 7360 _lt_dsymutil= 7361 fi 7362 ;; 7363 esac 7364 7365# func_munge_path_list VARIABLE PATH 7366# ----------------------------------- 7367# VARIABLE is name of variable containing _space_ separated list of 7368# directories to be munged by the contents of PATH, which is string 7369# having a format: 7370# "DIR[:DIR]:" 7371# string "DIR[ DIR]" will be prepended to VARIABLE 7372# ":DIR[:DIR]" 7373# string "DIR[ DIR]" will be appended to VARIABLE 7374# "DIRP[:DIRP]::[DIRA:]DIRA" 7375# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7376# "DIRA[ DIRA]" will be appended to VARIABLE 7377# "DIR[:DIR]" 7378# VARIABLE will be replaced by "DIR[ DIR]" 7379func_munge_path_list () 7380{ 7381 case x$2 in 7382 x) 7383 ;; 7384 *:) 7385 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7386 ;; 7387 x:*) 7388 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7389 ;; 7390 *::*) 7391 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7392 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7393 ;; 7394 *) 7395 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7396 ;; 7397 esac 7398} 7399 7400ac_ext=c 7401ac_cpp='$CPP $CPPFLAGS' 7402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7404ac_compiler_gnu=$ac_cv_c_compiler_gnu 7405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7406$as_echo_n "checking how to run the C preprocessor... " >&6; } 7407# On Suns, sometimes $CPP names a directory. 7408if test -n "$CPP" && test -d "$CPP"; then 7409 CPP= 7410fi 7411if test -z "$CPP"; then 7412 if ${ac_cv_prog_CPP+:} false; then : 7413 $as_echo_n "(cached) " >&6 7414else 7415 # Double quotes because CPP needs to be expanded 7416 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7417 do 7418 ac_preproc_ok=false 7419for ac_c_preproc_warn_flag in '' yes 7420do 7421 # Use a header file that comes with gcc, so configuring glibc 7422 # with a fresh cross-compiler works. 7423 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7424 # <limits.h> exists even on freestanding compilers. 7425 # On the NeXT, cc -E runs the code through the compiler's parser, 7426 # not just through cpp. "Syntax error" is here to catch this case. 7427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7428/* end confdefs.h. */ 7429#ifdef __STDC__ 7430# include <limits.h> 7431#else 7432# include <assert.h> 7433#endif 7434 Syntax error 7435_ACEOF 7436if ac_fn_c_try_cpp "$LINENO"; then : 7437 7438else 7439 # Broken: fails on valid input. 7440continue 7441fi 7442rm -f conftest.err conftest.i conftest.$ac_ext 7443 7444 # OK, works on sane cases. Now check whether nonexistent headers 7445 # can be detected and how. 7446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7447/* end confdefs.h. */ 7448#include <ac_nonexistent.h> 7449_ACEOF 7450if ac_fn_c_try_cpp "$LINENO"; then : 7451 # Broken: success on invalid input. 7452continue 7453else 7454 # Passes both tests. 7455ac_preproc_ok=: 7456break 7457fi 7458rm -f conftest.err conftest.i conftest.$ac_ext 7459 7460done 7461# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7462rm -f conftest.i conftest.err conftest.$ac_ext 7463if $ac_preproc_ok; then : 7464 break 7465fi 7466 7467 done 7468 ac_cv_prog_CPP=$CPP 7469 7470fi 7471 CPP=$ac_cv_prog_CPP 7472else 7473 ac_cv_prog_CPP=$CPP 7474fi 7475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7476$as_echo "$CPP" >&6; } 7477ac_preproc_ok=false 7478for ac_c_preproc_warn_flag in '' yes 7479do 7480 # Use a header file that comes with gcc, so configuring glibc 7481 # with a fresh cross-compiler works. 7482 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7483 # <limits.h> exists even on freestanding compilers. 7484 # On the NeXT, cc -E runs the code through the compiler's parser, 7485 # not just through cpp. "Syntax error" is here to catch this case. 7486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7487/* end confdefs.h. */ 7488#ifdef __STDC__ 7489# include <limits.h> 7490#else 7491# include <assert.h> 7492#endif 7493 Syntax error 7494_ACEOF 7495if ac_fn_c_try_cpp "$LINENO"; then : 7496 7497else 7498 # Broken: fails on valid input. 7499continue 7500fi 7501rm -f conftest.err conftest.i conftest.$ac_ext 7502 7503 # OK, works on sane cases. Now check whether nonexistent headers 7504 # can be detected and how. 7505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7506/* end confdefs.h. */ 7507#include <ac_nonexistent.h> 7508_ACEOF 7509if ac_fn_c_try_cpp "$LINENO"; then : 7510 # Broken: success on invalid input. 7511continue 7512else 7513 # Passes both tests. 7514ac_preproc_ok=: 7515break 7516fi 7517rm -f conftest.err conftest.i conftest.$ac_ext 7518 7519done 7520# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7521rm -f conftest.i conftest.err conftest.$ac_ext 7522if $ac_preproc_ok; then : 7523 7524else 7525 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7526$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7527as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7528See \`config.log' for more details" "$LINENO" 5; } 7529fi 7530 7531ac_ext=c 7532ac_cpp='$CPP $CPPFLAGS' 7533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7535ac_compiler_gnu=$ac_cv_c_compiler_gnu 7536 7537 7538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7539$as_echo_n "checking for ANSI C header files... " >&6; } 7540if ${ac_cv_header_stdc+:} false; then : 7541 $as_echo_n "(cached) " >&6 7542else 7543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7544/* end confdefs.h. */ 7545#include <stdlib.h> 7546#include <stdarg.h> 7547#include <string.h> 7548#include <float.h> 7549 7550int 7551main () 7552{ 7553 7554 ; 7555 return 0; 7556} 7557_ACEOF 7558if ac_fn_c_try_compile "$LINENO"; then : 7559 ac_cv_header_stdc=yes 7560else 7561 ac_cv_header_stdc=no 7562fi 7563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7564 7565if test $ac_cv_header_stdc = yes; then 7566 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7568/* end confdefs.h. */ 7569#include <string.h> 7570 7571_ACEOF 7572if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7573 $EGREP "memchr" >/dev/null 2>&1; then : 7574 7575else 7576 ac_cv_header_stdc=no 7577fi 7578rm -f conftest* 7579 7580fi 7581 7582if test $ac_cv_header_stdc = yes; then 7583 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7585/* end confdefs.h. */ 7586#include <stdlib.h> 7587 7588_ACEOF 7589if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7590 $EGREP "free" >/dev/null 2>&1; then : 7591 7592else 7593 ac_cv_header_stdc=no 7594fi 7595rm -f conftest* 7596 7597fi 7598 7599if test $ac_cv_header_stdc = yes; then 7600 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7601 if test "$cross_compiling" = yes; then : 7602 : 7603else 7604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7605/* end confdefs.h. */ 7606#include <ctype.h> 7607#include <stdlib.h> 7608#if ((' ' & 0x0FF) == 0x020) 7609# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7610# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7611#else 7612# define ISLOWER(c) \ 7613 (('a' <= (c) && (c) <= 'i') \ 7614 || ('j' <= (c) && (c) <= 'r') \ 7615 || ('s' <= (c) && (c) <= 'z')) 7616# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7617#endif 7618 7619#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7620int 7621main () 7622{ 7623 int i; 7624 for (i = 0; i < 256; i++) 7625 if (XOR (islower (i), ISLOWER (i)) 7626 || toupper (i) != TOUPPER (i)) 7627 return 2; 7628 return 0; 7629} 7630_ACEOF 7631if ac_fn_c_try_run "$LINENO"; then : 7632 7633else 7634 ac_cv_header_stdc=no 7635fi 7636rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7637 conftest.$ac_objext conftest.beam conftest.$ac_ext 7638fi 7639 7640fi 7641fi 7642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7643$as_echo "$ac_cv_header_stdc" >&6; } 7644if test $ac_cv_header_stdc = yes; then 7645 7646$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7647 7648fi 7649 7650# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7651for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7652 inttypes.h stdint.h unistd.h 7653do : 7654 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7655ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7656" 7657if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7658 cat >>confdefs.h <<_ACEOF 7659#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7660_ACEOF 7661 7662fi 7663 7664done 7665 7666 7667for ac_header in dlfcn.h 7668do : 7669 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7670" 7671if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7672 cat >>confdefs.h <<_ACEOF 7673#define HAVE_DLFCN_H 1 7674_ACEOF 7675 7676fi 7677 7678done 7679 7680 7681 7682 7683 7684# Set options 7685 7686 7687 7688 enable_dlopen=no 7689 7690 7691 enable_win32_dll=no 7692 7693 7694 # Check whether --enable-shared was given. 7695if test "${enable_shared+set}" = set; then : 7696 enableval=$enable_shared; p=${PACKAGE-default} 7697 case $enableval in 7698 yes) enable_shared=yes ;; 7699 no) enable_shared=no ;; 7700 *) 7701 enable_shared=no 7702 # Look at the argument we got. We use all the common list separators. 7703 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7704 for pkg in $enableval; do 7705 IFS=$lt_save_ifs 7706 if test "X$pkg" = "X$p"; then 7707 enable_shared=yes 7708 fi 7709 done 7710 IFS=$lt_save_ifs 7711 ;; 7712 esac 7713else 7714 enable_shared=yes 7715fi 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 # Check whether --enable-static was given. 7726if test "${enable_static+set}" = set; then : 7727 enableval=$enable_static; p=${PACKAGE-default} 7728 case $enableval in 7729 yes) enable_static=yes ;; 7730 no) enable_static=no ;; 7731 *) 7732 enable_static=no 7733 # Look at the argument we got. We use all the common list separators. 7734 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7735 for pkg in $enableval; do 7736 IFS=$lt_save_ifs 7737 if test "X$pkg" = "X$p"; then 7738 enable_static=yes 7739 fi 7740 done 7741 IFS=$lt_save_ifs 7742 ;; 7743 esac 7744else 7745 enable_static=yes 7746fi 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757# Check whether --with-pic was given. 7758if test "${with_pic+set}" = set; then : 7759 withval=$with_pic; lt_p=${PACKAGE-default} 7760 case $withval in 7761 yes|no) pic_mode=$withval ;; 7762 *) 7763 pic_mode=default 7764 # Look at the argument we got. We use all the common list separators. 7765 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7766 for lt_pkg in $withval; do 7767 IFS=$lt_save_ifs 7768 if test "X$lt_pkg" = "X$lt_p"; then 7769 pic_mode=yes 7770 fi 7771 done 7772 IFS=$lt_save_ifs 7773 ;; 7774 esac 7775else 7776 pic_mode=default 7777fi 7778 7779 7780 7781 7782 7783 7784 7785 7786 # Check whether --enable-fast-install was given. 7787if test "${enable_fast_install+set}" = set; then : 7788 enableval=$enable_fast_install; p=${PACKAGE-default} 7789 case $enableval in 7790 yes) enable_fast_install=yes ;; 7791 no) enable_fast_install=no ;; 7792 *) 7793 enable_fast_install=no 7794 # Look at the argument we got. We use all the common list separators. 7795 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7796 for pkg in $enableval; do 7797 IFS=$lt_save_ifs 7798 if test "X$pkg" = "X$p"; then 7799 enable_fast_install=yes 7800 fi 7801 done 7802 IFS=$lt_save_ifs 7803 ;; 7804 esac 7805else 7806 enable_fast_install=yes 7807fi 7808 7809 7810 7811 7812 7813 7814 7815 7816 shared_archive_member_spec= 7817case $host,$enable_shared in 7818power*-*-aix[5-9]*,yes) 7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 7820$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 7821 7822# Check whether --with-aix-soname was given. 7823if test "${with_aix_soname+set}" = set; then : 7824 withval=$with_aix_soname; case $withval in 7825 aix|svr4|both) 7826 ;; 7827 *) 7828 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 7829 ;; 7830 esac 7831 lt_cv_with_aix_soname=$with_aix_soname 7832else 7833 if ${lt_cv_with_aix_soname+:} false; then : 7834 $as_echo_n "(cached) " >&6 7835else 7836 lt_cv_with_aix_soname=aix 7837fi 7838 7839 with_aix_soname=$lt_cv_with_aix_soname 7840fi 7841 7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 7843$as_echo "$with_aix_soname" >&6; } 7844 if test aix != "$with_aix_soname"; then 7845 # For the AIX way of multilib, we name the shared archive member 7846 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 7847 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 7848 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 7849 # the AIX toolchain works better with OBJECT_MODE set (default 32). 7850 if test 64 = "${OBJECT_MODE-32}"; then 7851 shared_archive_member_spec=shr_64 7852 else 7853 shared_archive_member_spec=shr 7854 fi 7855 fi 7856 ;; 7857*) 7858 with_aix_soname=aix 7859 ;; 7860esac 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871# This can be used to rebuild libtool when needed 7872LIBTOOL_DEPS=$ltmain 7873 7874# Always use our own libtool. 7875LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906test -z "$LN_S" && LN_S="ln -s" 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921if test -n "${ZSH_VERSION+set}"; then 7922 setopt NO_GLOB_SUBST 7923fi 7924 7925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7926$as_echo_n "checking for objdir... " >&6; } 7927if ${lt_cv_objdir+:} false; then : 7928 $as_echo_n "(cached) " >&6 7929else 7930 rm -f .libs 2>/dev/null 7931mkdir .libs 2>/dev/null 7932if test -d .libs; then 7933 lt_cv_objdir=.libs 7934else 7935 # MS-DOS does not allow filenames that begin with a dot. 7936 lt_cv_objdir=_libs 7937fi 7938rmdir .libs 2>/dev/null 7939fi 7940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7941$as_echo "$lt_cv_objdir" >&6; } 7942objdir=$lt_cv_objdir 7943 7944 7945 7946 7947 7948cat >>confdefs.h <<_ACEOF 7949#define LT_OBJDIR "$lt_cv_objdir/" 7950_ACEOF 7951 7952 7953 7954 7955case $host_os in 7956aix3*) 7957 # AIX sometimes has problems with the GCC collect2 program. For some 7958 # reason, if we set the COLLECT_NAMES environment variable, the problems 7959 # vanish in a puff of smoke. 7960 if test set != "${COLLECT_NAMES+set}"; then 7961 COLLECT_NAMES= 7962 export COLLECT_NAMES 7963 fi 7964 ;; 7965esac 7966 7967# Global variables: 7968ofile=libtool 7969can_build_shared=yes 7970 7971# All known linkers require a '.a' archive for static linking (except MSVC, 7972# which needs '.lib'). 7973libext=a 7974 7975with_gnu_ld=$lt_cv_prog_gnu_ld 7976 7977old_CC=$CC 7978old_CFLAGS=$CFLAGS 7979 7980# Set sane defaults for various variables 7981test -z "$CC" && CC=cc 7982test -z "$LTCC" && LTCC=$CC 7983test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7984test -z "$LD" && LD=ld 7985test -z "$ac_objext" && ac_objext=o 7986 7987func_cc_basename $compiler 7988cc_basename=$func_cc_basename_result 7989 7990 7991# Only perform the check for file, if the check method requires it 7992test -z "$MAGIC_CMD" && MAGIC_CMD=file 7993case $deplibs_check_method in 7994file_magic*) 7995 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7997$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7998if ${lt_cv_path_MAGIC_CMD+:} false; then : 7999 $as_echo_n "(cached) " >&6 8000else 8001 case $MAGIC_CMD in 8002[\\/*] | ?:[\\/]*) 8003 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8004 ;; 8005*) 8006 lt_save_MAGIC_CMD=$MAGIC_CMD 8007 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8008 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8009 for ac_dir in $ac_dummy; do 8010 IFS=$lt_save_ifs 8011 test -z "$ac_dir" && ac_dir=. 8012 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8013 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8014 if test -n "$file_magic_test_file"; then 8015 case $deplibs_check_method in 8016 "file_magic "*) 8017 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8018 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8019 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8020 $EGREP "$file_magic_regex" > /dev/null; then 8021 : 8022 else 8023 cat <<_LT_EOF 1>&2 8024 8025*** Warning: the command libtool uses to detect shared libraries, 8026*** $file_magic_cmd, produces output that libtool cannot recognize. 8027*** The result is that libtool may fail to recognize shared libraries 8028*** as such. This will affect the creation of libtool libraries that 8029*** depend on shared libraries, but programs linked with such libtool 8030*** libraries will work regardless of this problem. Nevertheless, you 8031*** may want to report the problem to your system manager and/or to 8032*** bug-libtool@gnu.org 8033 8034_LT_EOF 8035 fi ;; 8036 esac 8037 fi 8038 break 8039 fi 8040 done 8041 IFS=$lt_save_ifs 8042 MAGIC_CMD=$lt_save_MAGIC_CMD 8043 ;; 8044esac 8045fi 8046 8047MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8048if test -n "$MAGIC_CMD"; then 8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8050$as_echo "$MAGIC_CMD" >&6; } 8051else 8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8053$as_echo "no" >&6; } 8054fi 8055 8056 8057 8058 8059 8060if test -z "$lt_cv_path_MAGIC_CMD"; then 8061 if test -n "$ac_tool_prefix"; then 8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8063$as_echo_n "checking for file... " >&6; } 8064if ${lt_cv_path_MAGIC_CMD+:} false; then : 8065 $as_echo_n "(cached) " >&6 8066else 8067 case $MAGIC_CMD in 8068[\\/*] | ?:[\\/]*) 8069 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8070 ;; 8071*) 8072 lt_save_MAGIC_CMD=$MAGIC_CMD 8073 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8074 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8075 for ac_dir in $ac_dummy; do 8076 IFS=$lt_save_ifs 8077 test -z "$ac_dir" && ac_dir=. 8078 if test -f "$ac_dir/file"; then 8079 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8080 if test -n "$file_magic_test_file"; then 8081 case $deplibs_check_method in 8082 "file_magic "*) 8083 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8084 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8085 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8086 $EGREP "$file_magic_regex" > /dev/null; then 8087 : 8088 else 8089 cat <<_LT_EOF 1>&2 8090 8091*** Warning: the command libtool uses to detect shared libraries, 8092*** $file_magic_cmd, produces output that libtool cannot recognize. 8093*** The result is that libtool may fail to recognize shared libraries 8094*** as such. This will affect the creation of libtool libraries that 8095*** depend on shared libraries, but programs linked with such libtool 8096*** libraries will work regardless of this problem. Nevertheless, you 8097*** may want to report the problem to your system manager and/or to 8098*** bug-libtool@gnu.org 8099 8100_LT_EOF 8101 fi ;; 8102 esac 8103 fi 8104 break 8105 fi 8106 done 8107 IFS=$lt_save_ifs 8108 MAGIC_CMD=$lt_save_MAGIC_CMD 8109 ;; 8110esac 8111fi 8112 8113MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8114if test -n "$MAGIC_CMD"; then 8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8116$as_echo "$MAGIC_CMD" >&6; } 8117else 8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8119$as_echo "no" >&6; } 8120fi 8121 8122 8123 else 8124 MAGIC_CMD=: 8125 fi 8126fi 8127 8128 fi 8129 ;; 8130esac 8131 8132# Use C for the default configuration in the libtool script 8133 8134lt_save_CC=$CC 8135ac_ext=c 8136ac_cpp='$CPP $CPPFLAGS' 8137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8139ac_compiler_gnu=$ac_cv_c_compiler_gnu 8140 8141 8142# Source file extension for C test sources. 8143ac_ext=c 8144 8145# Object file extension for compiled C test sources. 8146objext=o 8147objext=$objext 8148 8149# Code to be used in simple compile tests 8150lt_simple_compile_test_code="int some_variable = 0;" 8151 8152# Code to be used in simple link tests 8153lt_simple_link_test_code='int main(){return(0);}' 8154 8155 8156 8157 8158 8159 8160 8161# If no C compiler was specified, use CC. 8162LTCC=${LTCC-"$CC"} 8163 8164# If no C compiler flags were specified, use CFLAGS. 8165LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8166 8167# Allow CC to be a program name with arguments. 8168compiler=$CC 8169 8170# Save the default compiler, since it gets overwritten when the other 8171# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8172compiler_DEFAULT=$CC 8173 8174# save warnings/boilerplate of simple test code 8175ac_outfile=conftest.$ac_objext 8176echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8177eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8178_lt_compiler_boilerplate=`cat conftest.err` 8179$RM conftest* 8180 8181ac_outfile=conftest.$ac_objext 8182echo "$lt_simple_link_test_code" >conftest.$ac_ext 8183eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8184_lt_linker_boilerplate=`cat conftest.err` 8185$RM -r conftest* 8186 8187 8188## CAVEAT EMPTOR: 8189## There is no encapsulation within the following macros, do not change 8190## the running order or otherwise move them around unless you know exactly 8191## what you are doing... 8192if test -n "$compiler"; then 8193 8194lt_prog_compiler_no_builtin_flag= 8195 8196if test yes = "$GCC"; then 8197 case $cc_basename in 8198 nvcc*) 8199 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8200 *) 8201 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8202 esac 8203 8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8205$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8206if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8207 $as_echo_n "(cached) " >&6 8208else 8209 lt_cv_prog_compiler_rtti_exceptions=no 8210 ac_outfile=conftest.$ac_objext 8211 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8212 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8213 # Insert the option either (1) after the last *FLAGS variable, or 8214 # (2) before a word containing "conftest.", or (3) at the end. 8215 # Note that $ac_compile itself does not contain backslashes and begins 8216 # with a dollar sign (not a hyphen), so the echo should work correctly. 8217 # The option is referenced via a variable to avoid confusing sed. 8218 lt_compile=`echo "$ac_compile" | $SED \ 8219 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8220 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8221 -e 's:$: $lt_compiler_flag:'` 8222 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8223 (eval "$lt_compile" 2>conftest.err) 8224 ac_status=$? 8225 cat conftest.err >&5 8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8227 if (exit $ac_status) && test -s "$ac_outfile"; then 8228 # The compiler can only warn and ignore the option if not recognized 8229 # So say no if there are warnings other than the usual output. 8230 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8231 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8232 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8233 lt_cv_prog_compiler_rtti_exceptions=yes 8234 fi 8235 fi 8236 $RM conftest* 8237 8238fi 8239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8240$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8241 8242if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8243 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8244else 8245 : 8246fi 8247 8248fi 8249 8250 8251 8252 8253 8254 8255 lt_prog_compiler_wl= 8256lt_prog_compiler_pic= 8257lt_prog_compiler_static= 8258 8259 8260 if test yes = "$GCC"; then 8261 lt_prog_compiler_wl='-Wl,' 8262 lt_prog_compiler_static='-static' 8263 8264 case $host_os in 8265 aix*) 8266 # All AIX code is PIC. 8267 if test ia64 = "$host_cpu"; then 8268 # AIX 5 now supports IA64 processor 8269 lt_prog_compiler_static='-Bstatic' 8270 fi 8271 lt_prog_compiler_pic='-fPIC' 8272 ;; 8273 8274 amigaos*) 8275 case $host_cpu in 8276 powerpc) 8277 # see comment about AmigaOS4 .so support 8278 lt_prog_compiler_pic='-fPIC' 8279 ;; 8280 m68k) 8281 # FIXME: we need at least 68020 code to build shared libraries, but 8282 # adding the '-m68020' flag to GCC prevents building anything better, 8283 # like '-m68040'. 8284 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8285 ;; 8286 esac 8287 ;; 8288 8289 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8290 # PIC is the default for these OSes. 8291 ;; 8292 8293 mingw* | cygwin* | pw32* | os2* | cegcc*) 8294 # This hack is so that the source file can tell whether it is being 8295 # built for inclusion in a dll (and should export symbols for example). 8296 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8297 # (--disable-auto-import) libraries 8298 lt_prog_compiler_pic='-DDLL_EXPORT' 8299 case $host_os in 8300 os2*) 8301 lt_prog_compiler_static='$wl-static' 8302 ;; 8303 esac 8304 ;; 8305 8306 darwin* | rhapsody*) 8307 # PIC is the default on this platform 8308 # Common symbols not allowed in MH_DYLIB files 8309 lt_prog_compiler_pic='-fno-common' 8310 ;; 8311 8312 haiku*) 8313 # PIC is the default for Haiku. 8314 # The "-static" flag exists, but is broken. 8315 lt_prog_compiler_static= 8316 ;; 8317 8318 hpux*) 8319 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8320 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8321 # sets the default TLS model and affects inlining. 8322 case $host_cpu in 8323 hppa*64*) 8324 # +Z the default 8325 ;; 8326 *) 8327 lt_prog_compiler_pic='-fPIC' 8328 ;; 8329 esac 8330 ;; 8331 8332 interix[3-9]*) 8333 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8334 # Instead, we relocate shared libraries at runtime. 8335 ;; 8336 8337 msdosdjgpp*) 8338 # Just because we use GCC doesn't mean we suddenly get shared libraries 8339 # on systems that don't support them. 8340 lt_prog_compiler_can_build_shared=no 8341 enable_shared=no 8342 ;; 8343 8344 *nto* | *qnx*) 8345 # QNX uses GNU C++, but need to define -shared option too, otherwise 8346 # it will coredump. 8347 lt_prog_compiler_pic='-fPIC -shared' 8348 ;; 8349 8350 sysv4*MP*) 8351 if test -d /usr/nec; then 8352 lt_prog_compiler_pic=-Kconform_pic 8353 fi 8354 ;; 8355 8356 *) 8357 lt_prog_compiler_pic='-fPIC' 8358 ;; 8359 esac 8360 8361 case $cc_basename in 8362 nvcc*) # Cuda Compiler Driver 2.2 8363 lt_prog_compiler_wl='-Xlinker ' 8364 if test -n "$lt_prog_compiler_pic"; then 8365 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8366 fi 8367 ;; 8368 esac 8369 else 8370 # PORTME Check for flag to pass linker flags through the system compiler. 8371 case $host_os in 8372 aix*) 8373 lt_prog_compiler_wl='-Wl,' 8374 if test ia64 = "$host_cpu"; then 8375 # AIX 5 now supports IA64 processor 8376 lt_prog_compiler_static='-Bstatic' 8377 else 8378 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8379 fi 8380 ;; 8381 8382 darwin* | rhapsody*) 8383 # PIC is the default on this platform 8384 # Common symbols not allowed in MH_DYLIB files 8385 lt_prog_compiler_pic='-fno-common' 8386 case $cc_basename in 8387 nagfor*) 8388 # NAG Fortran compiler 8389 lt_prog_compiler_wl='-Wl,-Wl,,' 8390 lt_prog_compiler_pic='-PIC' 8391 lt_prog_compiler_static='-Bstatic' 8392 ;; 8393 esac 8394 ;; 8395 8396 mingw* | cygwin* | pw32* | os2* | cegcc*) 8397 # This hack is so that the source file can tell whether it is being 8398 # built for inclusion in a dll (and should export symbols for example). 8399 lt_prog_compiler_pic='-DDLL_EXPORT' 8400 case $host_os in 8401 os2*) 8402 lt_prog_compiler_static='$wl-static' 8403 ;; 8404 esac 8405 ;; 8406 8407 hpux9* | hpux10* | hpux11*) 8408 lt_prog_compiler_wl='-Wl,' 8409 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8410 # not for PA HP-UX. 8411 case $host_cpu in 8412 hppa*64*|ia64*) 8413 # +Z the default 8414 ;; 8415 *) 8416 lt_prog_compiler_pic='+Z' 8417 ;; 8418 esac 8419 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8420 lt_prog_compiler_static='$wl-a ${wl}archive' 8421 ;; 8422 8423 irix5* | irix6* | nonstopux*) 8424 lt_prog_compiler_wl='-Wl,' 8425 # PIC (with -KPIC) is the default. 8426 lt_prog_compiler_static='-non_shared' 8427 ;; 8428 8429 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8430 case $cc_basename in 8431 # old Intel for x86_64, which still supported -KPIC. 8432 ecc*) 8433 lt_prog_compiler_wl='-Wl,' 8434 lt_prog_compiler_pic='-KPIC' 8435 lt_prog_compiler_static='-static' 8436 ;; 8437 # icc used to be incompatible with GCC. 8438 # ICC 10 doesn't accept -KPIC any more. 8439 icc* | ifort*) 8440 lt_prog_compiler_wl='-Wl,' 8441 lt_prog_compiler_pic='-fPIC' 8442 lt_prog_compiler_static='-static' 8443 ;; 8444 # Lahey Fortran 8.1. 8445 lf95*) 8446 lt_prog_compiler_wl='-Wl,' 8447 lt_prog_compiler_pic='--shared' 8448 lt_prog_compiler_static='--static' 8449 ;; 8450 nagfor*) 8451 # NAG Fortran compiler 8452 lt_prog_compiler_wl='-Wl,-Wl,,' 8453 lt_prog_compiler_pic='-PIC' 8454 lt_prog_compiler_static='-Bstatic' 8455 ;; 8456 tcc*) 8457 # Fabrice Bellard et al's Tiny C Compiler 8458 lt_prog_compiler_wl='-Wl,' 8459 lt_prog_compiler_pic='-fPIC' 8460 lt_prog_compiler_static='-static' 8461 ;; 8462 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8463 # Portland Group compilers (*not* the Pentium gcc compiler, 8464 # which looks to be a dead project) 8465 lt_prog_compiler_wl='-Wl,' 8466 lt_prog_compiler_pic='-fpic' 8467 lt_prog_compiler_static='-Bstatic' 8468 ;; 8469 ccc*) 8470 lt_prog_compiler_wl='-Wl,' 8471 # All Alpha code is PIC. 8472 lt_prog_compiler_static='-non_shared' 8473 ;; 8474 xl* | bgxl* | bgf* | mpixl*) 8475 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8476 lt_prog_compiler_wl='-Wl,' 8477 lt_prog_compiler_pic='-qpic' 8478 lt_prog_compiler_static='-qstaticlink' 8479 ;; 8480 *) 8481 case `$CC -V 2>&1 | sed 5q` in 8482 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8483 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8484 lt_prog_compiler_pic='-KPIC' 8485 lt_prog_compiler_static='-Bstatic' 8486 lt_prog_compiler_wl='' 8487 ;; 8488 *Sun\ F* | *Sun*Fortran*) 8489 lt_prog_compiler_pic='-KPIC' 8490 lt_prog_compiler_static='-Bstatic' 8491 lt_prog_compiler_wl='-Qoption ld ' 8492 ;; 8493 *Sun\ C*) 8494 # Sun C 5.9 8495 lt_prog_compiler_pic='-KPIC' 8496 lt_prog_compiler_static='-Bstatic' 8497 lt_prog_compiler_wl='-Wl,' 8498 ;; 8499 *Intel*\ [CF]*Compiler*) 8500 lt_prog_compiler_wl='-Wl,' 8501 lt_prog_compiler_pic='-fPIC' 8502 lt_prog_compiler_static='-static' 8503 ;; 8504 *Portland\ Group*) 8505 lt_prog_compiler_wl='-Wl,' 8506 lt_prog_compiler_pic='-fpic' 8507 lt_prog_compiler_static='-Bstatic' 8508 ;; 8509 esac 8510 ;; 8511 esac 8512 ;; 8513 8514 newsos6) 8515 lt_prog_compiler_pic='-KPIC' 8516 lt_prog_compiler_static='-Bstatic' 8517 ;; 8518 8519 *nto* | *qnx*) 8520 # QNX uses GNU C++, but need to define -shared option too, otherwise 8521 # it will coredump. 8522 lt_prog_compiler_pic='-fPIC -shared' 8523 ;; 8524 8525 osf3* | osf4* | osf5*) 8526 lt_prog_compiler_wl='-Wl,' 8527 # All OSF/1 code is PIC. 8528 lt_prog_compiler_static='-non_shared' 8529 ;; 8530 8531 rdos*) 8532 lt_prog_compiler_static='-non_shared' 8533 ;; 8534 8535 solaris*) 8536 lt_prog_compiler_pic='-KPIC' 8537 lt_prog_compiler_static='-Bstatic' 8538 case $cc_basename in 8539 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8540 lt_prog_compiler_wl='-Qoption ld ';; 8541 *) 8542 lt_prog_compiler_wl='-Wl,';; 8543 esac 8544 ;; 8545 8546 sunos4*) 8547 lt_prog_compiler_wl='-Qoption ld ' 8548 lt_prog_compiler_pic='-PIC' 8549 lt_prog_compiler_static='-Bstatic' 8550 ;; 8551 8552 sysv4 | sysv4.2uw2* | sysv4.3*) 8553 lt_prog_compiler_wl='-Wl,' 8554 lt_prog_compiler_pic='-KPIC' 8555 lt_prog_compiler_static='-Bstatic' 8556 ;; 8557 8558 sysv4*MP*) 8559 if test -d /usr/nec; then 8560 lt_prog_compiler_pic='-Kconform_pic' 8561 lt_prog_compiler_static='-Bstatic' 8562 fi 8563 ;; 8564 8565 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8566 lt_prog_compiler_wl='-Wl,' 8567 lt_prog_compiler_pic='-KPIC' 8568 lt_prog_compiler_static='-Bstatic' 8569 ;; 8570 8571 unicos*) 8572 lt_prog_compiler_wl='-Wl,' 8573 lt_prog_compiler_can_build_shared=no 8574 ;; 8575 8576 uts4*) 8577 lt_prog_compiler_pic='-pic' 8578 lt_prog_compiler_static='-Bstatic' 8579 ;; 8580 8581 *) 8582 lt_prog_compiler_can_build_shared=no 8583 ;; 8584 esac 8585 fi 8586 8587case $host_os in 8588 # For platforms that do not support PIC, -DPIC is meaningless: 8589 *djgpp*) 8590 lt_prog_compiler_pic= 8591 ;; 8592 *) 8593 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8594 ;; 8595esac 8596 8597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8598$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8599if ${lt_cv_prog_compiler_pic+:} false; then : 8600 $as_echo_n "(cached) " >&6 8601else 8602 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8603fi 8604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8605$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8606lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8607 8608# 8609# Check to make sure the PIC flag actually works. 8610# 8611if test -n "$lt_prog_compiler_pic"; then 8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8613$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8614if ${lt_cv_prog_compiler_pic_works+:} false; then : 8615 $as_echo_n "(cached) " >&6 8616else 8617 lt_cv_prog_compiler_pic_works=no 8618 ac_outfile=conftest.$ac_objext 8619 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8620 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8621 # Insert the option either (1) after the last *FLAGS variable, or 8622 # (2) before a word containing "conftest.", or (3) at the end. 8623 # Note that $ac_compile itself does not contain backslashes and begins 8624 # with a dollar sign (not a hyphen), so the echo should work correctly. 8625 # The option is referenced via a variable to avoid confusing sed. 8626 lt_compile=`echo "$ac_compile" | $SED \ 8627 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8628 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8629 -e 's:$: $lt_compiler_flag:'` 8630 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8631 (eval "$lt_compile" 2>conftest.err) 8632 ac_status=$? 8633 cat conftest.err >&5 8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8635 if (exit $ac_status) && test -s "$ac_outfile"; then 8636 # The compiler can only warn and ignore the option if not recognized 8637 # So say no if there are warnings other than the usual output. 8638 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8639 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8640 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8641 lt_cv_prog_compiler_pic_works=yes 8642 fi 8643 fi 8644 $RM conftest* 8645 8646fi 8647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8648$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8649 8650if test yes = "$lt_cv_prog_compiler_pic_works"; then 8651 case $lt_prog_compiler_pic in 8652 "" | " "*) ;; 8653 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8654 esac 8655else 8656 lt_prog_compiler_pic= 8657 lt_prog_compiler_can_build_shared=no 8658fi 8659 8660fi 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672# 8673# Check to make sure the static flag actually works. 8674# 8675wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8677$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8678if ${lt_cv_prog_compiler_static_works+:} false; then : 8679 $as_echo_n "(cached) " >&6 8680else 8681 lt_cv_prog_compiler_static_works=no 8682 save_LDFLAGS=$LDFLAGS 8683 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8684 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8685 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8686 # The linker can only warn and ignore the option if not recognized 8687 # So say no if there are warnings 8688 if test -s conftest.err; then 8689 # Append any errors to the config.log. 8690 cat conftest.err 1>&5 8691 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8692 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8693 if diff conftest.exp conftest.er2 >/dev/null; then 8694 lt_cv_prog_compiler_static_works=yes 8695 fi 8696 else 8697 lt_cv_prog_compiler_static_works=yes 8698 fi 8699 fi 8700 $RM -r conftest* 8701 LDFLAGS=$save_LDFLAGS 8702 8703fi 8704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8705$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8706 8707if test yes = "$lt_cv_prog_compiler_static_works"; then 8708 : 8709else 8710 lt_prog_compiler_static= 8711fi 8712 8713 8714 8715 8716 8717 8718 8719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8720$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8721if ${lt_cv_prog_compiler_c_o+:} false; then : 8722 $as_echo_n "(cached) " >&6 8723else 8724 lt_cv_prog_compiler_c_o=no 8725 $RM -r conftest 2>/dev/null 8726 mkdir conftest 8727 cd conftest 8728 mkdir out 8729 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8730 8731 lt_compiler_flag="-o out/conftest2.$ac_objext" 8732 # Insert the option either (1) after the last *FLAGS variable, or 8733 # (2) before a word containing "conftest.", or (3) at the end. 8734 # Note that $ac_compile itself does not contain backslashes and begins 8735 # with a dollar sign (not a hyphen), so the echo should work correctly. 8736 lt_compile=`echo "$ac_compile" | $SED \ 8737 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8738 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8739 -e 's:$: $lt_compiler_flag:'` 8740 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8741 (eval "$lt_compile" 2>out/conftest.err) 8742 ac_status=$? 8743 cat out/conftest.err >&5 8744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8745 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8746 then 8747 # The compiler can only warn and ignore the option if not recognized 8748 # So say no if there are warnings 8749 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8750 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8751 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8752 lt_cv_prog_compiler_c_o=yes 8753 fi 8754 fi 8755 chmod u+w . 2>&5 8756 $RM conftest* 8757 # SGI C++ compiler will create directory out/ii_files/ for 8758 # template instantiation 8759 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8760 $RM out/* && rmdir out 8761 cd .. 8762 $RM -r conftest 8763 $RM conftest* 8764 8765fi 8766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8767$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8768 8769 8770 8771 8772 8773 8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8775$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8776if ${lt_cv_prog_compiler_c_o+:} false; then : 8777 $as_echo_n "(cached) " >&6 8778else 8779 lt_cv_prog_compiler_c_o=no 8780 $RM -r conftest 2>/dev/null 8781 mkdir conftest 8782 cd conftest 8783 mkdir out 8784 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8785 8786 lt_compiler_flag="-o out/conftest2.$ac_objext" 8787 # Insert the option either (1) after the last *FLAGS variable, or 8788 # (2) before a word containing "conftest.", or (3) at the end. 8789 # Note that $ac_compile itself does not contain backslashes and begins 8790 # with a dollar sign (not a hyphen), so the echo should work correctly. 8791 lt_compile=`echo "$ac_compile" | $SED \ 8792 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8793 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8794 -e 's:$: $lt_compiler_flag:'` 8795 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8796 (eval "$lt_compile" 2>out/conftest.err) 8797 ac_status=$? 8798 cat out/conftest.err >&5 8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8800 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8801 then 8802 # The compiler can only warn and ignore the option if not recognized 8803 # So say no if there are warnings 8804 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8805 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8806 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8807 lt_cv_prog_compiler_c_o=yes 8808 fi 8809 fi 8810 chmod u+w . 2>&5 8811 $RM conftest* 8812 # SGI C++ compiler will create directory out/ii_files/ for 8813 # template instantiation 8814 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8815 $RM out/* && rmdir out 8816 cd .. 8817 $RM -r conftest 8818 $RM conftest* 8819 8820fi 8821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8822$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8823 8824 8825 8826 8827hard_links=nottested 8828if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 8829 # do not overwrite the value of need_locks provided by the user 8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8831$as_echo_n "checking if we can lock with hard links... " >&6; } 8832 hard_links=yes 8833 $RM conftest* 8834 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8835 touch conftest.a 8836 ln conftest.a conftest.b 2>&5 || hard_links=no 8837 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8839$as_echo "$hard_links" >&6; } 8840 if test no = "$hard_links"; then 8841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 8842$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 8843 need_locks=warn 8844 fi 8845else 8846 need_locks=no 8847fi 8848 8849 8850 8851 8852 8853 8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8855$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8856 8857 runpath_var= 8858 allow_undefined_flag= 8859 always_export_symbols=no 8860 archive_cmds= 8861 archive_expsym_cmds= 8862 compiler_needs_object=no 8863 enable_shared_with_static_runtimes=no 8864 export_dynamic_flag_spec= 8865 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8866 hardcode_automatic=no 8867 hardcode_direct=no 8868 hardcode_direct_absolute=no 8869 hardcode_libdir_flag_spec= 8870 hardcode_libdir_separator= 8871 hardcode_minus_L=no 8872 hardcode_shlibpath_var=unsupported 8873 inherit_rpath=no 8874 link_all_deplibs=unknown 8875 module_cmds= 8876 module_expsym_cmds= 8877 old_archive_from_new_cmds= 8878 old_archive_from_expsyms_cmds= 8879 thread_safe_flag_spec= 8880 whole_archive_flag_spec= 8881 # include_expsyms should be a list of space-separated symbols to be *always* 8882 # included in the symbol list 8883 include_expsyms= 8884 # exclude_expsyms can be an extended regexp of symbols to exclude 8885 # it will be wrapped by ' (' and ')$', so one must not match beginning or 8886 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 8887 # as well as any symbol that contains 'd'. 8888 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8889 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8890 # platforms (ab)use it in PIC code, but their linkers get confused if 8891 # the symbol is explicitly referenced. Since portable code cannot 8892 # rely on this symbol name, it's probably fine to never include it in 8893 # preloaded symbol tables. 8894 # Exclude shared library initialization/finalization symbols. 8895 extract_expsyms_cmds= 8896 8897 case $host_os in 8898 cygwin* | mingw* | pw32* | cegcc*) 8899 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8900 # When not using gcc, we currently assume that we are using 8901 # Microsoft Visual C++. 8902 if test yes != "$GCC"; then 8903 with_gnu_ld=no 8904 fi 8905 ;; 8906 interix*) 8907 # we just hope/assume this is gcc and not c89 (= MSVC++) 8908 with_gnu_ld=yes 8909 ;; 8910 openbsd* | bitrig*) 8911 with_gnu_ld=no 8912 ;; 8913 esac 8914 8915 ld_shlibs=yes 8916 8917 # On some targets, GNU ld is compatible enough with the native linker 8918 # that we're better off using the native interface for both. 8919 lt_use_gnu_ld_interface=no 8920 if test yes = "$with_gnu_ld"; then 8921 case $host_os in 8922 aix*) 8923 # The AIX port of GNU ld has always aspired to compatibility 8924 # with the native linker. However, as the warning in the GNU ld 8925 # block says, versions before 2.19.5* couldn't really create working 8926 # shared libraries, regardless of the interface used. 8927 case `$LD -v 2>&1` in 8928 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8929 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8930 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8931 *) 8932 lt_use_gnu_ld_interface=yes 8933 ;; 8934 esac 8935 ;; 8936 *) 8937 lt_use_gnu_ld_interface=yes 8938 ;; 8939 esac 8940 fi 8941 8942 if test yes = "$lt_use_gnu_ld_interface"; then 8943 # If archive_cmds runs LD, not CC, wlarc should be empty 8944 wlarc='$wl' 8945 8946 # Set some defaults for GNU ld with shared library support. These 8947 # are reset later if shared libraries are not supported. Putting them 8948 # here allows them to be overridden if necessary. 8949 runpath_var=LD_RUN_PATH 8950 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 8951 export_dynamic_flag_spec='$wl--export-dynamic' 8952 # ancient GNU ld didn't support --whole-archive et. al. 8953 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8954 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 8955 else 8956 whole_archive_flag_spec= 8957 fi 8958 supports_anon_versioning=no 8959 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 8960 *GNU\ gold*) supports_anon_versioning=yes ;; 8961 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8962 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8963 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8964 *\ 2.11.*) ;; # other 2.11 versions 8965 *) supports_anon_versioning=yes ;; 8966 esac 8967 8968 # See if GNU ld supports shared libraries. 8969 case $host_os in 8970 aix[3-9]*) 8971 # On AIX/PPC, the GNU linker is very broken 8972 if test ia64 != "$host_cpu"; then 8973 ld_shlibs=no 8974 cat <<_LT_EOF 1>&2 8975 8976*** Warning: the GNU linker, at least up to release 2.19, is reported 8977*** to be unable to reliably create shared libraries on AIX. 8978*** Therefore, libtool is disabling shared libraries support. If you 8979*** really care for shared libraries, you may want to install binutils 8980*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8981*** You will then need to restart the configuration process. 8982 8983_LT_EOF 8984 fi 8985 ;; 8986 8987 amigaos*) 8988 case $host_cpu in 8989 powerpc) 8990 # see comment about AmigaOS4 .so support 8991 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8992 archive_expsym_cmds='' 8993 ;; 8994 m68k) 8995 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)' 8996 hardcode_libdir_flag_spec='-L$libdir' 8997 hardcode_minus_L=yes 8998 ;; 8999 esac 9000 ;; 9001 9002 beos*) 9003 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9004 allow_undefined_flag=unsupported 9005 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9006 # support --undefined. This deserves some investigation. FIXME 9007 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9008 else 9009 ld_shlibs=no 9010 fi 9011 ;; 9012 9013 cygwin* | mingw* | pw32* | cegcc*) 9014 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9015 # as there is no search path for DLLs. 9016 hardcode_libdir_flag_spec='-L$libdir' 9017 export_dynamic_flag_spec='$wl--export-all-symbols' 9018 allow_undefined_flag=unsupported 9019 always_export_symbols=no 9020 enable_shared_with_static_runtimes=yes 9021 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' 9022 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9023 9024 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9025 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9026 # If the export-symbols file already is a .def file, use it as 9027 # is; otherwise, prepend EXPORTS... 9028 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9029 cp $export_symbols $output_objdir/$soname.def; 9030 else 9031 echo EXPORTS > $output_objdir/$soname.def; 9032 cat $export_symbols >> $output_objdir/$soname.def; 9033 fi~ 9034 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9035 else 9036 ld_shlibs=no 9037 fi 9038 ;; 9039 9040 haiku*) 9041 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9042 link_all_deplibs=yes 9043 ;; 9044 9045 os2*) 9046 hardcode_libdir_flag_spec='-L$libdir' 9047 hardcode_minus_L=yes 9048 allow_undefined_flag=unsupported 9049 shrext_cmds=.dll 9050 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9051 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9052 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9053 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9054 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9055 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9056 emximp -o $lib $output_objdir/$libname.def' 9057 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9058 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9059 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9060 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9061 prefix_cmds="$SED"~ 9062 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9063 prefix_cmds="$prefix_cmds -e 1d"; 9064 fi~ 9065 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9066 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9067 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9068 emximp -o $lib $output_objdir/$libname.def' 9069 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9070 enable_shared_with_static_runtimes=yes 9071 ;; 9072 9073 interix[3-9]*) 9074 hardcode_direct=no 9075 hardcode_shlibpath_var=no 9076 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9077 export_dynamic_flag_spec='$wl-E' 9078 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9079 # Instead, shared libraries are loaded at an image base (0x10000000 by 9080 # default) and relocated if they conflict, which is a slow very memory 9081 # consuming and fragmenting process. To avoid this, we pick a random, 9082 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9083 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9084 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9085 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' 9086 ;; 9087 9088 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9089 tmp_diet=no 9090 if test linux-dietlibc = "$host_os"; then 9091 case $cc_basename in 9092 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9093 esac 9094 fi 9095 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9096 && test no = "$tmp_diet" 9097 then 9098 tmp_addflag=' $pic_flag' 9099 tmp_sharedflag='-shared' 9100 case $cc_basename,$host_cpu in 9101 pgcc*) # Portland Group C compiler 9102 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' 9103 tmp_addflag=' $pic_flag' 9104 ;; 9105 pgf77* | pgf90* | pgf95* | pgfortran*) 9106 # Portland Group f77 and f90 compilers 9107 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' 9108 tmp_addflag=' $pic_flag -Mnomain' ;; 9109 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9110 tmp_addflag=' -i_dynamic' ;; 9111 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9112 tmp_addflag=' -i_dynamic -nofor_main' ;; 9113 ifc* | ifort*) # Intel Fortran compiler 9114 tmp_addflag=' -nofor_main' ;; 9115 lf95*) # Lahey Fortran 8.1 9116 whole_archive_flag_spec= 9117 tmp_sharedflag='--shared' ;; 9118 nagfor*) # NAGFOR 5.3 9119 tmp_sharedflag='-Wl,-shared' ;; 9120 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9121 tmp_sharedflag='-qmkshrobj' 9122 tmp_addflag= ;; 9123 nvcc*) # Cuda Compiler Driver 2.2 9124 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' 9125 compiler_needs_object=yes 9126 ;; 9127 esac 9128 case `$CC -V 2>&1 | sed 5q` in 9129 *Sun\ C*) # Sun C 5.9 9130 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' 9131 compiler_needs_object=yes 9132 tmp_sharedflag='-G' ;; 9133 *Sun\ F*) # Sun Fortran 8.3 9134 tmp_sharedflag='-G' ;; 9135 esac 9136 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9137 9138 if test yes = "$supports_anon_versioning"; then 9139 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9140 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9141 echo "local: *; };" >> $output_objdir/$libname.ver~ 9142 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9143 fi 9144 9145 case $cc_basename in 9146 tcc*) 9147 export_dynamic_flag_spec='-rdynamic' 9148 ;; 9149 xlf* | bgf* | bgxlf* | mpixlf*) 9150 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9151 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9152 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9153 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9154 if test yes = "$supports_anon_versioning"; then 9155 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9156 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9157 echo "local: *; };" >> $output_objdir/$libname.ver~ 9158 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9159 fi 9160 ;; 9161 esac 9162 else 9163 ld_shlibs=no 9164 fi 9165 ;; 9166 9167 netbsd*) 9168 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9169 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9170 wlarc= 9171 else 9172 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9173 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9174 fi 9175 ;; 9176 9177 solaris*) 9178 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9179 ld_shlibs=no 9180 cat <<_LT_EOF 1>&2 9181 9182*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9183*** create shared libraries on Solaris systems. Therefore, libtool 9184*** is disabling shared libraries support. We urge you to upgrade GNU 9185*** binutils to release 2.9.1 or newer. Another option is to modify 9186*** your PATH or compiler configuration so that the native linker is 9187*** used, and then restart. 9188 9189_LT_EOF 9190 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9191 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9192 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9193 else 9194 ld_shlibs=no 9195 fi 9196 ;; 9197 9198 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9199 case `$LD -v 2>&1` in 9200 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9201 ld_shlibs=no 9202 cat <<_LT_EOF 1>&2 9203 9204*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9205*** reliably create shared libraries on SCO systems. Therefore, libtool 9206*** is disabling shared libraries support. We urge you to upgrade GNU 9207*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9208*** your PATH or compiler configuration so that the native linker is 9209*** used, and then restart. 9210 9211_LT_EOF 9212 ;; 9213 *) 9214 # For security reasons, it is highly recommended that you always 9215 # use absolute paths for naming shared libraries, and exclude the 9216 # DT_RUNPATH tag from executables and libraries. But doing so 9217 # requires that you compile everything twice, which is a pain. 9218 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9219 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9220 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9221 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9222 else 9223 ld_shlibs=no 9224 fi 9225 ;; 9226 esac 9227 ;; 9228 9229 sunos4*) 9230 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9231 wlarc= 9232 hardcode_direct=yes 9233 hardcode_shlibpath_var=no 9234 ;; 9235 9236 *) 9237 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9238 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9239 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9240 else 9241 ld_shlibs=no 9242 fi 9243 ;; 9244 esac 9245 9246 if test no = "$ld_shlibs"; then 9247 runpath_var= 9248 hardcode_libdir_flag_spec= 9249 export_dynamic_flag_spec= 9250 whole_archive_flag_spec= 9251 fi 9252 else 9253 # PORTME fill in a description of your system's linker (not GNU ld) 9254 case $host_os in 9255 aix3*) 9256 allow_undefined_flag=unsupported 9257 always_export_symbols=yes 9258 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' 9259 # Note: this linker hardcodes the directories in LIBPATH if there 9260 # are no directories specified by -L. 9261 hardcode_minus_L=yes 9262 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9263 # Neither direct hardcoding nor static linking is supported with a 9264 # broken collect2. 9265 hardcode_direct=unsupported 9266 fi 9267 ;; 9268 9269 aix[4-9]*) 9270 if test ia64 = "$host_cpu"; then 9271 # On IA64, the linker does run time linking by default, so we don't 9272 # have to do anything special. 9273 aix_use_runtimelinking=no 9274 exp_sym_flag='-Bexport' 9275 no_entry_flag= 9276 else 9277 # If we're using GNU nm, then we don't want the "-C" option. 9278 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9279 # Without the "-l" option, or with the "-B" option, AIX nm treats 9280 # weak defined symbols like other global defined symbols, whereas 9281 # GNU nm marks them as "W". 9282 # While the 'weak' keyword is ignored in the Export File, we need 9283 # it in the Import File for the 'aix-soname' feature, so we have 9284 # to replace the "-B" option with "-P" for AIX nm. 9285 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9286 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' 9287 else 9288 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' 9289 fi 9290 aix_use_runtimelinking=no 9291 9292 # Test if we are trying to use run time linking or normal 9293 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9294 # have runtime linking enabled, and use it for executables. 9295 # For shared libraries, we enable/disable runtime linking 9296 # depending on the kind of the shared library created - 9297 # when "with_aix_soname,aix_use_runtimelinking" is: 9298 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9299 # "aix,yes" lib.so shared, rtl:yes, for executables 9300 # lib.a static archive 9301 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9302 # lib.a(lib.so.V) shared, rtl:no, for executables 9303 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9304 # lib.a(lib.so.V) shared, rtl:no 9305 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9306 # lib.a static archive 9307 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9308 for ld_flag in $LDFLAGS; do 9309 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9310 aix_use_runtimelinking=yes 9311 break 9312 fi 9313 done 9314 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9315 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9316 # so we don't have lib.a shared libs to link our executables. 9317 # We have to force runtime linking in this case. 9318 aix_use_runtimelinking=yes 9319 LDFLAGS="$LDFLAGS -Wl,-brtl" 9320 fi 9321 ;; 9322 esac 9323 9324 exp_sym_flag='-bexport' 9325 no_entry_flag='-bnoentry' 9326 fi 9327 9328 # When large executables or shared objects are built, AIX ld can 9329 # have problems creating the table of contents. If linking a library 9330 # or program results in "error TOC overflow" add -mminimal-toc to 9331 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9332 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9333 9334 archive_cmds='' 9335 hardcode_direct=yes 9336 hardcode_direct_absolute=yes 9337 hardcode_libdir_separator=':' 9338 link_all_deplibs=yes 9339 file_list_spec='$wl-f,' 9340 case $with_aix_soname,$aix_use_runtimelinking in 9341 aix,*) ;; # traditional, no import file 9342 svr4,* | *,yes) # use import file 9343 # The Import File defines what to hardcode. 9344 hardcode_direct=no 9345 hardcode_direct_absolute=no 9346 ;; 9347 esac 9348 9349 if test yes = "$GCC"; then 9350 case $host_os in aix4.[012]|aix4.[012].*) 9351 # We only want to do this on AIX 4.2 and lower, the check 9352 # below for broken collect2 doesn't work under 4.3+ 9353 collect2name=`$CC -print-prog-name=collect2` 9354 if test -f "$collect2name" && 9355 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9356 then 9357 # We have reworked collect2 9358 : 9359 else 9360 # We have old collect2 9361 hardcode_direct=unsupported 9362 # It fails to find uninstalled libraries when the uninstalled 9363 # path is not listed in the libpath. Setting hardcode_minus_L 9364 # to unsupported forces relinking 9365 hardcode_minus_L=yes 9366 hardcode_libdir_flag_spec='-L$libdir' 9367 hardcode_libdir_separator= 9368 fi 9369 ;; 9370 esac 9371 shared_flag='-shared' 9372 if test yes = "$aix_use_runtimelinking"; then 9373 shared_flag="$shared_flag "'$wl-G' 9374 fi 9375 # Need to ensure runtime linking is disabled for the traditional 9376 # shared library, or the linker may eventually find shared libraries 9377 # /with/ Import File - we do not want to mix them. 9378 shared_flag_aix='-shared' 9379 shared_flag_svr4='-shared $wl-G' 9380 else 9381 # not using gcc 9382 if test ia64 = "$host_cpu"; then 9383 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9384 # chokes on -Wl,-G. The following line is correct: 9385 shared_flag='-G' 9386 else 9387 if test yes = "$aix_use_runtimelinking"; then 9388 shared_flag='$wl-G' 9389 else 9390 shared_flag='$wl-bM:SRE' 9391 fi 9392 shared_flag_aix='$wl-bM:SRE' 9393 shared_flag_svr4='$wl-G' 9394 fi 9395 fi 9396 9397 export_dynamic_flag_spec='$wl-bexpall' 9398 # It seems that -bexpall does not export symbols beginning with 9399 # underscore (_), so it is better to generate a list of symbols to export. 9400 always_export_symbols=yes 9401 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9402 # Warning - without using the other runtime loading flags (-brtl), 9403 # -berok will link without error, but may produce a broken library. 9404 allow_undefined_flag='-berok' 9405 # Determine the default libpath from the value encoded in an 9406 # empty executable. 9407 if test set = "${lt_cv_aix_libpath+set}"; then 9408 aix_libpath=$lt_cv_aix_libpath 9409else 9410 if ${lt_cv_aix_libpath_+:} false; then : 9411 $as_echo_n "(cached) " >&6 9412else 9413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9414/* end confdefs.h. */ 9415 9416int 9417main () 9418{ 9419 9420 ; 9421 return 0; 9422} 9423_ACEOF 9424if ac_fn_c_try_link "$LINENO"; then : 9425 9426 lt_aix_libpath_sed=' 9427 /Import File Strings/,/^$/ { 9428 /^0/ { 9429 s/^0 *\([^ ]*\) *$/\1/ 9430 p 9431 } 9432 }' 9433 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9434 # Check for a 64-bit object if we didn't find anything. 9435 if test -z "$lt_cv_aix_libpath_"; then 9436 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9437 fi 9438fi 9439rm -f core conftest.err conftest.$ac_objext \ 9440 conftest$ac_exeext conftest.$ac_ext 9441 if test -z "$lt_cv_aix_libpath_"; then 9442 lt_cv_aix_libpath_=/usr/lib:/lib 9443 fi 9444 9445fi 9446 9447 aix_libpath=$lt_cv_aix_libpath_ 9448fi 9449 9450 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9451 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 9452 else 9453 if test ia64 = "$host_cpu"; then 9454 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9455 allow_undefined_flag="-z nodefs" 9456 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" 9457 else 9458 # Determine the default libpath from the value encoded in an 9459 # empty executable. 9460 if test set = "${lt_cv_aix_libpath+set}"; then 9461 aix_libpath=$lt_cv_aix_libpath 9462else 9463 if ${lt_cv_aix_libpath_+:} false; then : 9464 $as_echo_n "(cached) " >&6 9465else 9466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9467/* end confdefs.h. */ 9468 9469int 9470main () 9471{ 9472 9473 ; 9474 return 0; 9475} 9476_ACEOF 9477if ac_fn_c_try_link "$LINENO"; then : 9478 9479 lt_aix_libpath_sed=' 9480 /Import File Strings/,/^$/ { 9481 /^0/ { 9482 s/^0 *\([^ ]*\) *$/\1/ 9483 p 9484 } 9485 }' 9486 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9487 # Check for a 64-bit object if we didn't find anything. 9488 if test -z "$lt_cv_aix_libpath_"; then 9489 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9490 fi 9491fi 9492rm -f core conftest.err conftest.$ac_objext \ 9493 conftest$ac_exeext conftest.$ac_ext 9494 if test -z "$lt_cv_aix_libpath_"; then 9495 lt_cv_aix_libpath_=/usr/lib:/lib 9496 fi 9497 9498fi 9499 9500 aix_libpath=$lt_cv_aix_libpath_ 9501fi 9502 9503 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9504 # Warning - without using the other run time loading flags, 9505 # -berok will link without error, but may produce a broken library. 9506 no_undefined_flag=' $wl-bernotok' 9507 allow_undefined_flag=' $wl-berok' 9508 if test yes = "$with_gnu_ld"; then 9509 # We only use this code for GNU lds that support --whole-archive. 9510 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9511 else 9512 # Exported symbols can be pulled into shared objects from archives 9513 whole_archive_flag_spec='$convenience' 9514 fi 9515 archive_cmds_need_lc=yes 9516 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9517 # -brtl affects multiple linker settings, -berok does not and is overridden later 9518 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9519 if test svr4 != "$with_aix_soname"; then 9520 # This is similar to how AIX traditionally builds its shared libraries. 9521 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' 9522 fi 9523 if test aix != "$with_aix_soname"; then 9524 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' 9525 else 9526 # used by -dlpreopen to get the symbols 9527 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9528 fi 9529 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9530 fi 9531 fi 9532 ;; 9533 9534 amigaos*) 9535 case $host_cpu in 9536 powerpc) 9537 # see comment about AmigaOS4 .so support 9538 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9539 archive_expsym_cmds='' 9540 ;; 9541 m68k) 9542 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)' 9543 hardcode_libdir_flag_spec='-L$libdir' 9544 hardcode_minus_L=yes 9545 ;; 9546 esac 9547 ;; 9548 9549 bsdi[45]*) 9550 export_dynamic_flag_spec=-rdynamic 9551 ;; 9552 9553 cygwin* | mingw* | pw32* | cegcc*) 9554 # When not using gcc, we currently assume that we are using 9555 # Microsoft Visual C++. 9556 # hardcode_libdir_flag_spec is actually meaningless, as there is 9557 # no search path for DLLs. 9558 case $cc_basename in 9559 cl*) 9560 # Native MSVC 9561 hardcode_libdir_flag_spec=' ' 9562 allow_undefined_flag=unsupported 9563 always_export_symbols=yes 9564 file_list_spec='@' 9565 # Tell ltmain to make .lib files, not .a files. 9566 libext=lib 9567 # Tell ltmain to make .dll files, not .so files. 9568 shrext_cmds=.dll 9569 # FIXME: Setting linknames here is a bad hack. 9570 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9571 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9572 cp "$export_symbols" "$output_objdir/$soname.def"; 9573 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9574 else 9575 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9576 fi~ 9577 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9578 linknames=' 9579 # The linker will not automatically build a static lib if we build a DLL. 9580 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9581 enable_shared_with_static_runtimes=yes 9582 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9583 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9584 # Don't use ranlib 9585 old_postinstall_cmds='chmod 644 $oldlib' 9586 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9587 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9588 case $lt_outputfile in 9589 *.exe|*.EXE) ;; 9590 *) 9591 lt_outputfile=$lt_outputfile.exe 9592 lt_tool_outputfile=$lt_tool_outputfile.exe 9593 ;; 9594 esac~ 9595 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9596 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9597 $RM "$lt_outputfile.manifest"; 9598 fi' 9599 ;; 9600 *) 9601 # Assume MSVC wrapper 9602 hardcode_libdir_flag_spec=' ' 9603 allow_undefined_flag=unsupported 9604 # Tell ltmain to make .lib files, not .a files. 9605 libext=lib 9606 # Tell ltmain to make .dll files, not .so files. 9607 shrext_cmds=.dll 9608 # FIXME: Setting linknames here is a bad hack. 9609 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9610 # The linker will automatically build a .lib file if we build a DLL. 9611 old_archive_from_new_cmds='true' 9612 # FIXME: Should let the user specify the lib program. 9613 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9614 enable_shared_with_static_runtimes=yes 9615 ;; 9616 esac 9617 ;; 9618 9619 darwin* | rhapsody*) 9620 9621 9622 archive_cmds_need_lc=no 9623 hardcode_direct=no 9624 hardcode_automatic=yes 9625 hardcode_shlibpath_var=unsupported 9626 if test yes = "$lt_cv_ld_force_load"; then 9627 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\"`' 9628 9629 else 9630 whole_archive_flag_spec='' 9631 fi 9632 link_all_deplibs=yes 9633 allow_undefined_flag=$_lt_dar_allow_undefined 9634 case $cc_basename in 9635 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9636 *) _lt_dar_can_shared=$GCC ;; 9637 esac 9638 if test yes = "$_lt_dar_can_shared"; then 9639 output_verbose_link_cmd=func_echo_all 9640 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9641 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9642 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" 9643 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" 9644 9645 else 9646 ld_shlibs=no 9647 fi 9648 9649 ;; 9650 9651 dgux*) 9652 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9653 hardcode_libdir_flag_spec='-L$libdir' 9654 hardcode_shlibpath_var=no 9655 ;; 9656 9657 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9658 # support. Future versions do this automatically, but an explicit c++rt0.o 9659 # does not break anything, and helps significantly (at the cost of a little 9660 # extra space). 9661 freebsd2.2*) 9662 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9663 hardcode_libdir_flag_spec='-R$libdir' 9664 hardcode_direct=yes 9665 hardcode_shlibpath_var=no 9666 ;; 9667 9668 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9669 freebsd2.*) 9670 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9671 hardcode_direct=yes 9672 hardcode_minus_L=yes 9673 hardcode_shlibpath_var=no 9674 ;; 9675 9676 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9677 freebsd* | dragonfly*) 9678 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9679 hardcode_libdir_flag_spec='-R$libdir' 9680 hardcode_direct=yes 9681 hardcode_shlibpath_var=no 9682 ;; 9683 9684 hpux9*) 9685 if test yes = "$GCC"; then 9686 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' 9687 else 9688 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' 9689 fi 9690 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9691 hardcode_libdir_separator=: 9692 hardcode_direct=yes 9693 9694 # hardcode_minus_L: Not really in the search PATH, 9695 # but as the default location of the library. 9696 hardcode_minus_L=yes 9697 export_dynamic_flag_spec='$wl-E' 9698 ;; 9699 9700 hpux10*) 9701 if test yes,no = "$GCC,$with_gnu_ld"; then 9702 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9703 else 9704 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9705 fi 9706 if test no = "$with_gnu_ld"; then 9707 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9708 hardcode_libdir_separator=: 9709 hardcode_direct=yes 9710 hardcode_direct_absolute=yes 9711 export_dynamic_flag_spec='$wl-E' 9712 # hardcode_minus_L: Not really in the search PATH, 9713 # but as the default location of the library. 9714 hardcode_minus_L=yes 9715 fi 9716 ;; 9717 9718 hpux11*) 9719 if test yes,no = "$GCC,$with_gnu_ld"; then 9720 case $host_cpu in 9721 hppa*64*) 9722 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9723 ;; 9724 ia64*) 9725 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9726 ;; 9727 *) 9728 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9729 ;; 9730 esac 9731 else 9732 case $host_cpu in 9733 hppa*64*) 9734 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9735 ;; 9736 ia64*) 9737 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9738 ;; 9739 *) 9740 9741 # Older versions of the 11.00 compiler do not understand -b yet 9742 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9744$as_echo_n "checking if $CC understands -b... " >&6; } 9745if ${lt_cv_prog_compiler__b+:} false; then : 9746 $as_echo_n "(cached) " >&6 9747else 9748 lt_cv_prog_compiler__b=no 9749 save_LDFLAGS=$LDFLAGS 9750 LDFLAGS="$LDFLAGS -b" 9751 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9752 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9753 # The linker can only warn and ignore the option if not recognized 9754 # So say no if there are warnings 9755 if test -s conftest.err; then 9756 # Append any errors to the config.log. 9757 cat conftest.err 1>&5 9758 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9759 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9760 if diff conftest.exp conftest.er2 >/dev/null; then 9761 lt_cv_prog_compiler__b=yes 9762 fi 9763 else 9764 lt_cv_prog_compiler__b=yes 9765 fi 9766 fi 9767 $RM -r conftest* 9768 LDFLAGS=$save_LDFLAGS 9769 9770fi 9771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9772$as_echo "$lt_cv_prog_compiler__b" >&6; } 9773 9774if test yes = "$lt_cv_prog_compiler__b"; then 9775 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9776else 9777 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9778fi 9779 9780 ;; 9781 esac 9782 fi 9783 if test no = "$with_gnu_ld"; then 9784 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9785 hardcode_libdir_separator=: 9786 9787 case $host_cpu in 9788 hppa*64*|ia64*) 9789 hardcode_direct=no 9790 hardcode_shlibpath_var=no 9791 ;; 9792 *) 9793 hardcode_direct=yes 9794 hardcode_direct_absolute=yes 9795 export_dynamic_flag_spec='$wl-E' 9796 9797 # hardcode_minus_L: Not really in the search PATH, 9798 # but as the default location of the library. 9799 hardcode_minus_L=yes 9800 ;; 9801 esac 9802 fi 9803 ;; 9804 9805 irix5* | irix6* | nonstopux*) 9806 if test yes = "$GCC"; then 9807 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' 9808 # Try to use the -exported_symbol ld option, if it does not 9809 # work, assume that -exports_file does not work either and 9810 # implicitly export all symbols. 9811 # This should be the same for all languages, so no per-tag cache variable. 9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9813$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9814if ${lt_cv_irix_exported_symbol+:} false; then : 9815 $as_echo_n "(cached) " >&6 9816else 9817 save_LDFLAGS=$LDFLAGS 9818 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 9819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9820/* end confdefs.h. */ 9821int foo (void) { return 0; } 9822_ACEOF 9823if ac_fn_c_try_link "$LINENO"; then : 9824 lt_cv_irix_exported_symbol=yes 9825else 9826 lt_cv_irix_exported_symbol=no 9827fi 9828rm -f core conftest.err conftest.$ac_objext \ 9829 conftest$ac_exeext conftest.$ac_ext 9830 LDFLAGS=$save_LDFLAGS 9831fi 9832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9833$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9834 if test yes = "$lt_cv_irix_exported_symbol"; then 9835 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' 9836 fi 9837 else 9838 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' 9839 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' 9840 fi 9841 archive_cmds_need_lc='no' 9842 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9843 hardcode_libdir_separator=: 9844 inherit_rpath=yes 9845 link_all_deplibs=yes 9846 ;; 9847 9848 linux*) 9849 case $cc_basename in 9850 tcc*) 9851 # Fabrice Bellard et al's Tiny C Compiler 9852 ld_shlibs=yes 9853 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9854 ;; 9855 esac 9856 ;; 9857 9858 netbsd*) 9859 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9860 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9861 else 9862 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9863 fi 9864 hardcode_libdir_flag_spec='-R$libdir' 9865 hardcode_direct=yes 9866 hardcode_shlibpath_var=no 9867 ;; 9868 9869 newsos6) 9870 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9871 hardcode_direct=yes 9872 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9873 hardcode_libdir_separator=: 9874 hardcode_shlibpath_var=no 9875 ;; 9876 9877 *nto* | *qnx*) 9878 ;; 9879 9880 openbsd* | bitrig*) 9881 if test -f /usr/libexec/ld.so; then 9882 hardcode_direct=yes 9883 hardcode_shlibpath_var=no 9884 hardcode_direct_absolute=yes 9885 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 9886 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9887 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 9888 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9889 export_dynamic_flag_spec='$wl-E' 9890 else 9891 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9892 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9893 fi 9894 else 9895 ld_shlibs=no 9896 fi 9897 ;; 9898 9899 os2*) 9900 hardcode_libdir_flag_spec='-L$libdir' 9901 hardcode_minus_L=yes 9902 allow_undefined_flag=unsupported 9903 shrext_cmds=.dll 9904 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9905 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9906 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9907 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9908 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9909 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9910 emximp -o $lib $output_objdir/$libname.def' 9911 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9912 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9913 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9914 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9915 prefix_cmds="$SED"~ 9916 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9917 prefix_cmds="$prefix_cmds -e 1d"; 9918 fi~ 9919 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9920 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9921 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9922 emximp -o $lib $output_objdir/$libname.def' 9923 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9924 enable_shared_with_static_runtimes=yes 9925 ;; 9926 9927 osf3*) 9928 if test yes = "$GCC"; then 9929 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 9930 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' 9931 else 9932 allow_undefined_flag=' -expect_unresolved \*' 9933 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' 9934 fi 9935 archive_cmds_need_lc='no' 9936 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9937 hardcode_libdir_separator=: 9938 ;; 9939 9940 osf4* | osf5*) # as osf3* with the addition of -msym flag 9941 if test yes = "$GCC"; then 9942 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 9943 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' 9944 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9945 else 9946 allow_undefined_flag=' -expect_unresolved \*' 9947 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' 9948 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~ 9949 $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' 9950 9951 # Both c and cxx compiler support -rpath directly 9952 hardcode_libdir_flag_spec='-rpath $libdir' 9953 fi 9954 archive_cmds_need_lc='no' 9955 hardcode_libdir_separator=: 9956 ;; 9957 9958 solaris*) 9959 no_undefined_flag=' -z defs' 9960 if test yes = "$GCC"; then 9961 wlarc='$wl' 9962 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9963 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9964 $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' 9965 else 9966 case `$CC -V 2>&1` in 9967 *"Compilers 5.0"*) 9968 wlarc='' 9969 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 9970 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9971 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9972 ;; 9973 *) 9974 wlarc='$wl' 9975 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9976 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9977 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9978 ;; 9979 esac 9980 fi 9981 hardcode_libdir_flag_spec='-R$libdir' 9982 hardcode_shlibpath_var=no 9983 case $host_os in 9984 solaris2.[0-5] | solaris2.[0-5].*) ;; 9985 *) 9986 # The compiler driver will combine and reorder linker options, 9987 # but understands '-z linker_flag'. GCC discards it without '$wl', 9988 # but is careful enough not to reorder. 9989 # Supported since Solaris 2.6 (maybe 2.5.1?) 9990 if test yes = "$GCC"; then 9991 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 9992 else 9993 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9994 fi 9995 ;; 9996 esac 9997 link_all_deplibs=yes 9998 ;; 9999 10000 sunos4*) 10001 if test sequent = "$host_vendor"; then 10002 # Use $CC to link under sequent, because it throws in some extra .o 10003 # files that make .init and .fini sections work. 10004 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10005 else 10006 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10007 fi 10008 hardcode_libdir_flag_spec='-L$libdir' 10009 hardcode_direct=yes 10010 hardcode_minus_L=yes 10011 hardcode_shlibpath_var=no 10012 ;; 10013 10014 sysv4) 10015 case $host_vendor in 10016 sni) 10017 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10018 hardcode_direct=yes # is this really true??? 10019 ;; 10020 siemens) 10021 ## LD is ld it makes a PLAMLIB 10022 ## CC just makes a GrossModule. 10023 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10024 reload_cmds='$CC -r -o $output$reload_objs' 10025 hardcode_direct=no 10026 ;; 10027 motorola) 10028 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10029 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10030 ;; 10031 esac 10032 runpath_var='LD_RUN_PATH' 10033 hardcode_shlibpath_var=no 10034 ;; 10035 10036 sysv4.3*) 10037 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10038 hardcode_shlibpath_var=no 10039 export_dynamic_flag_spec='-Bexport' 10040 ;; 10041 10042 sysv4*MP*) 10043 if test -d /usr/nec; then 10044 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10045 hardcode_shlibpath_var=no 10046 runpath_var=LD_RUN_PATH 10047 hardcode_runpath_var=yes 10048 ld_shlibs=yes 10049 fi 10050 ;; 10051 10052 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10053 no_undefined_flag='$wl-z,text' 10054 archive_cmds_need_lc=no 10055 hardcode_shlibpath_var=no 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 sysv5* | sco3.2v5* | sco5v6*) 10068 # Note: We CANNOT use -z defs as we might desire, because we do not 10069 # link with -lc, and that would cause any symbols used from libc to 10070 # always be unresolved, which means just about no library would 10071 # ever link correctly. If we're not using GNU ld we use -z text 10072 # though, which does catch some bad symbols but isn't as heavy-handed 10073 # as -z defs. 10074 no_undefined_flag='$wl-z,text' 10075 allow_undefined_flag='$wl-z,nodefs' 10076 archive_cmds_need_lc=no 10077 hardcode_shlibpath_var=no 10078 hardcode_libdir_flag_spec='$wl-R,$libdir' 10079 hardcode_libdir_separator=':' 10080 link_all_deplibs=yes 10081 export_dynamic_flag_spec='$wl-Bexport' 10082 runpath_var='LD_RUN_PATH' 10083 10084 if test yes = "$GCC"; then 10085 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10086 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10087 else 10088 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10089 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10090 fi 10091 ;; 10092 10093 uts4*) 10094 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10095 hardcode_libdir_flag_spec='-L$libdir' 10096 hardcode_shlibpath_var=no 10097 ;; 10098 10099 *) 10100 ld_shlibs=no 10101 ;; 10102 esac 10103 10104 if test sni = "$host_vendor"; then 10105 case $host in 10106 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10107 export_dynamic_flag_spec='$wl-Blargedynsym' 10108 ;; 10109 esac 10110 fi 10111 fi 10112 10113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10114$as_echo "$ld_shlibs" >&6; } 10115test no = "$ld_shlibs" && can_build_shared=no 10116 10117with_gnu_ld=$with_gnu_ld 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133# 10134# Do we need to explicitly link libc? 10135# 10136case "x$archive_cmds_need_lc" in 10137x|xyes) 10138 # Assume -lc should be added 10139 archive_cmds_need_lc=yes 10140 10141 if test yes,yes = "$GCC,$enable_shared"; then 10142 case $archive_cmds in 10143 *'~'*) 10144 # FIXME: we may have to deal with multi-command sequences. 10145 ;; 10146 '$CC '*) 10147 # Test whether the compiler implicitly links with -lc since on some 10148 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10149 # to ld, don't add -lc before -lgcc. 10150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10151$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10152if ${lt_cv_archive_cmds_need_lc+:} false; then : 10153 $as_echo_n "(cached) " >&6 10154else 10155 $RM conftest* 10156 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10157 10158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10159 (eval $ac_compile) 2>&5 10160 ac_status=$? 10161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10162 test $ac_status = 0; } 2>conftest.err; then 10163 soname=conftest 10164 lib=conftest 10165 libobjs=conftest.$ac_objext 10166 deplibs= 10167 wl=$lt_prog_compiler_wl 10168 pic_flag=$lt_prog_compiler_pic 10169 compiler_flags=-v 10170 linker_flags=-v 10171 verstring= 10172 output_objdir=. 10173 libname=conftest 10174 lt_save_allow_undefined_flag=$allow_undefined_flag 10175 allow_undefined_flag= 10176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10177 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10178 ac_status=$? 10179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10180 test $ac_status = 0; } 10181 then 10182 lt_cv_archive_cmds_need_lc=no 10183 else 10184 lt_cv_archive_cmds_need_lc=yes 10185 fi 10186 allow_undefined_flag=$lt_save_allow_undefined_flag 10187 else 10188 cat conftest.err 1>&5 10189 fi 10190 $RM conftest* 10191 10192fi 10193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10194$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10195 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10196 ;; 10197 esac 10198 fi 10199 ;; 10200esac 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 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10354$as_echo_n "checking dynamic linker characteristics... " >&6; } 10355 10356if test yes = "$GCC"; then 10357 case $host_os in 10358 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10359 *) lt_awk_arg='/^libraries:/' ;; 10360 esac 10361 case $host_os in 10362 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10363 *) lt_sed_strip_eq='s|=/|/|g' ;; 10364 esac 10365 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10366 case $lt_search_path_spec in 10367 *\;*) 10368 # if the path contains ";" then we assume it to be the separator 10369 # otherwise default to the standard path separator (i.e. ":") - it is 10370 # assumed that no part of a normal pathname contains ";" but that should 10371 # okay in the real world where ";" in dirpaths is itself problematic. 10372 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10373 ;; 10374 *) 10375 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10376 ;; 10377 esac 10378 # Ok, now we have the path, separated by spaces, we can step through it 10379 # and add multilib dir if necessary... 10380 lt_tmp_lt_search_path_spec= 10381 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10382 # ...but if some path component already ends with the multilib dir we assume 10383 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10384 case "$lt_multi_os_dir; $lt_search_path_spec " in 10385 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10386 lt_multi_os_dir= 10387 ;; 10388 esac 10389 for lt_sys_path in $lt_search_path_spec; do 10390 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10391 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10392 elif test -n "$lt_multi_os_dir"; then 10393 test -d "$lt_sys_path" && \ 10394 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10395 fi 10396 done 10397 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10398BEGIN {RS = " "; FS = "/|\n";} { 10399 lt_foo = ""; 10400 lt_count = 0; 10401 for (lt_i = NF; lt_i > 0; lt_i--) { 10402 if ($lt_i != "" && $lt_i != ".") { 10403 if ($lt_i == "..") { 10404 lt_count++; 10405 } else { 10406 if (lt_count == 0) { 10407 lt_foo = "/" $lt_i lt_foo; 10408 } else { 10409 lt_count--; 10410 } 10411 } 10412 } 10413 } 10414 if (lt_foo != "") { lt_freq[lt_foo]++; } 10415 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10416}'` 10417 # AWK program above erroneously prepends '/' to C:/dos/paths 10418 # for these hosts. 10419 case $host_os in 10420 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10421 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10422 esac 10423 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10424else 10425 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10426fi 10427library_names_spec= 10428libname_spec='lib$name' 10429soname_spec= 10430shrext_cmds=.so 10431postinstall_cmds= 10432postuninstall_cmds= 10433finish_cmds= 10434finish_eval= 10435shlibpath_var= 10436shlibpath_overrides_runpath=unknown 10437version_type=none 10438dynamic_linker="$host_os ld.so" 10439sys_lib_dlsearch_path_spec="/lib /usr/lib" 10440need_lib_prefix=unknown 10441hardcode_into_libs=no 10442 10443# when you set need_version to no, make sure it does not cause -set_version 10444# flags to be left without arguments 10445need_version=unknown 10446 10447 10448 10449case $host_os in 10450aix3*) 10451 version_type=linux # correct to gnu/linux during the next big refactor 10452 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10453 shlibpath_var=LIBPATH 10454 10455 # AIX 3 has no versioning support, so we append a major version to the name. 10456 soname_spec='$libname$release$shared_ext$major' 10457 ;; 10458 10459aix[4-9]*) 10460 version_type=linux # correct to gnu/linux during the next big refactor 10461 need_lib_prefix=no 10462 need_version=no 10463 hardcode_into_libs=yes 10464 if test ia64 = "$host_cpu"; then 10465 # AIX 5 supports IA64 10466 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10467 shlibpath_var=LD_LIBRARY_PATH 10468 else 10469 # With GCC up to 2.95.x, collect2 would create an import file 10470 # for dependence libraries. The import file would start with 10471 # the line '#! .'. This would cause the generated library to 10472 # depend on '.', always an invalid library. This was fixed in 10473 # development snapshots of GCC prior to 3.0. 10474 case $host_os in 10475 aix4 | aix4.[01] | aix4.[01].*) 10476 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10477 echo ' yes ' 10478 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10479 : 10480 else 10481 can_build_shared=no 10482 fi 10483 ;; 10484 esac 10485 # Using Import Files as archive members, it is possible to support 10486 # filename-based versioning of shared library archives on AIX. While 10487 # this would work for both with and without runtime linking, it will 10488 # prevent static linking of such archives. So we do filename-based 10489 # shared library versioning with .so extension only, which is used 10490 # when both runtime linking and shared linking is enabled. 10491 # Unfortunately, runtime linking may impact performance, so we do 10492 # not want this to be the default eventually. Also, we use the 10493 # versioned .so libs for executables only if there is the -brtl 10494 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10495 # To allow for filename-based versioning support, we need to create 10496 # libNAME.so.V as an archive file, containing: 10497 # *) an Import File, referring to the versioned filename of the 10498 # archive as well as the shared archive member, telling the 10499 # bitwidth (32 or 64) of that shared object, and providing the 10500 # list of exported symbols of that shared object, eventually 10501 # decorated with the 'weak' keyword 10502 # *) the shared object with the F_LOADONLY flag set, to really avoid 10503 # it being seen by the linker. 10504 # At run time we better use the real file rather than another symlink, 10505 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10506 10507 case $with_aix_soname,$aix_use_runtimelinking in 10508 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10509 # soname into executable. Probably we can add versioning support to 10510 # collect2, so additional links can be useful in future. 10511 aix,yes) # traditional libtool 10512 dynamic_linker='AIX unversionable lib.so' 10513 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10514 # instead of lib<name>.a to let people know that these are not 10515 # typical AIX shared libraries. 10516 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10517 ;; 10518 aix,no) # traditional AIX only 10519 dynamic_linker='AIX lib.a(lib.so.V)' 10520 # We preserve .a as extension for shared libraries through AIX4.2 10521 # and later when we are not doing run time linking. 10522 library_names_spec='$libname$release.a $libname.a' 10523 soname_spec='$libname$release$shared_ext$major' 10524 ;; 10525 svr4,*) # full svr4 only 10526 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10527 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10528 # We do not specify a path in Import Files, so LIBPATH fires. 10529 shlibpath_overrides_runpath=yes 10530 ;; 10531 *,yes) # both, prefer svr4 10532 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10533 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10534 # unpreferred sharedlib libNAME.a needs extra handling 10535 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"' 10536 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"' 10537 # We do not specify a path in Import Files, so LIBPATH fires. 10538 shlibpath_overrides_runpath=yes 10539 ;; 10540 *,no) # both, prefer aix 10541 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10542 library_names_spec='$libname$release.a $libname.a' 10543 soname_spec='$libname$release$shared_ext$major' 10544 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10545 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)' 10546 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"' 10547 ;; 10548 esac 10549 shlibpath_var=LIBPATH 10550 fi 10551 ;; 10552 10553amigaos*) 10554 case $host_cpu in 10555 powerpc) 10556 # Since July 2007 AmigaOS4 officially supports .so libraries. 10557 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10558 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10559 ;; 10560 m68k) 10561 library_names_spec='$libname.ixlibrary $libname.a' 10562 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10563 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' 10564 ;; 10565 esac 10566 ;; 10567 10568beos*) 10569 library_names_spec='$libname$shared_ext' 10570 dynamic_linker="$host_os ld.so" 10571 shlibpath_var=LIBRARY_PATH 10572 ;; 10573 10574bsdi[45]*) 10575 version_type=linux # correct to gnu/linux during the next big refactor 10576 need_version=no 10577 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10578 soname_spec='$libname$release$shared_ext$major' 10579 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10580 shlibpath_var=LD_LIBRARY_PATH 10581 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10582 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10583 # the default ld.so.conf also contains /usr/contrib/lib and 10584 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10585 # libtool to hard-code these into programs 10586 ;; 10587 10588cygwin* | mingw* | pw32* | cegcc*) 10589 version_type=windows 10590 shrext_cmds=.dll 10591 need_version=no 10592 need_lib_prefix=no 10593 10594 case $GCC,$cc_basename in 10595 yes,*) 10596 # gcc 10597 library_names_spec='$libname.dll.a' 10598 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10599 postinstall_cmds='base_file=`basename \$file`~ 10600 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10601 dldir=$destdir/`dirname \$dlpath`~ 10602 test -d \$dldir || mkdir -p \$dldir~ 10603 $install_prog $dir/$dlname \$dldir/$dlname~ 10604 chmod a+x \$dldir/$dlname~ 10605 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10606 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10607 fi' 10608 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10609 dlpath=$dir/\$dldll~ 10610 $RM \$dlpath' 10611 shlibpath_overrides_runpath=yes 10612 10613 case $host_os in 10614 cygwin*) 10615 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10616 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10617 10618 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10619 ;; 10620 mingw* | cegcc*) 10621 # MinGW DLLs use traditional 'lib' prefix 10622 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10623 ;; 10624 pw32*) 10625 # pw32 DLLs use 'pw' prefix rather than 'lib' 10626 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10627 ;; 10628 esac 10629 dynamic_linker='Win32 ld.exe' 10630 ;; 10631 10632 *,cl*) 10633 # Native MSVC 10634 libname_spec='$name' 10635 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10636 library_names_spec='$libname.dll.lib' 10637 10638 case $build_os in 10639 mingw*) 10640 sys_lib_search_path_spec= 10641 lt_save_ifs=$IFS 10642 IFS=';' 10643 for lt_path in $LIB 10644 do 10645 IFS=$lt_save_ifs 10646 # Let DOS variable expansion print the short 8.3 style file name. 10647 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10648 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10649 done 10650 IFS=$lt_save_ifs 10651 # Convert to MSYS style. 10652 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10653 ;; 10654 cygwin*) 10655 # Convert to unix form, then to dos form, then back to unix form 10656 # but this time dos style (no spaces!) so that the unix form looks 10657 # like /cygdrive/c/PROGRA~1:/cygdr... 10658 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10659 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10660 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10661 ;; 10662 *) 10663 sys_lib_search_path_spec=$LIB 10664 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10665 # It is most probably a Windows format PATH. 10666 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10667 else 10668 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10669 fi 10670 # FIXME: find the short name or the path components, as spaces are 10671 # common. (e.g. "Program Files" -> "PROGRA~1") 10672 ;; 10673 esac 10674 10675 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10676 postinstall_cmds='base_file=`basename \$file`~ 10677 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10678 dldir=$destdir/`dirname \$dlpath`~ 10679 test -d \$dldir || mkdir -p \$dldir~ 10680 $install_prog $dir/$dlname \$dldir/$dlname' 10681 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10682 dlpath=$dir/\$dldll~ 10683 $RM \$dlpath' 10684 shlibpath_overrides_runpath=yes 10685 dynamic_linker='Win32 link.exe' 10686 ;; 10687 10688 *) 10689 # Assume MSVC wrapper 10690 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10691 dynamic_linker='Win32 ld.exe' 10692 ;; 10693 esac 10694 # FIXME: first we should search . and the directory the executable is in 10695 shlibpath_var=PATH 10696 ;; 10697 10698darwin* | rhapsody*) 10699 dynamic_linker="$host_os dyld" 10700 version_type=darwin 10701 need_lib_prefix=no 10702 need_version=no 10703 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 10704 soname_spec='$libname$release$major$shared_ext' 10705 shlibpath_overrides_runpath=yes 10706 shlibpath_var=DYLD_LIBRARY_PATH 10707 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10708 10709 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10710 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10711 ;; 10712 10713dgux*) 10714 version_type=linux # correct to gnu/linux during the next big refactor 10715 need_lib_prefix=no 10716 need_version=no 10717 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10718 soname_spec='$libname$release$shared_ext$major' 10719 shlibpath_var=LD_LIBRARY_PATH 10720 ;; 10721 10722freebsd* | dragonfly*) 10723 # DragonFly does not have aout. When/if they implement a new 10724 # versioning mechanism, adjust this. 10725 if test -x /usr/bin/objformat; then 10726 objformat=`/usr/bin/objformat` 10727 else 10728 case $host_os in 10729 freebsd[23].*) objformat=aout ;; 10730 *) objformat=elf ;; 10731 esac 10732 fi 10733 version_type=freebsd-$objformat 10734 case $version_type in 10735 freebsd-elf*) 10736 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10737 soname_spec='$libname$release$shared_ext$major' 10738 need_version=no 10739 need_lib_prefix=no 10740 ;; 10741 freebsd-*) 10742 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10743 need_version=yes 10744 ;; 10745 esac 10746 shlibpath_var=LD_LIBRARY_PATH 10747 case $host_os in 10748 freebsd2.*) 10749 shlibpath_overrides_runpath=yes 10750 ;; 10751 freebsd3.[01]* | freebsdelf3.[01]*) 10752 shlibpath_overrides_runpath=yes 10753 hardcode_into_libs=yes 10754 ;; 10755 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10756 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10757 shlibpath_overrides_runpath=no 10758 hardcode_into_libs=yes 10759 ;; 10760 *) # from 4.6 on, and DragonFly 10761 shlibpath_overrides_runpath=yes 10762 hardcode_into_libs=yes 10763 ;; 10764 esac 10765 ;; 10766 10767haiku*) 10768 version_type=linux # correct to gnu/linux during the next big refactor 10769 need_lib_prefix=no 10770 need_version=no 10771 dynamic_linker="$host_os runtime_loader" 10772 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10773 soname_spec='$libname$release$shared_ext$major' 10774 shlibpath_var=LIBRARY_PATH 10775 shlibpath_overrides_runpath=no 10776 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10777 hardcode_into_libs=yes 10778 ;; 10779 10780hpux9* | hpux10* | hpux11*) 10781 # Give a soname corresponding to the major version so that dld.sl refuses to 10782 # link against other versions. 10783 version_type=sunos 10784 need_lib_prefix=no 10785 need_version=no 10786 case $host_cpu in 10787 ia64*) 10788 shrext_cmds='.so' 10789 hardcode_into_libs=yes 10790 dynamic_linker="$host_os dld.so" 10791 shlibpath_var=LD_LIBRARY_PATH 10792 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 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 if test 32 = "$HPUX_IA64_MODE"; then 10796 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10797 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 10798 else 10799 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10800 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 10801 fi 10802 ;; 10803 hppa*64*) 10804 shrext_cmds='.sl' 10805 hardcode_into_libs=yes 10806 dynamic_linker="$host_os dld.sl" 10807 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10808 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10809 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10810 soname_spec='$libname$release$shared_ext$major' 10811 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10812 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10813 ;; 10814 *) 10815 shrext_cmds='.sl' 10816 dynamic_linker="$host_os dld.sl" 10817 shlibpath_var=SHLIB_PATH 10818 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10819 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10820 soname_spec='$libname$release$shared_ext$major' 10821 ;; 10822 esac 10823 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10824 postinstall_cmds='chmod 555 $lib' 10825 # or fails outright, so override atomically: 10826 install_override_mode=555 10827 ;; 10828 10829interix[3-9]*) 10830 version_type=linux # correct to gnu/linux during the next big refactor 10831 need_lib_prefix=no 10832 need_version=no 10833 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10834 soname_spec='$libname$release$shared_ext$major' 10835 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10836 shlibpath_var=LD_LIBRARY_PATH 10837 shlibpath_overrides_runpath=no 10838 hardcode_into_libs=yes 10839 ;; 10840 10841irix5* | irix6* | nonstopux*) 10842 case $host_os in 10843 nonstopux*) version_type=nonstopux ;; 10844 *) 10845 if test yes = "$lt_cv_prog_gnu_ld"; then 10846 version_type=linux # correct to gnu/linux during the next big refactor 10847 else 10848 version_type=irix 10849 fi ;; 10850 esac 10851 need_lib_prefix=no 10852 need_version=no 10853 soname_spec='$libname$release$shared_ext$major' 10854 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 10855 case $host_os in 10856 irix5* | nonstopux*) 10857 libsuff= shlibsuff= 10858 ;; 10859 *) 10860 case $LD in # libtool.m4 will add one of these switches to LD 10861 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10862 libsuff= shlibsuff= libmagic=32-bit;; 10863 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10864 libsuff=32 shlibsuff=N32 libmagic=N32;; 10865 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10866 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10867 *) libsuff= shlibsuff= libmagic=never-match;; 10868 esac 10869 ;; 10870 esac 10871 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10872 shlibpath_overrides_runpath=no 10873 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 10874 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 10875 hardcode_into_libs=yes 10876 ;; 10877 10878# No shared lib support for Linux oldld, aout, or coff. 10879linux*oldld* | linux*aout* | linux*coff*) 10880 dynamic_linker=no 10881 ;; 10882 10883linux*android*) 10884 version_type=none # Android doesn't support versioned libraries. 10885 need_lib_prefix=no 10886 need_version=no 10887 library_names_spec='$libname$release$shared_ext' 10888 soname_spec='$libname$release$shared_ext' 10889 finish_cmds= 10890 shlibpath_var=LD_LIBRARY_PATH 10891 shlibpath_overrides_runpath=yes 10892 10893 # This implies no fast_install, which is unacceptable. 10894 # Some rework will be needed to allow for fast_install 10895 # before this can be enabled. 10896 hardcode_into_libs=yes 10897 10898 dynamic_linker='Android linker' 10899 # Don't embed -rpath directories since the linker doesn't support them. 10900 hardcode_libdir_flag_spec='-L$libdir' 10901 ;; 10902 10903# This must be glibc/ELF. 10904linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10905 version_type=linux # correct to gnu/linux during the next big refactor 10906 need_lib_prefix=no 10907 need_version=no 10908 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10909 soname_spec='$libname$release$shared_ext$major' 10910 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10911 shlibpath_var=LD_LIBRARY_PATH 10912 shlibpath_overrides_runpath=no 10913 10914 # Some binutils ld are patched to set DT_RUNPATH 10915 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10916 $as_echo_n "(cached) " >&6 10917else 10918 lt_cv_shlibpath_overrides_runpath=no 10919 save_LDFLAGS=$LDFLAGS 10920 save_libdir=$libdir 10921 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10922 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10924/* end confdefs.h. */ 10925 10926int 10927main () 10928{ 10929 10930 ; 10931 return 0; 10932} 10933_ACEOF 10934if ac_fn_c_try_link "$LINENO"; then : 10935 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10936 lt_cv_shlibpath_overrides_runpath=yes 10937fi 10938fi 10939rm -f core conftest.err conftest.$ac_objext \ 10940 conftest$ac_exeext conftest.$ac_ext 10941 LDFLAGS=$save_LDFLAGS 10942 libdir=$save_libdir 10943 10944fi 10945 10946 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10947 10948 # This implies no fast_install, which is unacceptable. 10949 # Some rework will be needed to allow for fast_install 10950 # before this can be enabled. 10951 hardcode_into_libs=yes 10952 10953 # Ideally, we could use ldconfig to report *all* directores which are 10954 # searched for libraries, however this is still not possible. Aside from not 10955 # being certain /sbin/ldconfig is available, command 10956 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 10957 # even though it is searched at run-time. Try to do the best guess by 10958 # appending ld.so.conf contents (and includes) to the search path. 10959 if test -f /etc/ld.so.conf; then 10960 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' ' '` 10961 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10962 fi 10963 10964 # We used to test for /lib/ld.so.1 and disable shared libraries on 10965 # powerpc, because MkLinux only supported shared libraries with the 10966 # GNU dynamic linker. Since this was broken with cross compilers, 10967 # most powerpc-linux boxes support dynamic linking these days and 10968 # people can always --disable-shared, the test was removed, and we 10969 # assume the GNU/Linux dynamic linker is in use. 10970 dynamic_linker='GNU/Linux ld.so' 10971 ;; 10972 10973netbsd*) 10974 version_type=sunos 10975 need_lib_prefix=no 10976 need_version=no 10977 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10978 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10979 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10980 dynamic_linker='NetBSD (a.out) ld.so' 10981 else 10982 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10983 soname_spec='$libname$release$shared_ext$major' 10984 dynamic_linker='NetBSD ld.elf_so' 10985 fi 10986 shlibpath_var=LD_LIBRARY_PATH 10987 shlibpath_overrides_runpath=yes 10988 hardcode_into_libs=yes 10989 ;; 10990 10991newsos6) 10992 version_type=linux # correct to gnu/linux during the next big refactor 10993 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10994 shlibpath_var=LD_LIBRARY_PATH 10995 shlibpath_overrides_runpath=yes 10996 ;; 10997 10998*nto* | *qnx*) 10999 version_type=qnx 11000 need_lib_prefix=no 11001 need_version=no 11002 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11003 soname_spec='$libname$release$shared_ext$major' 11004 shlibpath_var=LD_LIBRARY_PATH 11005 shlibpath_overrides_runpath=no 11006 hardcode_into_libs=yes 11007 dynamic_linker='ldqnx.so' 11008 ;; 11009 11010openbsd* | bitrig*) 11011 version_type=sunos 11012 sys_lib_dlsearch_path_spec=/usr/lib 11013 need_lib_prefix=no 11014 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11015 need_version=no 11016 else 11017 need_version=yes 11018 fi 11019 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11020 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11021 shlibpath_var=LD_LIBRARY_PATH 11022 shlibpath_overrides_runpath=yes 11023 ;; 11024 11025os2*) 11026 libname_spec='$name' 11027 version_type=windows 11028 shrext_cmds=.dll 11029 need_version=no 11030 need_lib_prefix=no 11031 # OS/2 can only load a DLL with a base name of 8 characters or less. 11032 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11033 v=$($ECHO $release$versuffix | tr -d .-); 11034 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11035 $ECHO $n$v`$shared_ext' 11036 library_names_spec='${libname}_dll.$libext' 11037 dynamic_linker='OS/2 ld.exe' 11038 shlibpath_var=BEGINLIBPATH 11039 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11040 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11041 postinstall_cmds='base_file=`basename \$file`~ 11042 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11043 dldir=$destdir/`dirname \$dlpath`~ 11044 test -d \$dldir || mkdir -p \$dldir~ 11045 $install_prog $dir/$dlname \$dldir/$dlname~ 11046 chmod a+x \$dldir/$dlname~ 11047 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11048 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11049 fi' 11050 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11051 dlpath=$dir/\$dldll~ 11052 $RM \$dlpath' 11053 ;; 11054 11055osf3* | osf4* | osf5*) 11056 version_type=osf 11057 need_lib_prefix=no 11058 need_version=no 11059 soname_spec='$libname$release$shared_ext$major' 11060 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11061 shlibpath_var=LD_LIBRARY_PATH 11062 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11063 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11064 ;; 11065 11066rdos*) 11067 dynamic_linker=no 11068 ;; 11069 11070solaris*) 11071 version_type=linux # correct to gnu/linux during the next big refactor 11072 need_lib_prefix=no 11073 need_version=no 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 shlibpath_overrides_runpath=yes 11078 hardcode_into_libs=yes 11079 # ldd complains unless libraries are executable 11080 postinstall_cmds='chmod +x $lib' 11081 ;; 11082 11083sunos4*) 11084 version_type=sunos 11085 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11086 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11087 shlibpath_var=LD_LIBRARY_PATH 11088 shlibpath_overrides_runpath=yes 11089 if test yes = "$with_gnu_ld"; then 11090 need_lib_prefix=no 11091 fi 11092 need_version=yes 11093 ;; 11094 11095sysv4 | sysv4.3*) 11096 version_type=linux # correct to gnu/linux during the next big refactor 11097 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11098 soname_spec='$libname$release$shared_ext$major' 11099 shlibpath_var=LD_LIBRARY_PATH 11100 case $host_vendor in 11101 sni) 11102 shlibpath_overrides_runpath=no 11103 need_lib_prefix=no 11104 runpath_var=LD_RUN_PATH 11105 ;; 11106 siemens) 11107 need_lib_prefix=no 11108 ;; 11109 motorola) 11110 need_lib_prefix=no 11111 need_version=no 11112 shlibpath_overrides_runpath=no 11113 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11114 ;; 11115 esac 11116 ;; 11117 11118sysv4*MP*) 11119 if test -d /usr/nec; then 11120 version_type=linux # correct to gnu/linux during the next big refactor 11121 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11122 soname_spec='$libname$shared_ext.$major' 11123 shlibpath_var=LD_LIBRARY_PATH 11124 fi 11125 ;; 11126 11127sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11128 version_type=sco 11129 need_lib_prefix=no 11130 need_version=no 11131 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11132 soname_spec='$libname$release$shared_ext$major' 11133 shlibpath_var=LD_LIBRARY_PATH 11134 shlibpath_overrides_runpath=yes 11135 hardcode_into_libs=yes 11136 if test yes = "$with_gnu_ld"; then 11137 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11138 else 11139 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11140 case $host_os in 11141 sco3.2v5*) 11142 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11143 ;; 11144 esac 11145 fi 11146 sys_lib_dlsearch_path_spec='/usr/lib' 11147 ;; 11148 11149tpf*) 11150 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11151 version_type=linux # correct to gnu/linux during the next big refactor 11152 need_lib_prefix=no 11153 need_version=no 11154 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11155 shlibpath_var=LD_LIBRARY_PATH 11156 shlibpath_overrides_runpath=no 11157 hardcode_into_libs=yes 11158 ;; 11159 11160uts4*) 11161 version_type=linux # correct to gnu/linux during the next big refactor 11162 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11163 soname_spec='$libname$release$shared_ext$major' 11164 shlibpath_var=LD_LIBRARY_PATH 11165 ;; 11166 11167*) 11168 dynamic_linker=no 11169 ;; 11170esac 11171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11172$as_echo "$dynamic_linker" >&6; } 11173test no = "$dynamic_linker" && can_build_shared=no 11174 11175variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11176if test yes = "$GCC"; then 11177 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11178fi 11179 11180if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11181 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11182fi 11183 11184if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11185 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11186fi 11187 11188# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11189configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11190 11191# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11192func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11193 11194# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11195configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 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 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11294$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11295hardcode_action= 11296if test -n "$hardcode_libdir_flag_spec" || 11297 test -n "$runpath_var" || 11298 test yes = "$hardcode_automatic"; then 11299 11300 # We can hardcode non-existent directories. 11301 if test no != "$hardcode_direct" && 11302 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11303 # have to relink, otherwise we might link with an installed library 11304 # when we should be linking with a yet-to-be-installed one 11305 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11306 test no != "$hardcode_minus_L"; then 11307 # Linking always hardcodes the temporary library directory. 11308 hardcode_action=relink 11309 else 11310 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11311 hardcode_action=immediate 11312 fi 11313else 11314 # We cannot hardcode anything, or else we can only hardcode existing 11315 # directories. 11316 hardcode_action=unsupported 11317fi 11318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11319$as_echo "$hardcode_action" >&6; } 11320 11321if test relink = "$hardcode_action" || 11322 test yes = "$inherit_rpath"; then 11323 # Fast installation is not supported 11324 enable_fast_install=no 11325elif test yes = "$shlibpath_overrides_runpath" || 11326 test no = "$enable_shared"; then 11327 # Fast installation is not necessary 11328 enable_fast_install=needless 11329fi 11330 11331 11332 11333 11334 11335 11336 if test yes != "$enable_dlopen"; then 11337 enable_dlopen=unknown 11338 enable_dlopen_self=unknown 11339 enable_dlopen_self_static=unknown 11340else 11341 lt_cv_dlopen=no 11342 lt_cv_dlopen_libs= 11343 11344 case $host_os in 11345 beos*) 11346 lt_cv_dlopen=load_add_on 11347 lt_cv_dlopen_libs= 11348 lt_cv_dlopen_self=yes 11349 ;; 11350 11351 mingw* | pw32* | cegcc*) 11352 lt_cv_dlopen=LoadLibrary 11353 lt_cv_dlopen_libs= 11354 ;; 11355 11356 cygwin*) 11357 lt_cv_dlopen=dlopen 11358 lt_cv_dlopen_libs= 11359 ;; 11360 11361 darwin*) 11362 # if libdl is installed we need to link against it 11363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11364$as_echo_n "checking for dlopen in -ldl... " >&6; } 11365if ${ac_cv_lib_dl_dlopen+:} false; then : 11366 $as_echo_n "(cached) " >&6 11367else 11368 ac_check_lib_save_LIBS=$LIBS 11369LIBS="-ldl $LIBS" 11370cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11371/* end confdefs.h. */ 11372 11373/* Override any GCC internal prototype to avoid an error. 11374 Use char because int might match the return type of a GCC 11375 builtin and then its argument prototype would still apply. */ 11376#ifdef __cplusplus 11377extern "C" 11378#endif 11379char dlopen (); 11380int 11381main () 11382{ 11383return dlopen (); 11384 ; 11385 return 0; 11386} 11387_ACEOF 11388if ac_fn_c_try_link "$LINENO"; then : 11389 ac_cv_lib_dl_dlopen=yes 11390else 11391 ac_cv_lib_dl_dlopen=no 11392fi 11393rm -f core conftest.err conftest.$ac_objext \ 11394 conftest$ac_exeext conftest.$ac_ext 11395LIBS=$ac_check_lib_save_LIBS 11396fi 11397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11398$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11399if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11400 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11401else 11402 11403 lt_cv_dlopen=dyld 11404 lt_cv_dlopen_libs= 11405 lt_cv_dlopen_self=yes 11406 11407fi 11408 11409 ;; 11410 11411 tpf*) 11412 # Don't try to run any link tests for TPF. We know it's impossible 11413 # because TPF is a cross-compiler, and we know how we open DSOs. 11414 lt_cv_dlopen=dlopen 11415 lt_cv_dlopen_libs= 11416 lt_cv_dlopen_self=no 11417 ;; 11418 11419 *) 11420 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11421if test "x$ac_cv_func_shl_load" = xyes; then : 11422 lt_cv_dlopen=shl_load 11423else 11424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11425$as_echo_n "checking for shl_load in -ldld... " >&6; } 11426if ${ac_cv_lib_dld_shl_load+:} false; then : 11427 $as_echo_n "(cached) " >&6 11428else 11429 ac_check_lib_save_LIBS=$LIBS 11430LIBS="-ldld $LIBS" 11431cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11432/* end confdefs.h. */ 11433 11434/* Override any GCC internal prototype to avoid an error. 11435 Use char because int might match the return type of a GCC 11436 builtin and then its argument prototype would still apply. */ 11437#ifdef __cplusplus 11438extern "C" 11439#endif 11440char shl_load (); 11441int 11442main () 11443{ 11444return shl_load (); 11445 ; 11446 return 0; 11447} 11448_ACEOF 11449if ac_fn_c_try_link "$LINENO"; then : 11450 ac_cv_lib_dld_shl_load=yes 11451else 11452 ac_cv_lib_dld_shl_load=no 11453fi 11454rm -f core conftest.err conftest.$ac_objext \ 11455 conftest$ac_exeext conftest.$ac_ext 11456LIBS=$ac_check_lib_save_LIBS 11457fi 11458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11459$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11460if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11461 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11462else 11463 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11464if test "x$ac_cv_func_dlopen" = xyes; then : 11465 lt_cv_dlopen=dlopen 11466else 11467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11468$as_echo_n "checking for dlopen in -ldl... " >&6; } 11469if ${ac_cv_lib_dl_dlopen+:} false; then : 11470 $as_echo_n "(cached) " >&6 11471else 11472 ac_check_lib_save_LIBS=$LIBS 11473LIBS="-ldl $LIBS" 11474cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11475/* end confdefs.h. */ 11476 11477/* Override any GCC internal prototype to avoid an error. 11478 Use char because int might match the return type of a GCC 11479 builtin and then its argument prototype would still apply. */ 11480#ifdef __cplusplus 11481extern "C" 11482#endif 11483char dlopen (); 11484int 11485main () 11486{ 11487return dlopen (); 11488 ; 11489 return 0; 11490} 11491_ACEOF 11492if ac_fn_c_try_link "$LINENO"; then : 11493 ac_cv_lib_dl_dlopen=yes 11494else 11495 ac_cv_lib_dl_dlopen=no 11496fi 11497rm -f core conftest.err conftest.$ac_objext \ 11498 conftest$ac_exeext conftest.$ac_ext 11499LIBS=$ac_check_lib_save_LIBS 11500fi 11501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11502$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11503if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11504 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11505else 11506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11507$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11508if ${ac_cv_lib_svld_dlopen+:} false; then : 11509 $as_echo_n "(cached) " >&6 11510else 11511 ac_check_lib_save_LIBS=$LIBS 11512LIBS="-lsvld $LIBS" 11513cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11514/* end confdefs.h. */ 11515 11516/* Override any GCC internal prototype to avoid an error. 11517 Use char because int might match the return type of a GCC 11518 builtin and then its argument prototype would still apply. */ 11519#ifdef __cplusplus 11520extern "C" 11521#endif 11522char dlopen (); 11523int 11524main () 11525{ 11526return dlopen (); 11527 ; 11528 return 0; 11529} 11530_ACEOF 11531if ac_fn_c_try_link "$LINENO"; then : 11532 ac_cv_lib_svld_dlopen=yes 11533else 11534 ac_cv_lib_svld_dlopen=no 11535fi 11536rm -f core conftest.err conftest.$ac_objext \ 11537 conftest$ac_exeext conftest.$ac_ext 11538LIBS=$ac_check_lib_save_LIBS 11539fi 11540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11541$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11542if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11543 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11544else 11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11546$as_echo_n "checking for dld_link in -ldld... " >&6; } 11547if ${ac_cv_lib_dld_dld_link+:} false; then : 11548 $as_echo_n "(cached) " >&6 11549else 11550 ac_check_lib_save_LIBS=$LIBS 11551LIBS="-ldld $LIBS" 11552cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11553/* end confdefs.h. */ 11554 11555/* Override any GCC internal prototype to avoid an error. 11556 Use char because int might match the return type of a GCC 11557 builtin and then its argument prototype would still apply. */ 11558#ifdef __cplusplus 11559extern "C" 11560#endif 11561char dld_link (); 11562int 11563main () 11564{ 11565return dld_link (); 11566 ; 11567 return 0; 11568} 11569_ACEOF 11570if ac_fn_c_try_link "$LINENO"; then : 11571 ac_cv_lib_dld_dld_link=yes 11572else 11573 ac_cv_lib_dld_dld_link=no 11574fi 11575rm -f core conftest.err conftest.$ac_objext \ 11576 conftest$ac_exeext conftest.$ac_ext 11577LIBS=$ac_check_lib_save_LIBS 11578fi 11579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11580$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11581if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11582 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11583fi 11584 11585 11586fi 11587 11588 11589fi 11590 11591 11592fi 11593 11594 11595fi 11596 11597 11598fi 11599 11600 ;; 11601 esac 11602 11603 if test no = "$lt_cv_dlopen"; then 11604 enable_dlopen=no 11605 else 11606 enable_dlopen=yes 11607 fi 11608 11609 case $lt_cv_dlopen in 11610 dlopen) 11611 save_CPPFLAGS=$CPPFLAGS 11612 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11613 11614 save_LDFLAGS=$LDFLAGS 11615 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11616 11617 save_LIBS=$LIBS 11618 LIBS="$lt_cv_dlopen_libs $LIBS" 11619 11620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11621$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11622if ${lt_cv_dlopen_self+:} false; then : 11623 $as_echo_n "(cached) " >&6 11624else 11625 if test yes = "$cross_compiling"; then : 11626 lt_cv_dlopen_self=cross 11627else 11628 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11629 lt_status=$lt_dlunknown 11630 cat > conftest.$ac_ext <<_LT_EOF 11631#line $LINENO "configure" 11632#include "confdefs.h" 11633 11634#if HAVE_DLFCN_H 11635#include <dlfcn.h> 11636#endif 11637 11638#include <stdio.h> 11639 11640#ifdef RTLD_GLOBAL 11641# define LT_DLGLOBAL RTLD_GLOBAL 11642#else 11643# ifdef DL_GLOBAL 11644# define LT_DLGLOBAL DL_GLOBAL 11645# else 11646# define LT_DLGLOBAL 0 11647# endif 11648#endif 11649 11650/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11651 find out it does not work in some platform. */ 11652#ifndef LT_DLLAZY_OR_NOW 11653# ifdef RTLD_LAZY 11654# define LT_DLLAZY_OR_NOW RTLD_LAZY 11655# else 11656# ifdef DL_LAZY 11657# define LT_DLLAZY_OR_NOW DL_LAZY 11658# else 11659# ifdef RTLD_NOW 11660# define LT_DLLAZY_OR_NOW RTLD_NOW 11661# else 11662# ifdef DL_NOW 11663# define LT_DLLAZY_OR_NOW DL_NOW 11664# else 11665# define LT_DLLAZY_OR_NOW 0 11666# endif 11667# endif 11668# endif 11669# endif 11670#endif 11671 11672/* When -fvisibility=hidden is used, assume the code has been annotated 11673 correspondingly for the symbols needed. */ 11674#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11675int fnord () __attribute__((visibility("default"))); 11676#endif 11677 11678int fnord () { return 42; } 11679int main () 11680{ 11681 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11682 int status = $lt_dlunknown; 11683 11684 if (self) 11685 { 11686 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11687 else 11688 { 11689 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11690 else puts (dlerror ()); 11691 } 11692 /* dlclose (self); */ 11693 } 11694 else 11695 puts (dlerror ()); 11696 11697 return status; 11698} 11699_LT_EOF 11700 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11701 (eval $ac_link) 2>&5 11702 ac_status=$? 11703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11704 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11705 (./conftest; exit; ) >&5 2>/dev/null 11706 lt_status=$? 11707 case x$lt_status in 11708 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11709 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11710 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11711 esac 11712 else : 11713 # compilation failed 11714 lt_cv_dlopen_self=no 11715 fi 11716fi 11717rm -fr conftest* 11718 11719 11720fi 11721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11722$as_echo "$lt_cv_dlopen_self" >&6; } 11723 11724 if test yes = "$lt_cv_dlopen_self"; then 11725 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11727$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11728if ${lt_cv_dlopen_self_static+:} false; then : 11729 $as_echo_n "(cached) " >&6 11730else 11731 if test yes = "$cross_compiling"; then : 11732 lt_cv_dlopen_self_static=cross 11733else 11734 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11735 lt_status=$lt_dlunknown 11736 cat > conftest.$ac_ext <<_LT_EOF 11737#line $LINENO "configure" 11738#include "confdefs.h" 11739 11740#if HAVE_DLFCN_H 11741#include <dlfcn.h> 11742#endif 11743 11744#include <stdio.h> 11745 11746#ifdef RTLD_GLOBAL 11747# define LT_DLGLOBAL RTLD_GLOBAL 11748#else 11749# ifdef DL_GLOBAL 11750# define LT_DLGLOBAL DL_GLOBAL 11751# else 11752# define LT_DLGLOBAL 0 11753# endif 11754#endif 11755 11756/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11757 find out it does not work in some platform. */ 11758#ifndef LT_DLLAZY_OR_NOW 11759# ifdef RTLD_LAZY 11760# define LT_DLLAZY_OR_NOW RTLD_LAZY 11761# else 11762# ifdef DL_LAZY 11763# define LT_DLLAZY_OR_NOW DL_LAZY 11764# else 11765# ifdef RTLD_NOW 11766# define LT_DLLAZY_OR_NOW RTLD_NOW 11767# else 11768# ifdef DL_NOW 11769# define LT_DLLAZY_OR_NOW DL_NOW 11770# else 11771# define LT_DLLAZY_OR_NOW 0 11772# endif 11773# endif 11774# endif 11775# endif 11776#endif 11777 11778/* When -fvisibility=hidden is used, assume the code has been annotated 11779 correspondingly for the symbols needed. */ 11780#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11781int fnord () __attribute__((visibility("default"))); 11782#endif 11783 11784int fnord () { return 42; } 11785int main () 11786{ 11787 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11788 int status = $lt_dlunknown; 11789 11790 if (self) 11791 { 11792 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11793 else 11794 { 11795 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11796 else puts (dlerror ()); 11797 } 11798 /* dlclose (self); */ 11799 } 11800 else 11801 puts (dlerror ()); 11802 11803 return status; 11804} 11805_LT_EOF 11806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11807 (eval $ac_link) 2>&5 11808 ac_status=$? 11809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11810 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11811 (./conftest; exit; ) >&5 2>/dev/null 11812 lt_status=$? 11813 case x$lt_status in 11814 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11815 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11816 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11817 esac 11818 else : 11819 # compilation failed 11820 lt_cv_dlopen_self_static=no 11821 fi 11822fi 11823rm -fr conftest* 11824 11825 11826fi 11827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11828$as_echo "$lt_cv_dlopen_self_static" >&6; } 11829 fi 11830 11831 CPPFLAGS=$save_CPPFLAGS 11832 LDFLAGS=$save_LDFLAGS 11833 LIBS=$save_LIBS 11834 ;; 11835 esac 11836 11837 case $lt_cv_dlopen_self in 11838 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11839 *) enable_dlopen_self=unknown ;; 11840 esac 11841 11842 case $lt_cv_dlopen_self_static in 11843 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11844 *) enable_dlopen_self_static=unknown ;; 11845 esac 11846fi 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864striplib= 11865old_striplib= 11866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11867$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11868if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11869 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11870 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11872$as_echo "yes" >&6; } 11873else 11874# FIXME - insert some real tests, host_os isn't really good enough 11875 case $host_os in 11876 darwin*) 11877 if test -n "$STRIP"; then 11878 striplib="$STRIP -x" 11879 old_striplib="$STRIP -S" 11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11881$as_echo "yes" >&6; } 11882 else 11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11884$as_echo "no" >&6; } 11885 fi 11886 ;; 11887 *) 11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11889$as_echo "no" >&6; } 11890 ;; 11891 esac 11892fi 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 # Report what library types will actually be built 11906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11907$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11909$as_echo "$can_build_shared" >&6; } 11910 11911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11912$as_echo_n "checking whether to build shared libraries... " >&6; } 11913 test no = "$can_build_shared" && enable_shared=no 11914 11915 # On AIX, shared libraries and static libraries use the same namespace, and 11916 # are all built from PIC. 11917 case $host_os in 11918 aix3*) 11919 test yes = "$enable_shared" && enable_static=no 11920 if test -n "$RANLIB"; then 11921 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11922 postinstall_cmds='$RANLIB $lib' 11923 fi 11924 ;; 11925 11926 aix[4-9]*) 11927 if test ia64 != "$host_cpu"; then 11928 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 11929 yes,aix,yes) ;; # shared object as lib.so file only 11930 yes,svr4,*) ;; # shared object as lib.so archive member only 11931 yes,*) enable_static=no ;; # shared object in lib.a archive as well 11932 esac 11933 fi 11934 ;; 11935 esac 11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11937$as_echo "$enable_shared" >&6; } 11938 11939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11940$as_echo_n "checking whether to build static libraries... " >&6; } 11941 # Make sure either enable_shared or enable_static is yes. 11942 test yes = "$enable_shared" || enable_static=yes 11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11944$as_echo "$enable_static" >&6; } 11945 11946 11947 11948 11949fi 11950ac_ext=c 11951ac_cpp='$CPP $CPPFLAGS' 11952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11954ac_compiler_gnu=$ac_cv_c_compiler_gnu 11955 11956CC=$lt_save_CC 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 ac_config_commands="$ac_config_commands libtool" 11973 11974 11975 11976 11977# Only expand once: 11978 11979 11980 11981# Require X.Org macros 1.16 or later for XORG_MEMORY_CHECK_FLAGS 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11994$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11995if ${ac_cv_prog_cc_c99+:} false; then : 11996 $as_echo_n "(cached) " >&6 11997else 11998 ac_cv_prog_cc_c99=no 11999ac_save_CC=$CC 12000cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12001/* end confdefs.h. */ 12002#include <stdarg.h> 12003#include <stdbool.h> 12004#include <stdlib.h> 12005#include <wchar.h> 12006#include <stdio.h> 12007 12008// Check varargs macros. These examples are taken from C99 6.10.3.5. 12009#define debug(...) fprintf (stderr, __VA_ARGS__) 12010#define showlist(...) puts (#__VA_ARGS__) 12011#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 12012static void 12013test_varargs_macros (void) 12014{ 12015 int x = 1234; 12016 int y = 5678; 12017 debug ("Flag"); 12018 debug ("X = %d\n", x); 12019 showlist (The first, second, and third items.); 12020 report (x>y, "x is %d but y is %d", x, y); 12021} 12022 12023// Check long long types. 12024#define BIG64 18446744073709551615ull 12025#define BIG32 4294967295ul 12026#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 12027#if !BIG_OK 12028 your preprocessor is broken; 12029#endif 12030#if BIG_OK 12031#else 12032 your preprocessor is broken; 12033#endif 12034static long long int bignum = -9223372036854775807LL; 12035static unsigned long long int ubignum = BIG64; 12036 12037struct incomplete_array 12038{ 12039 int datasize; 12040 double data[]; 12041}; 12042 12043struct named_init { 12044 int number; 12045 const wchar_t *name; 12046 double average; 12047}; 12048 12049typedef const char *ccp; 12050 12051static inline int 12052test_restrict (ccp restrict text) 12053{ 12054 // See if C++-style comments work. 12055 // Iterate through items via the restricted pointer. 12056 // Also check for declarations in for loops. 12057 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 12058 continue; 12059 return 0; 12060} 12061 12062// Check varargs and va_copy. 12063static void 12064test_varargs (const char *format, ...) 12065{ 12066 va_list args; 12067 va_start (args, format); 12068 va_list args_copy; 12069 va_copy (args_copy, args); 12070 12071 const char *str; 12072 int number; 12073 float fnumber; 12074 12075 while (*format) 12076 { 12077 switch (*format++) 12078 { 12079 case 's': // string 12080 str = va_arg (args_copy, const char *); 12081 break; 12082 case 'd': // int 12083 number = va_arg (args_copy, int); 12084 break; 12085 case 'f': // float 12086 fnumber = va_arg (args_copy, double); 12087 break; 12088 default: 12089 break; 12090 } 12091 } 12092 va_end (args_copy); 12093 va_end (args); 12094} 12095 12096int 12097main () 12098{ 12099 12100 // Check bool. 12101 _Bool success = false; 12102 12103 // Check restrict. 12104 if (test_restrict ("String literal") == 0) 12105 success = true; 12106 char *restrict newvar = "Another string"; 12107 12108 // Check varargs. 12109 test_varargs ("s, d' f .", "string", 65, 34.234); 12110 test_varargs_macros (); 12111 12112 // Check flexible array members. 12113 struct incomplete_array *ia = 12114 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 12115 ia->datasize = 10; 12116 for (int i = 0; i < ia->datasize; ++i) 12117 ia->data[i] = i * 1.234; 12118 12119 // Check named initializers. 12120 struct named_init ni = { 12121 .number = 34, 12122 .name = L"Test wide string", 12123 .average = 543.34343, 12124 }; 12125 12126 ni.number = 58; 12127 12128 int dynamic_array[ni.number]; 12129 dynamic_array[ni.number - 1] = 543; 12130 12131 // work around unused variable warnings 12132 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 12133 || dynamic_array[ni.number - 1] != 543); 12134 12135 ; 12136 return 0; 12137} 12138_ACEOF 12139for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 12140do 12141 CC="$ac_save_CC $ac_arg" 12142 if ac_fn_c_try_compile "$LINENO"; then : 12143 ac_cv_prog_cc_c99=$ac_arg 12144fi 12145rm -f core conftest.err conftest.$ac_objext 12146 test "x$ac_cv_prog_cc_c99" != "xno" && break 12147done 12148rm -f conftest.$ac_ext 12149CC=$ac_save_CC 12150 12151fi 12152# AC_CACHE_VAL 12153case "x$ac_cv_prog_cc_c99" in 12154 x) 12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12156$as_echo "none needed" >&6; } ;; 12157 xno) 12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12159$as_echo "unsupported" >&6; } ;; 12160 *) 12161 CC="$CC $ac_cv_prog_cc_c99" 12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 12163$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 12164esac 12165if test "x$ac_cv_prog_cc_c99" != xno; then : 12166 12167fi 12168 12169 12170 12171 12172 12173 12174ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 12175if test "x$ac_cv_have_decl___clang__" = xyes; then : 12176 CLANGCC="yes" 12177else 12178 CLANGCC="no" 12179fi 12180 12181ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 12182if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 12183 INTELCC="yes" 12184else 12185 INTELCC="no" 12186fi 12187 12188ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 12189if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 12190 SUNCC="yes" 12191else 12192 SUNCC="no" 12193fi 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12204 if test -n "$ac_tool_prefix"; then 12205 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12206set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12208$as_echo_n "checking for $ac_word... " >&6; } 12209if ${ac_cv_path_PKG_CONFIG+:} false; then : 12210 $as_echo_n "(cached) " >&6 12211else 12212 case $PKG_CONFIG in 12213 [\\/]* | ?:[\\/]*) 12214 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12215 ;; 12216 *) 12217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12218for as_dir in $PATH 12219do 12220 IFS=$as_save_IFS 12221 test -z "$as_dir" && as_dir=. 12222 for ac_exec_ext in '' $ac_executable_extensions; do 12223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12224 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12226 break 2 12227 fi 12228done 12229 done 12230IFS=$as_save_IFS 12231 12232 ;; 12233esac 12234fi 12235PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12236if test -n "$PKG_CONFIG"; then 12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12238$as_echo "$PKG_CONFIG" >&6; } 12239else 12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12241$as_echo "no" >&6; } 12242fi 12243 12244 12245fi 12246if test -z "$ac_cv_path_PKG_CONFIG"; then 12247 ac_pt_PKG_CONFIG=$PKG_CONFIG 12248 # Extract the first word of "pkg-config", so it can be a program name with args. 12249set dummy pkg-config; ac_word=$2 12250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12251$as_echo_n "checking for $ac_word... " >&6; } 12252if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 12253 $as_echo_n "(cached) " >&6 12254else 12255 case $ac_pt_PKG_CONFIG in 12256 [\\/]* | ?:[\\/]*) 12257 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12258 ;; 12259 *) 12260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12261for as_dir in $PATH 12262do 12263 IFS=$as_save_IFS 12264 test -z "$as_dir" && as_dir=. 12265 for ac_exec_ext in '' $ac_executable_extensions; do 12266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12267 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12269 break 2 12270 fi 12271done 12272 done 12273IFS=$as_save_IFS 12274 12275 ;; 12276esac 12277fi 12278ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12279if test -n "$ac_pt_PKG_CONFIG"; then 12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12281$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12282else 12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12284$as_echo "no" >&6; } 12285fi 12286 12287 if test "x$ac_pt_PKG_CONFIG" = x; then 12288 PKG_CONFIG="" 12289 else 12290 case $cross_compiling:$ac_tool_warned in 12291yes:) 12292{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12293$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12294ac_tool_warned=yes ;; 12295esac 12296 PKG_CONFIG=$ac_pt_PKG_CONFIG 12297 fi 12298else 12299 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12300fi 12301 12302fi 12303if test -n "$PKG_CONFIG"; then 12304 _pkg_min_version=0.9.0 12305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12306$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12307 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12309$as_echo "yes" >&6; } 12310 else 12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12312$as_echo "no" >&6; } 12313 PKG_CONFIG="" 12314 fi 12315fi 12316 12317 12318 12319 12320 12321# Check whether --enable-selective-werror was given. 12322if test "${enable_selective_werror+set}" = set; then : 12323 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 12324else 12325 SELECTIVE_WERROR=yes 12326fi 12327 12328 12329 12330 12331 12332# -v is too short to test reliably with XORG_TESTSET_CFLAG 12333if test "x$SUNCC" = "xyes"; then 12334 BASE_CFLAGS="-v" 12335else 12336 BASE_CFLAGS="" 12337fi 12338 12339# This chunk of warnings were those that existed in the legacy CWARNFLAGS 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353xorg_testset_save_CFLAGS="$CFLAGS" 12354 12355if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12356 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12358$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12359if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12360 $as_echo_n "(cached) " >&6 12361else 12362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12363/* end confdefs.h. */ 12364int i; 12365_ACEOF 12366if ac_fn_c_try_compile "$LINENO"; then : 12367 xorg_cv_cc_flag_unknown_warning_option=yes 12368else 12369 xorg_cv_cc_flag_unknown_warning_option=no 12370fi 12371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12372fi 12373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12374$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12375 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12376 CFLAGS="$xorg_testset_save_CFLAGS" 12377fi 12378 12379if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12382 fi 12383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12385$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12386if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12387 $as_echo_n "(cached) " >&6 12388else 12389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12390/* end confdefs.h. */ 12391int i; 12392_ACEOF 12393if ac_fn_c_try_compile "$LINENO"; then : 12394 xorg_cv_cc_flag_unused_command_line_argument=yes 12395else 12396 xorg_cv_cc_flag_unused_command_line_argument=no 12397fi 12398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12399fi 12400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12401$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12402 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12403 CFLAGS="$xorg_testset_save_CFLAGS" 12404fi 12405 12406found="no" 12407 12408 if test $found = "no" ; then 12409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12410 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12411 fi 12412 12413 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12415 fi 12416 12417 CFLAGS="$CFLAGS -Wall" 12418 12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 12420$as_echo_n "checking if $CC supports -Wall... " >&6; } 12421 cacheid=xorg_cv_cc_flag__Wall 12422 if eval \${$cacheid+:} false; then : 12423 $as_echo_n "(cached) " >&6 12424else 12425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12426/* end confdefs.h. */ 12427int i; 12428int 12429main () 12430{ 12431 12432 ; 12433 return 0; 12434} 12435_ACEOF 12436if ac_fn_c_try_link "$LINENO"; then : 12437 eval $cacheid=yes 12438else 12439 eval $cacheid=no 12440fi 12441rm -f core conftest.err conftest.$ac_objext \ 12442 conftest$ac_exeext conftest.$ac_ext 12443fi 12444 12445 12446 CFLAGS="$xorg_testset_save_CFLAGS" 12447 12448 eval supported=\$$cacheid 12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12450$as_echo "$supported" >&6; } 12451 if test "$supported" = "yes" ; then 12452 BASE_CFLAGS="$BASE_CFLAGS -Wall" 12453 found="yes" 12454 fi 12455 fi 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465 12466 12467 12468 12469 12470 12471xorg_testset_save_CFLAGS="$CFLAGS" 12472 12473if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12476$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12477if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12478 $as_echo_n "(cached) " >&6 12479else 12480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12481/* end confdefs.h. */ 12482int i; 12483_ACEOF 12484if ac_fn_c_try_compile "$LINENO"; then : 12485 xorg_cv_cc_flag_unknown_warning_option=yes 12486else 12487 xorg_cv_cc_flag_unknown_warning_option=no 12488fi 12489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12490fi 12491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12492$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12493 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12494 CFLAGS="$xorg_testset_save_CFLAGS" 12495fi 12496 12497if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12498 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12499 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12500 fi 12501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12503$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12504if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12505 $as_echo_n "(cached) " >&6 12506else 12507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12508/* end confdefs.h. */ 12509int i; 12510_ACEOF 12511if ac_fn_c_try_compile "$LINENO"; then : 12512 xorg_cv_cc_flag_unused_command_line_argument=yes 12513else 12514 xorg_cv_cc_flag_unused_command_line_argument=no 12515fi 12516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12517fi 12518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12519$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12520 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12521 CFLAGS="$xorg_testset_save_CFLAGS" 12522fi 12523 12524found="no" 12525 12526 if test $found = "no" ; then 12527 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12528 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12529 fi 12530 12531 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12532 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12533 fi 12534 12535 CFLAGS="$CFLAGS -Wpointer-arith" 12536 12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 12538$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 12539 cacheid=xorg_cv_cc_flag__Wpointer_arith 12540 if eval \${$cacheid+:} false; then : 12541 $as_echo_n "(cached) " >&6 12542else 12543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12544/* end confdefs.h. */ 12545int i; 12546int 12547main () 12548{ 12549 12550 ; 12551 return 0; 12552} 12553_ACEOF 12554if ac_fn_c_try_link "$LINENO"; then : 12555 eval $cacheid=yes 12556else 12557 eval $cacheid=no 12558fi 12559rm -f core conftest.err conftest.$ac_objext \ 12560 conftest$ac_exeext conftest.$ac_ext 12561fi 12562 12563 12564 CFLAGS="$xorg_testset_save_CFLAGS" 12565 12566 eval supported=\$$cacheid 12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12568$as_echo "$supported" >&6; } 12569 if test "$supported" = "yes" ; then 12570 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12571 found="yes" 12572 fi 12573 fi 12574 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 12589xorg_testset_save_CFLAGS="$CFLAGS" 12590 12591if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12592 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12594$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12595if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12596 $as_echo_n "(cached) " >&6 12597else 12598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12599/* end confdefs.h. */ 12600int i; 12601_ACEOF 12602if ac_fn_c_try_compile "$LINENO"; then : 12603 xorg_cv_cc_flag_unknown_warning_option=yes 12604else 12605 xorg_cv_cc_flag_unknown_warning_option=no 12606fi 12607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12608fi 12609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12610$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12611 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12612 CFLAGS="$xorg_testset_save_CFLAGS" 12613fi 12614 12615if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12616 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12618 fi 12619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12621$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12622if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12623 $as_echo_n "(cached) " >&6 12624else 12625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12626/* end confdefs.h. */ 12627int i; 12628_ACEOF 12629if ac_fn_c_try_compile "$LINENO"; then : 12630 xorg_cv_cc_flag_unused_command_line_argument=yes 12631else 12632 xorg_cv_cc_flag_unused_command_line_argument=no 12633fi 12634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12635fi 12636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12637$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12638 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12639 CFLAGS="$xorg_testset_save_CFLAGS" 12640fi 12641 12642found="no" 12643 12644 if test $found = "no" ; then 12645 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12646 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12647 fi 12648 12649 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12651 fi 12652 12653 CFLAGS="$CFLAGS -Wmissing-declarations" 12654 12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 12656$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 12657 cacheid=xorg_cv_cc_flag__Wmissing_declarations 12658 if eval \${$cacheid+:} false; then : 12659 $as_echo_n "(cached) " >&6 12660else 12661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12662/* end confdefs.h. */ 12663int i; 12664int 12665main () 12666{ 12667 12668 ; 12669 return 0; 12670} 12671_ACEOF 12672if ac_fn_c_try_link "$LINENO"; then : 12673 eval $cacheid=yes 12674else 12675 eval $cacheid=no 12676fi 12677rm -f core conftest.err conftest.$ac_objext \ 12678 conftest$ac_exeext conftest.$ac_ext 12679fi 12680 12681 12682 CFLAGS="$xorg_testset_save_CFLAGS" 12683 12684 eval supported=\$$cacheid 12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12686$as_echo "$supported" >&6; } 12687 if test "$supported" = "yes" ; then 12688 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12689 found="yes" 12690 fi 12691 fi 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707xorg_testset_save_CFLAGS="$CFLAGS" 12708 12709if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12710 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12712$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12713if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12714 $as_echo_n "(cached) " >&6 12715else 12716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12717/* end confdefs.h. */ 12718int i; 12719_ACEOF 12720if ac_fn_c_try_compile "$LINENO"; then : 12721 xorg_cv_cc_flag_unknown_warning_option=yes 12722else 12723 xorg_cv_cc_flag_unknown_warning_option=no 12724fi 12725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12726fi 12727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12728$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12729 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12730 CFLAGS="$xorg_testset_save_CFLAGS" 12731fi 12732 12733if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12734 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12735 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12736 fi 12737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12739$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12740if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12741 $as_echo_n "(cached) " >&6 12742else 12743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12744/* end confdefs.h. */ 12745int i; 12746_ACEOF 12747if ac_fn_c_try_compile "$LINENO"; then : 12748 xorg_cv_cc_flag_unused_command_line_argument=yes 12749else 12750 xorg_cv_cc_flag_unused_command_line_argument=no 12751fi 12752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12753fi 12754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12755$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12756 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12757 CFLAGS="$xorg_testset_save_CFLAGS" 12758fi 12759 12760found="no" 12761 12762 if test $found = "no" ; then 12763 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12764 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12765 fi 12766 12767 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12769 fi 12770 12771 CFLAGS="$CFLAGS -Wformat=2" 12772 12773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12774$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12775 cacheid=xorg_cv_cc_flag__Wformat_2 12776 if eval \${$cacheid+:} false; then : 12777 $as_echo_n "(cached) " >&6 12778else 12779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12780/* end confdefs.h. */ 12781int i; 12782int 12783main () 12784{ 12785 12786 ; 12787 return 0; 12788} 12789_ACEOF 12790if ac_fn_c_try_link "$LINENO"; then : 12791 eval $cacheid=yes 12792else 12793 eval $cacheid=no 12794fi 12795rm -f core conftest.err conftest.$ac_objext \ 12796 conftest$ac_exeext conftest.$ac_ext 12797fi 12798 12799 12800 CFLAGS="$xorg_testset_save_CFLAGS" 12801 12802 eval supported=\$$cacheid 12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12804$as_echo "$supported" >&6; } 12805 if test "$supported" = "yes" ; then 12806 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12807 found="yes" 12808 fi 12809 fi 12810 12811 if test $found = "no" ; then 12812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12814 fi 12815 12816 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12818 fi 12819 12820 CFLAGS="$CFLAGS -Wformat" 12821 12822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 12823$as_echo_n "checking if $CC supports -Wformat... " >&6; } 12824 cacheid=xorg_cv_cc_flag__Wformat 12825 if eval \${$cacheid+:} false; then : 12826 $as_echo_n "(cached) " >&6 12827else 12828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12829/* end confdefs.h. */ 12830int i; 12831int 12832main () 12833{ 12834 12835 ; 12836 return 0; 12837} 12838_ACEOF 12839if ac_fn_c_try_link "$LINENO"; then : 12840 eval $cacheid=yes 12841else 12842 eval $cacheid=no 12843fi 12844rm -f core conftest.err conftest.$ac_objext \ 12845 conftest$ac_exeext conftest.$ac_ext 12846fi 12847 12848 12849 CFLAGS="$xorg_testset_save_CFLAGS" 12850 12851 eval supported=\$$cacheid 12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12853$as_echo "$supported" >&6; } 12854 if test "$supported" = "yes" ; then 12855 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 12856 found="yes" 12857 fi 12858 fi 12859 12860 12861 12862 12863 12864 12865 12866 12867 12868 12869 12870 12871 12872 12873 12874 12875 12876xorg_testset_save_CFLAGS="$CFLAGS" 12877 12878if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12879 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12881$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12882if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12883 $as_echo_n "(cached) " >&6 12884else 12885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12886/* end confdefs.h. */ 12887int i; 12888_ACEOF 12889if ac_fn_c_try_compile "$LINENO"; then : 12890 xorg_cv_cc_flag_unknown_warning_option=yes 12891else 12892 xorg_cv_cc_flag_unknown_warning_option=no 12893fi 12894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12895fi 12896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12897$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12898 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12899 CFLAGS="$xorg_testset_save_CFLAGS" 12900fi 12901 12902if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12904 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12905 fi 12906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12908$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12909if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12910 $as_echo_n "(cached) " >&6 12911else 12912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12913/* end confdefs.h. */ 12914int i; 12915_ACEOF 12916if ac_fn_c_try_compile "$LINENO"; then : 12917 xorg_cv_cc_flag_unused_command_line_argument=yes 12918else 12919 xorg_cv_cc_flag_unused_command_line_argument=no 12920fi 12921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12922fi 12923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12924$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12925 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12926 CFLAGS="$xorg_testset_save_CFLAGS" 12927fi 12928 12929found="no" 12930 12931 if test $found = "no" ; then 12932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12933 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12934 fi 12935 12936 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12937 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12938 fi 12939 12940 CFLAGS="$CFLAGS -Wstrict-prototypes" 12941 12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 12943$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 12944 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 12945 if eval \${$cacheid+:} false; then : 12946 $as_echo_n "(cached) " >&6 12947else 12948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12949/* end confdefs.h. */ 12950int i; 12951int 12952main () 12953{ 12954 12955 ; 12956 return 0; 12957} 12958_ACEOF 12959if ac_fn_c_try_link "$LINENO"; then : 12960 eval $cacheid=yes 12961else 12962 eval $cacheid=no 12963fi 12964rm -f core conftest.err conftest.$ac_objext \ 12965 conftest$ac_exeext conftest.$ac_ext 12966fi 12967 12968 12969 CFLAGS="$xorg_testset_save_CFLAGS" 12970 12971 eval supported=\$$cacheid 12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12973$as_echo "$supported" >&6; } 12974 if test "$supported" = "yes" ; then 12975 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 12976 found="yes" 12977 fi 12978 fi 12979 12980 12981 12982 12983 12984 12985 12986 12987 12988 12989 12990 12991 12992 12993 12994xorg_testset_save_CFLAGS="$CFLAGS" 12995 12996if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12997 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12999$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13000if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13001 $as_echo_n "(cached) " >&6 13002else 13003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13004/* end confdefs.h. */ 13005int i; 13006_ACEOF 13007if ac_fn_c_try_compile "$LINENO"; then : 13008 xorg_cv_cc_flag_unknown_warning_option=yes 13009else 13010 xorg_cv_cc_flag_unknown_warning_option=no 13011fi 13012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13013fi 13014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13015$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13016 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13017 CFLAGS="$xorg_testset_save_CFLAGS" 13018fi 13019 13020if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13021 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13022 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13023 fi 13024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13026$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13027if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13028 $as_echo_n "(cached) " >&6 13029else 13030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13031/* end confdefs.h. */ 13032int i; 13033_ACEOF 13034if ac_fn_c_try_compile "$LINENO"; then : 13035 xorg_cv_cc_flag_unused_command_line_argument=yes 13036else 13037 xorg_cv_cc_flag_unused_command_line_argument=no 13038fi 13039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13040fi 13041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13042$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13043 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13044 CFLAGS="$xorg_testset_save_CFLAGS" 13045fi 13046 13047found="no" 13048 13049 if test $found = "no" ; then 13050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13052 fi 13053 13054 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13056 fi 13057 13058 CFLAGS="$CFLAGS -Wmissing-prototypes" 13059 13060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 13061$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 13062 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 13063 if eval \${$cacheid+:} false; then : 13064 $as_echo_n "(cached) " >&6 13065else 13066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13067/* end confdefs.h. */ 13068int i; 13069int 13070main () 13071{ 13072 13073 ; 13074 return 0; 13075} 13076_ACEOF 13077if ac_fn_c_try_link "$LINENO"; then : 13078 eval $cacheid=yes 13079else 13080 eval $cacheid=no 13081fi 13082rm -f core conftest.err conftest.$ac_objext \ 13083 conftest$ac_exeext conftest.$ac_ext 13084fi 13085 13086 13087 CFLAGS="$xorg_testset_save_CFLAGS" 13088 13089 eval supported=\$$cacheid 13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13091$as_echo "$supported" >&6; } 13092 if test "$supported" = "yes" ; then 13093 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 13094 found="yes" 13095 fi 13096 fi 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112xorg_testset_save_CFLAGS="$CFLAGS" 13113 13114if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13115 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13117$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13118if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13119 $as_echo_n "(cached) " >&6 13120else 13121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13122/* end confdefs.h. */ 13123int i; 13124_ACEOF 13125if ac_fn_c_try_compile "$LINENO"; then : 13126 xorg_cv_cc_flag_unknown_warning_option=yes 13127else 13128 xorg_cv_cc_flag_unknown_warning_option=no 13129fi 13130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13131fi 13132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13133$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13134 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13135 CFLAGS="$xorg_testset_save_CFLAGS" 13136fi 13137 13138if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13140 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13141 fi 13142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13144$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13145if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13146 $as_echo_n "(cached) " >&6 13147else 13148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13149/* end confdefs.h. */ 13150int i; 13151_ACEOF 13152if ac_fn_c_try_compile "$LINENO"; then : 13153 xorg_cv_cc_flag_unused_command_line_argument=yes 13154else 13155 xorg_cv_cc_flag_unused_command_line_argument=no 13156fi 13157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13158fi 13159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13160$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13161 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13162 CFLAGS="$xorg_testset_save_CFLAGS" 13163fi 13164 13165found="no" 13166 13167 if test $found = "no" ; then 13168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13169 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13170 fi 13171 13172 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13174 fi 13175 13176 CFLAGS="$CFLAGS -Wnested-externs" 13177 13178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 13179$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 13180 cacheid=xorg_cv_cc_flag__Wnested_externs 13181 if eval \${$cacheid+:} false; then : 13182 $as_echo_n "(cached) " >&6 13183else 13184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13185/* end confdefs.h. */ 13186int i; 13187int 13188main () 13189{ 13190 13191 ; 13192 return 0; 13193} 13194_ACEOF 13195if ac_fn_c_try_link "$LINENO"; then : 13196 eval $cacheid=yes 13197else 13198 eval $cacheid=no 13199fi 13200rm -f core conftest.err conftest.$ac_objext \ 13201 conftest$ac_exeext conftest.$ac_ext 13202fi 13203 13204 13205 CFLAGS="$xorg_testset_save_CFLAGS" 13206 13207 eval supported=\$$cacheid 13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13209$as_echo "$supported" >&6; } 13210 if test "$supported" = "yes" ; then 13211 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 13212 found="yes" 13213 fi 13214 fi 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230xorg_testset_save_CFLAGS="$CFLAGS" 13231 13232if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13233 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13235$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13236if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13237 $as_echo_n "(cached) " >&6 13238else 13239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13240/* end confdefs.h. */ 13241int i; 13242_ACEOF 13243if ac_fn_c_try_compile "$LINENO"; then : 13244 xorg_cv_cc_flag_unknown_warning_option=yes 13245else 13246 xorg_cv_cc_flag_unknown_warning_option=no 13247fi 13248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13249fi 13250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13251$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13252 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13253 CFLAGS="$xorg_testset_save_CFLAGS" 13254fi 13255 13256if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13258 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13259 fi 13260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13262$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13263if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13264 $as_echo_n "(cached) " >&6 13265else 13266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13267/* end confdefs.h. */ 13268int i; 13269_ACEOF 13270if ac_fn_c_try_compile "$LINENO"; then : 13271 xorg_cv_cc_flag_unused_command_line_argument=yes 13272else 13273 xorg_cv_cc_flag_unused_command_line_argument=no 13274fi 13275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13276fi 13277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13278$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13279 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13280 CFLAGS="$xorg_testset_save_CFLAGS" 13281fi 13282 13283found="no" 13284 13285 if test $found = "no" ; then 13286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13288 fi 13289 13290 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13292 fi 13293 13294 CFLAGS="$CFLAGS -Wbad-function-cast" 13295 13296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 13297$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 13298 cacheid=xorg_cv_cc_flag__Wbad_function_cast 13299 if eval \${$cacheid+:} false; then : 13300 $as_echo_n "(cached) " >&6 13301else 13302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13303/* end confdefs.h. */ 13304int i; 13305int 13306main () 13307{ 13308 13309 ; 13310 return 0; 13311} 13312_ACEOF 13313if ac_fn_c_try_link "$LINENO"; then : 13314 eval $cacheid=yes 13315else 13316 eval $cacheid=no 13317fi 13318rm -f core conftest.err conftest.$ac_objext \ 13319 conftest$ac_exeext conftest.$ac_ext 13320fi 13321 13322 13323 CFLAGS="$xorg_testset_save_CFLAGS" 13324 13325 eval supported=\$$cacheid 13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13327$as_echo "$supported" >&6; } 13328 if test "$supported" = "yes" ; then 13329 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 13330 found="yes" 13331 fi 13332 fi 13333 13334 13335 13336 13337 13338 13339 13340 13341 13342 13343 13344 13345 13346 13347 13348xorg_testset_save_CFLAGS="$CFLAGS" 13349 13350if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13351 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13353$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13354if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13355 $as_echo_n "(cached) " >&6 13356else 13357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13358/* end confdefs.h. */ 13359int i; 13360_ACEOF 13361if ac_fn_c_try_compile "$LINENO"; then : 13362 xorg_cv_cc_flag_unknown_warning_option=yes 13363else 13364 xorg_cv_cc_flag_unknown_warning_option=no 13365fi 13366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13367fi 13368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13369$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13370 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13371 CFLAGS="$xorg_testset_save_CFLAGS" 13372fi 13373 13374if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13377 fi 13378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13380$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13381if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13382 $as_echo_n "(cached) " >&6 13383else 13384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13385/* end confdefs.h. */ 13386int i; 13387_ACEOF 13388if ac_fn_c_try_compile "$LINENO"; then : 13389 xorg_cv_cc_flag_unused_command_line_argument=yes 13390else 13391 xorg_cv_cc_flag_unused_command_line_argument=no 13392fi 13393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13394fi 13395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13396$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13397 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13398 CFLAGS="$xorg_testset_save_CFLAGS" 13399fi 13400 13401found="no" 13402 13403 if test $found = "no" ; then 13404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13406 fi 13407 13408 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13410 fi 13411 13412 CFLAGS="$CFLAGS -Wold-style-definition" 13413 13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 13415$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 13416 cacheid=xorg_cv_cc_flag__Wold_style_definition 13417 if eval \${$cacheid+:} false; then : 13418 $as_echo_n "(cached) " >&6 13419else 13420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13421/* end confdefs.h. */ 13422int i; 13423int 13424main () 13425{ 13426 13427 ; 13428 return 0; 13429} 13430_ACEOF 13431if ac_fn_c_try_link "$LINENO"; then : 13432 eval $cacheid=yes 13433else 13434 eval $cacheid=no 13435fi 13436rm -f core conftest.err conftest.$ac_objext \ 13437 conftest$ac_exeext conftest.$ac_ext 13438fi 13439 13440 13441 CFLAGS="$xorg_testset_save_CFLAGS" 13442 13443 eval supported=\$$cacheid 13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13445$as_echo "$supported" >&6; } 13446 if test "$supported" = "yes" ; then 13447 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 13448 found="yes" 13449 fi 13450 fi 13451 13452 if test $found = "no" ; then 13453 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13454 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13455 fi 13456 13457 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13458 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13459 fi 13460 13461 CFLAGS="$CFLAGS -fd" 13462 13463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 13464$as_echo_n "checking if $CC supports -fd... " >&6; } 13465 cacheid=xorg_cv_cc_flag__fd 13466 if eval \${$cacheid+:} false; then : 13467 $as_echo_n "(cached) " >&6 13468else 13469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13470/* end confdefs.h. */ 13471int i; 13472int 13473main () 13474{ 13475 13476 ; 13477 return 0; 13478} 13479_ACEOF 13480if ac_fn_c_try_link "$LINENO"; then : 13481 eval $cacheid=yes 13482else 13483 eval $cacheid=no 13484fi 13485rm -f core conftest.err conftest.$ac_objext \ 13486 conftest$ac_exeext conftest.$ac_ext 13487fi 13488 13489 13490 CFLAGS="$xorg_testset_save_CFLAGS" 13491 13492 eval supported=\$$cacheid 13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13494$as_echo "$supported" >&6; } 13495 if test "$supported" = "yes" ; then 13496 BASE_CFLAGS="$BASE_CFLAGS -fd" 13497 found="yes" 13498 fi 13499 fi 13500 13501 13502 13503 13504 13505 13506 13507 13508 13509 13510 13511 13512 13513 13514 13515xorg_testset_save_CFLAGS="$CFLAGS" 13516 13517if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13518 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13520$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13521if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13522 $as_echo_n "(cached) " >&6 13523else 13524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13525/* end confdefs.h. */ 13526int i; 13527_ACEOF 13528if ac_fn_c_try_compile "$LINENO"; then : 13529 xorg_cv_cc_flag_unknown_warning_option=yes 13530else 13531 xorg_cv_cc_flag_unknown_warning_option=no 13532fi 13533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13534fi 13535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13536$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13537 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13538 CFLAGS="$xorg_testset_save_CFLAGS" 13539fi 13540 13541if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13543 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13544 fi 13545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13547$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13548if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13549 $as_echo_n "(cached) " >&6 13550else 13551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13552/* end confdefs.h. */ 13553int i; 13554_ACEOF 13555if ac_fn_c_try_compile "$LINENO"; then : 13556 xorg_cv_cc_flag_unused_command_line_argument=yes 13557else 13558 xorg_cv_cc_flag_unused_command_line_argument=no 13559fi 13560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13561fi 13562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13563$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13564 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13565 CFLAGS="$xorg_testset_save_CFLAGS" 13566fi 13567 13568found="no" 13569 13570 if test $found = "no" ; then 13571 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13572 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13573 fi 13574 13575 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13576 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13577 fi 13578 13579 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 13580 13581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 13582$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 13583 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 13584 if eval \${$cacheid+:} false; then : 13585 $as_echo_n "(cached) " >&6 13586else 13587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13588/* end confdefs.h. */ 13589int i; 13590int 13591main () 13592{ 13593 13594 ; 13595 return 0; 13596} 13597_ACEOF 13598if ac_fn_c_try_link "$LINENO"; then : 13599 eval $cacheid=yes 13600else 13601 eval $cacheid=no 13602fi 13603rm -f core conftest.err conftest.$ac_objext \ 13604 conftest$ac_exeext conftest.$ac_ext 13605fi 13606 13607 13608 CFLAGS="$xorg_testset_save_CFLAGS" 13609 13610 eval supported=\$$cacheid 13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13612$as_echo "$supported" >&6; } 13613 if test "$supported" = "yes" ; then 13614 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 13615 found="yes" 13616 fi 13617 fi 13618 13619 13620 13621 13622 13623# This chunk adds additional warnings that could catch undesired effects. 13624 13625 13626 13627 13628 13629 13630 13631 13632 13633 13634 13635 13636 13637xorg_testset_save_CFLAGS="$CFLAGS" 13638 13639if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13640 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13642$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13643if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13644 $as_echo_n "(cached) " >&6 13645else 13646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13647/* end confdefs.h. */ 13648int i; 13649_ACEOF 13650if ac_fn_c_try_compile "$LINENO"; then : 13651 xorg_cv_cc_flag_unknown_warning_option=yes 13652else 13653 xorg_cv_cc_flag_unknown_warning_option=no 13654fi 13655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13656fi 13657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13658$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13659 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13660 CFLAGS="$xorg_testset_save_CFLAGS" 13661fi 13662 13663if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13664 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13665 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13666 fi 13667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13669$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13670if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13671 $as_echo_n "(cached) " >&6 13672else 13673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13674/* end confdefs.h. */ 13675int i; 13676_ACEOF 13677if ac_fn_c_try_compile "$LINENO"; then : 13678 xorg_cv_cc_flag_unused_command_line_argument=yes 13679else 13680 xorg_cv_cc_flag_unused_command_line_argument=no 13681fi 13682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13683fi 13684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13685$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13686 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13687 CFLAGS="$xorg_testset_save_CFLAGS" 13688fi 13689 13690found="no" 13691 13692 if test $found = "no" ; then 13693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13695 fi 13696 13697 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13699 fi 13700 13701 CFLAGS="$CFLAGS -Wunused" 13702 13703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 13704$as_echo_n "checking if $CC supports -Wunused... " >&6; } 13705 cacheid=xorg_cv_cc_flag__Wunused 13706 if eval \${$cacheid+:} false; then : 13707 $as_echo_n "(cached) " >&6 13708else 13709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13710/* end confdefs.h. */ 13711int i; 13712int 13713main () 13714{ 13715 13716 ; 13717 return 0; 13718} 13719_ACEOF 13720if ac_fn_c_try_link "$LINENO"; then : 13721 eval $cacheid=yes 13722else 13723 eval $cacheid=no 13724fi 13725rm -f core conftest.err conftest.$ac_objext \ 13726 conftest$ac_exeext conftest.$ac_ext 13727fi 13728 13729 13730 CFLAGS="$xorg_testset_save_CFLAGS" 13731 13732 eval supported=\$$cacheid 13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13734$as_echo "$supported" >&6; } 13735 if test "$supported" = "yes" ; then 13736 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13737 found="yes" 13738 fi 13739 fi 13740 13741 13742 13743 13744 13745 13746 13747 13748 13749 13750 13751 13752 13753 13754 13755xorg_testset_save_CFLAGS="$CFLAGS" 13756 13757if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13758 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13760$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13761if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13762 $as_echo_n "(cached) " >&6 13763else 13764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13765/* end confdefs.h. */ 13766int i; 13767_ACEOF 13768if ac_fn_c_try_compile "$LINENO"; then : 13769 xorg_cv_cc_flag_unknown_warning_option=yes 13770else 13771 xorg_cv_cc_flag_unknown_warning_option=no 13772fi 13773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13774fi 13775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13776$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13777 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13778 CFLAGS="$xorg_testset_save_CFLAGS" 13779fi 13780 13781if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13782 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13783 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13784 fi 13785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13787$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13788if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13789 $as_echo_n "(cached) " >&6 13790else 13791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13792/* end confdefs.h. */ 13793int i; 13794_ACEOF 13795if ac_fn_c_try_compile "$LINENO"; then : 13796 xorg_cv_cc_flag_unused_command_line_argument=yes 13797else 13798 xorg_cv_cc_flag_unused_command_line_argument=no 13799fi 13800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13801fi 13802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13803$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13804 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13805 CFLAGS="$xorg_testset_save_CFLAGS" 13806fi 13807 13808found="no" 13809 13810 if test $found = "no" ; then 13811 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13812 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13813 fi 13814 13815 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13816 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13817 fi 13818 13819 CFLAGS="$CFLAGS -Wuninitialized" 13820 13821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 13822$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 13823 cacheid=xorg_cv_cc_flag__Wuninitialized 13824 if eval \${$cacheid+:} false; then : 13825 $as_echo_n "(cached) " >&6 13826else 13827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13828/* end confdefs.h. */ 13829int i; 13830int 13831main () 13832{ 13833 13834 ; 13835 return 0; 13836} 13837_ACEOF 13838if ac_fn_c_try_link "$LINENO"; then : 13839 eval $cacheid=yes 13840else 13841 eval $cacheid=no 13842fi 13843rm -f core conftest.err conftest.$ac_objext \ 13844 conftest$ac_exeext conftest.$ac_ext 13845fi 13846 13847 13848 CFLAGS="$xorg_testset_save_CFLAGS" 13849 13850 eval supported=\$$cacheid 13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13852$as_echo "$supported" >&6; } 13853 if test "$supported" = "yes" ; then 13854 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13855 found="yes" 13856 fi 13857 fi 13858 13859 13860 13861 13862 13863 13864 13865 13866 13867 13868 13869 13870 13871 13872 13873xorg_testset_save_CFLAGS="$CFLAGS" 13874 13875if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13878$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13879if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13880 $as_echo_n "(cached) " >&6 13881else 13882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13883/* end confdefs.h. */ 13884int i; 13885_ACEOF 13886if ac_fn_c_try_compile "$LINENO"; then : 13887 xorg_cv_cc_flag_unknown_warning_option=yes 13888else 13889 xorg_cv_cc_flag_unknown_warning_option=no 13890fi 13891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13892fi 13893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13894$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13895 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13896 CFLAGS="$xorg_testset_save_CFLAGS" 13897fi 13898 13899if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13900 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13901 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13902 fi 13903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13905$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13906if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13907 $as_echo_n "(cached) " >&6 13908else 13909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13910/* end confdefs.h. */ 13911int i; 13912_ACEOF 13913if ac_fn_c_try_compile "$LINENO"; then : 13914 xorg_cv_cc_flag_unused_command_line_argument=yes 13915else 13916 xorg_cv_cc_flag_unused_command_line_argument=no 13917fi 13918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13919fi 13920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13921$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13922 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13923 CFLAGS="$xorg_testset_save_CFLAGS" 13924fi 13925 13926found="no" 13927 13928 if test $found = "no" ; then 13929 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13930 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13931 fi 13932 13933 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13934 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13935 fi 13936 13937 CFLAGS="$CFLAGS -Wshadow" 13938 13939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 13940$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 13941 cacheid=xorg_cv_cc_flag__Wshadow 13942 if eval \${$cacheid+:} false; then : 13943 $as_echo_n "(cached) " >&6 13944else 13945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13946/* end confdefs.h. */ 13947int i; 13948int 13949main () 13950{ 13951 13952 ; 13953 return 0; 13954} 13955_ACEOF 13956if ac_fn_c_try_link "$LINENO"; then : 13957 eval $cacheid=yes 13958else 13959 eval $cacheid=no 13960fi 13961rm -f core conftest.err conftest.$ac_objext \ 13962 conftest$ac_exeext conftest.$ac_ext 13963fi 13964 13965 13966 CFLAGS="$xorg_testset_save_CFLAGS" 13967 13968 eval supported=\$$cacheid 13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13970$as_echo "$supported" >&6; } 13971 if test "$supported" = "yes" ; then 13972 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 13973 found="yes" 13974 fi 13975 fi 13976 13977 13978 13979 13980 13981 13982 13983 13984 13985 13986 13987 13988 13989 13990 13991xorg_testset_save_CFLAGS="$CFLAGS" 13992 13993if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13994 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13996$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13997if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13998 $as_echo_n "(cached) " >&6 13999else 14000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14001/* end confdefs.h. */ 14002int i; 14003_ACEOF 14004if ac_fn_c_try_compile "$LINENO"; then : 14005 xorg_cv_cc_flag_unknown_warning_option=yes 14006else 14007 xorg_cv_cc_flag_unknown_warning_option=no 14008fi 14009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14010fi 14011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14012$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14013 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14014 CFLAGS="$xorg_testset_save_CFLAGS" 14015fi 14016 14017if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14019 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14020 fi 14021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14023$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14024if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14025 $as_echo_n "(cached) " >&6 14026else 14027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14028/* end confdefs.h. */ 14029int i; 14030_ACEOF 14031if ac_fn_c_try_compile "$LINENO"; then : 14032 xorg_cv_cc_flag_unused_command_line_argument=yes 14033else 14034 xorg_cv_cc_flag_unused_command_line_argument=no 14035fi 14036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14037fi 14038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14039$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14040 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14041 CFLAGS="$xorg_testset_save_CFLAGS" 14042fi 14043 14044found="no" 14045 14046 if test $found = "no" ; then 14047 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14048 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14049 fi 14050 14051 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14052 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14053 fi 14054 14055 CFLAGS="$CFLAGS -Wmissing-noreturn" 14056 14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 14058$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 14059 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 14060 if eval \${$cacheid+:} false; then : 14061 $as_echo_n "(cached) " >&6 14062else 14063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14064/* end confdefs.h. */ 14065int i; 14066int 14067main () 14068{ 14069 14070 ; 14071 return 0; 14072} 14073_ACEOF 14074if ac_fn_c_try_link "$LINENO"; then : 14075 eval $cacheid=yes 14076else 14077 eval $cacheid=no 14078fi 14079rm -f core conftest.err conftest.$ac_objext \ 14080 conftest$ac_exeext conftest.$ac_ext 14081fi 14082 14083 14084 CFLAGS="$xorg_testset_save_CFLAGS" 14085 14086 eval supported=\$$cacheid 14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14088$as_echo "$supported" >&6; } 14089 if test "$supported" = "yes" ; then 14090 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 14091 found="yes" 14092 fi 14093 fi 14094 14095 14096 14097 14098 14099 14100 14101 14102 14103 14104 14105 14106 14107 14108 14109xorg_testset_save_CFLAGS="$CFLAGS" 14110 14111if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14114$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14115if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14116 $as_echo_n "(cached) " >&6 14117else 14118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14119/* end confdefs.h. */ 14120int i; 14121_ACEOF 14122if ac_fn_c_try_compile "$LINENO"; then : 14123 xorg_cv_cc_flag_unknown_warning_option=yes 14124else 14125 xorg_cv_cc_flag_unknown_warning_option=no 14126fi 14127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14128fi 14129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14130$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14131 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14132 CFLAGS="$xorg_testset_save_CFLAGS" 14133fi 14134 14135if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14136 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14137 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14138 fi 14139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14141$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14142if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14143 $as_echo_n "(cached) " >&6 14144else 14145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14146/* end confdefs.h. */ 14147int i; 14148_ACEOF 14149if ac_fn_c_try_compile "$LINENO"; then : 14150 xorg_cv_cc_flag_unused_command_line_argument=yes 14151else 14152 xorg_cv_cc_flag_unused_command_line_argument=no 14153fi 14154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14155fi 14156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14157$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14158 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14159 CFLAGS="$xorg_testset_save_CFLAGS" 14160fi 14161 14162found="no" 14163 14164 if test $found = "no" ; then 14165 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14166 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14167 fi 14168 14169 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14171 fi 14172 14173 CFLAGS="$CFLAGS -Wmissing-format-attribute" 14174 14175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 14176$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 14177 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 14178 if eval \${$cacheid+:} false; then : 14179 $as_echo_n "(cached) " >&6 14180else 14181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14182/* end confdefs.h. */ 14183int i; 14184int 14185main () 14186{ 14187 14188 ; 14189 return 0; 14190} 14191_ACEOF 14192if ac_fn_c_try_link "$LINENO"; then : 14193 eval $cacheid=yes 14194else 14195 eval $cacheid=no 14196fi 14197rm -f core conftest.err conftest.$ac_objext \ 14198 conftest$ac_exeext conftest.$ac_ext 14199fi 14200 14201 14202 CFLAGS="$xorg_testset_save_CFLAGS" 14203 14204 eval supported=\$$cacheid 14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14206$as_echo "$supported" >&6; } 14207 if test "$supported" = "yes" ; then 14208 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 14209 found="yes" 14210 fi 14211 fi 14212 14213 14214 14215 14216 14217 14218 14219 14220 14221 14222 14223 14224 14225 14226 14227xorg_testset_save_CFLAGS="$CFLAGS" 14228 14229if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14232$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14233if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14234 $as_echo_n "(cached) " >&6 14235else 14236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14237/* end confdefs.h. */ 14238int i; 14239_ACEOF 14240if ac_fn_c_try_compile "$LINENO"; then : 14241 xorg_cv_cc_flag_unknown_warning_option=yes 14242else 14243 xorg_cv_cc_flag_unknown_warning_option=no 14244fi 14245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14246fi 14247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14248$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14249 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14250 CFLAGS="$xorg_testset_save_CFLAGS" 14251fi 14252 14253if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14254 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14255 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14256 fi 14257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14259$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14260if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14261 $as_echo_n "(cached) " >&6 14262else 14263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14264/* end confdefs.h. */ 14265int i; 14266_ACEOF 14267if ac_fn_c_try_compile "$LINENO"; then : 14268 xorg_cv_cc_flag_unused_command_line_argument=yes 14269else 14270 xorg_cv_cc_flag_unused_command_line_argument=no 14271fi 14272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14273fi 14274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14275$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14276 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14277 CFLAGS="$xorg_testset_save_CFLAGS" 14278fi 14279 14280found="no" 14281 14282 if test $found = "no" ; then 14283 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14284 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14285 fi 14286 14287 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14288 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14289 fi 14290 14291 CFLAGS="$CFLAGS -Wredundant-decls" 14292 14293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 14294$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 14295 cacheid=xorg_cv_cc_flag__Wredundant_decls 14296 if eval \${$cacheid+:} false; then : 14297 $as_echo_n "(cached) " >&6 14298else 14299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14300/* end confdefs.h. */ 14301int i; 14302int 14303main () 14304{ 14305 14306 ; 14307 return 0; 14308} 14309_ACEOF 14310if ac_fn_c_try_link "$LINENO"; then : 14311 eval $cacheid=yes 14312else 14313 eval $cacheid=no 14314fi 14315rm -f core conftest.err conftest.$ac_objext \ 14316 conftest$ac_exeext conftest.$ac_ext 14317fi 14318 14319 14320 CFLAGS="$xorg_testset_save_CFLAGS" 14321 14322 eval supported=\$$cacheid 14323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14324$as_echo "$supported" >&6; } 14325 if test "$supported" = "yes" ; then 14326 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 14327 found="yes" 14328 fi 14329 fi 14330 14331 14332 14333 14334 14335 14336 14337 14338 14339 14340 14341 14342 14343 14344 14345xorg_testset_save_CFLAGS="$CFLAGS" 14346 14347if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14348 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14350$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14351if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14352 $as_echo_n "(cached) " >&6 14353else 14354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14355/* end confdefs.h. */ 14356int i; 14357_ACEOF 14358if ac_fn_c_try_compile "$LINENO"; then : 14359 xorg_cv_cc_flag_unknown_warning_option=yes 14360else 14361 xorg_cv_cc_flag_unknown_warning_option=no 14362fi 14363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14364fi 14365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14366$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14367 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14368 CFLAGS="$xorg_testset_save_CFLAGS" 14369fi 14370 14371if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14372 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14373 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14374 fi 14375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14377$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14378if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14379 $as_echo_n "(cached) " >&6 14380else 14381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14382/* end confdefs.h. */ 14383int i; 14384_ACEOF 14385if ac_fn_c_try_compile "$LINENO"; then : 14386 xorg_cv_cc_flag_unused_command_line_argument=yes 14387else 14388 xorg_cv_cc_flag_unused_command_line_argument=no 14389fi 14390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14391fi 14392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14393$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14394 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14395 CFLAGS="$xorg_testset_save_CFLAGS" 14396fi 14397 14398found="no" 14399 14400 if test $found = "no" ; then 14401 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14402 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14403 fi 14404 14405 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14406 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14407 fi 14408 14409 CFLAGS="$CFLAGS -Wlogical-op" 14410 14411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 14412$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 14413 cacheid=xorg_cv_cc_flag__Wlogical_op 14414 if eval \${$cacheid+:} false; then : 14415 $as_echo_n "(cached) " >&6 14416else 14417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14418/* end confdefs.h. */ 14419int i; 14420int 14421main () 14422{ 14423 14424 ; 14425 return 0; 14426} 14427_ACEOF 14428if ac_fn_c_try_link "$LINENO"; then : 14429 eval $cacheid=yes 14430else 14431 eval $cacheid=no 14432fi 14433rm -f core conftest.err conftest.$ac_objext \ 14434 conftest$ac_exeext conftest.$ac_ext 14435fi 14436 14437 14438 CFLAGS="$xorg_testset_save_CFLAGS" 14439 14440 eval supported=\$$cacheid 14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14442$as_echo "$supported" >&6; } 14443 if test "$supported" = "yes" ; then 14444 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 14445 found="yes" 14446 fi 14447 fi 14448 14449 14450 14451# These are currently disabled because they are noisy. They will be enabled 14452# in the future once the codebase is sufficiently modernized to silence 14453# them. For now, I don't want them to drown out the other warnings. 14454# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 14455# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 14456# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 14457 14458# Turn some warnings into errors, so we don't accidently get successful builds 14459# when there are problems that should be fixed. 14460 14461if test "x$SELECTIVE_WERROR" = "xyes" ; then 14462 14463 14464 14465 14466 14467 14468 14469 14470 14471 14472 14473 14474 14475xorg_testset_save_CFLAGS="$CFLAGS" 14476 14477if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14478 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14480$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14481if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14482 $as_echo_n "(cached) " >&6 14483else 14484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14485/* end confdefs.h. */ 14486int i; 14487_ACEOF 14488if ac_fn_c_try_compile "$LINENO"; then : 14489 xorg_cv_cc_flag_unknown_warning_option=yes 14490else 14491 xorg_cv_cc_flag_unknown_warning_option=no 14492fi 14493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14494fi 14495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14496$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14497 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14498 CFLAGS="$xorg_testset_save_CFLAGS" 14499fi 14500 14501if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14502 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14503 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14504 fi 14505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14507$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14508if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14509 $as_echo_n "(cached) " >&6 14510else 14511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14512/* end confdefs.h. */ 14513int i; 14514_ACEOF 14515if ac_fn_c_try_compile "$LINENO"; then : 14516 xorg_cv_cc_flag_unused_command_line_argument=yes 14517else 14518 xorg_cv_cc_flag_unused_command_line_argument=no 14519fi 14520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14521fi 14522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14523$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14524 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14525 CFLAGS="$xorg_testset_save_CFLAGS" 14526fi 14527 14528found="no" 14529 14530 if test $found = "no" ; then 14531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14533 fi 14534 14535 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14536 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14537 fi 14538 14539 CFLAGS="$CFLAGS -Werror=implicit" 14540 14541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 14542$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 14543 cacheid=xorg_cv_cc_flag__Werror_implicit 14544 if eval \${$cacheid+:} false; then : 14545 $as_echo_n "(cached) " >&6 14546else 14547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14548/* end confdefs.h. */ 14549int i; 14550int 14551main () 14552{ 14553 14554 ; 14555 return 0; 14556} 14557_ACEOF 14558if ac_fn_c_try_link "$LINENO"; then : 14559 eval $cacheid=yes 14560else 14561 eval $cacheid=no 14562fi 14563rm -f core conftest.err conftest.$ac_objext \ 14564 conftest$ac_exeext conftest.$ac_ext 14565fi 14566 14567 14568 CFLAGS="$xorg_testset_save_CFLAGS" 14569 14570 eval supported=\$$cacheid 14571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14572$as_echo "$supported" >&6; } 14573 if test "$supported" = "yes" ; then 14574 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 14575 found="yes" 14576 fi 14577 fi 14578 14579 if test $found = "no" ; then 14580 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14581 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14582 fi 14583 14584 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14586 fi 14587 14588 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14589 14590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 14591$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 14592 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 14593 if eval \${$cacheid+:} false; then : 14594 $as_echo_n "(cached) " >&6 14595else 14596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14597/* end confdefs.h. */ 14598int i; 14599int 14600main () 14601{ 14602 14603 ; 14604 return 0; 14605} 14606_ACEOF 14607if ac_fn_c_try_link "$LINENO"; then : 14608 eval $cacheid=yes 14609else 14610 eval $cacheid=no 14611fi 14612rm -f core conftest.err conftest.$ac_objext \ 14613 conftest$ac_exeext conftest.$ac_ext 14614fi 14615 14616 14617 CFLAGS="$xorg_testset_save_CFLAGS" 14618 14619 eval supported=\$$cacheid 14620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14621$as_echo "$supported" >&6; } 14622 if test "$supported" = "yes" ; then 14623 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14624 found="yes" 14625 fi 14626 fi 14627 14628 14629 14630 14631 14632 14633 14634 14635 14636 14637 14638 14639 14640 14641 14642xorg_testset_save_CFLAGS="$CFLAGS" 14643 14644if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14645 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14647$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14648if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14649 $as_echo_n "(cached) " >&6 14650else 14651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14652/* end confdefs.h. */ 14653int i; 14654_ACEOF 14655if ac_fn_c_try_compile "$LINENO"; then : 14656 xorg_cv_cc_flag_unknown_warning_option=yes 14657else 14658 xorg_cv_cc_flag_unknown_warning_option=no 14659fi 14660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14661fi 14662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14663$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14664 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14665 CFLAGS="$xorg_testset_save_CFLAGS" 14666fi 14667 14668if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14669 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14670 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14671 fi 14672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14674$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14675if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14676 $as_echo_n "(cached) " >&6 14677else 14678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14679/* end confdefs.h. */ 14680int i; 14681_ACEOF 14682if ac_fn_c_try_compile "$LINENO"; then : 14683 xorg_cv_cc_flag_unused_command_line_argument=yes 14684else 14685 xorg_cv_cc_flag_unused_command_line_argument=no 14686fi 14687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14688fi 14689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14690$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14691 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14692 CFLAGS="$xorg_testset_save_CFLAGS" 14693fi 14694 14695found="no" 14696 14697 if test $found = "no" ; then 14698 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14699 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14700 fi 14701 14702 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14704 fi 14705 14706 CFLAGS="$CFLAGS -Werror=nonnull" 14707 14708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 14709$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 14710 cacheid=xorg_cv_cc_flag__Werror_nonnull 14711 if eval \${$cacheid+:} false; then : 14712 $as_echo_n "(cached) " >&6 14713else 14714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14715/* end confdefs.h. */ 14716int i; 14717int 14718main () 14719{ 14720 14721 ; 14722 return 0; 14723} 14724_ACEOF 14725if ac_fn_c_try_link "$LINENO"; then : 14726 eval $cacheid=yes 14727else 14728 eval $cacheid=no 14729fi 14730rm -f core conftest.err conftest.$ac_objext \ 14731 conftest$ac_exeext conftest.$ac_ext 14732fi 14733 14734 14735 CFLAGS="$xorg_testset_save_CFLAGS" 14736 14737 eval supported=\$$cacheid 14738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14739$as_echo "$supported" >&6; } 14740 if test "$supported" = "yes" ; then 14741 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14742 found="yes" 14743 fi 14744 fi 14745 14746 14747 14748 14749 14750 14751 14752 14753 14754 14755 14756 14757 14758 14759 14760xorg_testset_save_CFLAGS="$CFLAGS" 14761 14762if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14763 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14765$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14766if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14767 $as_echo_n "(cached) " >&6 14768else 14769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14770/* end confdefs.h. */ 14771int i; 14772_ACEOF 14773if ac_fn_c_try_compile "$LINENO"; then : 14774 xorg_cv_cc_flag_unknown_warning_option=yes 14775else 14776 xorg_cv_cc_flag_unknown_warning_option=no 14777fi 14778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14779fi 14780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14781$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14782 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14783 CFLAGS="$xorg_testset_save_CFLAGS" 14784fi 14785 14786if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14787 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14788 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14789 fi 14790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14792$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14793if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14794 $as_echo_n "(cached) " >&6 14795else 14796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14797/* end confdefs.h. */ 14798int i; 14799_ACEOF 14800if ac_fn_c_try_compile "$LINENO"; then : 14801 xorg_cv_cc_flag_unused_command_line_argument=yes 14802else 14803 xorg_cv_cc_flag_unused_command_line_argument=no 14804fi 14805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14806fi 14807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14808$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14809 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14810 CFLAGS="$xorg_testset_save_CFLAGS" 14811fi 14812 14813found="no" 14814 14815 if test $found = "no" ; then 14816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14817 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14818 fi 14819 14820 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14821 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14822 fi 14823 14824 CFLAGS="$CFLAGS -Werror=init-self" 14825 14826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 14827$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 14828 cacheid=xorg_cv_cc_flag__Werror_init_self 14829 if eval \${$cacheid+:} false; then : 14830 $as_echo_n "(cached) " >&6 14831else 14832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14833/* end confdefs.h. */ 14834int i; 14835int 14836main () 14837{ 14838 14839 ; 14840 return 0; 14841} 14842_ACEOF 14843if ac_fn_c_try_link "$LINENO"; then : 14844 eval $cacheid=yes 14845else 14846 eval $cacheid=no 14847fi 14848rm -f core conftest.err conftest.$ac_objext \ 14849 conftest$ac_exeext conftest.$ac_ext 14850fi 14851 14852 14853 CFLAGS="$xorg_testset_save_CFLAGS" 14854 14855 eval supported=\$$cacheid 14856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14857$as_echo "$supported" >&6; } 14858 if test "$supported" = "yes" ; then 14859 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 14860 found="yes" 14861 fi 14862 fi 14863 14864 14865 14866 14867 14868 14869 14870 14871 14872 14873 14874 14875 14876 14877 14878xorg_testset_save_CFLAGS="$CFLAGS" 14879 14880if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14883$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14884if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14885 $as_echo_n "(cached) " >&6 14886else 14887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14888/* end confdefs.h. */ 14889int i; 14890_ACEOF 14891if ac_fn_c_try_compile "$LINENO"; then : 14892 xorg_cv_cc_flag_unknown_warning_option=yes 14893else 14894 xorg_cv_cc_flag_unknown_warning_option=no 14895fi 14896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14897fi 14898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14899$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14900 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14901 CFLAGS="$xorg_testset_save_CFLAGS" 14902fi 14903 14904if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14905 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14906 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14907 fi 14908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14910$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14911if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14912 $as_echo_n "(cached) " >&6 14913else 14914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14915/* end confdefs.h. */ 14916int i; 14917_ACEOF 14918if ac_fn_c_try_compile "$LINENO"; then : 14919 xorg_cv_cc_flag_unused_command_line_argument=yes 14920else 14921 xorg_cv_cc_flag_unused_command_line_argument=no 14922fi 14923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14924fi 14925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14926$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14927 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14928 CFLAGS="$xorg_testset_save_CFLAGS" 14929fi 14930 14931found="no" 14932 14933 if test $found = "no" ; then 14934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14935 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14936 fi 14937 14938 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14939 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14940 fi 14941 14942 CFLAGS="$CFLAGS -Werror=main" 14943 14944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 14945$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 14946 cacheid=xorg_cv_cc_flag__Werror_main 14947 if eval \${$cacheid+:} false; then : 14948 $as_echo_n "(cached) " >&6 14949else 14950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14951/* end confdefs.h. */ 14952int i; 14953int 14954main () 14955{ 14956 14957 ; 14958 return 0; 14959} 14960_ACEOF 14961if ac_fn_c_try_link "$LINENO"; then : 14962 eval $cacheid=yes 14963else 14964 eval $cacheid=no 14965fi 14966rm -f core conftest.err conftest.$ac_objext \ 14967 conftest$ac_exeext conftest.$ac_ext 14968fi 14969 14970 14971 CFLAGS="$xorg_testset_save_CFLAGS" 14972 14973 eval supported=\$$cacheid 14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14975$as_echo "$supported" >&6; } 14976 if test "$supported" = "yes" ; then 14977 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 14978 found="yes" 14979 fi 14980 fi 14981 14982 14983 14984 14985 14986 14987 14988 14989 14990 14991 14992 14993 14994 14995 14996xorg_testset_save_CFLAGS="$CFLAGS" 14997 14998if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15001$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15002if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15003 $as_echo_n "(cached) " >&6 15004else 15005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15006/* end confdefs.h. */ 15007int i; 15008_ACEOF 15009if ac_fn_c_try_compile "$LINENO"; then : 15010 xorg_cv_cc_flag_unknown_warning_option=yes 15011else 15012 xorg_cv_cc_flag_unknown_warning_option=no 15013fi 15014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15015fi 15016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15017$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15018 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15019 CFLAGS="$xorg_testset_save_CFLAGS" 15020fi 15021 15022if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15023 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15025 fi 15026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15028$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15029if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15030 $as_echo_n "(cached) " >&6 15031else 15032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15033/* end confdefs.h. */ 15034int i; 15035_ACEOF 15036if ac_fn_c_try_compile "$LINENO"; then : 15037 xorg_cv_cc_flag_unused_command_line_argument=yes 15038else 15039 xorg_cv_cc_flag_unused_command_line_argument=no 15040fi 15041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15042fi 15043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15044$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15045 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15046 CFLAGS="$xorg_testset_save_CFLAGS" 15047fi 15048 15049found="no" 15050 15051 if test $found = "no" ; then 15052 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15053 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15054 fi 15055 15056 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15057 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15058 fi 15059 15060 CFLAGS="$CFLAGS -Werror=missing-braces" 15061 15062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 15063$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 15064 cacheid=xorg_cv_cc_flag__Werror_missing_braces 15065 if eval \${$cacheid+:} false; then : 15066 $as_echo_n "(cached) " >&6 15067else 15068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15069/* end confdefs.h. */ 15070int i; 15071int 15072main () 15073{ 15074 15075 ; 15076 return 0; 15077} 15078_ACEOF 15079if ac_fn_c_try_link "$LINENO"; then : 15080 eval $cacheid=yes 15081else 15082 eval $cacheid=no 15083fi 15084rm -f core conftest.err conftest.$ac_objext \ 15085 conftest$ac_exeext conftest.$ac_ext 15086fi 15087 15088 15089 CFLAGS="$xorg_testset_save_CFLAGS" 15090 15091 eval supported=\$$cacheid 15092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15093$as_echo "$supported" >&6; } 15094 if test "$supported" = "yes" ; then 15095 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 15096 found="yes" 15097 fi 15098 fi 15099 15100 15101 15102 15103 15104 15105 15106 15107 15108 15109 15110 15111 15112 15113 15114xorg_testset_save_CFLAGS="$CFLAGS" 15115 15116if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15119$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15120if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15121 $as_echo_n "(cached) " >&6 15122else 15123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15124/* end confdefs.h. */ 15125int i; 15126_ACEOF 15127if ac_fn_c_try_compile "$LINENO"; then : 15128 xorg_cv_cc_flag_unknown_warning_option=yes 15129else 15130 xorg_cv_cc_flag_unknown_warning_option=no 15131fi 15132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15133fi 15134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15135$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15136 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15137 CFLAGS="$xorg_testset_save_CFLAGS" 15138fi 15139 15140if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15141 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15142 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15143 fi 15144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15146$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15147if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15148 $as_echo_n "(cached) " >&6 15149else 15150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15151/* end confdefs.h. */ 15152int i; 15153_ACEOF 15154if ac_fn_c_try_compile "$LINENO"; then : 15155 xorg_cv_cc_flag_unused_command_line_argument=yes 15156else 15157 xorg_cv_cc_flag_unused_command_line_argument=no 15158fi 15159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15160fi 15161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15162$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15163 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15164 CFLAGS="$xorg_testset_save_CFLAGS" 15165fi 15166 15167found="no" 15168 15169 if test $found = "no" ; then 15170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15171 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15172 fi 15173 15174 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15175 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15176 fi 15177 15178 CFLAGS="$CFLAGS -Werror=sequence-point" 15179 15180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 15181$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 15182 cacheid=xorg_cv_cc_flag__Werror_sequence_point 15183 if eval \${$cacheid+:} false; then : 15184 $as_echo_n "(cached) " >&6 15185else 15186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15187/* end confdefs.h. */ 15188int i; 15189int 15190main () 15191{ 15192 15193 ; 15194 return 0; 15195} 15196_ACEOF 15197if ac_fn_c_try_link "$LINENO"; then : 15198 eval $cacheid=yes 15199else 15200 eval $cacheid=no 15201fi 15202rm -f core conftest.err conftest.$ac_objext \ 15203 conftest$ac_exeext conftest.$ac_ext 15204fi 15205 15206 15207 CFLAGS="$xorg_testset_save_CFLAGS" 15208 15209 eval supported=\$$cacheid 15210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15211$as_echo "$supported" >&6; } 15212 if test "$supported" = "yes" ; then 15213 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 15214 found="yes" 15215 fi 15216 fi 15217 15218 15219 15220 15221 15222 15223 15224 15225 15226 15227 15228 15229 15230 15231 15232xorg_testset_save_CFLAGS="$CFLAGS" 15233 15234if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15237$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15238if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15239 $as_echo_n "(cached) " >&6 15240else 15241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15242/* end confdefs.h. */ 15243int i; 15244_ACEOF 15245if ac_fn_c_try_compile "$LINENO"; then : 15246 xorg_cv_cc_flag_unknown_warning_option=yes 15247else 15248 xorg_cv_cc_flag_unknown_warning_option=no 15249fi 15250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15251fi 15252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15253$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15254 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15255 CFLAGS="$xorg_testset_save_CFLAGS" 15256fi 15257 15258if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15259 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15261 fi 15262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15264$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15265if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15266 $as_echo_n "(cached) " >&6 15267else 15268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15269/* end confdefs.h. */ 15270int i; 15271_ACEOF 15272if ac_fn_c_try_compile "$LINENO"; then : 15273 xorg_cv_cc_flag_unused_command_line_argument=yes 15274else 15275 xorg_cv_cc_flag_unused_command_line_argument=no 15276fi 15277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15278fi 15279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15280$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15281 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15282 CFLAGS="$xorg_testset_save_CFLAGS" 15283fi 15284 15285found="no" 15286 15287 if test $found = "no" ; then 15288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15289 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15290 fi 15291 15292 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15293 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15294 fi 15295 15296 CFLAGS="$CFLAGS -Werror=return-type" 15297 15298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 15299$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 15300 cacheid=xorg_cv_cc_flag__Werror_return_type 15301 if eval \${$cacheid+:} false; then : 15302 $as_echo_n "(cached) " >&6 15303else 15304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15305/* end confdefs.h. */ 15306int i; 15307int 15308main () 15309{ 15310 15311 ; 15312 return 0; 15313} 15314_ACEOF 15315if ac_fn_c_try_link "$LINENO"; then : 15316 eval $cacheid=yes 15317else 15318 eval $cacheid=no 15319fi 15320rm -f core conftest.err conftest.$ac_objext \ 15321 conftest$ac_exeext conftest.$ac_ext 15322fi 15323 15324 15325 CFLAGS="$xorg_testset_save_CFLAGS" 15326 15327 eval supported=\$$cacheid 15328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15329$as_echo "$supported" >&6; } 15330 if test "$supported" = "yes" ; then 15331 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 15332 found="yes" 15333 fi 15334 fi 15335 15336 if test $found = "no" ; then 15337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15338 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15339 fi 15340 15341 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15343 fi 15344 15345 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15346 15347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 15348$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 15349 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 15350 if eval \${$cacheid+:} false; then : 15351 $as_echo_n "(cached) " >&6 15352else 15353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15354/* end confdefs.h. */ 15355int i; 15356int 15357main () 15358{ 15359 15360 ; 15361 return 0; 15362} 15363_ACEOF 15364if ac_fn_c_try_link "$LINENO"; then : 15365 eval $cacheid=yes 15366else 15367 eval $cacheid=no 15368fi 15369rm -f core conftest.err conftest.$ac_objext \ 15370 conftest$ac_exeext conftest.$ac_ext 15371fi 15372 15373 15374 CFLAGS="$xorg_testset_save_CFLAGS" 15375 15376 eval supported=\$$cacheid 15377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15378$as_echo "$supported" >&6; } 15379 if test "$supported" = "yes" ; then 15380 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15381 found="yes" 15382 fi 15383 fi 15384 15385 15386 15387 15388 15389 15390 15391 15392 15393 15394 15395 15396 15397 15398 15399xorg_testset_save_CFLAGS="$CFLAGS" 15400 15401if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15402 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15404$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15405if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15406 $as_echo_n "(cached) " >&6 15407else 15408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15409/* end confdefs.h. */ 15410int i; 15411_ACEOF 15412if ac_fn_c_try_compile "$LINENO"; then : 15413 xorg_cv_cc_flag_unknown_warning_option=yes 15414else 15415 xorg_cv_cc_flag_unknown_warning_option=no 15416fi 15417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15418fi 15419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15420$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15421 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15422 CFLAGS="$xorg_testset_save_CFLAGS" 15423fi 15424 15425if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15428 fi 15429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15431$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15432if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15433 $as_echo_n "(cached) " >&6 15434else 15435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15436/* end confdefs.h. */ 15437int i; 15438_ACEOF 15439if ac_fn_c_try_compile "$LINENO"; then : 15440 xorg_cv_cc_flag_unused_command_line_argument=yes 15441else 15442 xorg_cv_cc_flag_unused_command_line_argument=no 15443fi 15444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15445fi 15446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15447$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15448 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15449 CFLAGS="$xorg_testset_save_CFLAGS" 15450fi 15451 15452found="no" 15453 15454 if test $found = "no" ; then 15455 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15456 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15457 fi 15458 15459 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15461 fi 15462 15463 CFLAGS="$CFLAGS -Werror=trigraphs" 15464 15465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 15466$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 15467 cacheid=xorg_cv_cc_flag__Werror_trigraphs 15468 if eval \${$cacheid+:} false; then : 15469 $as_echo_n "(cached) " >&6 15470else 15471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15472/* end confdefs.h. */ 15473int i; 15474int 15475main () 15476{ 15477 15478 ; 15479 return 0; 15480} 15481_ACEOF 15482if ac_fn_c_try_link "$LINENO"; then : 15483 eval $cacheid=yes 15484else 15485 eval $cacheid=no 15486fi 15487rm -f core conftest.err conftest.$ac_objext \ 15488 conftest$ac_exeext conftest.$ac_ext 15489fi 15490 15491 15492 CFLAGS="$xorg_testset_save_CFLAGS" 15493 15494 eval supported=\$$cacheid 15495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15496$as_echo "$supported" >&6; } 15497 if test "$supported" = "yes" ; then 15498 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 15499 found="yes" 15500 fi 15501 fi 15502 15503 15504 15505 15506 15507 15508 15509 15510 15511 15512 15513 15514 15515 15516 15517xorg_testset_save_CFLAGS="$CFLAGS" 15518 15519if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15522$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15523if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15524 $as_echo_n "(cached) " >&6 15525else 15526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15527/* end confdefs.h. */ 15528int i; 15529_ACEOF 15530if ac_fn_c_try_compile "$LINENO"; then : 15531 xorg_cv_cc_flag_unknown_warning_option=yes 15532else 15533 xorg_cv_cc_flag_unknown_warning_option=no 15534fi 15535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15536fi 15537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15538$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15539 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15540 CFLAGS="$xorg_testset_save_CFLAGS" 15541fi 15542 15543if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15544 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15545 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15546 fi 15547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15549$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15550if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15551 $as_echo_n "(cached) " >&6 15552else 15553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15554/* end confdefs.h. */ 15555int i; 15556_ACEOF 15557if ac_fn_c_try_compile "$LINENO"; then : 15558 xorg_cv_cc_flag_unused_command_line_argument=yes 15559else 15560 xorg_cv_cc_flag_unused_command_line_argument=no 15561fi 15562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15563fi 15564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15565$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15566 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15567 CFLAGS="$xorg_testset_save_CFLAGS" 15568fi 15569 15570found="no" 15571 15572 if test $found = "no" ; then 15573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15574 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15575 fi 15576 15577 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15579 fi 15580 15581 CFLAGS="$CFLAGS -Werror=array-bounds" 15582 15583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 15584$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 15585 cacheid=xorg_cv_cc_flag__Werror_array_bounds 15586 if eval \${$cacheid+:} false; then : 15587 $as_echo_n "(cached) " >&6 15588else 15589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15590/* end confdefs.h. */ 15591int i; 15592int 15593main () 15594{ 15595 15596 ; 15597 return 0; 15598} 15599_ACEOF 15600if ac_fn_c_try_link "$LINENO"; then : 15601 eval $cacheid=yes 15602else 15603 eval $cacheid=no 15604fi 15605rm -f core conftest.err conftest.$ac_objext \ 15606 conftest$ac_exeext conftest.$ac_ext 15607fi 15608 15609 15610 CFLAGS="$xorg_testset_save_CFLAGS" 15611 15612 eval supported=\$$cacheid 15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15614$as_echo "$supported" >&6; } 15615 if test "$supported" = "yes" ; then 15616 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 15617 found="yes" 15618 fi 15619 fi 15620 15621 15622 15623 15624 15625 15626 15627 15628 15629 15630 15631 15632 15633 15634 15635xorg_testset_save_CFLAGS="$CFLAGS" 15636 15637if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15638 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15640$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15641if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15642 $as_echo_n "(cached) " >&6 15643else 15644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15645/* end confdefs.h. */ 15646int i; 15647_ACEOF 15648if ac_fn_c_try_compile "$LINENO"; then : 15649 xorg_cv_cc_flag_unknown_warning_option=yes 15650else 15651 xorg_cv_cc_flag_unknown_warning_option=no 15652fi 15653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15654fi 15655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15656$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15657 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15658 CFLAGS="$xorg_testset_save_CFLAGS" 15659fi 15660 15661if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15662 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15664 fi 15665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15667$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15668if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15669 $as_echo_n "(cached) " >&6 15670else 15671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15672/* end confdefs.h. */ 15673int i; 15674_ACEOF 15675if ac_fn_c_try_compile "$LINENO"; then : 15676 xorg_cv_cc_flag_unused_command_line_argument=yes 15677else 15678 xorg_cv_cc_flag_unused_command_line_argument=no 15679fi 15680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15681fi 15682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15683$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15684 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15685 CFLAGS="$xorg_testset_save_CFLAGS" 15686fi 15687 15688found="no" 15689 15690 if test $found = "no" ; then 15691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15692 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15693 fi 15694 15695 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15697 fi 15698 15699 CFLAGS="$CFLAGS -Werror=write-strings" 15700 15701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 15702$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 15703 cacheid=xorg_cv_cc_flag__Werror_write_strings 15704 if eval \${$cacheid+:} false; then : 15705 $as_echo_n "(cached) " >&6 15706else 15707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15708/* end confdefs.h. */ 15709int i; 15710int 15711main () 15712{ 15713 15714 ; 15715 return 0; 15716} 15717_ACEOF 15718if ac_fn_c_try_link "$LINENO"; then : 15719 eval $cacheid=yes 15720else 15721 eval $cacheid=no 15722fi 15723rm -f core conftest.err conftest.$ac_objext \ 15724 conftest$ac_exeext conftest.$ac_ext 15725fi 15726 15727 15728 CFLAGS="$xorg_testset_save_CFLAGS" 15729 15730 eval supported=\$$cacheid 15731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15732$as_echo "$supported" >&6; } 15733 if test "$supported" = "yes" ; then 15734 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 15735 found="yes" 15736 fi 15737 fi 15738 15739 15740 15741 15742 15743 15744 15745 15746 15747 15748 15749 15750 15751 15752 15753xorg_testset_save_CFLAGS="$CFLAGS" 15754 15755if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15758$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15759if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15760 $as_echo_n "(cached) " >&6 15761else 15762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15763/* end confdefs.h. */ 15764int i; 15765_ACEOF 15766if ac_fn_c_try_compile "$LINENO"; then : 15767 xorg_cv_cc_flag_unknown_warning_option=yes 15768else 15769 xorg_cv_cc_flag_unknown_warning_option=no 15770fi 15771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15772fi 15773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15774$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15775 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15776 CFLAGS="$xorg_testset_save_CFLAGS" 15777fi 15778 15779if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15780 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15781 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15782 fi 15783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15785$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15786if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15787 $as_echo_n "(cached) " >&6 15788else 15789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15790/* end confdefs.h. */ 15791int i; 15792_ACEOF 15793if ac_fn_c_try_compile "$LINENO"; then : 15794 xorg_cv_cc_flag_unused_command_line_argument=yes 15795else 15796 xorg_cv_cc_flag_unused_command_line_argument=no 15797fi 15798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15799fi 15800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15801$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15802 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15803 CFLAGS="$xorg_testset_save_CFLAGS" 15804fi 15805 15806found="no" 15807 15808 if test $found = "no" ; then 15809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15811 fi 15812 15813 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15815 fi 15816 15817 CFLAGS="$CFLAGS -Werror=address" 15818 15819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 15820$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 15821 cacheid=xorg_cv_cc_flag__Werror_address 15822 if eval \${$cacheid+:} false; then : 15823 $as_echo_n "(cached) " >&6 15824else 15825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15826/* end confdefs.h. */ 15827int i; 15828int 15829main () 15830{ 15831 15832 ; 15833 return 0; 15834} 15835_ACEOF 15836if ac_fn_c_try_link "$LINENO"; then : 15837 eval $cacheid=yes 15838else 15839 eval $cacheid=no 15840fi 15841rm -f core conftest.err conftest.$ac_objext \ 15842 conftest$ac_exeext conftest.$ac_ext 15843fi 15844 15845 15846 CFLAGS="$xorg_testset_save_CFLAGS" 15847 15848 eval supported=\$$cacheid 15849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15850$as_echo "$supported" >&6; } 15851 if test "$supported" = "yes" ; then 15852 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 15853 found="yes" 15854 fi 15855 fi 15856 15857 15858 15859 15860 15861 15862 15863 15864 15865 15866 15867 15868 15869 15870 15871xorg_testset_save_CFLAGS="$CFLAGS" 15872 15873if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15876$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15877if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15878 $as_echo_n "(cached) " >&6 15879else 15880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15881/* end confdefs.h. */ 15882int i; 15883_ACEOF 15884if ac_fn_c_try_compile "$LINENO"; then : 15885 xorg_cv_cc_flag_unknown_warning_option=yes 15886else 15887 xorg_cv_cc_flag_unknown_warning_option=no 15888fi 15889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15890fi 15891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15892$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15893 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15894 CFLAGS="$xorg_testset_save_CFLAGS" 15895fi 15896 15897if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15900 fi 15901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15903$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15904if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15905 $as_echo_n "(cached) " >&6 15906else 15907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15908/* end confdefs.h. */ 15909int i; 15910_ACEOF 15911if ac_fn_c_try_compile "$LINENO"; then : 15912 xorg_cv_cc_flag_unused_command_line_argument=yes 15913else 15914 xorg_cv_cc_flag_unused_command_line_argument=no 15915fi 15916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15917fi 15918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15919$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15920 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15921 CFLAGS="$xorg_testset_save_CFLAGS" 15922fi 15923 15924found="no" 15925 15926 if test $found = "no" ; then 15927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15928 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15929 fi 15930 15931 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15933 fi 15934 15935 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 15936 15937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 15938$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 15939 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 15940 if eval \${$cacheid+:} false; then : 15941 $as_echo_n "(cached) " >&6 15942else 15943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15944/* end confdefs.h. */ 15945int i; 15946int 15947main () 15948{ 15949 15950 ; 15951 return 0; 15952} 15953_ACEOF 15954if ac_fn_c_try_link "$LINENO"; then : 15955 eval $cacheid=yes 15956else 15957 eval $cacheid=no 15958fi 15959rm -f core conftest.err conftest.$ac_objext \ 15960 conftest$ac_exeext conftest.$ac_ext 15961fi 15962 15963 15964 CFLAGS="$xorg_testset_save_CFLAGS" 15965 15966 eval supported=\$$cacheid 15967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15968$as_echo "$supported" >&6; } 15969 if test "$supported" = "yes" ; then 15970 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 15971 found="yes" 15972 fi 15973 fi 15974 15975 if test $found = "no" ; then 15976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15978 fi 15979 15980 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15982 fi 15983 15984 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15985 15986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 15987$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 15988 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 15989 if eval \${$cacheid+:} false; then : 15990 $as_echo_n "(cached) " >&6 15991else 15992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15993/* end confdefs.h. */ 15994int i; 15995int 15996main () 15997{ 15998 15999 ; 16000 return 0; 16001} 16002_ACEOF 16003if ac_fn_c_try_link "$LINENO"; then : 16004 eval $cacheid=yes 16005else 16006 eval $cacheid=no 16007fi 16008rm -f core conftest.err conftest.$ac_objext \ 16009 conftest$ac_exeext conftest.$ac_ext 16010fi 16011 16012 16013 CFLAGS="$xorg_testset_save_CFLAGS" 16014 16015 eval supported=\$$cacheid 16016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16017$as_echo "$supported" >&6; } 16018 if test "$supported" = "yes" ; then 16019 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16020 found="yes" 16021 fi 16022 fi 16023 16024 16025 16026 16027 16028 16029 16030 16031 16032 16033 16034 16035 16036 16037 16038xorg_testset_save_CFLAGS="$CFLAGS" 16039 16040if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16041 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16043$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16044if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16045 $as_echo_n "(cached) " >&6 16046else 16047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16048/* end confdefs.h. */ 16049int i; 16050_ACEOF 16051if ac_fn_c_try_compile "$LINENO"; then : 16052 xorg_cv_cc_flag_unknown_warning_option=yes 16053else 16054 xorg_cv_cc_flag_unknown_warning_option=no 16055fi 16056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16057fi 16058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16059$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16060 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16061 CFLAGS="$xorg_testset_save_CFLAGS" 16062fi 16063 16064if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16067 fi 16068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16070$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16071if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16072 $as_echo_n "(cached) " >&6 16073else 16074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16075/* end confdefs.h. */ 16076int i; 16077_ACEOF 16078if ac_fn_c_try_compile "$LINENO"; then : 16079 xorg_cv_cc_flag_unused_command_line_argument=yes 16080else 16081 xorg_cv_cc_flag_unused_command_line_argument=no 16082fi 16083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16084fi 16085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16086$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16087 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16088 CFLAGS="$xorg_testset_save_CFLAGS" 16089fi 16090 16091found="no" 16092 16093 if test $found = "no" ; then 16094 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16095 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16096 fi 16097 16098 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16100 fi 16101 16102 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 16103 16104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 16105$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 16106 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 16107 if eval \${$cacheid+:} false; then : 16108 $as_echo_n "(cached) " >&6 16109else 16110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16111/* end confdefs.h. */ 16112int i; 16113int 16114main () 16115{ 16116 16117 ; 16118 return 0; 16119} 16120_ACEOF 16121if ac_fn_c_try_link "$LINENO"; then : 16122 eval $cacheid=yes 16123else 16124 eval $cacheid=no 16125fi 16126rm -f core conftest.err conftest.$ac_objext \ 16127 conftest$ac_exeext conftest.$ac_ext 16128fi 16129 16130 16131 CFLAGS="$xorg_testset_save_CFLAGS" 16132 16133 eval supported=\$$cacheid 16134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16135$as_echo "$supported" >&6; } 16136 if test "$supported" = "yes" ; then 16137 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 16138 found="yes" 16139 fi 16140 fi 16141 16142 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 16143else 16144{ $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 16145$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;} 16146 16147 16148 16149 16150 16151 16152 16153 16154 16155 16156 16157 16158 16159xorg_testset_save_CFLAGS="$CFLAGS" 16160 16161if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16162 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16164$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16165if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16166 $as_echo_n "(cached) " >&6 16167else 16168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16169/* end confdefs.h. */ 16170int i; 16171_ACEOF 16172if ac_fn_c_try_compile "$LINENO"; then : 16173 xorg_cv_cc_flag_unknown_warning_option=yes 16174else 16175 xorg_cv_cc_flag_unknown_warning_option=no 16176fi 16177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16178fi 16179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16180$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16181 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16182 CFLAGS="$xorg_testset_save_CFLAGS" 16183fi 16184 16185if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16187 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16188 fi 16189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16191$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16192if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16193 $as_echo_n "(cached) " >&6 16194else 16195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16196/* end confdefs.h. */ 16197int i; 16198_ACEOF 16199if ac_fn_c_try_compile "$LINENO"; then : 16200 xorg_cv_cc_flag_unused_command_line_argument=yes 16201else 16202 xorg_cv_cc_flag_unused_command_line_argument=no 16203fi 16204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16205fi 16206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16207$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16208 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16209 CFLAGS="$xorg_testset_save_CFLAGS" 16210fi 16211 16212found="no" 16213 16214 if test $found = "no" ; then 16215 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16216 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16217 fi 16218 16219 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16221 fi 16222 16223 CFLAGS="$CFLAGS -Wimplicit" 16224 16225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 16226$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 16227 cacheid=xorg_cv_cc_flag__Wimplicit 16228 if eval \${$cacheid+:} false; then : 16229 $as_echo_n "(cached) " >&6 16230else 16231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16232/* end confdefs.h. */ 16233int i; 16234int 16235main () 16236{ 16237 16238 ; 16239 return 0; 16240} 16241_ACEOF 16242if ac_fn_c_try_link "$LINENO"; then : 16243 eval $cacheid=yes 16244else 16245 eval $cacheid=no 16246fi 16247rm -f core conftest.err conftest.$ac_objext \ 16248 conftest$ac_exeext conftest.$ac_ext 16249fi 16250 16251 16252 CFLAGS="$xorg_testset_save_CFLAGS" 16253 16254 eval supported=\$$cacheid 16255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16256$as_echo "$supported" >&6; } 16257 if test "$supported" = "yes" ; then 16258 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 16259 found="yes" 16260 fi 16261 fi 16262 16263 16264 16265 16266 16267 16268 16269 16270 16271 16272 16273 16274 16275 16276 16277xorg_testset_save_CFLAGS="$CFLAGS" 16278 16279if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16280 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16282$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16283if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16284 $as_echo_n "(cached) " >&6 16285else 16286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16287/* end confdefs.h. */ 16288int i; 16289_ACEOF 16290if ac_fn_c_try_compile "$LINENO"; then : 16291 xorg_cv_cc_flag_unknown_warning_option=yes 16292else 16293 xorg_cv_cc_flag_unknown_warning_option=no 16294fi 16295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16296fi 16297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16298$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16299 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16300 CFLAGS="$xorg_testset_save_CFLAGS" 16301fi 16302 16303if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16304 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16305 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16306 fi 16307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16309$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16310if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16311 $as_echo_n "(cached) " >&6 16312else 16313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16314/* end confdefs.h. */ 16315int i; 16316_ACEOF 16317if ac_fn_c_try_compile "$LINENO"; then : 16318 xorg_cv_cc_flag_unused_command_line_argument=yes 16319else 16320 xorg_cv_cc_flag_unused_command_line_argument=no 16321fi 16322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16323fi 16324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16325$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16326 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16327 CFLAGS="$xorg_testset_save_CFLAGS" 16328fi 16329 16330found="no" 16331 16332 if test $found = "no" ; then 16333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16335 fi 16336 16337 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16339 fi 16340 16341 CFLAGS="$CFLAGS -Wnonnull" 16342 16343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 16344$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 16345 cacheid=xorg_cv_cc_flag__Wnonnull 16346 if eval \${$cacheid+:} false; then : 16347 $as_echo_n "(cached) " >&6 16348else 16349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16350/* end confdefs.h. */ 16351int i; 16352int 16353main () 16354{ 16355 16356 ; 16357 return 0; 16358} 16359_ACEOF 16360if ac_fn_c_try_link "$LINENO"; then : 16361 eval $cacheid=yes 16362else 16363 eval $cacheid=no 16364fi 16365rm -f core conftest.err conftest.$ac_objext \ 16366 conftest$ac_exeext conftest.$ac_ext 16367fi 16368 16369 16370 CFLAGS="$xorg_testset_save_CFLAGS" 16371 16372 eval supported=\$$cacheid 16373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16374$as_echo "$supported" >&6; } 16375 if test "$supported" = "yes" ; then 16376 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 16377 found="yes" 16378 fi 16379 fi 16380 16381 16382 16383 16384 16385 16386 16387 16388 16389 16390 16391 16392 16393 16394 16395xorg_testset_save_CFLAGS="$CFLAGS" 16396 16397if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16398 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16400$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16401if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16402 $as_echo_n "(cached) " >&6 16403else 16404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16405/* end confdefs.h. */ 16406int i; 16407_ACEOF 16408if ac_fn_c_try_compile "$LINENO"; then : 16409 xorg_cv_cc_flag_unknown_warning_option=yes 16410else 16411 xorg_cv_cc_flag_unknown_warning_option=no 16412fi 16413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16414fi 16415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16416$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16417 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16418 CFLAGS="$xorg_testset_save_CFLAGS" 16419fi 16420 16421if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16424 fi 16425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16427$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16428if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16429 $as_echo_n "(cached) " >&6 16430else 16431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16432/* end confdefs.h. */ 16433int i; 16434_ACEOF 16435if ac_fn_c_try_compile "$LINENO"; then : 16436 xorg_cv_cc_flag_unused_command_line_argument=yes 16437else 16438 xorg_cv_cc_flag_unused_command_line_argument=no 16439fi 16440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16441fi 16442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16443$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16444 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16445 CFLAGS="$xorg_testset_save_CFLAGS" 16446fi 16447 16448found="no" 16449 16450 if test $found = "no" ; then 16451 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16452 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16453 fi 16454 16455 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16457 fi 16458 16459 CFLAGS="$CFLAGS -Winit-self" 16460 16461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 16462$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 16463 cacheid=xorg_cv_cc_flag__Winit_self 16464 if eval \${$cacheid+:} false; then : 16465 $as_echo_n "(cached) " >&6 16466else 16467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16468/* end confdefs.h. */ 16469int i; 16470int 16471main () 16472{ 16473 16474 ; 16475 return 0; 16476} 16477_ACEOF 16478if ac_fn_c_try_link "$LINENO"; then : 16479 eval $cacheid=yes 16480else 16481 eval $cacheid=no 16482fi 16483rm -f core conftest.err conftest.$ac_objext \ 16484 conftest$ac_exeext conftest.$ac_ext 16485fi 16486 16487 16488 CFLAGS="$xorg_testset_save_CFLAGS" 16489 16490 eval supported=\$$cacheid 16491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16492$as_echo "$supported" >&6; } 16493 if test "$supported" = "yes" ; then 16494 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 16495 found="yes" 16496 fi 16497 fi 16498 16499 16500 16501 16502 16503 16504 16505 16506 16507 16508 16509 16510 16511 16512 16513xorg_testset_save_CFLAGS="$CFLAGS" 16514 16515if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16516 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16518$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16519if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16520 $as_echo_n "(cached) " >&6 16521else 16522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16523/* end confdefs.h. */ 16524int i; 16525_ACEOF 16526if ac_fn_c_try_compile "$LINENO"; then : 16527 xorg_cv_cc_flag_unknown_warning_option=yes 16528else 16529 xorg_cv_cc_flag_unknown_warning_option=no 16530fi 16531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16532fi 16533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16534$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16535 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16536 CFLAGS="$xorg_testset_save_CFLAGS" 16537fi 16538 16539if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16541 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16542 fi 16543 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16545$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16546if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16547 $as_echo_n "(cached) " >&6 16548else 16549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16550/* end confdefs.h. */ 16551int i; 16552_ACEOF 16553if ac_fn_c_try_compile "$LINENO"; then : 16554 xorg_cv_cc_flag_unused_command_line_argument=yes 16555else 16556 xorg_cv_cc_flag_unused_command_line_argument=no 16557fi 16558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16559fi 16560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16561$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16562 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16563 CFLAGS="$xorg_testset_save_CFLAGS" 16564fi 16565 16566found="no" 16567 16568 if test $found = "no" ; then 16569 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16571 fi 16572 16573 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16574 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16575 fi 16576 16577 CFLAGS="$CFLAGS -Wmain" 16578 16579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 16580$as_echo_n "checking if $CC supports -Wmain... " >&6; } 16581 cacheid=xorg_cv_cc_flag__Wmain 16582 if eval \${$cacheid+:} false; then : 16583 $as_echo_n "(cached) " >&6 16584else 16585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16586/* end confdefs.h. */ 16587int i; 16588int 16589main () 16590{ 16591 16592 ; 16593 return 0; 16594} 16595_ACEOF 16596if ac_fn_c_try_link "$LINENO"; then : 16597 eval $cacheid=yes 16598else 16599 eval $cacheid=no 16600fi 16601rm -f core conftest.err conftest.$ac_objext \ 16602 conftest$ac_exeext conftest.$ac_ext 16603fi 16604 16605 16606 CFLAGS="$xorg_testset_save_CFLAGS" 16607 16608 eval supported=\$$cacheid 16609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16610$as_echo "$supported" >&6; } 16611 if test "$supported" = "yes" ; then 16612 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 16613 found="yes" 16614 fi 16615 fi 16616 16617 16618 16619 16620 16621 16622 16623 16624 16625 16626 16627 16628 16629 16630 16631xorg_testset_save_CFLAGS="$CFLAGS" 16632 16633if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16634 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16636$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16637if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16638 $as_echo_n "(cached) " >&6 16639else 16640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16641/* end confdefs.h. */ 16642int i; 16643_ACEOF 16644if ac_fn_c_try_compile "$LINENO"; then : 16645 xorg_cv_cc_flag_unknown_warning_option=yes 16646else 16647 xorg_cv_cc_flag_unknown_warning_option=no 16648fi 16649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16650fi 16651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16652$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16653 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16654 CFLAGS="$xorg_testset_save_CFLAGS" 16655fi 16656 16657if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16658 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16659 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16660 fi 16661 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16663$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16664if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16665 $as_echo_n "(cached) " >&6 16666else 16667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16668/* end confdefs.h. */ 16669int i; 16670_ACEOF 16671if ac_fn_c_try_compile "$LINENO"; then : 16672 xorg_cv_cc_flag_unused_command_line_argument=yes 16673else 16674 xorg_cv_cc_flag_unused_command_line_argument=no 16675fi 16676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16677fi 16678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16679$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16680 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16681 CFLAGS="$xorg_testset_save_CFLAGS" 16682fi 16683 16684found="no" 16685 16686 if test $found = "no" ; then 16687 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16688 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16689 fi 16690 16691 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16693 fi 16694 16695 CFLAGS="$CFLAGS -Wmissing-braces" 16696 16697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 16698$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 16699 cacheid=xorg_cv_cc_flag__Wmissing_braces 16700 if eval \${$cacheid+:} false; then : 16701 $as_echo_n "(cached) " >&6 16702else 16703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16704/* end confdefs.h. */ 16705int i; 16706int 16707main () 16708{ 16709 16710 ; 16711 return 0; 16712} 16713_ACEOF 16714if ac_fn_c_try_link "$LINENO"; then : 16715 eval $cacheid=yes 16716else 16717 eval $cacheid=no 16718fi 16719rm -f core conftest.err conftest.$ac_objext \ 16720 conftest$ac_exeext conftest.$ac_ext 16721fi 16722 16723 16724 CFLAGS="$xorg_testset_save_CFLAGS" 16725 16726 eval supported=\$$cacheid 16727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16728$as_echo "$supported" >&6; } 16729 if test "$supported" = "yes" ; then 16730 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 16731 found="yes" 16732 fi 16733 fi 16734 16735 16736 16737 16738 16739 16740 16741 16742 16743 16744 16745 16746 16747 16748 16749xorg_testset_save_CFLAGS="$CFLAGS" 16750 16751if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16754$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16755if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16756 $as_echo_n "(cached) " >&6 16757else 16758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16759/* end confdefs.h. */ 16760int i; 16761_ACEOF 16762if ac_fn_c_try_compile "$LINENO"; then : 16763 xorg_cv_cc_flag_unknown_warning_option=yes 16764else 16765 xorg_cv_cc_flag_unknown_warning_option=no 16766fi 16767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16768fi 16769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16770$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16771 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16772 CFLAGS="$xorg_testset_save_CFLAGS" 16773fi 16774 16775if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16777 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16778 fi 16779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16781$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16782if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16783 $as_echo_n "(cached) " >&6 16784else 16785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16786/* end confdefs.h. */ 16787int i; 16788_ACEOF 16789if ac_fn_c_try_compile "$LINENO"; then : 16790 xorg_cv_cc_flag_unused_command_line_argument=yes 16791else 16792 xorg_cv_cc_flag_unused_command_line_argument=no 16793fi 16794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16795fi 16796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16797$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16798 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16799 CFLAGS="$xorg_testset_save_CFLAGS" 16800fi 16801 16802found="no" 16803 16804 if test $found = "no" ; then 16805 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16806 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16807 fi 16808 16809 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16811 fi 16812 16813 CFLAGS="$CFLAGS -Wsequence-point" 16814 16815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 16816$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 16817 cacheid=xorg_cv_cc_flag__Wsequence_point 16818 if eval \${$cacheid+:} false; then : 16819 $as_echo_n "(cached) " >&6 16820else 16821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16822/* end confdefs.h. */ 16823int i; 16824int 16825main () 16826{ 16827 16828 ; 16829 return 0; 16830} 16831_ACEOF 16832if ac_fn_c_try_link "$LINENO"; then : 16833 eval $cacheid=yes 16834else 16835 eval $cacheid=no 16836fi 16837rm -f core conftest.err conftest.$ac_objext \ 16838 conftest$ac_exeext conftest.$ac_ext 16839fi 16840 16841 16842 CFLAGS="$xorg_testset_save_CFLAGS" 16843 16844 eval supported=\$$cacheid 16845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16846$as_echo "$supported" >&6; } 16847 if test "$supported" = "yes" ; then 16848 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 16849 found="yes" 16850 fi 16851 fi 16852 16853 16854 16855 16856 16857 16858 16859 16860 16861 16862 16863 16864 16865 16866 16867xorg_testset_save_CFLAGS="$CFLAGS" 16868 16869if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16872$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16873if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16874 $as_echo_n "(cached) " >&6 16875else 16876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16877/* end confdefs.h. */ 16878int i; 16879_ACEOF 16880if ac_fn_c_try_compile "$LINENO"; then : 16881 xorg_cv_cc_flag_unknown_warning_option=yes 16882else 16883 xorg_cv_cc_flag_unknown_warning_option=no 16884fi 16885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16886fi 16887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16888$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16889 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16890 CFLAGS="$xorg_testset_save_CFLAGS" 16891fi 16892 16893if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16894 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16895 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16896 fi 16897 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16899$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16900if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16901 $as_echo_n "(cached) " >&6 16902else 16903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16904/* end confdefs.h. */ 16905int i; 16906_ACEOF 16907if ac_fn_c_try_compile "$LINENO"; then : 16908 xorg_cv_cc_flag_unused_command_line_argument=yes 16909else 16910 xorg_cv_cc_flag_unused_command_line_argument=no 16911fi 16912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16913fi 16914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16915$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16916 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16917 CFLAGS="$xorg_testset_save_CFLAGS" 16918fi 16919 16920found="no" 16921 16922 if test $found = "no" ; then 16923 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16924 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16925 fi 16926 16927 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16929 fi 16930 16931 CFLAGS="$CFLAGS -Wreturn-type" 16932 16933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 16934$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 16935 cacheid=xorg_cv_cc_flag__Wreturn_type 16936 if eval \${$cacheid+:} false; then : 16937 $as_echo_n "(cached) " >&6 16938else 16939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16940/* end confdefs.h. */ 16941int i; 16942int 16943main () 16944{ 16945 16946 ; 16947 return 0; 16948} 16949_ACEOF 16950if ac_fn_c_try_link "$LINENO"; then : 16951 eval $cacheid=yes 16952else 16953 eval $cacheid=no 16954fi 16955rm -f core conftest.err conftest.$ac_objext \ 16956 conftest$ac_exeext conftest.$ac_ext 16957fi 16958 16959 16960 CFLAGS="$xorg_testset_save_CFLAGS" 16961 16962 eval supported=\$$cacheid 16963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16964$as_echo "$supported" >&6; } 16965 if test "$supported" = "yes" ; then 16966 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 16967 found="yes" 16968 fi 16969 fi 16970 16971 16972 16973 16974 16975 16976 16977 16978 16979 16980 16981 16982 16983 16984 16985xorg_testset_save_CFLAGS="$CFLAGS" 16986 16987if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16990$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16991if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16992 $as_echo_n "(cached) " >&6 16993else 16994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16995/* end confdefs.h. */ 16996int i; 16997_ACEOF 16998if ac_fn_c_try_compile "$LINENO"; then : 16999 xorg_cv_cc_flag_unknown_warning_option=yes 17000else 17001 xorg_cv_cc_flag_unknown_warning_option=no 17002fi 17003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17004fi 17005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17006$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17007 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17008 CFLAGS="$xorg_testset_save_CFLAGS" 17009fi 17010 17011if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17012 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17013 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17014 fi 17015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17017$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17018if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17019 $as_echo_n "(cached) " >&6 17020else 17021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17022/* end confdefs.h. */ 17023int i; 17024_ACEOF 17025if ac_fn_c_try_compile "$LINENO"; then : 17026 xorg_cv_cc_flag_unused_command_line_argument=yes 17027else 17028 xorg_cv_cc_flag_unused_command_line_argument=no 17029fi 17030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17031fi 17032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17033$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17034 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17035 CFLAGS="$xorg_testset_save_CFLAGS" 17036fi 17037 17038found="no" 17039 17040 if test $found = "no" ; then 17041 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17042 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17043 fi 17044 17045 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17047 fi 17048 17049 CFLAGS="$CFLAGS -Wtrigraphs" 17050 17051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 17052$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 17053 cacheid=xorg_cv_cc_flag__Wtrigraphs 17054 if eval \${$cacheid+:} false; then : 17055 $as_echo_n "(cached) " >&6 17056else 17057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17058/* end confdefs.h. */ 17059int i; 17060int 17061main () 17062{ 17063 17064 ; 17065 return 0; 17066} 17067_ACEOF 17068if ac_fn_c_try_link "$LINENO"; then : 17069 eval $cacheid=yes 17070else 17071 eval $cacheid=no 17072fi 17073rm -f core conftest.err conftest.$ac_objext \ 17074 conftest$ac_exeext conftest.$ac_ext 17075fi 17076 17077 17078 CFLAGS="$xorg_testset_save_CFLAGS" 17079 17080 eval supported=\$$cacheid 17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17082$as_echo "$supported" >&6; } 17083 if test "$supported" = "yes" ; then 17084 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 17085 found="yes" 17086 fi 17087 fi 17088 17089 17090 17091 17092 17093 17094 17095 17096 17097 17098 17099 17100 17101 17102 17103xorg_testset_save_CFLAGS="$CFLAGS" 17104 17105if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17106 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17108$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17109if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17110 $as_echo_n "(cached) " >&6 17111else 17112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17113/* end confdefs.h. */ 17114int i; 17115_ACEOF 17116if ac_fn_c_try_compile "$LINENO"; then : 17117 xorg_cv_cc_flag_unknown_warning_option=yes 17118else 17119 xorg_cv_cc_flag_unknown_warning_option=no 17120fi 17121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17122fi 17123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17124$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17125 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17126 CFLAGS="$xorg_testset_save_CFLAGS" 17127fi 17128 17129if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17130 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17131 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17132 fi 17133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17135$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17136if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17137 $as_echo_n "(cached) " >&6 17138else 17139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17140/* end confdefs.h. */ 17141int i; 17142_ACEOF 17143if ac_fn_c_try_compile "$LINENO"; then : 17144 xorg_cv_cc_flag_unused_command_line_argument=yes 17145else 17146 xorg_cv_cc_flag_unused_command_line_argument=no 17147fi 17148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17149fi 17150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17151$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17152 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17153 CFLAGS="$xorg_testset_save_CFLAGS" 17154fi 17155 17156found="no" 17157 17158 if test $found = "no" ; then 17159 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17160 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17161 fi 17162 17163 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17164 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17165 fi 17166 17167 CFLAGS="$CFLAGS -Warray-bounds" 17168 17169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 17170$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 17171 cacheid=xorg_cv_cc_flag__Warray_bounds 17172 if eval \${$cacheid+:} false; then : 17173 $as_echo_n "(cached) " >&6 17174else 17175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17176/* end confdefs.h. */ 17177int i; 17178int 17179main () 17180{ 17181 17182 ; 17183 return 0; 17184} 17185_ACEOF 17186if ac_fn_c_try_link "$LINENO"; then : 17187 eval $cacheid=yes 17188else 17189 eval $cacheid=no 17190fi 17191rm -f core conftest.err conftest.$ac_objext \ 17192 conftest$ac_exeext conftest.$ac_ext 17193fi 17194 17195 17196 CFLAGS="$xorg_testset_save_CFLAGS" 17197 17198 eval supported=\$$cacheid 17199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17200$as_echo "$supported" >&6; } 17201 if test "$supported" = "yes" ; then 17202 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 17203 found="yes" 17204 fi 17205 fi 17206 17207 17208 17209 17210 17211 17212 17213 17214 17215 17216 17217 17218 17219 17220 17221xorg_testset_save_CFLAGS="$CFLAGS" 17222 17223if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17224 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17226$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17227if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17228 $as_echo_n "(cached) " >&6 17229else 17230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17231/* end confdefs.h. */ 17232int i; 17233_ACEOF 17234if ac_fn_c_try_compile "$LINENO"; then : 17235 xorg_cv_cc_flag_unknown_warning_option=yes 17236else 17237 xorg_cv_cc_flag_unknown_warning_option=no 17238fi 17239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17240fi 17241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17242$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17243 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17244 CFLAGS="$xorg_testset_save_CFLAGS" 17245fi 17246 17247if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17249 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17250 fi 17251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17253$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17254if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17255 $as_echo_n "(cached) " >&6 17256else 17257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17258/* end confdefs.h. */ 17259int i; 17260_ACEOF 17261if ac_fn_c_try_compile "$LINENO"; then : 17262 xorg_cv_cc_flag_unused_command_line_argument=yes 17263else 17264 xorg_cv_cc_flag_unused_command_line_argument=no 17265fi 17266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17267fi 17268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17269$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17270 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17271 CFLAGS="$xorg_testset_save_CFLAGS" 17272fi 17273 17274found="no" 17275 17276 if test $found = "no" ; then 17277 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17278 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17279 fi 17280 17281 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17283 fi 17284 17285 CFLAGS="$CFLAGS -Wwrite-strings" 17286 17287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 17288$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 17289 cacheid=xorg_cv_cc_flag__Wwrite_strings 17290 if eval \${$cacheid+:} false; then : 17291 $as_echo_n "(cached) " >&6 17292else 17293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17294/* end confdefs.h. */ 17295int i; 17296int 17297main () 17298{ 17299 17300 ; 17301 return 0; 17302} 17303_ACEOF 17304if ac_fn_c_try_link "$LINENO"; then : 17305 eval $cacheid=yes 17306else 17307 eval $cacheid=no 17308fi 17309rm -f core conftest.err conftest.$ac_objext \ 17310 conftest$ac_exeext conftest.$ac_ext 17311fi 17312 17313 17314 CFLAGS="$xorg_testset_save_CFLAGS" 17315 17316 eval supported=\$$cacheid 17317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17318$as_echo "$supported" >&6; } 17319 if test "$supported" = "yes" ; then 17320 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 17321 found="yes" 17322 fi 17323 fi 17324 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339xorg_testset_save_CFLAGS="$CFLAGS" 17340 17341if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17342 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17344$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17345if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17346 $as_echo_n "(cached) " >&6 17347else 17348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17349/* end confdefs.h. */ 17350int i; 17351_ACEOF 17352if ac_fn_c_try_compile "$LINENO"; then : 17353 xorg_cv_cc_flag_unknown_warning_option=yes 17354else 17355 xorg_cv_cc_flag_unknown_warning_option=no 17356fi 17357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17358fi 17359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17360$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17361 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17362 CFLAGS="$xorg_testset_save_CFLAGS" 17363fi 17364 17365if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17367 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17368 fi 17369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17371$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17372if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17373 $as_echo_n "(cached) " >&6 17374else 17375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17376/* end confdefs.h. */ 17377int i; 17378_ACEOF 17379if ac_fn_c_try_compile "$LINENO"; then : 17380 xorg_cv_cc_flag_unused_command_line_argument=yes 17381else 17382 xorg_cv_cc_flag_unused_command_line_argument=no 17383fi 17384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17385fi 17386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17387$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17388 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17389 CFLAGS="$xorg_testset_save_CFLAGS" 17390fi 17391 17392found="no" 17393 17394 if test $found = "no" ; then 17395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17397 fi 17398 17399 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17401 fi 17402 17403 CFLAGS="$CFLAGS -Waddress" 17404 17405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 17406$as_echo_n "checking if $CC supports -Waddress... " >&6; } 17407 cacheid=xorg_cv_cc_flag__Waddress 17408 if eval \${$cacheid+:} false; then : 17409 $as_echo_n "(cached) " >&6 17410else 17411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17412/* end confdefs.h. */ 17413int i; 17414int 17415main () 17416{ 17417 17418 ; 17419 return 0; 17420} 17421_ACEOF 17422if ac_fn_c_try_link "$LINENO"; then : 17423 eval $cacheid=yes 17424else 17425 eval $cacheid=no 17426fi 17427rm -f core conftest.err conftest.$ac_objext \ 17428 conftest$ac_exeext conftest.$ac_ext 17429fi 17430 17431 17432 CFLAGS="$xorg_testset_save_CFLAGS" 17433 17434 eval supported=\$$cacheid 17435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17436$as_echo "$supported" >&6; } 17437 if test "$supported" = "yes" ; then 17438 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 17439 found="yes" 17440 fi 17441 fi 17442 17443 17444 17445 17446 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457xorg_testset_save_CFLAGS="$CFLAGS" 17458 17459if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17460 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17462$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17463if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17464 $as_echo_n "(cached) " >&6 17465else 17466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17467/* end confdefs.h. */ 17468int i; 17469_ACEOF 17470if ac_fn_c_try_compile "$LINENO"; then : 17471 xorg_cv_cc_flag_unknown_warning_option=yes 17472else 17473 xorg_cv_cc_flag_unknown_warning_option=no 17474fi 17475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17476fi 17477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17478$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17479 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17480 CFLAGS="$xorg_testset_save_CFLAGS" 17481fi 17482 17483if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17484 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17485 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17486 fi 17487 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17489$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17490if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17491 $as_echo_n "(cached) " >&6 17492else 17493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17494/* end confdefs.h. */ 17495int i; 17496_ACEOF 17497if ac_fn_c_try_compile "$LINENO"; then : 17498 xorg_cv_cc_flag_unused_command_line_argument=yes 17499else 17500 xorg_cv_cc_flag_unused_command_line_argument=no 17501fi 17502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17503fi 17504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17505$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17506 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17507 CFLAGS="$xorg_testset_save_CFLAGS" 17508fi 17509 17510found="no" 17511 17512 if test $found = "no" ; then 17513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17514 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17515 fi 17516 17517 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17519 fi 17520 17521 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 17522 17523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 17524$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 17525 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 17526 if eval \${$cacheid+:} false; then : 17527 $as_echo_n "(cached) " >&6 17528else 17529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17530/* end confdefs.h. */ 17531int i; 17532int 17533main () 17534{ 17535 17536 ; 17537 return 0; 17538} 17539_ACEOF 17540if ac_fn_c_try_link "$LINENO"; then : 17541 eval $cacheid=yes 17542else 17543 eval $cacheid=no 17544fi 17545rm -f core conftest.err conftest.$ac_objext \ 17546 conftest$ac_exeext conftest.$ac_ext 17547fi 17548 17549 17550 CFLAGS="$xorg_testset_save_CFLAGS" 17551 17552 eval supported=\$$cacheid 17553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17554$as_echo "$supported" >&6; } 17555 if test "$supported" = "yes" ; then 17556 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 17557 found="yes" 17558 fi 17559 fi 17560 17561 17562 17563 17564 17565 17566 17567 17568 17569 17570 17571 17572 17573 17574 17575xorg_testset_save_CFLAGS="$CFLAGS" 17576 17577if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17578 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17580$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17581if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17582 $as_echo_n "(cached) " >&6 17583else 17584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17585/* end confdefs.h. */ 17586int i; 17587_ACEOF 17588if ac_fn_c_try_compile "$LINENO"; then : 17589 xorg_cv_cc_flag_unknown_warning_option=yes 17590else 17591 xorg_cv_cc_flag_unknown_warning_option=no 17592fi 17593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17594fi 17595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17596$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17597 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17598 CFLAGS="$xorg_testset_save_CFLAGS" 17599fi 17600 17601if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17602 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17603 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17604 fi 17605 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17607$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17608if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17609 $as_echo_n "(cached) " >&6 17610else 17611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17612/* end confdefs.h. */ 17613int i; 17614_ACEOF 17615if ac_fn_c_try_compile "$LINENO"; then : 17616 xorg_cv_cc_flag_unused_command_line_argument=yes 17617else 17618 xorg_cv_cc_flag_unused_command_line_argument=no 17619fi 17620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17621fi 17622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17623$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17624 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17625 CFLAGS="$xorg_testset_save_CFLAGS" 17626fi 17627 17628found="no" 17629 17630 if test $found = "no" ; then 17631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17633 fi 17634 17635 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17637 fi 17638 17639 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 17640 17641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 17642$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 17643 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 17644 if eval \${$cacheid+:} false; then : 17645 $as_echo_n "(cached) " >&6 17646else 17647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17648/* end confdefs.h. */ 17649int i; 17650int 17651main () 17652{ 17653 17654 ; 17655 return 0; 17656} 17657_ACEOF 17658if ac_fn_c_try_link "$LINENO"; then : 17659 eval $cacheid=yes 17660else 17661 eval $cacheid=no 17662fi 17663rm -f core conftest.err conftest.$ac_objext \ 17664 conftest$ac_exeext conftest.$ac_ext 17665fi 17666 17667 17668 CFLAGS="$xorg_testset_save_CFLAGS" 17669 17670 eval supported=\$$cacheid 17671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17672$as_echo "$supported" >&6; } 17673 if test "$supported" = "yes" ; then 17674 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 17675 found="yes" 17676 fi 17677 fi 17678 17679 17680fi 17681 17682 17683 17684 17685 17686 17687 17688 CWARNFLAGS="$BASE_CFLAGS" 17689 if test "x$GCC" = xyes ; then 17690 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 17691 fi 17692 17693 17694 17695 17696 17697 17698 17699 17700# Check whether --enable-strict-compilation was given. 17701if test "${enable_strict_compilation+set}" = set; then : 17702 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 17703else 17704 STRICT_COMPILE=no 17705fi 17706 17707 17708 17709 17710 17711 17712STRICT_CFLAGS="" 17713 17714 17715 17716 17717 17718 17719 17720 17721 17722 17723 17724 17725 17726xorg_testset_save_CFLAGS="$CFLAGS" 17727 17728if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17729 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17731$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17732if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17733 $as_echo_n "(cached) " >&6 17734else 17735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17736/* end confdefs.h. */ 17737int i; 17738_ACEOF 17739if ac_fn_c_try_compile "$LINENO"; then : 17740 xorg_cv_cc_flag_unknown_warning_option=yes 17741else 17742 xorg_cv_cc_flag_unknown_warning_option=no 17743fi 17744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17745fi 17746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17747$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17748 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17749 CFLAGS="$xorg_testset_save_CFLAGS" 17750fi 17751 17752if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17754 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17755 fi 17756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17758$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17759if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17760 $as_echo_n "(cached) " >&6 17761else 17762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17763/* end confdefs.h. */ 17764int i; 17765_ACEOF 17766if ac_fn_c_try_compile "$LINENO"; then : 17767 xorg_cv_cc_flag_unused_command_line_argument=yes 17768else 17769 xorg_cv_cc_flag_unused_command_line_argument=no 17770fi 17771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17772fi 17773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17774$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17775 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17776 CFLAGS="$xorg_testset_save_CFLAGS" 17777fi 17778 17779found="no" 17780 17781 if test $found = "no" ; then 17782 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17783 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17784 fi 17785 17786 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17788 fi 17789 17790 CFLAGS="$CFLAGS -pedantic" 17791 17792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 17793$as_echo_n "checking if $CC supports -pedantic... " >&6; } 17794 cacheid=xorg_cv_cc_flag__pedantic 17795 if eval \${$cacheid+:} false; then : 17796 $as_echo_n "(cached) " >&6 17797else 17798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17799/* end confdefs.h. */ 17800int i; 17801int 17802main () 17803{ 17804 17805 ; 17806 return 0; 17807} 17808_ACEOF 17809if ac_fn_c_try_link "$LINENO"; then : 17810 eval $cacheid=yes 17811else 17812 eval $cacheid=no 17813fi 17814rm -f core conftest.err conftest.$ac_objext \ 17815 conftest$ac_exeext conftest.$ac_ext 17816fi 17817 17818 17819 CFLAGS="$xorg_testset_save_CFLAGS" 17820 17821 eval supported=\$$cacheid 17822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17823$as_echo "$supported" >&6; } 17824 if test "$supported" = "yes" ; then 17825 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 17826 found="yes" 17827 fi 17828 fi 17829 17830 17831 17832 17833 17834 17835 17836 17837 17838 17839 17840 17841 17842 17843 17844xorg_testset_save_CFLAGS="$CFLAGS" 17845 17846if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17847 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17849$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17850if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17851 $as_echo_n "(cached) " >&6 17852else 17853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17854/* end confdefs.h. */ 17855int i; 17856_ACEOF 17857if ac_fn_c_try_compile "$LINENO"; then : 17858 xorg_cv_cc_flag_unknown_warning_option=yes 17859else 17860 xorg_cv_cc_flag_unknown_warning_option=no 17861fi 17862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17863fi 17864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17865$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17866 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17867 CFLAGS="$xorg_testset_save_CFLAGS" 17868fi 17869 17870if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17873 fi 17874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17876$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17877if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17878 $as_echo_n "(cached) " >&6 17879else 17880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17881/* end confdefs.h. */ 17882int i; 17883_ACEOF 17884if ac_fn_c_try_compile "$LINENO"; then : 17885 xorg_cv_cc_flag_unused_command_line_argument=yes 17886else 17887 xorg_cv_cc_flag_unused_command_line_argument=no 17888fi 17889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17890fi 17891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17892$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17893 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17894 CFLAGS="$xorg_testset_save_CFLAGS" 17895fi 17896 17897found="no" 17898 17899 if test $found = "no" ; then 17900 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17901 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17902 fi 17903 17904 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17906 fi 17907 17908 CFLAGS="$CFLAGS -Werror" 17909 17910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 17911$as_echo_n "checking if $CC supports -Werror... " >&6; } 17912 cacheid=xorg_cv_cc_flag__Werror 17913 if eval \${$cacheid+:} false; then : 17914 $as_echo_n "(cached) " >&6 17915else 17916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17917/* end confdefs.h. */ 17918int i; 17919int 17920main () 17921{ 17922 17923 ; 17924 return 0; 17925} 17926_ACEOF 17927if ac_fn_c_try_link "$LINENO"; then : 17928 eval $cacheid=yes 17929else 17930 eval $cacheid=no 17931fi 17932rm -f core conftest.err conftest.$ac_objext \ 17933 conftest$ac_exeext conftest.$ac_ext 17934fi 17935 17936 17937 CFLAGS="$xorg_testset_save_CFLAGS" 17938 17939 eval supported=\$$cacheid 17940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17941$as_echo "$supported" >&6; } 17942 if test "$supported" = "yes" ; then 17943 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 17944 found="yes" 17945 fi 17946 fi 17947 17948 if test $found = "no" ; then 17949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17951 fi 17952 17953 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17955 fi 17956 17957 CFLAGS="$CFLAGS -errwarn" 17958 17959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 17960$as_echo_n "checking if $CC supports -errwarn... " >&6; } 17961 cacheid=xorg_cv_cc_flag__errwarn 17962 if eval \${$cacheid+:} false; then : 17963 $as_echo_n "(cached) " >&6 17964else 17965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17966/* end confdefs.h. */ 17967int i; 17968int 17969main () 17970{ 17971 17972 ; 17973 return 0; 17974} 17975_ACEOF 17976if ac_fn_c_try_link "$LINENO"; then : 17977 eval $cacheid=yes 17978else 17979 eval $cacheid=no 17980fi 17981rm -f core conftest.err conftest.$ac_objext \ 17982 conftest$ac_exeext conftest.$ac_ext 17983fi 17984 17985 17986 CFLAGS="$xorg_testset_save_CFLAGS" 17987 17988 eval supported=\$$cacheid 17989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17990$as_echo "$supported" >&6; } 17991 if test "$supported" = "yes" ; then 17992 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 17993 found="yes" 17994 fi 17995 fi 17996 17997 17998 17999# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 18000# activate it with -Werror, so we add it here explicitly. 18001 18002 18003 18004 18005 18006 18007 18008 18009 18010 18011 18012 18013 18014xorg_testset_save_CFLAGS="$CFLAGS" 18015 18016if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18017 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18019$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18020if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18021 $as_echo_n "(cached) " >&6 18022else 18023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18024/* end confdefs.h. */ 18025int i; 18026_ACEOF 18027if ac_fn_c_try_compile "$LINENO"; then : 18028 xorg_cv_cc_flag_unknown_warning_option=yes 18029else 18030 xorg_cv_cc_flag_unknown_warning_option=no 18031fi 18032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18033fi 18034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18035$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18036 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18037 CFLAGS="$xorg_testset_save_CFLAGS" 18038fi 18039 18040if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18041 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18042 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18043 fi 18044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18046$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18047if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18048 $as_echo_n "(cached) " >&6 18049else 18050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18051/* end confdefs.h. */ 18052int i; 18053_ACEOF 18054if ac_fn_c_try_compile "$LINENO"; then : 18055 xorg_cv_cc_flag_unused_command_line_argument=yes 18056else 18057 xorg_cv_cc_flag_unused_command_line_argument=no 18058fi 18059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18060fi 18061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18062$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18063 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18064 CFLAGS="$xorg_testset_save_CFLAGS" 18065fi 18066 18067found="no" 18068 18069 if test $found = "no" ; then 18070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18072 fi 18073 18074 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18076 fi 18077 18078 CFLAGS="$CFLAGS -Werror=attributes" 18079 18080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 18081$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 18082 cacheid=xorg_cv_cc_flag__Werror_attributes 18083 if eval \${$cacheid+:} false; then : 18084 $as_echo_n "(cached) " >&6 18085else 18086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18087/* end confdefs.h. */ 18088int i; 18089int 18090main () 18091{ 18092 18093 ; 18094 return 0; 18095} 18096_ACEOF 18097if ac_fn_c_try_link "$LINENO"; then : 18098 eval $cacheid=yes 18099else 18100 eval $cacheid=no 18101fi 18102rm -f core conftest.err conftest.$ac_objext \ 18103 conftest$ac_exeext conftest.$ac_ext 18104fi 18105 18106 18107 CFLAGS="$xorg_testset_save_CFLAGS" 18108 18109 eval supported=\$$cacheid 18110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18111$as_echo "$supported" >&6; } 18112 if test "$supported" = "yes" ; then 18113 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 18114 found="yes" 18115 fi 18116 fi 18117 18118 18119 18120if test "x$STRICT_COMPILE" = "xyes"; then 18121 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 18122 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 18123fi 18124 18125 18126 18127 18128 18129 18130cat >>confdefs.h <<_ACEOF 18131#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 18132_ACEOF 18133 18134 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 18135 if test "x$PVM" = "x"; then 18136 PVM="0" 18137 fi 18138 18139cat >>confdefs.h <<_ACEOF 18140#define PACKAGE_VERSION_MINOR $PVM 18141_ACEOF 18142 18143 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 18144 if test "x$PVP" = "x"; then 18145 PVP="0" 18146 fi 18147 18148cat >>confdefs.h <<_ACEOF 18149#define PACKAGE_VERSION_PATCHLEVEL $PVP 18150_ACEOF 18151 18152 18153 18154CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 18155mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 18156|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 18157echo 'git directory not found: installing possibly empty changelog.' >&2)" 18158 18159 18160 18161 18162macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 18163INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 18164mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 18165|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 18166echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 18167 18168 18169 18170 18171 18172 18173if test x$APP_MAN_SUFFIX = x ; then 18174 APP_MAN_SUFFIX=1 18175fi 18176if test x$APP_MAN_DIR = x ; then 18177 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 18178fi 18179 18180if test x$LIB_MAN_SUFFIX = x ; then 18181 LIB_MAN_SUFFIX=3 18182fi 18183if test x$LIB_MAN_DIR = x ; then 18184 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 18185fi 18186 18187if test x$FILE_MAN_SUFFIX = x ; then 18188 case $host_os in 18189 # Solaris 2.0 - 11 use SysV man page sections 18190 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;; 18191 *) FILE_MAN_SUFFIX=5 ;; 18192 esac 18193fi 18194if test x$FILE_MAN_DIR = x ; then 18195 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 18196fi 18197 18198if test x$MISC_MAN_SUFFIX = x ; then 18199 case $host_os in 18200 # Solaris 2.0 - 11 use SysV man page sections 18201 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;; 18202 *) MISC_MAN_SUFFIX=7 ;; 18203 esac 18204fi 18205if test x$MISC_MAN_DIR = x ; then 18206 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 18207fi 18208 18209if test x$DRIVER_MAN_SUFFIX = x ; then 18210 case $host_os in 18211 # Solaris 2.0 - 11 use SysV man page sections 18212 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;; 18213 *) DRIVER_MAN_SUFFIX=4 ;; 18214 esac 18215fi 18216if test x$DRIVER_MAN_DIR = x ; then 18217 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 18218fi 18219 18220if test x$ADMIN_MAN_SUFFIX = x ; then 18221 case $host_os in 18222 # Solaris 2.0 - 11 use SysV man page sections 18223 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;; 18224 *) ADMIN_MAN_SUFFIX=8 ;; 18225 esac 18226fi 18227if test x$ADMIN_MAN_DIR = x ; then 18228 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 18229fi 18230 18231 18232 18233 18234 18235 18236 18237 18238 18239 18240 18241 18242 18243 18244 18245XORG_MAN_PAGE="X Version 11" 18246 18247MAN_SUBSTS="\ 18248 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18249 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18250 -e 's|__xservername__|Xorg|g' \ 18251 -e 's|__xconfigfile__|xorg.conf|g' \ 18252 -e 's|__projectroot__|\$(prefix)|g' \ 18253 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 18254 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 18255 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 18256 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 18257 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 18258 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 18259 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 18260 18261 18262 18263# Check whether --enable-silent-rules was given. 18264if test "${enable_silent_rules+set}" = set; then : 18265 enableval=$enable_silent_rules; 18266fi 18267 18268case $enable_silent_rules in # ((( 18269 yes) AM_DEFAULT_VERBOSITY=0;; 18270 no) AM_DEFAULT_VERBOSITY=1;; 18271 *) AM_DEFAULT_VERBOSITY=0;; 18272esac 18273am_make=${MAKE-make} 18274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 18275$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 18276if ${am_cv_make_support_nested_variables+:} false; then : 18277 $as_echo_n "(cached) " >&6 18278else 18279 if $as_echo 'TRUE=$(BAR$(V)) 18280BAR0=false 18281BAR1=true 18282V=1 18283am__doit: 18284 @$(TRUE) 18285.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 18286 am_cv_make_support_nested_variables=yes 18287else 18288 am_cv_make_support_nested_variables=no 18289fi 18290fi 18291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 18292$as_echo "$am_cv_make_support_nested_variables" >&6; } 18293if test $am_cv_make_support_nested_variables = yes; then 18294 AM_V='$(V)' 18295 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 18296else 18297 AM_V=$AM_DEFAULT_VERBOSITY 18298 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 18299fi 18300AM_BACKSLASH='\' 18301 18302 18303 18304# Checks for library functions 18305for ac_func in strlcat 18306do : 18307 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 18308if test "x$ac_cv_func_strlcat" = xyes; then : 18309 cat >>confdefs.h <<_ACEOF 18310#define HAVE_STRLCAT 1 18311_ACEOF 18312 18313fi 18314done 18315 18316ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork" 18317if test "x$ac_cv_func_fork" = xyes; then : 18318 18319else 18320 $as_echo "#define NO_ZPIPE 1" >>confdefs.h 18321 18322fi 18323 18324 18325# Obtain compiler/linker options for dependencies 18326 18327pkg_failed=no 18328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPM" >&5 18329$as_echo_n "checking for XPM... " >&6; } 18330 18331if test -n "$XPM_CFLAGS"; then 18332 pkg_cv_XPM_CFLAGS="$XPM_CFLAGS" 18333 elif test -n "$PKG_CONFIG"; then 18334 if test -n "$PKG_CONFIG" && \ 18335 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11\""; } >&5 18336 ($PKG_CONFIG --exists --print-errors "xproto x11") 2>&5 18337 ac_status=$? 18338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18339 test $ac_status = 0; }; then 18340 pkg_cv_XPM_CFLAGS=`$PKG_CONFIG --cflags "xproto x11" 2>/dev/null` 18341 test "x$?" != "x0" && pkg_failed=yes 18342else 18343 pkg_failed=yes 18344fi 18345 else 18346 pkg_failed=untried 18347fi 18348if test -n "$XPM_LIBS"; then 18349 pkg_cv_XPM_LIBS="$XPM_LIBS" 18350 elif test -n "$PKG_CONFIG"; then 18351 if test -n "$PKG_CONFIG" && \ 18352 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11\""; } >&5 18353 ($PKG_CONFIG --exists --print-errors "xproto x11") 2>&5 18354 ac_status=$? 18355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18356 test $ac_status = 0; }; then 18357 pkg_cv_XPM_LIBS=`$PKG_CONFIG --libs "xproto x11" 2>/dev/null` 18358 test "x$?" != "x0" && pkg_failed=yes 18359else 18360 pkg_failed=yes 18361fi 18362 else 18363 pkg_failed=untried 18364fi 18365 18366 18367 18368if test $pkg_failed = yes; then 18369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18370$as_echo "no" >&6; } 18371 18372if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18373 _pkg_short_errors_supported=yes 18374else 18375 _pkg_short_errors_supported=no 18376fi 18377 if test $_pkg_short_errors_supported = yes; then 18378 XPM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto x11" 2>&1` 18379 else 18380 XPM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto x11" 2>&1` 18381 fi 18382 # Put the nasty error message in config.log where it belongs 18383 echo "$XPM_PKG_ERRORS" >&5 18384 18385 as_fn_error $? "Package requirements (xproto x11) were not met: 18386 18387$XPM_PKG_ERRORS 18388 18389Consider adjusting the PKG_CONFIG_PATH environment variable if you 18390installed software in a non-standard prefix. 18391 18392Alternatively, you may set the environment variables XPM_CFLAGS 18393and XPM_LIBS to avoid the need to call pkg-config. 18394See the pkg-config man page for more details." "$LINENO" 5 18395elif test $pkg_failed = untried; then 18396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18397$as_echo "no" >&6; } 18398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18399$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18400as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18401is in your PATH or set the PKG_CONFIG environment variable to the full 18402path to pkg-config. 18403 18404Alternatively, you may set the environment variables XPM_CFLAGS 18405and XPM_LIBS to avoid the need to call pkg-config. 18406See the pkg-config man page for more details. 18407 18408To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18409See \`config.log' for more details" "$LINENO" 5; } 18410else 18411 XPM_CFLAGS=$pkg_cv_XPM_CFLAGS 18412 XPM_LIBS=$pkg_cv_XPM_LIBS 18413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18414$as_echo "yes" >&6; } 18415 18416fi 18417 18418pkg_failed=no 18419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SXPM" >&5 18420$as_echo_n "checking for SXPM... " >&6; } 18421 18422if test -n "$SXPM_CFLAGS"; then 18423 pkg_cv_SXPM_CFLAGS="$SXPM_CFLAGS" 18424 elif test -n "$PKG_CONFIG"; then 18425 if test -n "$PKG_CONFIG" && \ 18426 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xt xext xextproto xproto >= 7.0.17\""; } >&5 18427 ($PKG_CONFIG --exists --print-errors "x11 xt xext xextproto xproto >= 7.0.17") 2>&5 18428 ac_status=$? 18429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18430 test $ac_status = 0; }; then 18431 pkg_cv_SXPM_CFLAGS=`$PKG_CONFIG --cflags "x11 xt xext xextproto xproto >= 7.0.17" 2>/dev/null` 18432 test "x$?" != "x0" && pkg_failed=yes 18433else 18434 pkg_failed=yes 18435fi 18436 else 18437 pkg_failed=untried 18438fi 18439if test -n "$SXPM_LIBS"; then 18440 pkg_cv_SXPM_LIBS="$SXPM_LIBS" 18441 elif test -n "$PKG_CONFIG"; then 18442 if test -n "$PKG_CONFIG" && \ 18443 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xt xext xextproto xproto >= 7.0.17\""; } >&5 18444 ($PKG_CONFIG --exists --print-errors "x11 xt xext xextproto xproto >= 7.0.17") 2>&5 18445 ac_status=$? 18446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18447 test $ac_status = 0; }; then 18448 pkg_cv_SXPM_LIBS=`$PKG_CONFIG --libs "x11 xt xext xextproto xproto >= 7.0.17" 2>/dev/null` 18449 test "x$?" != "x0" && pkg_failed=yes 18450else 18451 pkg_failed=yes 18452fi 18453 else 18454 pkg_failed=untried 18455fi 18456 18457 18458 18459if test $pkg_failed = yes; then 18460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18461$as_echo "no" >&6; } 18462 18463if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18464 _pkg_short_errors_supported=yes 18465else 18466 _pkg_short_errors_supported=no 18467fi 18468 if test $_pkg_short_errors_supported = yes; then 18469 SXPM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xt xext xextproto xproto >= 7.0.17" 2>&1` 18470 else 18471 SXPM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xt xext xextproto xproto >= 7.0.17" 2>&1` 18472 fi 18473 # Put the nasty error message in config.log where it belongs 18474 echo "$SXPM_PKG_ERRORS" >&5 18475 18476 build_sxpm=false 18477elif test $pkg_failed = untried; then 18478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18479$as_echo "no" >&6; } 18480 build_sxpm=false 18481else 18482 SXPM_CFLAGS=$pkg_cv_SXPM_CFLAGS 18483 SXPM_LIBS=$pkg_cv_SXPM_LIBS 18484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18485$as_echo "yes" >&6; } 18486 build_sxpm=true 18487fi 18488 if test x$build_sxpm = xtrue; then 18489 BUILD_SXPM_TRUE= 18490 BUILD_SXPM_FALSE='#' 18491else 18492 BUILD_SXPM_TRUE='#' 18493 BUILD_SXPM_FALSE= 18494fi 18495 18496 18497# Internationalization & localization support 18498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gettext" >&5 18499$as_echo_n "checking for library containing gettext... " >&6; } 18500if ${ac_cv_search_gettext+:} false; then : 18501 $as_echo_n "(cached) " >&6 18502else 18503 ac_func_search_save_LIBS=$LIBS 18504cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18505/* end confdefs.h. */ 18506 18507/* Override any GCC internal prototype to avoid an error. 18508 Use char because int might match the return type of a GCC 18509 builtin and then its argument prototype would still apply. */ 18510#ifdef __cplusplus 18511extern "C" 18512#endif 18513char gettext (); 18514int 18515main () 18516{ 18517return gettext (); 18518 ; 18519 return 0; 18520} 18521_ACEOF 18522for ac_lib in '' intl; do 18523 if test -z "$ac_lib"; then 18524 ac_res="none required" 18525 else 18526 ac_res=-l$ac_lib 18527 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18528 fi 18529 if ac_fn_c_try_link "$LINENO"; then : 18530 ac_cv_search_gettext=$ac_res 18531fi 18532rm -f core conftest.err conftest.$ac_objext \ 18533 conftest$ac_exeext 18534 if ${ac_cv_search_gettext+:} false; then : 18535 break 18536fi 18537done 18538if ${ac_cv_search_gettext+:} false; then : 18539 18540else 18541 ac_cv_search_gettext=no 18542fi 18543rm conftest.$ac_ext 18544LIBS=$ac_func_search_save_LIBS 18545fi 18546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gettext" >&5 18547$as_echo "$ac_cv_search_gettext" >&6; } 18548ac_res=$ac_cv_search_gettext 18549if test "$ac_res" != no; then : 18550 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18551 USE_GETTEXT="yes" 18552else 18553 USE_GETTEXT="no" 18554fi 18555 18556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install localized messages" >&5 18557$as_echo_n "checking where to install localized messages... " >&6; } 18558 18559# Check whether --with-localedir was given. 18560if test "${with_localedir+set}" = set; then : 18561 withval=$with_localedir; LOCALEDIR=${withval} 18562else 18563 LOCALEDIR=${datadir}/locale 18564fi 18565 18566 18567 prefix_NONE= 18568 exec_prefix_NONE= 18569 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 18570 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 18571 eval ax_define_dir="\"$LOCALEDIR\"" 18572 eval ax_define_dir="\"$ax_define_dir\"" 18573 LOCALEDIR="$ax_define_dir" 18574 18575 18576cat >>confdefs.h <<_ACEOF 18577#define LOCALEDIR "$ax_define_dir" 18578_ACEOF 18579 18580 test "$prefix_NONE" && prefix=NONE 18581 test "$exec_prefix_NONE" && exec_prefix=NONE 18582 18583if test "x$LOCALEDIR" = "xno" -o "x$USE_GETTEXT" = "xno" ; then 18584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: nowhere" >&5 18585$as_echo "nowhere" >&6; } 18586 USE_GETTEXT="no" 18587else 18588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALEDIR" >&5 18589$as_echo "$LOCALEDIR" >&6; } 18590fi 18591 18592if test "x$USE_GETTEXT" = "xyes" ; then 18593 18594$as_echo "#define USE_GETTEXT 1" >>confdefs.h 18595 18596fi 18597 if test "x$USE_GETTEXT" = "xyes"; then 18598 USE_GETTEXT_TRUE= 18599 USE_GETTEXT_FALSE='#' 18600else 18601 USE_GETTEXT_TRUE='#' 18602 USE_GETTEXT_FALSE= 18603fi 18604 18605 18606 18607# Optional feature: When a filename ending in .Z or .gz is requested, 18608# open a pipe to a newly forked compress/uncompress/gzip command to 18609# handle it. 18610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to handle compressed pixmaps" >&5 18611$as_echo_n "checking whether to handle compressed pixmaps... " >&6; } 18612case $host_os in 18613 *mingw*) zpipe_default="no" ;; 18614 *) zpipe_default="yes" ;; 18615esac 18616# Check whether --enable-open-zfile was given. 18617if test "${enable_open_zfile+set}" = set; then : 18618 enableval=$enable_open_zfile; OPEN_ZFILE=$enableval 18619else 18620 OPEN_ZFILE=yes 18621fi 18622 18623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPEN_ZFILE" >&5 18624$as_echo "$OPEN_ZFILE" >&6; } 18625 if test "x$OPEN_ZFILE" = "xyes"; then 18626 COMPRESSED_PIXMAPS_TRUE= 18627 COMPRESSED_PIXMAPS_FALSE='#' 18628else 18629 COMPRESSED_PIXMAPS_TRUE='#' 18630 COMPRESSED_PIXMAPS_FALSE= 18631fi 18632 18633if test x$OPEN_ZFILE = xno ; then 18634 18635$as_echo "#define NO_ZPIPE 1" >>confdefs.h 18636 18637else 18638 18639# Extract the first word of "compress", so it can be a program name with args. 18640set dummy compress; ac_word=$2 18641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18642$as_echo_n "checking for $ac_word... " >&6; } 18643if ${ac_cv_path_XPM_PATH_COMPRESS+:} false; then : 18644 $as_echo_n "(cached) " >&6 18645else 18646 case $XPM_PATH_COMPRESS in 18647 [\\/]* | ?:[\\/]*) 18648 ac_cv_path_XPM_PATH_COMPRESS="$XPM_PATH_COMPRESS" # Let the user override the test with a path. 18649 ;; 18650 *) 18651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18652for as_dir in $PATH 18653do 18654 IFS=$as_save_IFS 18655 test -z "$as_dir" && as_dir=. 18656 for ac_exec_ext in '' $ac_executable_extensions; do 18657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18658 ac_cv_path_XPM_PATH_COMPRESS="$as_dir/$ac_word$ac_exec_ext" 18659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18660 break 2 18661 fi 18662done 18663 done 18664IFS=$as_save_IFS 18665 18666 ;; 18667esac 18668fi 18669XPM_PATH_COMPRESS=$ac_cv_path_XPM_PATH_COMPRESS 18670if test -n "$XPM_PATH_COMPRESS"; then 18671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPM_PATH_COMPRESS" >&5 18672$as_echo "$XPM_PATH_COMPRESS" >&6; } 18673else 18674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18675$as_echo "no" >&6; } 18676fi 18677 18678 18679if test "x$XPM_PATH_COMPRESS" = "x"; then : 18680 as_fn_error $? "compress not found, set XPM_PATH_COMPRESS or use --disable-stat-zfile" "$LINENO" 5 18681fi 18682 18683cat >>confdefs.h <<_ACEOF 18684#define XPM_PATH_COMPRESS "$XPM_PATH_COMPRESS" 18685_ACEOF 18686 18687 18688 18689# Extract the first word of "uncompress", so it can be a program name with args. 18690set dummy uncompress; ac_word=$2 18691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18692$as_echo_n "checking for $ac_word... " >&6; } 18693if ${ac_cv_path_XPM_PATH_UNCOMPRESS+:} false; then : 18694 $as_echo_n "(cached) " >&6 18695else 18696 case $XPM_PATH_UNCOMPRESS in 18697 [\\/]* | ?:[\\/]*) 18698 ac_cv_path_XPM_PATH_UNCOMPRESS="$XPM_PATH_UNCOMPRESS" # Let the user override the test with a path. 18699 ;; 18700 *) 18701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18702for as_dir in $PATH 18703do 18704 IFS=$as_save_IFS 18705 test -z "$as_dir" && as_dir=. 18706 for ac_exec_ext in '' $ac_executable_extensions; do 18707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18708 ac_cv_path_XPM_PATH_UNCOMPRESS="$as_dir/$ac_word$ac_exec_ext" 18709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18710 break 2 18711 fi 18712done 18713 done 18714IFS=$as_save_IFS 18715 18716 ;; 18717esac 18718fi 18719XPM_PATH_UNCOMPRESS=$ac_cv_path_XPM_PATH_UNCOMPRESS 18720if test -n "$XPM_PATH_UNCOMPRESS"; then 18721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPM_PATH_UNCOMPRESS" >&5 18722$as_echo "$XPM_PATH_UNCOMPRESS" >&6; } 18723else 18724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18725$as_echo "no" >&6; } 18726fi 18727 18728 18729if test "x$XPM_PATH_UNCOMPRESS" = "x"; then : 18730 as_fn_error $? "uncompress not found, set XPM_PATH_UNCOMPRESS or use --disable-stat-zfile" "$LINENO" 5 18731fi 18732 18733cat >>confdefs.h <<_ACEOF 18734#define XPM_PATH_UNCOMPRESS "$XPM_PATH_UNCOMPRESS" 18735_ACEOF 18736 18737 18738 18739# Extract the first word of "gzip", so it can be a program name with args. 18740set dummy gzip; ac_word=$2 18741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18742$as_echo_n "checking for $ac_word... " >&6; } 18743if ${ac_cv_path_XPM_PATH_GZIP+:} false; then : 18744 $as_echo_n "(cached) " >&6 18745else 18746 case $XPM_PATH_GZIP in 18747 [\\/]* | ?:[\\/]*) 18748 ac_cv_path_XPM_PATH_GZIP="$XPM_PATH_GZIP" # Let the user override the test with a path. 18749 ;; 18750 *) 18751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18752for as_dir in $PATH 18753do 18754 IFS=$as_save_IFS 18755 test -z "$as_dir" && as_dir=. 18756 for ac_exec_ext in '' $ac_executable_extensions; do 18757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18758 ac_cv_path_XPM_PATH_GZIP="$as_dir/$ac_word$ac_exec_ext" 18759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18760 break 2 18761 fi 18762done 18763 done 18764IFS=$as_save_IFS 18765 18766 ;; 18767esac 18768fi 18769XPM_PATH_GZIP=$ac_cv_path_XPM_PATH_GZIP 18770if test -n "$XPM_PATH_GZIP"; then 18771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPM_PATH_GZIP" >&5 18772$as_echo "$XPM_PATH_GZIP" >&6; } 18773else 18774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18775$as_echo "no" >&6; } 18776fi 18777 18778 18779if test "x$XPM_PATH_GZIP" = "x"; then : 18780 as_fn_error $? "gzip not found, set XPM_PATH_GZIP or use --disable-stat-zfile" "$LINENO" 5 18781fi 18782 18783cat >>confdefs.h <<_ACEOF 18784#define XPM_PATH_GZIP "$XPM_PATH_GZIP" 18785_ACEOF 18786 18787 18788 for ac_func in closefrom close_range 18789do : 18790 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18791ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 18792if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 18793 cat >>confdefs.h <<_ACEOF 18794#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18795_ACEOF 18796 break 18797fi 18798done 18799 18800fi 18801 18802# Optional feature: When ___.xpm is requested, also look for ___.xpm.Z & .gz 18803# Replaces ZFILEDEF = -DSTAT_ZFILE in old Imakefile 18804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to search for compressed pixmaps" >&5 18805$as_echo_n "checking whether to search for compressed pixmaps... " >&6; } 18806# Check whether --enable-stat-zfile was given. 18807if test "${enable_stat_zfile+set}" = set; then : 18808 enableval=$enable_stat_zfile; STAT_ZFILE=$enableval 18809else 18810 STAT_ZFILE=$OPEN_ZFILE 18811fi 18812 18813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT_ZFILE" >&5 18814$as_echo "$STAT_ZFILE" >&6; } 18815if test x$STAT_ZFILE = xyes ; then 18816 18817$as_echo "#define STAT_ZFILE 1" >>confdefs.h 18818 18819fi 18820 18821# --enable-unit-tests 18822 18823 18824 18825 18826 18827 18828# Check for different types of support on different platforms 18829case $host_os in 18830 solaris*) 18831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5 18832$as_echo_n "checking for umem_alloc in -lumem... " >&6; } 18833if ${ac_cv_lib_umem_umem_alloc+:} false; then : 18834 $as_echo_n "(cached) " >&6 18835else 18836 ac_check_lib_save_LIBS=$LIBS 18837LIBS="-lumem $LIBS" 18838cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18839/* end confdefs.h. */ 18840 18841/* Override any GCC internal prototype to avoid an error. 18842 Use char because int might match the return type of a GCC 18843 builtin and then its argument prototype would still apply. */ 18844#ifdef __cplusplus 18845extern "C" 18846#endif 18847char umem_alloc (); 18848int 18849main () 18850{ 18851return umem_alloc (); 18852 ; 18853 return 0; 18854} 18855_ACEOF 18856if ac_fn_c_try_link "$LINENO"; then : 18857 ac_cv_lib_umem_umem_alloc=yes 18858else 18859 ac_cv_lib_umem_umem_alloc=no 18860fi 18861rm -f core conftest.err conftest.$ac_objext \ 18862 conftest$ac_exeext conftest.$ac_ext 18863LIBS=$ac_check_lib_save_LIBS 18864fi 18865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5 18866$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; } 18867if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then : 18868 malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default' 18869fi 18870 18871 ;; 18872 *-gnu*) # GNU libc - Value is used as a single byte bit pattern, 18873 # both directly and inverted, so should not be 0 or 255. 18874 malloc_debug_env='MALLOC_PERTURB_=15' 18875 ;; 18876 darwin*) 18877 malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib' 18878 ;; 18879 *bsd*) 18880 malloc_debug_env='MallocPreScribble=1 MallocScribble=1' 18881 ;; 18882esac 18883 18884# User supplied flags override default flags 18885if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then 18886 malloc_debug_env="$XORG_MALLOC_DEBUG_ENV" 18887fi 18888 18889XORG_MALLOC_DEBUG_ENV=$malloc_debug_env 18890 18891 18892 18893 18894 18895 18896 18897# Check whether --enable-unit-tests was given. 18898if test "${enable_unit_tests+set}" = set; then : 18899 enableval=$enable_unit_tests; enable_unit_tests=$enableval 18900else 18901 enable_unit_tests=auto 18902fi 18903 18904 18905 if test "x$enable_unit_tests" != xno; then 18906 ENABLE_UNIT_TESTS_TRUE= 18907 ENABLE_UNIT_TESTS_FALSE='#' 18908else 18909 ENABLE_UNIT_TESTS_TRUE='#' 18910 ENABLE_UNIT_TESTS_FALSE= 18911fi 18912 18913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build unit test cases" >&5 18914$as_echo_n "checking whether to build unit test cases... " >&6; } 18915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_unit_tests" >&5 18916$as_echo "$enable_unit_tests" >&6; } 18917 18918 18919 18920 18921 18922# Check whether --with-glib was given. 18923if test "${with_glib+set}" = set; then : 18924 withval=$with_glib; with_glib=$withval 18925else 18926 with_glib=auto 18927fi 18928 18929 18930 18931have_glib=no 18932# Do not probe GLib if user explicitly disabled unit testing 18933if test "x$enable_unit_tests" != x"no"; then 18934 # Do not probe GLib if user explicitly disabled it 18935 if test "x$with_glib" != x"no"; then 18936 18937pkg_failed=no 18938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5 18939$as_echo_n "checking for GLIB... " >&6; } 18940 18941if test -n "$GLIB_CFLAGS"; then 18942 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS" 18943 elif test -n "$PKG_CONFIG"; then 18944 if test -n "$PKG_CONFIG" && \ 18945 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.46\""; } >&5 18946 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.46") 2>&5 18947 ac_status=$? 18948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18949 test $ac_status = 0; }; then 18950 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.46" 2>/dev/null` 18951 test "x$?" != "x0" && pkg_failed=yes 18952else 18953 pkg_failed=yes 18954fi 18955 else 18956 pkg_failed=untried 18957fi 18958if test -n "$GLIB_LIBS"; then 18959 pkg_cv_GLIB_LIBS="$GLIB_LIBS" 18960 elif test -n "$PKG_CONFIG"; then 18961 if test -n "$PKG_CONFIG" && \ 18962 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.46\""; } >&5 18963 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.46") 2>&5 18964 ac_status=$? 18965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18966 test $ac_status = 0; }; then 18967 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.46" 2>/dev/null` 18968 test "x$?" != "x0" && pkg_failed=yes 18969else 18970 pkg_failed=yes 18971fi 18972 else 18973 pkg_failed=untried 18974fi 18975 18976 18977 18978if test $pkg_failed = yes; then 18979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18980$as_echo "no" >&6; } 18981 18982if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18983 _pkg_short_errors_supported=yes 18984else 18985 _pkg_short_errors_supported=no 18986fi 18987 if test $_pkg_short_errors_supported = yes; then 18988 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.46" 2>&1` 18989 else 18990 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.46" 2>&1` 18991 fi 18992 # Put the nasty error message in config.log where it belongs 18993 echo "$GLIB_PKG_ERRORS" >&5 18994 18995 have_glib=no 18996elif test $pkg_failed = untried; then 18997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18998$as_echo "no" >&6; } 18999 have_glib=no 19000else 19001 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS 19002 GLIB_LIBS=$pkg_cv_GLIB_LIBS 19003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19004$as_echo "yes" >&6; } 19005 have_glib=yes 19006fi 19007 fi 19008fi 19009 19010# Not having GLib when unit testing has been explicitly requested is an error 19011if test "x$enable_unit_tests" = x"yes"; then 19012 if test "x$have_glib" = x"no"; then 19013 as_fn_error $? "--enable-unit-tests=yes specified but glib-2.0 not found" "$LINENO" 5 19014 fi 19015fi 19016 19017# Having unit testing disabled when GLib has been explicitly requested is an error 19018if test "x$enable_unit_tests" = x"no"; then 19019 if test "x$with_glib" = x"yes"; then 19020 as_fn_error $? "--enable-unit-tests=yes specified but glib-2.0 not found" "$LINENO" 5 19021 fi 19022fi 19023 19024# Not having GLib when it has been explicitly requested is an error 19025if test "x$with_glib" = x"yes"; then 19026 if test "x$have_glib" = x"no"; then 19027 as_fn_error $? "--with-glib=yes specified but glib-2.0 not found" "$LINENO" 5 19028 fi 19029fi 19030 19031 if test "$have_glib" = yes; then 19032 HAVE_GLIB_TRUE= 19033 HAVE_GLIB_FALSE='#' 19034else 19035 HAVE_GLIB_TRUE='#' 19036 HAVE_GLIB_FALSE= 19037fi 19038 19039 19040 19041 19042 19043 19044 19045# Check for different types of support on different platforms 19046case $host_os in 19047 solaris*) 19048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5 19049$as_echo_n "checking for umem_alloc in -lumem... " >&6; } 19050if ${ac_cv_lib_umem_umem_alloc+:} false; then : 19051 $as_echo_n "(cached) " >&6 19052else 19053 ac_check_lib_save_LIBS=$LIBS 19054LIBS="-lumem $LIBS" 19055cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19056/* end confdefs.h. */ 19057 19058/* Override any GCC internal prototype to avoid an error. 19059 Use char because int might match the return type of a GCC 19060 builtin and then its argument prototype would still apply. */ 19061#ifdef __cplusplus 19062extern "C" 19063#endif 19064char umem_alloc (); 19065int 19066main () 19067{ 19068return umem_alloc (); 19069 ; 19070 return 0; 19071} 19072_ACEOF 19073if ac_fn_c_try_link "$LINENO"; then : 19074 ac_cv_lib_umem_umem_alloc=yes 19075else 19076 ac_cv_lib_umem_umem_alloc=no 19077fi 19078rm -f core conftest.err conftest.$ac_objext \ 19079 conftest$ac_exeext conftest.$ac_ext 19080LIBS=$ac_check_lib_save_LIBS 19081fi 19082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5 19083$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; } 19084if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then : 19085 malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default' 19086fi 19087 19088 ;; 19089 *-gnu*) # GNU libc - Value is used as a single byte bit pattern, 19090 # both directly and inverted, so should not be 0 or 255. 19091 malloc_debug_env='MALLOC_PERTURB_=15' 19092 ;; 19093 darwin*) 19094 malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib' 19095 ;; 19096 *bsd*) 19097 malloc_debug_env='MallocPreScribble=1 MallocScribble=1' 19098 ;; 19099esac 19100 19101# User supplied flags override default flags 19102if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then 19103 malloc_debug_env="$XORG_MALLOC_DEBUG_ENV" 19104fi 19105 19106XORG_MALLOC_DEBUG_ENV=$malloc_debug_env 19107 19108 19109 19110ac_config_files="$ac_config_files Makefile doc/Makefile include/Makefile man/Makefile src/Makefile sxpm/Makefile cxpm/Makefile test/Makefile xpm.pc" 19111 19112cat >confcache <<\_ACEOF 19113# This file is a shell script that caches the results of configure 19114# tests run on this system so they can be shared between configure 19115# scripts and configure runs, see configure's option --config-cache. 19116# It is not useful on other systems. If it contains results you don't 19117# want to keep, you may remove or edit it. 19118# 19119# config.status only pays attention to the cache file if you give it 19120# the --recheck option to rerun configure. 19121# 19122# `ac_cv_env_foo' variables (set or unset) will be overridden when 19123# loading this file, other *unset* `ac_cv_foo' will be assigned the 19124# following values. 19125 19126_ACEOF 19127 19128# The following way of writing the cache mishandles newlines in values, 19129# but we know of no workaround that is simple, portable, and efficient. 19130# So, we kill variables containing newlines. 19131# Ultrix sh set writes to stderr and can't be redirected directly, 19132# and sets the high bit in the cache file unless we assign to the vars. 19133( 19134 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19135 eval ac_val=\$$ac_var 19136 case $ac_val in #( 19137 *${as_nl}*) 19138 case $ac_var in #( 19139 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19140$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19141 esac 19142 case $ac_var in #( 19143 _ | IFS | as_nl) ;; #( 19144 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19145 *) { eval $ac_var=; unset $ac_var;} ;; 19146 esac ;; 19147 esac 19148 done 19149 19150 (set) 2>&1 | 19151 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19152 *${as_nl}ac_space=\ *) 19153 # `set' does not quote correctly, so add quotes: double-quote 19154 # substitution turns \\\\ into \\, and sed turns \\ into \. 19155 sed -n \ 19156 "s/'/'\\\\''/g; 19157 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19158 ;; #( 19159 *) 19160 # `set' quotes correctly as required by POSIX, so do not add quotes. 19161 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19162 ;; 19163 esac | 19164 sort 19165) | 19166 sed ' 19167 /^ac_cv_env_/b end 19168 t clear 19169 :clear 19170 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19171 t end 19172 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19173 :end' >>confcache 19174if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19175 if test -w "$cache_file"; then 19176 if test "x$cache_file" != "x/dev/null"; then 19177 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19178$as_echo "$as_me: updating cache $cache_file" >&6;} 19179 if test ! -f "$cache_file" || test -h "$cache_file"; then 19180 cat confcache >"$cache_file" 19181 else 19182 case $cache_file in #( 19183 */* | ?:*) 19184 mv -f confcache "$cache_file"$$ && 19185 mv -f "$cache_file"$$ "$cache_file" ;; #( 19186 *) 19187 mv -f confcache "$cache_file" ;; 19188 esac 19189 fi 19190 fi 19191 else 19192 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19193$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19194 fi 19195fi 19196rm -f confcache 19197 19198test "x$prefix" = xNONE && prefix=$ac_default_prefix 19199# Let make expand exec_prefix. 19200test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19201 19202DEFS=-DHAVE_CONFIG_H 19203 19204ac_libobjs= 19205ac_ltlibobjs= 19206U= 19207for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19208 # 1. Remove the extension, and $U if already installed. 19209 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19210 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 19211 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19212 # will be set to the directory where LIBOBJS objects are built. 19213 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19214 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19215done 19216LIBOBJS=$ac_libobjs 19217 19218LTLIBOBJS=$ac_ltlibobjs 19219 19220 19221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19222$as_echo_n "checking that generated files are newer than configure... " >&6; } 19223 if test -n "$am_sleep_pid"; then 19224 # Hide warnings about reused PIDs. 19225 wait $am_sleep_pid 2>/dev/null 19226 fi 19227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 19228$as_echo "done" >&6; } 19229 if test -n "$EXEEXT"; then 19230 am__EXEEXT_TRUE= 19231 am__EXEEXT_FALSE='#' 19232else 19233 am__EXEEXT_TRUE='#' 19234 am__EXEEXT_FALSE= 19235fi 19236 19237if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19238 as_fn_error $? "conditional \"AMDEP\" was never defined. 19239Usually this means the macro was only invoked conditionally." "$LINENO" 5 19240fi 19241if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19242 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19243Usually this means the macro was only invoked conditionally." "$LINENO" 5 19244fi 19245if test -z "${BUILD_SXPM_TRUE}" && test -z "${BUILD_SXPM_FALSE}"; then 19246 as_fn_error $? "conditional \"BUILD_SXPM\" was never defined. 19247Usually this means the macro was only invoked conditionally." "$LINENO" 5 19248fi 19249if test -z "${USE_GETTEXT_TRUE}" && test -z "${USE_GETTEXT_FALSE}"; then 19250 as_fn_error $? "conditional \"USE_GETTEXT\" was never defined. 19251Usually this means the macro was only invoked conditionally." "$LINENO" 5 19252fi 19253if test -z "${COMPRESSED_PIXMAPS_TRUE}" && test -z "${COMPRESSED_PIXMAPS_FALSE}"; then 19254 as_fn_error $? "conditional \"COMPRESSED_PIXMAPS\" was never defined. 19255Usually this means the macro was only invoked conditionally." "$LINENO" 5 19256fi 19257if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then 19258 as_fn_error $? "conditional \"ENABLE_UNIT_TESTS\" was never defined. 19259Usually this means the macro was only invoked conditionally." "$LINENO" 5 19260fi 19261if test -z "${HAVE_GLIB_TRUE}" && test -z "${HAVE_GLIB_FALSE}"; then 19262 as_fn_error $? "conditional \"HAVE_GLIB\" was never defined. 19263Usually this means the macro was only invoked conditionally." "$LINENO" 5 19264fi 19265 19266: "${CONFIG_STATUS=./config.status}" 19267ac_write_fail=0 19268ac_clean_files_save=$ac_clean_files 19269ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19270{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19271$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 19272as_write_fail=0 19273cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19274#! $SHELL 19275# Generated by $as_me. 19276# Run this file to recreate the current configuration. 19277# Compiler output produced by configure, useful for debugging 19278# configure, is in config.log if it exists. 19279 19280debug=false 19281ac_cs_recheck=false 19282ac_cs_silent=false 19283 19284SHELL=\${CONFIG_SHELL-$SHELL} 19285export SHELL 19286_ASEOF 19287cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19288## -------------------- ## 19289## M4sh Initialization. ## 19290## -------------------- ## 19291 19292# Be more Bourne compatible 19293DUALCASE=1; export DUALCASE # for MKS sh 19294if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19295 emulate sh 19296 NULLCMD=: 19297 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19298 # is contrary to our usage. Disable this feature. 19299 alias -g '${1+"$@"}'='"$@"' 19300 setopt NO_GLOB_SUBST 19301else 19302 case `(set -o) 2>/dev/null` in #( 19303 *posix*) : 19304 set -o posix ;; #( 19305 *) : 19306 ;; 19307esac 19308fi 19309 19310 19311as_nl=' 19312' 19313export as_nl 19314# Printing a long string crashes Solaris 7 /usr/bin/printf. 19315as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19316as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19317as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19318# Prefer a ksh shell builtin over an external printf program on Solaris, 19319# but without wasting forks for bash or zsh. 19320if test -z "$BASH_VERSION$ZSH_VERSION" \ 19321 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19322 as_echo='print -r --' 19323 as_echo_n='print -rn --' 19324elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19325 as_echo='printf %s\n' 19326 as_echo_n='printf %s' 19327else 19328 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 19329 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 19330 as_echo_n='/usr/ucb/echo -n' 19331 else 19332 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 19333 as_echo_n_body='eval 19334 arg=$1; 19335 case $arg in #( 19336 *"$as_nl"*) 19337 expr "X$arg" : "X\\(.*\\)$as_nl"; 19338 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 19339 esac; 19340 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 19341 ' 19342 export as_echo_n_body 19343 as_echo_n='sh -c $as_echo_n_body as_echo' 19344 fi 19345 export as_echo_body 19346 as_echo='sh -c $as_echo_body as_echo' 19347fi 19348 19349# The user is always right. 19350if test "${PATH_SEPARATOR+set}" != set; then 19351 PATH_SEPARATOR=: 19352 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19353 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19354 PATH_SEPARATOR=';' 19355 } 19356fi 19357 19358 19359# IFS 19360# We need space, tab and new line, in precisely that order. Quoting is 19361# there to prevent editors from complaining about space-tab. 19362# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19363# splitting by setting IFS to empty value.) 19364IFS=" "" $as_nl" 19365 19366# Find who we are. Look in the path if we contain no directory separator. 19367as_myself= 19368case $0 in #(( 19369 *[\\/]* ) as_myself=$0 ;; 19370 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19371for as_dir in $PATH 19372do 19373 IFS=$as_save_IFS 19374 test -z "$as_dir" && as_dir=. 19375 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19376 done 19377IFS=$as_save_IFS 19378 19379 ;; 19380esac 19381# We did not find ourselves, most probably we were run as `sh COMMAND' 19382# in which case we are not to be found in the path. 19383if test "x$as_myself" = x; then 19384 as_myself=$0 19385fi 19386if test ! -f "$as_myself"; then 19387 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19388 exit 1 19389fi 19390 19391# Unset variables that we do not need and which cause bugs (e.g. in 19392# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19393# suppresses any "Segmentation fault" message there. '((' could 19394# trigger a bug in pdksh 5.2.14. 19395for as_var in BASH_ENV ENV MAIL MAILPATH 19396do eval test x\${$as_var+set} = xset \ 19397 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19398done 19399PS1='$ ' 19400PS2='> ' 19401PS4='+ ' 19402 19403# NLS nuisances. 19404LC_ALL=C 19405export LC_ALL 19406LANGUAGE=C 19407export LANGUAGE 19408 19409# CDPATH. 19410(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19411 19412 19413# as_fn_error STATUS ERROR [LINENO LOG_FD] 19414# ---------------------------------------- 19415# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19416# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19417# script with STATUS, using 1 if that was 0. 19418as_fn_error () 19419{ 19420 as_status=$1; test $as_status -eq 0 && as_status=1 19421 if test "$4"; then 19422 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19423 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19424 fi 19425 $as_echo "$as_me: error: $2" >&2 19426 as_fn_exit $as_status 19427} # as_fn_error 19428 19429 19430# as_fn_set_status STATUS 19431# ----------------------- 19432# Set $? to STATUS, without forking. 19433as_fn_set_status () 19434{ 19435 return $1 19436} # as_fn_set_status 19437 19438# as_fn_exit STATUS 19439# ----------------- 19440# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19441as_fn_exit () 19442{ 19443 set +e 19444 as_fn_set_status $1 19445 exit $1 19446} # as_fn_exit 19447 19448# as_fn_unset VAR 19449# --------------- 19450# Portably unset VAR. 19451as_fn_unset () 19452{ 19453 { eval $1=; unset $1;} 19454} 19455as_unset=as_fn_unset 19456# as_fn_append VAR VALUE 19457# ---------------------- 19458# Append the text in VALUE to the end of the definition contained in VAR. Take 19459# advantage of any shell optimizations that allow amortized linear growth over 19460# repeated appends, instead of the typical quadratic growth present in naive 19461# implementations. 19462if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19463 eval 'as_fn_append () 19464 { 19465 eval $1+=\$2 19466 }' 19467else 19468 as_fn_append () 19469 { 19470 eval $1=\$$1\$2 19471 } 19472fi # as_fn_append 19473 19474# as_fn_arith ARG... 19475# ------------------ 19476# Perform arithmetic evaluation on the ARGs, and store the result in the 19477# global $as_val. Take advantage of shells that can avoid forks. The arguments 19478# must be portable across $(()) and expr. 19479if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19480 eval 'as_fn_arith () 19481 { 19482 as_val=$(( $* )) 19483 }' 19484else 19485 as_fn_arith () 19486 { 19487 as_val=`expr "$@" || test $? -eq 1` 19488 } 19489fi # as_fn_arith 19490 19491 19492if expr a : '\(a\)' >/dev/null 2>&1 && 19493 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19494 as_expr=expr 19495else 19496 as_expr=false 19497fi 19498 19499if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19500 as_basename=basename 19501else 19502 as_basename=false 19503fi 19504 19505if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19506 as_dirname=dirname 19507else 19508 as_dirname=false 19509fi 19510 19511as_me=`$as_basename -- "$0" || 19512$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19513 X"$0" : 'X\(//\)$' \| \ 19514 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19515$as_echo X/"$0" | 19516 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19517 s//\1/ 19518 q 19519 } 19520 /^X\/\(\/\/\)$/{ 19521 s//\1/ 19522 q 19523 } 19524 /^X\/\(\/\).*/{ 19525 s//\1/ 19526 q 19527 } 19528 s/.*/./; q'` 19529 19530# Avoid depending upon Character Ranges. 19531as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19532as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19533as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19534as_cr_digits='0123456789' 19535as_cr_alnum=$as_cr_Letters$as_cr_digits 19536 19537ECHO_C= ECHO_N= ECHO_T= 19538case `echo -n x` in #((((( 19539-n*) 19540 case `echo 'xy\c'` in 19541 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19542 xy) ECHO_C='\c';; 19543 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19544 ECHO_T=' ';; 19545 esac;; 19546*) 19547 ECHO_N='-n';; 19548esac 19549 19550rm -f conf$$ conf$$.exe conf$$.file 19551if test -d conf$$.dir; then 19552 rm -f conf$$.dir/conf$$.file 19553else 19554 rm -f conf$$.dir 19555 mkdir conf$$.dir 2>/dev/null 19556fi 19557if (echo >conf$$.file) 2>/dev/null; then 19558 if ln -s conf$$.file conf$$ 2>/dev/null; then 19559 as_ln_s='ln -s' 19560 # ... but there are two gotchas: 19561 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19562 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19563 # In both cases, we have to default to `cp -pR'. 19564 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19565 as_ln_s='cp -pR' 19566 elif ln conf$$.file conf$$ 2>/dev/null; then 19567 as_ln_s=ln 19568 else 19569 as_ln_s='cp -pR' 19570 fi 19571else 19572 as_ln_s='cp -pR' 19573fi 19574rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19575rmdir conf$$.dir 2>/dev/null 19576 19577 19578# as_fn_mkdir_p 19579# ------------- 19580# Create "$as_dir" as a directory, including parents if necessary. 19581as_fn_mkdir_p () 19582{ 19583 19584 case $as_dir in #( 19585 -*) as_dir=./$as_dir;; 19586 esac 19587 test -d "$as_dir" || eval $as_mkdir_p || { 19588 as_dirs= 19589 while :; do 19590 case $as_dir in #( 19591 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19592 *) as_qdir=$as_dir;; 19593 esac 19594 as_dirs="'$as_qdir' $as_dirs" 19595 as_dir=`$as_dirname -- "$as_dir" || 19596$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19597 X"$as_dir" : 'X\(//\)[^/]' \| \ 19598 X"$as_dir" : 'X\(//\)$' \| \ 19599 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19600$as_echo X"$as_dir" | 19601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19602 s//\1/ 19603 q 19604 } 19605 /^X\(\/\/\)[^/].*/{ 19606 s//\1/ 19607 q 19608 } 19609 /^X\(\/\/\)$/{ 19610 s//\1/ 19611 q 19612 } 19613 /^X\(\/\).*/{ 19614 s//\1/ 19615 q 19616 } 19617 s/.*/./; q'` 19618 test -d "$as_dir" && break 19619 done 19620 test -z "$as_dirs" || eval "mkdir $as_dirs" 19621 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19622 19623 19624} # as_fn_mkdir_p 19625if mkdir -p . 2>/dev/null; then 19626 as_mkdir_p='mkdir -p "$as_dir"' 19627else 19628 test -d ./-p && rmdir ./-p 19629 as_mkdir_p=false 19630fi 19631 19632 19633# as_fn_executable_p FILE 19634# ----------------------- 19635# Test if FILE is an executable regular file. 19636as_fn_executable_p () 19637{ 19638 test -f "$1" && test -x "$1" 19639} # as_fn_executable_p 19640as_test_x='test -x' 19641as_executable_p=as_fn_executable_p 19642 19643# Sed expression to map a string onto a valid CPP name. 19644as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19645 19646# Sed expression to map a string onto a valid variable name. 19647as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19648 19649 19650exec 6>&1 19651## ----------------------------------- ## 19652## Main body of $CONFIG_STATUS script. ## 19653## ----------------------------------- ## 19654_ASEOF 19655test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19656 19657cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19658# Save the log message, to keep $0 and so on meaningful, and to 19659# report actual input values of CONFIG_FILES etc. instead of their 19660# values after options handling. 19661ac_log=" 19662This file was extended by libXpm $as_me 3.5.15, which was 19663generated by GNU Autoconf 2.69. Invocation command line was 19664 19665 CONFIG_FILES = $CONFIG_FILES 19666 CONFIG_HEADERS = $CONFIG_HEADERS 19667 CONFIG_LINKS = $CONFIG_LINKS 19668 CONFIG_COMMANDS = $CONFIG_COMMANDS 19669 $ $0 $@ 19670 19671on `(hostname || uname -n) 2>/dev/null | sed 1q` 19672" 19673 19674_ACEOF 19675 19676case $ac_config_files in *" 19677"*) set x $ac_config_files; shift; ac_config_files=$*;; 19678esac 19679 19680case $ac_config_headers in *" 19681"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19682esac 19683 19684 19685cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19686# Files that config.status was made for. 19687config_files="$ac_config_files" 19688config_headers="$ac_config_headers" 19689config_commands="$ac_config_commands" 19690 19691_ACEOF 19692 19693cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19694ac_cs_usage="\ 19695\`$as_me' instantiates files and other configuration actions 19696from templates according to the current configuration. Unless the files 19697and actions are specified as TAGs, all are instantiated by default. 19698 19699Usage: $0 [OPTION]... [TAG]... 19700 19701 -h, --help print this help, then exit 19702 -V, --version print version number and configuration settings, then exit 19703 --config print configuration, then exit 19704 -q, --quiet, --silent 19705 do not print progress messages 19706 -d, --debug don't remove temporary files 19707 --recheck update $as_me by reconfiguring in the same conditions 19708 --file=FILE[:TEMPLATE] 19709 instantiate the configuration file FILE 19710 --header=FILE[:TEMPLATE] 19711 instantiate the configuration header FILE 19712 19713Configuration files: 19714$config_files 19715 19716Configuration headers: 19717$config_headers 19718 19719Configuration commands: 19720$config_commands 19721 19722Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxpm/-/issues>." 19723 19724_ACEOF 19725cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19726ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19727ac_cs_version="\\ 19728libXpm config.status 3.5.15 19729configured by $0, generated by GNU Autoconf 2.69, 19730 with options \\"\$ac_cs_config\\" 19731 19732Copyright (C) 2012 Free Software Foundation, Inc. 19733This config.status script is free software; the Free Software Foundation 19734gives unlimited permission to copy, distribute and modify it." 19735 19736ac_pwd='$ac_pwd' 19737srcdir='$srcdir' 19738INSTALL='$INSTALL' 19739MKDIR_P='$MKDIR_P' 19740AWK='$AWK' 19741test -n "\$AWK" || AWK=awk 19742_ACEOF 19743 19744cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19745# The default lists apply if the user does not specify any file. 19746ac_need_defaults=: 19747while test $# != 0 19748do 19749 case $1 in 19750 --*=?*) 19751 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19752 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19753 ac_shift=: 19754 ;; 19755 --*=) 19756 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19757 ac_optarg= 19758 ac_shift=: 19759 ;; 19760 *) 19761 ac_option=$1 19762 ac_optarg=$2 19763 ac_shift=shift 19764 ;; 19765 esac 19766 19767 case $ac_option in 19768 # Handling of the options. 19769 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19770 ac_cs_recheck=: ;; 19771 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19772 $as_echo "$ac_cs_version"; exit ;; 19773 --config | --confi | --conf | --con | --co | --c ) 19774 $as_echo "$ac_cs_config"; exit ;; 19775 --debug | --debu | --deb | --de | --d | -d ) 19776 debug=: ;; 19777 --file | --fil | --fi | --f ) 19778 $ac_shift 19779 case $ac_optarg in 19780 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19781 '') as_fn_error $? "missing file argument" ;; 19782 esac 19783 as_fn_append CONFIG_FILES " '$ac_optarg'" 19784 ac_need_defaults=false;; 19785 --header | --heade | --head | --hea ) 19786 $ac_shift 19787 case $ac_optarg in 19788 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19789 esac 19790 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19791 ac_need_defaults=false;; 19792 --he | --h) 19793 # Conflict between --help and --header 19794 as_fn_error $? "ambiguous option: \`$1' 19795Try \`$0 --help' for more information.";; 19796 --help | --hel | -h ) 19797 $as_echo "$ac_cs_usage"; exit ;; 19798 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19799 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19800 ac_cs_silent=: ;; 19801 19802 # This is an error. 19803 -*) as_fn_error $? "unrecognized option: \`$1' 19804Try \`$0 --help' for more information." ;; 19805 19806 *) as_fn_append ac_config_targets " $1" 19807 ac_need_defaults=false ;; 19808 19809 esac 19810 shift 19811done 19812 19813ac_configure_extra_args= 19814 19815if $ac_cs_silent; then 19816 exec 6>/dev/null 19817 ac_configure_extra_args="$ac_configure_extra_args --silent" 19818fi 19819 19820_ACEOF 19821cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19822if \$ac_cs_recheck; then 19823 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19824 shift 19825 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19826 CONFIG_SHELL='$SHELL' 19827 export CONFIG_SHELL 19828 exec "\$@" 19829fi 19830 19831_ACEOF 19832cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19833exec 5>>config.log 19834{ 19835 echo 19836 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19837## Running $as_me. ## 19838_ASBOX 19839 $as_echo "$ac_log" 19840} >&5 19841 19842_ACEOF 19843cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19844# 19845# INIT-COMMANDS 19846# 19847AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19848 19849 19850# The HP-UX ksh and POSIX shell print the target directory to stdout 19851# if CDPATH is set. 19852(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19853 19854sed_quote_subst='$sed_quote_subst' 19855double_quote_subst='$double_quote_subst' 19856delay_variable_subst='$delay_variable_subst' 19857macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19858macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19859enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19860enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19861pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19862enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19863shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 19864SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19865ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19866PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19867host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19868host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19869host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19870build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19871build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19872build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19873SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19874Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19875GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19876EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19877FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19878LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19879NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19880LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19881max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19882ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19883exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19884lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19885lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19886lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19887lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19888lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19889reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19890reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19891OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19892deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19893file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19894file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19895want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19896DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19897sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19898AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19899AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19900archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19901STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19902RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19903old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19904old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19905old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19906lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19907CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19908CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19909compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19910GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19911lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19912lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19913lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 19914lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19915lt_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"`' 19916lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 19917nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19918lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19919lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 19920objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19921MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19922lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19923lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19924lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19925lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19926lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19927need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19928MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19929DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19930NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19931LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19932OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19933OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19934libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19935shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19936extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19937archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19938enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19939export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19940whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19941compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19942old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19943old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19944archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19945archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19946module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19947module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19948with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19949allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19950no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19951hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19952hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19953hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19954hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19955hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19956hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19957hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19958inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19959link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19960always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19961export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19962exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19963include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19964prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19965postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19966file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19967variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19968need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19969need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19970version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19971runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19972shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19973shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19974libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19975library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19976soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19977install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19978postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19979postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19980finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19981finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19982hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19983sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19984configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 19985configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 19986hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19987enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19988enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19989enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19990old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19991striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19992 19993LTCC='$LTCC' 19994LTCFLAGS='$LTCFLAGS' 19995compiler='$compiler_DEFAULT' 19996 19997# A function that is used when there is no print builtin or printf. 19998func_fallback_echo () 19999{ 20000 eval 'cat <<_LTECHO_EOF 20001\$1 20002_LTECHO_EOF' 20003} 20004 20005# Quote evaled strings. 20006for var in SHELL \ 20007ECHO \ 20008PATH_SEPARATOR \ 20009SED \ 20010GREP \ 20011EGREP \ 20012FGREP \ 20013LD \ 20014NM \ 20015LN_S \ 20016lt_SP2NL \ 20017lt_NL2SP \ 20018reload_flag \ 20019OBJDUMP \ 20020deplibs_check_method \ 20021file_magic_cmd \ 20022file_magic_glob \ 20023want_nocaseglob \ 20024DLLTOOL \ 20025sharedlib_from_linklib_cmd \ 20026AR \ 20027AR_FLAGS \ 20028archiver_list_spec \ 20029STRIP \ 20030RANLIB \ 20031CC \ 20032CFLAGS \ 20033compiler \ 20034lt_cv_sys_global_symbol_pipe \ 20035lt_cv_sys_global_symbol_to_cdecl \ 20036lt_cv_sys_global_symbol_to_import \ 20037lt_cv_sys_global_symbol_to_c_name_address \ 20038lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20039lt_cv_nm_interface \ 20040nm_file_list_spec \ 20041lt_cv_truncate_bin \ 20042lt_prog_compiler_no_builtin_flag \ 20043lt_prog_compiler_pic \ 20044lt_prog_compiler_wl \ 20045lt_prog_compiler_static \ 20046lt_cv_prog_compiler_c_o \ 20047need_locks \ 20048MANIFEST_TOOL \ 20049DSYMUTIL \ 20050NMEDIT \ 20051LIPO \ 20052OTOOL \ 20053OTOOL64 \ 20054shrext_cmds \ 20055export_dynamic_flag_spec \ 20056whole_archive_flag_spec \ 20057compiler_needs_object \ 20058with_gnu_ld \ 20059allow_undefined_flag \ 20060no_undefined_flag \ 20061hardcode_libdir_flag_spec \ 20062hardcode_libdir_separator \ 20063exclude_expsyms \ 20064include_expsyms \ 20065file_list_spec \ 20066variables_saved_for_relink \ 20067libname_spec \ 20068library_names_spec \ 20069soname_spec \ 20070install_override_mode \ 20071finish_eval \ 20072old_striplib \ 20073striplib; do 20074 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20075 *[\\\\\\\`\\"\\\$]*) 20076 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20077 ;; 20078 *) 20079 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20080 ;; 20081 esac 20082done 20083 20084# Double-quote double-evaled strings. 20085for var in reload_cmds \ 20086old_postinstall_cmds \ 20087old_postuninstall_cmds \ 20088old_archive_cmds \ 20089extract_expsyms_cmds \ 20090old_archive_from_new_cmds \ 20091old_archive_from_expsyms_cmds \ 20092archive_cmds \ 20093archive_expsym_cmds \ 20094module_cmds \ 20095module_expsym_cmds \ 20096export_symbols_cmds \ 20097prelink_cmds \ 20098postlink_cmds \ 20099postinstall_cmds \ 20100postuninstall_cmds \ 20101finish_cmds \ 20102sys_lib_search_path_spec \ 20103configure_time_dlsearch_path \ 20104configure_time_lt_sys_library_path; do 20105 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20106 *[\\\\\\\`\\"\\\$]*) 20107 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20108 ;; 20109 *) 20110 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20111 ;; 20112 esac 20113done 20114 20115ac_aux_dir='$ac_aux_dir' 20116 20117# See if we are running on zsh, and set the options that allow our 20118# commands through without removal of \ escapes INIT. 20119if test -n "\${ZSH_VERSION+set}"; then 20120 setopt NO_GLOB_SUBST 20121fi 20122 20123 20124 PACKAGE='$PACKAGE' 20125 VERSION='$VERSION' 20126 RM='$RM' 20127 ofile='$ofile' 20128 20129 20130 20131 20132_ACEOF 20133 20134cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20135 20136# Handling of arguments. 20137for ac_config_target in $ac_config_targets 20138do 20139 case $ac_config_target in 20140 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20141 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20142 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20143 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20144 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 20145 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 20146 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 20147 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20148 "sxpm/Makefile") CONFIG_FILES="$CONFIG_FILES sxpm/Makefile" ;; 20149 "cxpm/Makefile") CONFIG_FILES="$CONFIG_FILES cxpm/Makefile" ;; 20150 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 20151 "xpm.pc") CONFIG_FILES="$CONFIG_FILES xpm.pc" ;; 20152 20153 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20154 esac 20155done 20156 20157 20158# If the user did not use the arguments to specify the items to instantiate, 20159# then the envvar interface is used. Set only those that are not. 20160# We use the long form for the default assignment because of an extremely 20161# bizarre bug on SunOS 4.1.3. 20162if $ac_need_defaults; then 20163 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20164 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20165 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20166fi 20167 20168# Have a temporary directory for convenience. Make it in the build tree 20169# simply because there is no reason against having it here, and in addition, 20170# creating and moving files from /tmp can sometimes cause problems. 20171# Hook for its removal unless debugging. 20172# Note that there is a small window in which the directory will not be cleaned: 20173# after its creation but before its name has been assigned to `$tmp'. 20174$debug || 20175{ 20176 tmp= ac_tmp= 20177 trap 'exit_status=$? 20178 : "${ac_tmp:=$tmp}" 20179 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20180' 0 20181 trap 'as_fn_exit 1' 1 2 13 15 20182} 20183# Create a (secure) tmp directory for tmp files. 20184 20185{ 20186 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20187 test -d "$tmp" 20188} || 20189{ 20190 tmp=./conf$$-$RANDOM 20191 (umask 077 && mkdir "$tmp") 20192} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20193ac_tmp=$tmp 20194 20195# Set up the scripts for CONFIG_FILES section. 20196# No need to generate them if there are no CONFIG_FILES. 20197# This happens for instance with `./config.status config.h'. 20198if test -n "$CONFIG_FILES"; then 20199 20200 20201ac_cr=`echo X | tr X '\015'` 20202# On cygwin, bash can eat \r inside `` if the user requested igncr. 20203# But we know of no other shell where ac_cr would be empty at this 20204# point, so we can use a bashism as a fallback. 20205if test "x$ac_cr" = x; then 20206 eval ac_cr=\$\'\\r\' 20207fi 20208ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20209if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20210 ac_cs_awk_cr='\\r' 20211else 20212 ac_cs_awk_cr=$ac_cr 20213fi 20214 20215echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20216_ACEOF 20217 20218 20219{ 20220 echo "cat >conf$$subs.awk <<_ACEOF" && 20221 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20222 echo "_ACEOF" 20223} >conf$$subs.sh || 20224 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20225ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20226ac_delim='%!_!# ' 20227for ac_last_try in false false false false false :; do 20228 . ./conf$$subs.sh || 20229 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20230 20231 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20232 if test $ac_delim_n = $ac_delim_num; then 20233 break 20234 elif $ac_last_try; then 20235 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20236 else 20237 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20238 fi 20239done 20240rm -f conf$$subs.sh 20241 20242cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20243cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20244_ACEOF 20245sed -n ' 20246h 20247s/^/S["/; s/!.*/"]=/ 20248p 20249g 20250s/^[^!]*!// 20251:repl 20252t repl 20253s/'"$ac_delim"'$// 20254t delim 20255:nl 20256h 20257s/\(.\{148\}\)..*/\1/ 20258t more1 20259s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20260p 20261n 20262b repl 20263:more1 20264s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20265p 20266g 20267s/.\{148\}// 20268t nl 20269:delim 20270h 20271s/\(.\{148\}\)..*/\1/ 20272t more2 20273s/["\\]/\\&/g; s/^/"/; s/$/"/ 20274p 20275b 20276:more2 20277s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20278p 20279g 20280s/.\{148\}// 20281t delim 20282' <conf$$subs.awk | sed ' 20283/^[^""]/{ 20284 N 20285 s/\n// 20286} 20287' >>$CONFIG_STATUS || ac_write_fail=1 20288rm -f conf$$subs.awk 20289cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20290_ACAWK 20291cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20292 for (key in S) S_is_set[key] = 1 20293 FS = "" 20294 20295} 20296{ 20297 line = $ 0 20298 nfields = split(line, field, "@") 20299 substed = 0 20300 len = length(field[1]) 20301 for (i = 2; i < nfields; i++) { 20302 key = field[i] 20303 keylen = length(key) 20304 if (S_is_set[key]) { 20305 value = S[key] 20306 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20307 len += length(value) + length(field[++i]) 20308 substed = 1 20309 } else 20310 len += 1 + keylen 20311 } 20312 20313 print line 20314} 20315 20316_ACAWK 20317_ACEOF 20318cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20319if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20320 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20321else 20322 cat 20323fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20324 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20325_ACEOF 20326 20327# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20328# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20329# trailing colons and then remove the whole line if VPATH becomes empty 20330# (actually we leave an empty line to preserve line numbers). 20331if test "x$srcdir" = x.; then 20332 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20333h 20334s/// 20335s/^/:/ 20336s/[ ]*$/:/ 20337s/:\$(srcdir):/:/g 20338s/:\${srcdir}:/:/g 20339s/:@srcdir@:/:/g 20340s/^:*// 20341s/:*$// 20342x 20343s/\(=[ ]*\).*/\1/ 20344G 20345s/\n// 20346s/^[^=]*=[ ]*$// 20347}' 20348fi 20349 20350cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20351fi # test -n "$CONFIG_FILES" 20352 20353# Set up the scripts for CONFIG_HEADERS section. 20354# No need to generate them if there are no CONFIG_HEADERS. 20355# This happens for instance with `./config.status Makefile'. 20356if test -n "$CONFIG_HEADERS"; then 20357cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20358BEGIN { 20359_ACEOF 20360 20361# Transform confdefs.h into an awk script `defines.awk', embedded as 20362# here-document in config.status, that substitutes the proper values into 20363# config.h.in to produce config.h. 20364 20365# Create a delimiter string that does not exist in confdefs.h, to ease 20366# handling of long lines. 20367ac_delim='%!_!# ' 20368for ac_last_try in false false :; do 20369 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20370 if test -z "$ac_tt"; then 20371 break 20372 elif $ac_last_try; then 20373 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20374 else 20375 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20376 fi 20377done 20378 20379# For the awk script, D is an array of macro values keyed by name, 20380# likewise P contains macro parameters if any. Preserve backslash 20381# newline sequences. 20382 20383ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20384sed -n ' 20385s/.\{148\}/&'"$ac_delim"'/g 20386t rset 20387:rset 20388s/^[ ]*#[ ]*define[ ][ ]*/ / 20389t def 20390d 20391:def 20392s/\\$// 20393t bsnl 20394s/["\\]/\\&/g 20395s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20396D["\1"]=" \3"/p 20397s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20398d 20399:bsnl 20400s/["\\]/\\&/g 20401s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20402D["\1"]=" \3\\\\\\n"\\/p 20403t cont 20404s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20405t cont 20406d 20407:cont 20408n 20409s/.\{148\}/&'"$ac_delim"'/g 20410t clear 20411:clear 20412s/\\$// 20413t bsnlc 20414s/["\\]/\\&/g; s/^/"/; s/$/"/p 20415d 20416:bsnlc 20417s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20418b cont 20419' <confdefs.h | sed ' 20420s/'"$ac_delim"'/"\\\ 20421"/g' >>$CONFIG_STATUS || ac_write_fail=1 20422 20423cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20424 for (key in D) D_is_set[key] = 1 20425 FS = "" 20426} 20427/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20428 line = \$ 0 20429 split(line, arg, " ") 20430 if (arg[1] == "#") { 20431 defundef = arg[2] 20432 mac1 = arg[3] 20433 } else { 20434 defundef = substr(arg[1], 2) 20435 mac1 = arg[2] 20436 } 20437 split(mac1, mac2, "(") #) 20438 macro = mac2[1] 20439 prefix = substr(line, 1, index(line, defundef) - 1) 20440 if (D_is_set[macro]) { 20441 # Preserve the white space surrounding the "#". 20442 print prefix "define", macro P[macro] D[macro] 20443 next 20444 } else { 20445 # Replace #undef with comments. This is necessary, for example, 20446 # in the case of _POSIX_SOURCE, which is predefined and required 20447 # on some systems where configure will not decide to define it. 20448 if (defundef == "undef") { 20449 print "/*", prefix defundef, macro, "*/" 20450 next 20451 } 20452 } 20453} 20454{ print } 20455_ACAWK 20456_ACEOF 20457cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20458 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20459fi # test -n "$CONFIG_HEADERS" 20460 20461 20462eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20463shift 20464for ac_tag 20465do 20466 case $ac_tag in 20467 :[FHLC]) ac_mode=$ac_tag; continue;; 20468 esac 20469 case $ac_mode$ac_tag in 20470 :[FHL]*:*);; 20471 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20472 :[FH]-) ac_tag=-:-;; 20473 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20474 esac 20475 ac_save_IFS=$IFS 20476 IFS=: 20477 set x $ac_tag 20478 IFS=$ac_save_IFS 20479 shift 20480 ac_file=$1 20481 shift 20482 20483 case $ac_mode in 20484 :L) ac_source=$1;; 20485 :[FH]) 20486 ac_file_inputs= 20487 for ac_f 20488 do 20489 case $ac_f in 20490 -) ac_f="$ac_tmp/stdin";; 20491 *) # Look for the file first in the build tree, then in the source tree 20492 # (if the path is not absolute). The absolute path cannot be DOS-style, 20493 # because $ac_f cannot contain `:'. 20494 test -f "$ac_f" || 20495 case $ac_f in 20496 [\\/$]*) false;; 20497 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20498 esac || 20499 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20500 esac 20501 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20502 as_fn_append ac_file_inputs " '$ac_f'" 20503 done 20504 20505 # Let's still pretend it is `configure' which instantiates (i.e., don't 20506 # use $as_me), people would be surprised to read: 20507 # /* config.h. Generated by config.status. */ 20508 configure_input='Generated from '` 20509 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20510 `' by configure.' 20511 if test x"$ac_file" != x-; then 20512 configure_input="$ac_file. $configure_input" 20513 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20514$as_echo "$as_me: creating $ac_file" >&6;} 20515 fi 20516 # Neutralize special characters interpreted by sed in replacement strings. 20517 case $configure_input in #( 20518 *\&* | *\|* | *\\* ) 20519 ac_sed_conf_input=`$as_echo "$configure_input" | 20520 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20521 *) ac_sed_conf_input=$configure_input;; 20522 esac 20523 20524 case $ac_tag in 20525 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20526 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20527 esac 20528 ;; 20529 esac 20530 20531 ac_dir=`$as_dirname -- "$ac_file" || 20532$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20533 X"$ac_file" : 'X\(//\)[^/]' \| \ 20534 X"$ac_file" : 'X\(//\)$' \| \ 20535 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20536$as_echo X"$ac_file" | 20537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20538 s//\1/ 20539 q 20540 } 20541 /^X\(\/\/\)[^/].*/{ 20542 s//\1/ 20543 q 20544 } 20545 /^X\(\/\/\)$/{ 20546 s//\1/ 20547 q 20548 } 20549 /^X\(\/\).*/{ 20550 s//\1/ 20551 q 20552 } 20553 s/.*/./; q'` 20554 as_dir="$ac_dir"; as_fn_mkdir_p 20555 ac_builddir=. 20556 20557case "$ac_dir" in 20558.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20559*) 20560 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20561 # A ".." for each directory in $ac_dir_suffix. 20562 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20563 case $ac_top_builddir_sub in 20564 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20565 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20566 esac ;; 20567esac 20568ac_abs_top_builddir=$ac_pwd 20569ac_abs_builddir=$ac_pwd$ac_dir_suffix 20570# for backward compatibility: 20571ac_top_builddir=$ac_top_build_prefix 20572 20573case $srcdir in 20574 .) # We are building in place. 20575 ac_srcdir=. 20576 ac_top_srcdir=$ac_top_builddir_sub 20577 ac_abs_top_srcdir=$ac_pwd ;; 20578 [\\/]* | ?:[\\/]* ) # Absolute name. 20579 ac_srcdir=$srcdir$ac_dir_suffix; 20580 ac_top_srcdir=$srcdir 20581 ac_abs_top_srcdir=$srcdir ;; 20582 *) # Relative name. 20583 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20584 ac_top_srcdir=$ac_top_build_prefix$srcdir 20585 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20586esac 20587ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20588 20589 20590 case $ac_mode in 20591 :F) 20592 # 20593 # CONFIG_FILE 20594 # 20595 20596 case $INSTALL in 20597 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20598 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20599 esac 20600 ac_MKDIR_P=$MKDIR_P 20601 case $MKDIR_P in 20602 [\\/$]* | ?:[\\/]* ) ;; 20603 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20604 esac 20605_ACEOF 20606 20607cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20608# If the template does not know about datarootdir, expand it. 20609# FIXME: This hack should be removed a few years after 2.60. 20610ac_datarootdir_hack=; ac_datarootdir_seen= 20611ac_sed_dataroot=' 20612/datarootdir/ { 20613 p 20614 q 20615} 20616/@datadir@/p 20617/@docdir@/p 20618/@infodir@/p 20619/@localedir@/p 20620/@mandir@/p' 20621case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20622*datarootdir*) ac_datarootdir_seen=yes;; 20623*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20625$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20626_ACEOF 20627cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20628 ac_datarootdir_hack=' 20629 s&@datadir@&$datadir&g 20630 s&@docdir@&$docdir&g 20631 s&@infodir@&$infodir&g 20632 s&@localedir@&$localedir&g 20633 s&@mandir@&$mandir&g 20634 s&\\\${datarootdir}&$datarootdir&g' ;; 20635esac 20636_ACEOF 20637 20638# Neutralize VPATH when `$srcdir' = `.'. 20639# Shell code in configure.ac might set extrasub. 20640# FIXME: do we really want to maintain this feature? 20641cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20642ac_sed_extra="$ac_vpsub 20643$extrasub 20644_ACEOF 20645cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20646:t 20647/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20648s|@configure_input@|$ac_sed_conf_input|;t t 20649s&@top_builddir@&$ac_top_builddir_sub&;t t 20650s&@top_build_prefix@&$ac_top_build_prefix&;t t 20651s&@srcdir@&$ac_srcdir&;t t 20652s&@abs_srcdir@&$ac_abs_srcdir&;t t 20653s&@top_srcdir@&$ac_top_srcdir&;t t 20654s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20655s&@builddir@&$ac_builddir&;t t 20656s&@abs_builddir@&$ac_abs_builddir&;t t 20657s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20658s&@INSTALL@&$ac_INSTALL&;t t 20659s&@MKDIR_P@&$ac_MKDIR_P&;t t 20660$ac_datarootdir_hack 20661" 20662eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20663 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20664 20665test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20666 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20667 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20668 "$ac_tmp/out"`; test -z "$ac_out"; } && 20669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20670which seems to be undefined. Please make sure it is defined" >&5 20671$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20672which seems to be undefined. Please make sure it is defined" >&2;} 20673 20674 rm -f "$ac_tmp/stdin" 20675 case $ac_file in 20676 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20677 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20678 esac \ 20679 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20680 ;; 20681 :H) 20682 # 20683 # CONFIG_HEADER 20684 # 20685 if test x"$ac_file" != x-; then 20686 { 20687 $as_echo "/* $configure_input */" \ 20688 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20689 } >"$ac_tmp/config.h" \ 20690 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20691 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20692 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20693$as_echo "$as_me: $ac_file is unchanged" >&6;} 20694 else 20695 rm -f "$ac_file" 20696 mv "$ac_tmp/config.h" "$ac_file" \ 20697 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20698 fi 20699 else 20700 $as_echo "/* $configure_input */" \ 20701 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20702 || as_fn_error $? "could not create -" "$LINENO" 5 20703 fi 20704# Compute "$ac_file"'s index in $config_headers. 20705_am_arg="$ac_file" 20706_am_stamp_count=1 20707for _am_header in $config_headers :; do 20708 case $_am_header in 20709 $_am_arg | $_am_arg:* ) 20710 break ;; 20711 * ) 20712 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20713 esac 20714done 20715echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20716$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20717 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20718 X"$_am_arg" : 'X\(//\)$' \| \ 20719 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20720$as_echo X"$_am_arg" | 20721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20722 s//\1/ 20723 q 20724 } 20725 /^X\(\/\/\)[^/].*/{ 20726 s//\1/ 20727 q 20728 } 20729 /^X\(\/\/\)$/{ 20730 s//\1/ 20731 q 20732 } 20733 /^X\(\/\).*/{ 20734 s//\1/ 20735 q 20736 } 20737 s/.*/./; q'`/stamp-h$_am_stamp_count 20738 ;; 20739 20740 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20741$as_echo "$as_me: executing $ac_file commands" >&6;} 20742 ;; 20743 esac 20744 20745 20746 case $ac_file$ac_mode in 20747 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20748 # Older Autoconf quotes --file arguments for eval, but not when files 20749 # are listed without --file. Let's play safe and only enable the eval 20750 # if we detect the quoting. 20751 case $CONFIG_FILES in 20752 *\'*) eval set x "$CONFIG_FILES" ;; 20753 *) set x $CONFIG_FILES ;; 20754 esac 20755 shift 20756 for mf 20757 do 20758 # Strip MF so we end up with the name of the file. 20759 mf=`echo "$mf" | sed -e 's/:.*$//'` 20760 # Check whether this is an Automake generated Makefile or not. 20761 # We used to match only the files named 'Makefile.in', but 20762 # some people rename them; so instead we look at the file content. 20763 # Grep'ing the first line is not enough: some people post-process 20764 # each Makefile.in and add a new line on top of each file to say so. 20765 # Grep'ing the whole file is not good either: AIX grep has a line 20766 # limit of 2048, but all sed's we know have understand at least 4000. 20767 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20768 dirpart=`$as_dirname -- "$mf" || 20769$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20770 X"$mf" : 'X\(//\)[^/]' \| \ 20771 X"$mf" : 'X\(//\)$' \| \ 20772 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20773$as_echo X"$mf" | 20774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20775 s//\1/ 20776 q 20777 } 20778 /^X\(\/\/\)[^/].*/{ 20779 s//\1/ 20780 q 20781 } 20782 /^X\(\/\/\)$/{ 20783 s//\1/ 20784 q 20785 } 20786 /^X\(\/\).*/{ 20787 s//\1/ 20788 q 20789 } 20790 s/.*/./; q'` 20791 else 20792 continue 20793 fi 20794 # Extract the definition of DEPDIR, am__include, and am__quote 20795 # from the Makefile without running 'make'. 20796 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20797 test -z "$DEPDIR" && continue 20798 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20799 test -z "$am__include" && continue 20800 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20801 # Find all dependency output files, they are included files with 20802 # $(DEPDIR) in their names. We invoke sed twice because it is the 20803 # simplest approach to changing $(DEPDIR) to its actual value in the 20804 # expansion. 20805 for file in `sed -n " 20806 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20807 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 20808 # Make sure the directory exists. 20809 test -f "$dirpart/$file" && continue 20810 fdir=`$as_dirname -- "$file" || 20811$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20812 X"$file" : 'X\(//\)[^/]' \| \ 20813 X"$file" : 'X\(//\)$' \| \ 20814 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20815$as_echo X"$file" | 20816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20817 s//\1/ 20818 q 20819 } 20820 /^X\(\/\/\)[^/].*/{ 20821 s//\1/ 20822 q 20823 } 20824 /^X\(\/\/\)$/{ 20825 s//\1/ 20826 q 20827 } 20828 /^X\(\/\).*/{ 20829 s//\1/ 20830 q 20831 } 20832 s/.*/./; q'` 20833 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20834 # echo "creating $dirpart/$file" 20835 echo '# dummy' > "$dirpart/$file" 20836 done 20837 done 20838} 20839 ;; 20840 "libtool":C) 20841 20842 # See if we are running on zsh, and set the options that allow our 20843 # commands through without removal of \ escapes. 20844 if test -n "${ZSH_VERSION+set}"; then 20845 setopt NO_GLOB_SUBST 20846 fi 20847 20848 cfgfile=${ofile}T 20849 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20850 $RM "$cfgfile" 20851 20852 cat <<_LT_EOF >> "$cfgfile" 20853#! $SHELL 20854# Generated automatically by $as_me ($PACKAGE) $VERSION 20855# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20856# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20857 20858# Provide generalized library-building support services. 20859# Written by Gordon Matzigkeit, 1996 20860 20861# Copyright (C) 2014 Free Software Foundation, Inc. 20862# This is free software; see the source for copying conditions. There is NO 20863# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 20864 20865# GNU Libtool is free software; you can redistribute it and/or modify 20866# it under the terms of the GNU General Public License as published by 20867# the Free Software Foundation; either version 2 of of the License, or 20868# (at your option) any later version. 20869# 20870# As a special exception to the GNU General Public License, if you 20871# distribute this file as part of a program or library that is built 20872# using GNU Libtool, you may include this file under the same 20873# distribution terms that you use for the rest of that program. 20874# 20875# GNU Libtool is distributed in the hope that it will be useful, but 20876# WITHOUT ANY WARRANTY; without even the implied warranty of 20877# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20878# GNU General Public License for more details. 20879# 20880# You should have received a copy of the GNU General Public License 20881# along with this program. If not, see <http://www.gnu.org/licenses/>. 20882 20883 20884# The names of the tagged configurations supported by this script. 20885available_tags='' 20886 20887# Configured defaults for sys_lib_dlsearch_path munging. 20888: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 20889 20890# ### BEGIN LIBTOOL CONFIG 20891 20892# Which release of libtool.m4 was used? 20893macro_version=$macro_version 20894macro_revision=$macro_revision 20895 20896# Whether or not to build shared libraries. 20897build_libtool_libs=$enable_shared 20898 20899# Whether or not to build static libraries. 20900build_old_libs=$enable_static 20901 20902# What type of objects to build. 20903pic_mode=$pic_mode 20904 20905# Whether or not to optimize for fast installation. 20906fast_install=$enable_fast_install 20907 20908# Shared archive member basename,for filename based shared library versioning on AIX. 20909shared_archive_member_spec=$shared_archive_member_spec 20910 20911# Shell to use when invoking shell scripts. 20912SHELL=$lt_SHELL 20913 20914# An echo program that protects backslashes. 20915ECHO=$lt_ECHO 20916 20917# The PATH separator for the build system. 20918PATH_SEPARATOR=$lt_PATH_SEPARATOR 20919 20920# The host system. 20921host_alias=$host_alias 20922host=$host 20923host_os=$host_os 20924 20925# The build system. 20926build_alias=$build_alias 20927build=$build 20928build_os=$build_os 20929 20930# A sed program that does not truncate output. 20931SED=$lt_SED 20932 20933# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20934Xsed="\$SED -e 1s/^X//" 20935 20936# A grep program that handles long lines. 20937GREP=$lt_GREP 20938 20939# An ERE matcher. 20940EGREP=$lt_EGREP 20941 20942# A literal string matcher. 20943FGREP=$lt_FGREP 20944 20945# A BSD- or MS-compatible name lister. 20946NM=$lt_NM 20947 20948# Whether we need soft or hard links. 20949LN_S=$lt_LN_S 20950 20951# What is the maximum length of a command? 20952max_cmd_len=$max_cmd_len 20953 20954# Object file suffix (normally "o"). 20955objext=$ac_objext 20956 20957# Executable file suffix (normally ""). 20958exeext=$exeext 20959 20960# whether the shell understands "unset". 20961lt_unset=$lt_unset 20962 20963# turn spaces into newlines. 20964SP2NL=$lt_lt_SP2NL 20965 20966# turn newlines into spaces. 20967NL2SP=$lt_lt_NL2SP 20968 20969# convert \$build file names to \$host format. 20970to_host_file_cmd=$lt_cv_to_host_file_cmd 20971 20972# convert \$build files to toolchain format. 20973to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20974 20975# An object symbol dumper. 20976OBJDUMP=$lt_OBJDUMP 20977 20978# Method to check whether dependent libraries are shared objects. 20979deplibs_check_method=$lt_deplibs_check_method 20980 20981# Command to use when deplibs_check_method = "file_magic". 20982file_magic_cmd=$lt_file_magic_cmd 20983 20984# How to find potential files when deplibs_check_method = "file_magic". 20985file_magic_glob=$lt_file_magic_glob 20986 20987# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20988want_nocaseglob=$lt_want_nocaseglob 20989 20990# DLL creation program. 20991DLLTOOL=$lt_DLLTOOL 20992 20993# Command to associate shared and link libraries. 20994sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20995 20996# The archiver. 20997AR=$lt_AR 20998 20999# Flags to create an archive. 21000AR_FLAGS=$lt_AR_FLAGS 21001 21002# How to feed a file listing to the archiver. 21003archiver_list_spec=$lt_archiver_list_spec 21004 21005# A symbol stripping program. 21006STRIP=$lt_STRIP 21007 21008# Commands used to install an old-style archive. 21009RANLIB=$lt_RANLIB 21010old_postinstall_cmds=$lt_old_postinstall_cmds 21011old_postuninstall_cmds=$lt_old_postuninstall_cmds 21012 21013# Whether to use a lock for old archive extraction. 21014lock_old_archive_extraction=$lock_old_archive_extraction 21015 21016# A C compiler. 21017LTCC=$lt_CC 21018 21019# LTCC compiler flags. 21020LTCFLAGS=$lt_CFLAGS 21021 21022# Take the output of nm and produce a listing of raw symbols and C names. 21023global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21024 21025# Transform the output of nm in a proper C declaration. 21026global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21027 21028# Transform the output of nm into a list of symbols to manually relocate. 21029global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 21030 21031# Transform the output of nm in a C name address pair. 21032global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21033 21034# Transform the output of nm in a C name address pair when lib prefix is needed. 21035global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21036 21037# The name lister interface. 21038nm_interface=$lt_lt_cv_nm_interface 21039 21040# Specify filename containing input files for \$NM. 21041nm_file_list_spec=$lt_nm_file_list_spec 21042 21043# The root where to search for dependent libraries,and where our libraries should be installed. 21044lt_sysroot=$lt_sysroot 21045 21046# Command to truncate a binary pipe. 21047lt_truncate_bin=$lt_lt_cv_truncate_bin 21048 21049# The name of the directory that contains temporary libtool files. 21050objdir=$objdir 21051 21052# Used to examine libraries when file_magic_cmd begins with "file". 21053MAGIC_CMD=$MAGIC_CMD 21054 21055# Must we lock files when doing compilation? 21056need_locks=$lt_need_locks 21057 21058# Manifest tool. 21059MANIFEST_TOOL=$lt_MANIFEST_TOOL 21060 21061# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21062DSYMUTIL=$lt_DSYMUTIL 21063 21064# Tool to change global to local symbols on Mac OS X. 21065NMEDIT=$lt_NMEDIT 21066 21067# Tool to manipulate fat objects and archives on Mac OS X. 21068LIPO=$lt_LIPO 21069 21070# ldd/readelf like tool for Mach-O binaries on Mac OS X. 21071OTOOL=$lt_OTOOL 21072 21073# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21074OTOOL64=$lt_OTOOL64 21075 21076# Old archive suffix (normally "a"). 21077libext=$libext 21078 21079# Shared library suffix (normally ".so"). 21080shrext_cmds=$lt_shrext_cmds 21081 21082# The commands to extract the exported symbol list from a shared archive. 21083extract_expsyms_cmds=$lt_extract_expsyms_cmds 21084 21085# Variables whose values should be saved in libtool wrapper scripts and 21086# restored at link time. 21087variables_saved_for_relink=$lt_variables_saved_for_relink 21088 21089# Do we need the "lib" prefix for modules? 21090need_lib_prefix=$need_lib_prefix 21091 21092# Do we need a version for libraries? 21093need_version=$need_version 21094 21095# Library versioning type. 21096version_type=$version_type 21097 21098# Shared library runtime path variable. 21099runpath_var=$runpath_var 21100 21101# Shared library path variable. 21102shlibpath_var=$shlibpath_var 21103 21104# Is shlibpath searched before the hard-coded library search path? 21105shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21106 21107# Format of library name prefix. 21108libname_spec=$lt_libname_spec 21109 21110# List of archive names. First name is the real one, the rest are links. 21111# The last name is the one that the linker finds with -lNAME 21112library_names_spec=$lt_library_names_spec 21113 21114# The coded name of the library, if different from the real name. 21115soname_spec=$lt_soname_spec 21116 21117# Permission mode override for installation of shared libraries. 21118install_override_mode=$lt_install_override_mode 21119 21120# Command to use after installation of a shared archive. 21121postinstall_cmds=$lt_postinstall_cmds 21122 21123# Command to use after uninstallation of a shared archive. 21124postuninstall_cmds=$lt_postuninstall_cmds 21125 21126# Commands used to finish a libtool library installation in a directory. 21127finish_cmds=$lt_finish_cmds 21128 21129# As "finish_cmds", except a single script fragment to be evaled but 21130# not shown. 21131finish_eval=$lt_finish_eval 21132 21133# Whether we should hardcode library paths into libraries. 21134hardcode_into_libs=$hardcode_into_libs 21135 21136# Compile-time system search path for libraries. 21137sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21138 21139# Detected run-time system search path for libraries. 21140sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 21141 21142# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 21143configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 21144 21145# Whether dlopen is supported. 21146dlopen_support=$enable_dlopen 21147 21148# Whether dlopen of programs is supported. 21149dlopen_self=$enable_dlopen_self 21150 21151# Whether dlopen of statically linked programs is supported. 21152dlopen_self_static=$enable_dlopen_self_static 21153 21154# Commands to strip libraries. 21155old_striplib=$lt_old_striplib 21156striplib=$lt_striplib 21157 21158 21159# The linker used to build libraries. 21160LD=$lt_LD 21161 21162# How to create reloadable object files. 21163reload_flag=$lt_reload_flag 21164reload_cmds=$lt_reload_cmds 21165 21166# Commands used to build an old-style archive. 21167old_archive_cmds=$lt_old_archive_cmds 21168 21169# A language specific compiler. 21170CC=$lt_compiler 21171 21172# Is the compiler the GNU compiler? 21173with_gcc=$GCC 21174 21175# Compiler flag to turn off builtin functions. 21176no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21177 21178# Additional compiler flags for building library objects. 21179pic_flag=$lt_lt_prog_compiler_pic 21180 21181# How to pass a linker flag through the compiler. 21182wl=$lt_lt_prog_compiler_wl 21183 21184# Compiler flag to prevent dynamic linking. 21185link_static_flag=$lt_lt_prog_compiler_static 21186 21187# Does compiler simultaneously support -c and -o options? 21188compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21189 21190# Whether or not to add -lc for building shared libraries. 21191build_libtool_need_lc=$archive_cmds_need_lc 21192 21193# Whether or not to disallow shared libs when runtime libs are static. 21194allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21195 21196# Compiler flag to allow reflexive dlopens. 21197export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21198 21199# Compiler flag to generate shared objects directly from archives. 21200whole_archive_flag_spec=$lt_whole_archive_flag_spec 21201 21202# Whether the compiler copes with passing no objects directly. 21203compiler_needs_object=$lt_compiler_needs_object 21204 21205# Create an old-style archive from a shared archive. 21206old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21207 21208# Create a temporary old-style archive to link instead of a shared archive. 21209old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21210 21211# Commands used to build a shared archive. 21212archive_cmds=$lt_archive_cmds 21213archive_expsym_cmds=$lt_archive_expsym_cmds 21214 21215# Commands used to build a loadable module if different from building 21216# a shared archive. 21217module_cmds=$lt_module_cmds 21218module_expsym_cmds=$lt_module_expsym_cmds 21219 21220# Whether we are building with GNU ld or not. 21221with_gnu_ld=$lt_with_gnu_ld 21222 21223# Flag that allows shared libraries with undefined symbols to be built. 21224allow_undefined_flag=$lt_allow_undefined_flag 21225 21226# Flag that enforces no undefined symbols. 21227no_undefined_flag=$lt_no_undefined_flag 21228 21229# Flag to hardcode \$libdir into a binary during linking. 21230# This must work even if \$libdir does not exist 21231hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21232 21233# Whether we need a single "-rpath" flag with a separated argument. 21234hardcode_libdir_separator=$lt_hardcode_libdir_separator 21235 21236# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21237# DIR into the resulting binary. 21238hardcode_direct=$hardcode_direct 21239 21240# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21241# DIR into the resulting binary and the resulting library dependency is 21242# "absolute",i.e impossible to change by setting \$shlibpath_var if the 21243# library is relocated. 21244hardcode_direct_absolute=$hardcode_direct_absolute 21245 21246# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21247# into the resulting binary. 21248hardcode_minus_L=$hardcode_minus_L 21249 21250# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21251# into the resulting binary. 21252hardcode_shlibpath_var=$hardcode_shlibpath_var 21253 21254# Set to "yes" if building a shared library automatically hardcodes DIR 21255# into the library and all subsequent libraries and executables linked 21256# against it. 21257hardcode_automatic=$hardcode_automatic 21258 21259# Set to yes if linker adds runtime paths of dependent libraries 21260# to runtime path list. 21261inherit_rpath=$inherit_rpath 21262 21263# Whether libtool must link a program against all its dependency libraries. 21264link_all_deplibs=$link_all_deplibs 21265 21266# Set to "yes" if exported symbols are required. 21267always_export_symbols=$always_export_symbols 21268 21269# The commands to list exported symbols. 21270export_symbols_cmds=$lt_export_symbols_cmds 21271 21272# Symbols that should not be listed in the preloaded symbols. 21273exclude_expsyms=$lt_exclude_expsyms 21274 21275# Symbols that must always be exported. 21276include_expsyms=$lt_include_expsyms 21277 21278# Commands necessary for linking programs (against libraries) with templates. 21279prelink_cmds=$lt_prelink_cmds 21280 21281# Commands necessary for finishing linking programs. 21282postlink_cmds=$lt_postlink_cmds 21283 21284# Specify filename containing input files. 21285file_list_spec=$lt_file_list_spec 21286 21287# How to hardcode a shared library path into an executable. 21288hardcode_action=$hardcode_action 21289 21290# ### END LIBTOOL CONFIG 21291 21292_LT_EOF 21293 21294 cat <<'_LT_EOF' >> "$cfgfile" 21295 21296# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 21297 21298# func_munge_path_list VARIABLE PATH 21299# ----------------------------------- 21300# VARIABLE is name of variable containing _space_ separated list of 21301# directories to be munged by the contents of PATH, which is string 21302# having a format: 21303# "DIR[:DIR]:" 21304# string "DIR[ DIR]" will be prepended to VARIABLE 21305# ":DIR[:DIR]" 21306# string "DIR[ DIR]" will be appended to VARIABLE 21307# "DIRP[:DIRP]::[DIRA:]DIRA" 21308# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 21309# "DIRA[ DIRA]" will be appended to VARIABLE 21310# "DIR[:DIR]" 21311# VARIABLE will be replaced by "DIR[ DIR]" 21312func_munge_path_list () 21313{ 21314 case x$2 in 21315 x) 21316 ;; 21317 *:) 21318 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 21319 ;; 21320 x:*) 21321 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 21322 ;; 21323 *::*) 21324 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 21325 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 21326 ;; 21327 *) 21328 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 21329 ;; 21330 esac 21331} 21332 21333 21334# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 21335func_cc_basename () 21336{ 21337 for cc_temp in $*""; do 21338 case $cc_temp in 21339 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21340 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21341 \-*) ;; 21342 *) break;; 21343 esac 21344 done 21345 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 21346} 21347 21348 21349# ### END FUNCTIONS SHARED WITH CONFIGURE 21350 21351_LT_EOF 21352 21353 case $host_os in 21354 aix3*) 21355 cat <<\_LT_EOF >> "$cfgfile" 21356# AIX sometimes has problems with the GCC collect2 program. For some 21357# reason, if we set the COLLECT_NAMES environment variable, the problems 21358# vanish in a puff of smoke. 21359if test set != "${COLLECT_NAMES+set}"; then 21360 COLLECT_NAMES= 21361 export COLLECT_NAMES 21362fi 21363_LT_EOF 21364 ;; 21365 esac 21366 21367 21368ltmain=$ac_aux_dir/ltmain.sh 21369 21370 21371 # We use sed instead of cat because bash on DJGPP gets confused if 21372 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21373 # text mode, it properly converts lines to CR/LF. This bash problem 21374 # is reportedly fixed, but why not run on old versions too? 21375 sed '$q' "$ltmain" >> "$cfgfile" \ 21376 || (rm -f "$cfgfile"; exit 1) 21377 21378 mv -f "$cfgfile" "$ofile" || 21379 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21380 chmod +x "$ofile" 21381 21382 ;; 21383 21384 esac 21385done # for ac_tag 21386 21387 21388as_fn_exit 0 21389_ACEOF 21390ac_clean_files=$ac_clean_files_save 21391 21392test $ac_write_fail = 0 || 21393 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21394 21395 21396# configure is writing to config.log, and then calls config.status. 21397# config.status does its own redirection, appending to config.log. 21398# Unfortunately, on DOS this fails, as config.log is still kept open 21399# by configure, so config.status won't be able to write to it; its 21400# output is simply discarded. So we exec the FD to /dev/null, 21401# effectively closing config.log, so it can be properly (re)opened and 21402# appended to by config.status. When coming back to configure, we 21403# need to make the FD available again. 21404if test "$no_create" != yes; then 21405 ac_cs_success=: 21406 ac_config_status_args= 21407 test "$silent" = yes && 21408 ac_config_status_args="$ac_config_status_args --quiet" 21409 exec 5>/dev/null 21410 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21411 exec 5>>config.log 21412 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21413 # would make configure fail if this is the last instruction. 21414 $ac_cs_success || as_fn_exit 1 21415fi 21416if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21418$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21419fi 21420 21421